Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.69 for ndn-cpp 0.2. |
| 4 | # |
| 5 | # Report bugs to <ndn-lib@lists.cs.ucla.edu>. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 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'\" && |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 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" |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 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 |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 277 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 278 | $0: ndn-lib@lists.cs.ucla.edu about your system, including |
| 279 | $0: any error possibly output before this message. Then |
| 280 | $0: install a modern shell, or manually run the script |
| 281 | $0: under such a shell if you do have one." |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 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 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 567 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 568 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 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='ndn-cpp' |
| 592 | PACKAGE_TARNAME='ndn-cpp' |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 593 | PACKAGE_VERSION='0.2' |
| 594 | PACKAGE_STRING='ndn-cpp 0.2' |
| 595 | PACKAGE_BUGREPORT='ndn-lib@lists.cs.ucla.edu' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 596 | PACKAGE_URL='https://github.com/named-data/ndn-cpp' |
| 597 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 598 | ac_unique_file="config.h.in" |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 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 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 635 | ac_subst_vars='am__EXEEXT_FALSE |
| 636 | am__EXEEXT_TRUE |
| 637 | LTLIBOBJS |
| 638 | LIBOBJS |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 639 | DOXYGEN_PAPER_SIZE |
| 640 | DX_COND_latex_FALSE |
| 641 | DX_COND_latex_TRUE |
| 642 | DX_COND_pdf_FALSE |
| 643 | DX_COND_pdf_TRUE |
| 644 | DX_PDFLATEX |
| 645 | DX_FLAG_pdf |
| 646 | DX_COND_ps_FALSE |
| 647 | DX_COND_ps_TRUE |
| 648 | DX_EGREP |
| 649 | DX_DVIPS |
| 650 | DX_MAKEINDEX |
| 651 | DX_LATEX |
| 652 | DX_FLAG_ps |
| 653 | DX_COND_html_FALSE |
| 654 | DX_COND_html_TRUE |
| 655 | DX_FLAG_html |
| 656 | DX_COND_chi_FALSE |
| 657 | DX_COND_chi_TRUE |
| 658 | DX_FLAG_chi |
| 659 | DX_COND_chm_FALSE |
| 660 | DX_COND_chm_TRUE |
| 661 | DX_HHC |
| 662 | DX_FLAG_chm |
| 663 | DX_COND_xml_FALSE |
| 664 | DX_COND_xml_TRUE |
| 665 | DX_FLAG_xml |
| 666 | DX_COND_rtf_FALSE |
| 667 | DX_COND_rtf_TRUE |
| 668 | DX_FLAG_rtf |
| 669 | DX_COND_man_FALSE |
| 670 | DX_COND_man_TRUE |
| 671 | DX_FLAG_man |
| 672 | DX_COND_dot_FALSE |
| 673 | DX_COND_dot_TRUE |
| 674 | DX_DOT |
| 675 | DX_FLAG_dot |
| 676 | DX_COND_doc_FALSE |
| 677 | DX_COND_doc_TRUE |
| 678 | DX_PERL |
| 679 | DX_DOXYGEN |
| 680 | DX_FLAG_doc |
| 681 | DX_ENV |
| 682 | DX_DOCDIR |
| 683 | DX_CONFIG |
| 684 | DX_PROJECT |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 685 | SQLITE3_VERSION |
| 686 | SQLITE3_LDFLAGS |
| 687 | SQLITE3_CFLAGS |
Jeff Thompson | d0f62e1 | 2013-10-09 17:41:25 -0700 | [diff] [blame] | 688 | HAVE_CXX11 |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 689 | am__fastdepOBJCXX_FALSE |
| 690 | am__fastdepOBJCXX_TRUE |
| 691 | OBJCXXDEPMODE |
| 692 | ac_ct_OBJCXX |
| 693 | OBJCXXFLAGS |
| 694 | OBJCXX |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 695 | CXXCPP |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 696 | am__fastdepCXX_FALSE |
| 697 | am__fastdepCXX_TRUE |
| 698 | CXXDEPMODE |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 699 | ac_ct_CXX |
| 700 | CXXFLAGS |
| 701 | CXX |
| 702 | CPP |
| 703 | OTOOL64 |
| 704 | OTOOL |
| 705 | LIPO |
| 706 | NMEDIT |
| 707 | DSYMUTIL |
| 708 | MANIFEST_TOOL |
| 709 | RANLIB |
| 710 | DLLTOOL |
| 711 | OBJDUMP |
| 712 | LN_S |
| 713 | NM |
| 714 | ac_ct_DUMPBIN |
| 715 | DUMPBIN |
| 716 | LD |
| 717 | FGREP |
| 718 | EGREP |
| 719 | GREP |
| 720 | SED |
| 721 | host_os |
| 722 | host_vendor |
| 723 | host_cpu |
| 724 | host |
| 725 | build_os |
| 726 | build_vendor |
| 727 | build_cpu |
| 728 | build |
| 729 | LIBTOOL |
| 730 | am__fastdepCC_FALSE |
| 731 | am__fastdepCC_TRUE |
| 732 | CCDEPMODE |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 733 | am__nodep |
| 734 | AMDEPBACKSLASH |
| 735 | AMDEP_FALSE |
| 736 | AMDEP_TRUE |
| 737 | am__quote |
| 738 | am__include |
| 739 | DEPDIR |
| 740 | OBJEXT |
| 741 | EXEEXT |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 742 | ac_ct_CC |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 743 | CPPFLAGS |
| 744 | LDFLAGS |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 745 | CFLAGS |
| 746 | CC |
| 747 | ac_ct_AR |
| 748 | AR |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 749 | MAINT |
| 750 | MAINTAINER_MODE_FALSE |
| 751 | MAINTAINER_MODE_TRUE |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 752 | AM_BACKSLASH |
| 753 | AM_DEFAULT_VERBOSITY |
| 754 | AM_DEFAULT_V |
| 755 | AM_V |
| 756 | am__untar |
| 757 | am__tar |
| 758 | AMTAR |
| 759 | am__leading_dot |
| 760 | SET_MAKE |
| 761 | AWK |
| 762 | mkdir_p |
| 763 | MKDIR_P |
| 764 | INSTALL_STRIP_PROGRAM |
| 765 | STRIP |
| 766 | install_sh |
| 767 | MAKEINFO |
| 768 | AUTOHEADER |
| 769 | AUTOMAKE |
| 770 | AUTOCONF |
| 771 | ACLOCAL |
| 772 | VERSION |
| 773 | PACKAGE |
| 774 | CYGPATH_W |
| 775 | am__isrc |
| 776 | INSTALL_DATA |
| 777 | INSTALL_SCRIPT |
| 778 | INSTALL_PROGRAM |
| 779 | target_alias |
| 780 | host_alias |
| 781 | build_alias |
| 782 | LIBS |
| 783 | ECHO_T |
| 784 | ECHO_N |
| 785 | ECHO_C |
| 786 | DEFS |
| 787 | mandir |
| 788 | localedir |
| 789 | libdir |
| 790 | psdir |
| 791 | pdfdir |
| 792 | dvidir |
| 793 | htmldir |
| 794 | infodir |
| 795 | docdir |
| 796 | oldincludedir |
| 797 | includedir |
| 798 | localstatedir |
| 799 | sharedstatedir |
| 800 | sysconfdir |
| 801 | datadir |
| 802 | datarootdir |
| 803 | libexecdir |
| 804 | sbindir |
| 805 | bindir |
| 806 | program_transform_name |
| 807 | prefix |
| 808 | exec_prefix |
| 809 | PACKAGE_URL |
| 810 | PACKAGE_BUGREPORT |
| 811 | PACKAGE_STRING |
| 812 | PACKAGE_VERSION |
| 813 | PACKAGE_TARNAME |
| 814 | PACKAGE_NAME |
| 815 | PATH_SEPARATOR |
| 816 | SHELL' |
| 817 | ac_subst_files='' |
| 818 | ac_user_opts=' |
| 819 | enable_option_checking |
| 820 | enable_silent_rules |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 821 | enable_maintainer_mode |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 822 | enable_dependency_tracking |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 823 | enable_shared |
| 824 | enable_static |
| 825 | with_pic |
| 826 | enable_fast_install |
| 827 | with_gnu_ld |
| 828 | with_sysroot |
| 829 | enable_libtool_lock |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 830 | with_sqlite3 |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 831 | enable_doxygen_doc |
| 832 | enable_doxygen_dot |
| 833 | enable_doxygen_man |
| 834 | enable_doxygen_rtf |
| 835 | enable_doxygen_xml |
| 836 | enable_doxygen_chm |
| 837 | enable_doxygen_chi |
| 838 | enable_doxygen_html |
| 839 | enable_doxygen_ps |
| 840 | enable_doxygen_pdf |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 841 | ' |
| 842 | ac_precious_vars='build_alias |
| 843 | host_alias |
| 844 | target_alias |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 845 | CC |
| 846 | CFLAGS |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 847 | LDFLAGS |
| 848 | LIBS |
| 849 | CPPFLAGS |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 850 | CPP |
| 851 | CXX |
| 852 | CXXFLAGS |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 853 | CCC |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 854 | CXXCPP |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 855 | OBJCXX |
| 856 | OBJCXXFLAGS |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 857 | DOXYGEN_PAPER_SIZE' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 858 | |
| 859 | |
| 860 | # Initialize some variables set by options. |
| 861 | ac_init_help= |
| 862 | ac_init_version=false |
| 863 | ac_unrecognized_opts= |
| 864 | ac_unrecognized_sep= |
| 865 | # The variables have the same names as the options, with |
| 866 | # dashes changed to underlines. |
| 867 | cache_file=/dev/null |
| 868 | exec_prefix=NONE |
| 869 | no_create= |
| 870 | no_recursion= |
| 871 | prefix=NONE |
| 872 | program_prefix=NONE |
| 873 | program_suffix=NONE |
| 874 | program_transform_name=s,x,x, |
| 875 | silent= |
| 876 | site= |
| 877 | srcdir= |
| 878 | verbose= |
| 879 | x_includes=NONE |
| 880 | x_libraries=NONE |
| 881 | |
| 882 | # Installation directory options. |
| 883 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 884 | # and all the variables that are supposed to be based on exec_prefix |
| 885 | # by default will actually change. |
| 886 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 887 | # (The list follows the same order as the GNU Coding Standards.) |
| 888 | bindir='${exec_prefix}/bin' |
| 889 | sbindir='${exec_prefix}/sbin' |
| 890 | libexecdir='${exec_prefix}/libexec' |
| 891 | datarootdir='${prefix}/share' |
| 892 | datadir='${datarootdir}' |
| 893 | sysconfdir='${prefix}/etc' |
| 894 | sharedstatedir='${prefix}/com' |
| 895 | localstatedir='${prefix}/var' |
| 896 | includedir='${prefix}/include' |
| 897 | oldincludedir='/usr/include' |
| 898 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 899 | infodir='${datarootdir}/info' |
| 900 | htmldir='${docdir}' |
| 901 | dvidir='${docdir}' |
| 902 | pdfdir='${docdir}' |
| 903 | psdir='${docdir}' |
| 904 | libdir='${exec_prefix}/lib' |
| 905 | localedir='${datarootdir}/locale' |
| 906 | mandir='${datarootdir}/man' |
| 907 | |
| 908 | ac_prev= |
| 909 | ac_dashdash= |
| 910 | for ac_option |
| 911 | do |
| 912 | # If the previous option needs an argument, assign it. |
| 913 | if test -n "$ac_prev"; then |
| 914 | eval $ac_prev=\$ac_option |
| 915 | ac_prev= |
| 916 | continue |
| 917 | fi |
| 918 | |
| 919 | case $ac_option in |
| 920 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 921 | *=) ac_optarg= ;; |
| 922 | *) ac_optarg=yes ;; |
| 923 | esac |
| 924 | |
| 925 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 926 | |
| 927 | case $ac_dashdash$ac_option in |
| 928 | --) |
| 929 | ac_dashdash=yes ;; |
| 930 | |
| 931 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 932 | ac_prev=bindir ;; |
| 933 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 934 | bindir=$ac_optarg ;; |
| 935 | |
| 936 | -build | --build | --buil | --bui | --bu) |
| 937 | ac_prev=build_alias ;; |
| 938 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 939 | build_alias=$ac_optarg ;; |
| 940 | |
| 941 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 942 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 943 | ac_prev=cache_file ;; |
| 944 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 945 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 946 | cache_file=$ac_optarg ;; |
| 947 | |
| 948 | --config-cache | -C) |
| 949 | cache_file=config.cache ;; |
| 950 | |
| 951 | -datadir | --datadir | --datadi | --datad) |
| 952 | ac_prev=datadir ;; |
| 953 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 954 | datadir=$ac_optarg ;; |
| 955 | |
| 956 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 957 | | --dataroo | --dataro | --datar) |
| 958 | ac_prev=datarootdir ;; |
| 959 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 960 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 961 | datarootdir=$ac_optarg ;; |
| 962 | |
| 963 | -disable-* | --disable-*) |
| 964 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 965 | # Reject names that are not valid shell variable names. |
| 966 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 967 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 968 | ac_useropt_orig=$ac_useropt |
| 969 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 970 | case $ac_user_opts in |
| 971 | *" |
| 972 | "enable_$ac_useropt" |
| 973 | "*) ;; |
| 974 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 975 | ac_unrecognized_sep=', ';; |
| 976 | esac |
| 977 | eval enable_$ac_useropt=no ;; |
| 978 | |
| 979 | -docdir | --docdir | --docdi | --doc | --do) |
| 980 | ac_prev=docdir ;; |
| 981 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 982 | docdir=$ac_optarg ;; |
| 983 | |
| 984 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 985 | ac_prev=dvidir ;; |
| 986 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 987 | dvidir=$ac_optarg ;; |
| 988 | |
| 989 | -enable-* | --enable-*) |
| 990 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 991 | # Reject names that are not valid shell variable names. |
| 992 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 993 | as_fn_error $? "invalid feature name: $ac_useropt" |
| 994 | ac_useropt_orig=$ac_useropt |
| 995 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 996 | case $ac_user_opts in |
| 997 | *" |
| 998 | "enable_$ac_useropt" |
| 999 | "*) ;; |
| 1000 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1001 | ac_unrecognized_sep=', ';; |
| 1002 | esac |
| 1003 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1004 | |
| 1005 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1006 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1007 | | --exec | --exe | --ex) |
| 1008 | ac_prev=exec_prefix ;; |
| 1009 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1010 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1011 | | --exec=* | --exe=* | --ex=*) |
| 1012 | exec_prefix=$ac_optarg ;; |
| 1013 | |
| 1014 | -gas | --gas | --ga | --g) |
| 1015 | # Obsolete; use --with-gas. |
| 1016 | with_gas=yes ;; |
| 1017 | |
| 1018 | -help | --help | --hel | --he | -h) |
| 1019 | ac_init_help=long ;; |
| 1020 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1021 | ac_init_help=recursive ;; |
| 1022 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1023 | ac_init_help=short ;; |
| 1024 | |
| 1025 | -host | --host | --hos | --ho) |
| 1026 | ac_prev=host_alias ;; |
| 1027 | -host=* | --host=* | --hos=* | --ho=*) |
| 1028 | host_alias=$ac_optarg ;; |
| 1029 | |
| 1030 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1031 | ac_prev=htmldir ;; |
| 1032 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1033 | | --ht=*) |
| 1034 | htmldir=$ac_optarg ;; |
| 1035 | |
| 1036 | -includedir | --includedir | --includedi | --included | --include \ |
| 1037 | | --includ | --inclu | --incl | --inc) |
| 1038 | ac_prev=includedir ;; |
| 1039 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1040 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1041 | includedir=$ac_optarg ;; |
| 1042 | |
| 1043 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1044 | ac_prev=infodir ;; |
| 1045 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1046 | infodir=$ac_optarg ;; |
| 1047 | |
| 1048 | -libdir | --libdir | --libdi | --libd) |
| 1049 | ac_prev=libdir ;; |
| 1050 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1051 | libdir=$ac_optarg ;; |
| 1052 | |
| 1053 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1054 | | --libexe | --libex | --libe) |
| 1055 | ac_prev=libexecdir ;; |
| 1056 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1057 | | --libexe=* | --libex=* | --libe=*) |
| 1058 | libexecdir=$ac_optarg ;; |
| 1059 | |
| 1060 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1061 | ac_prev=localedir ;; |
| 1062 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1063 | localedir=$ac_optarg ;; |
| 1064 | |
| 1065 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1066 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1067 | ac_prev=localstatedir ;; |
| 1068 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1069 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1070 | localstatedir=$ac_optarg ;; |
| 1071 | |
| 1072 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1073 | ac_prev=mandir ;; |
| 1074 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1075 | mandir=$ac_optarg ;; |
| 1076 | |
| 1077 | -nfp | --nfp | --nf) |
| 1078 | # Obsolete; use --without-fp. |
| 1079 | with_fp=no ;; |
| 1080 | |
| 1081 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1082 | | --no-cr | --no-c | -n) |
| 1083 | no_create=yes ;; |
| 1084 | |
| 1085 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1086 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1087 | no_recursion=yes ;; |
| 1088 | |
| 1089 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1090 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1091 | | --oldin | --oldi | --old | --ol | --o) |
| 1092 | ac_prev=oldincludedir ;; |
| 1093 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1094 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1095 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1096 | oldincludedir=$ac_optarg ;; |
| 1097 | |
| 1098 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1099 | ac_prev=prefix ;; |
| 1100 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1101 | prefix=$ac_optarg ;; |
| 1102 | |
| 1103 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1104 | | --program-pre | --program-pr | --program-p) |
| 1105 | ac_prev=program_prefix ;; |
| 1106 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1107 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1108 | program_prefix=$ac_optarg ;; |
| 1109 | |
| 1110 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1111 | | --program-suf | --program-su | --program-s) |
| 1112 | ac_prev=program_suffix ;; |
| 1113 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1114 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1115 | program_suffix=$ac_optarg ;; |
| 1116 | |
| 1117 | -program-transform-name | --program-transform-name \ |
| 1118 | | --program-transform-nam | --program-transform-na \ |
| 1119 | | --program-transform-n | --program-transform- \ |
| 1120 | | --program-transform | --program-transfor \ |
| 1121 | | --program-transfo | --program-transf \ |
| 1122 | | --program-trans | --program-tran \ |
| 1123 | | --progr-tra | --program-tr | --program-t) |
| 1124 | ac_prev=program_transform_name ;; |
| 1125 | -program-transform-name=* | --program-transform-name=* \ |
| 1126 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1127 | | --program-transform-n=* | --program-transform-=* \ |
| 1128 | | --program-transform=* | --program-transfor=* \ |
| 1129 | | --program-transfo=* | --program-transf=* \ |
| 1130 | | --program-trans=* | --program-tran=* \ |
| 1131 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1132 | program_transform_name=$ac_optarg ;; |
| 1133 | |
| 1134 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1135 | ac_prev=pdfdir ;; |
| 1136 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1137 | pdfdir=$ac_optarg ;; |
| 1138 | |
| 1139 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1140 | ac_prev=psdir ;; |
| 1141 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1142 | psdir=$ac_optarg ;; |
| 1143 | |
| 1144 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1145 | | -silent | --silent | --silen | --sile | --sil) |
| 1146 | silent=yes ;; |
| 1147 | |
| 1148 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1149 | ac_prev=sbindir ;; |
| 1150 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1151 | | --sbi=* | --sb=*) |
| 1152 | sbindir=$ac_optarg ;; |
| 1153 | |
| 1154 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1155 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1156 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1157 | | --sha | --sh) |
| 1158 | ac_prev=sharedstatedir ;; |
| 1159 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1160 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1161 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1162 | | --sha=* | --sh=*) |
| 1163 | sharedstatedir=$ac_optarg ;; |
| 1164 | |
| 1165 | -site | --site | --sit) |
| 1166 | ac_prev=site ;; |
| 1167 | -site=* | --site=* | --sit=*) |
| 1168 | site=$ac_optarg ;; |
| 1169 | |
| 1170 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1171 | ac_prev=srcdir ;; |
| 1172 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1173 | srcdir=$ac_optarg ;; |
| 1174 | |
| 1175 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1176 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1177 | ac_prev=sysconfdir ;; |
| 1178 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1179 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1180 | sysconfdir=$ac_optarg ;; |
| 1181 | |
| 1182 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1183 | ac_prev=target_alias ;; |
| 1184 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1185 | target_alias=$ac_optarg ;; |
| 1186 | |
| 1187 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1188 | verbose=yes ;; |
| 1189 | |
| 1190 | -version | --version | --versio | --versi | --vers | -V) |
| 1191 | ac_init_version=: ;; |
| 1192 | |
| 1193 | -with-* | --with-*) |
| 1194 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1195 | # Reject names that are not valid shell variable names. |
| 1196 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1197 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1198 | ac_useropt_orig=$ac_useropt |
| 1199 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1200 | case $ac_user_opts in |
| 1201 | *" |
| 1202 | "with_$ac_useropt" |
| 1203 | "*) ;; |
| 1204 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1205 | ac_unrecognized_sep=', ';; |
| 1206 | esac |
| 1207 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1208 | |
| 1209 | -without-* | --without-*) |
| 1210 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1211 | # Reject names that are not valid shell variable names. |
| 1212 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1213 | as_fn_error $? "invalid package name: $ac_useropt" |
| 1214 | ac_useropt_orig=$ac_useropt |
| 1215 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1216 | case $ac_user_opts in |
| 1217 | *" |
| 1218 | "with_$ac_useropt" |
| 1219 | "*) ;; |
| 1220 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1221 | ac_unrecognized_sep=', ';; |
| 1222 | esac |
| 1223 | eval with_$ac_useropt=no ;; |
| 1224 | |
| 1225 | --x) |
| 1226 | # Obsolete; use --with-x. |
| 1227 | with_x=yes ;; |
| 1228 | |
| 1229 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1230 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1231 | ac_prev=x_includes ;; |
| 1232 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1233 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1234 | x_includes=$ac_optarg ;; |
| 1235 | |
| 1236 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1237 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1238 | ac_prev=x_libraries ;; |
| 1239 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1240 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1241 | x_libraries=$ac_optarg ;; |
| 1242 | |
| 1243 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1244 | Try \`$0 --help' for more information" |
| 1245 | ;; |
| 1246 | |
| 1247 | *=*) |
| 1248 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1249 | # Reject names that are not valid shell variable names. |
| 1250 | case $ac_envvar in #( |
| 1251 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1252 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1253 | esac |
| 1254 | eval $ac_envvar=\$ac_optarg |
| 1255 | export $ac_envvar ;; |
| 1256 | |
| 1257 | *) |
| 1258 | # FIXME: should be removed in autoconf 3.0. |
| 1259 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1260 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1261 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1262 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1263 | ;; |
| 1264 | |
| 1265 | esac |
| 1266 | done |
| 1267 | |
| 1268 | if test -n "$ac_prev"; then |
| 1269 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1270 | as_fn_error $? "missing argument to $ac_option" |
| 1271 | fi |
| 1272 | |
| 1273 | if test -n "$ac_unrecognized_opts"; then |
| 1274 | case $enable_option_checking in |
| 1275 | no) ;; |
| 1276 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1277 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1278 | esac |
| 1279 | fi |
| 1280 | |
| 1281 | # Check all directory arguments for consistency. |
| 1282 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1283 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1284 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1285 | libdir localedir mandir |
| 1286 | do |
| 1287 | eval ac_val=\$$ac_var |
| 1288 | # Remove trailing slashes. |
| 1289 | case $ac_val in |
| 1290 | */ ) |
| 1291 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1292 | eval $ac_var=\$ac_val;; |
| 1293 | esac |
| 1294 | # Be sure to have absolute directory names. |
| 1295 | case $ac_val in |
| 1296 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1297 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1298 | esac |
| 1299 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1300 | done |
| 1301 | |
| 1302 | # There might be people who depend on the old broken behavior: `$host' |
| 1303 | # used to hold the argument of --host etc. |
| 1304 | # FIXME: To remove some day. |
| 1305 | build=$build_alias |
| 1306 | host=$host_alias |
| 1307 | target=$target_alias |
| 1308 | |
| 1309 | # FIXME: To remove some day. |
| 1310 | if test "x$host_alias" != x; then |
| 1311 | if test "x$build_alias" = x; then |
| 1312 | cross_compiling=maybe |
| 1313 | elif test "x$build_alias" != "x$host_alias"; then |
| 1314 | cross_compiling=yes |
| 1315 | fi |
| 1316 | fi |
| 1317 | |
| 1318 | ac_tool_prefix= |
| 1319 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1320 | |
| 1321 | test "$silent" = yes && exec 6>/dev/null |
| 1322 | |
| 1323 | |
| 1324 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1325 | ac_ls_di=`ls -di .` && |
| 1326 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1327 | as_fn_error $? "working directory cannot be determined" |
| 1328 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1329 | as_fn_error $? "pwd does not report name of working directory" |
| 1330 | |
| 1331 | |
| 1332 | # Find the source files, if location was not specified. |
| 1333 | if test -z "$srcdir"; then |
| 1334 | ac_srcdir_defaulted=yes |
| 1335 | # Try the directory containing this script, then the parent directory. |
| 1336 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1337 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1338 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1339 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1340 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1341 | $as_echo X"$as_myself" | |
| 1342 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1343 | s//\1/ |
| 1344 | q |
| 1345 | } |
| 1346 | /^X\(\/\/\)[^/].*/{ |
| 1347 | s//\1/ |
| 1348 | q |
| 1349 | } |
| 1350 | /^X\(\/\/\)$/{ |
| 1351 | s//\1/ |
| 1352 | q |
| 1353 | } |
| 1354 | /^X\(\/\).*/{ |
| 1355 | s//\1/ |
| 1356 | q |
| 1357 | } |
| 1358 | s/.*/./; q'` |
| 1359 | srcdir=$ac_confdir |
| 1360 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1361 | srcdir=.. |
| 1362 | fi |
| 1363 | else |
| 1364 | ac_srcdir_defaulted=no |
| 1365 | fi |
| 1366 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1367 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1368 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1369 | fi |
| 1370 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1371 | ac_abs_confdir=`( |
| 1372 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1373 | pwd)` |
| 1374 | # When building in place, set srcdir=. |
| 1375 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1376 | srcdir=. |
| 1377 | fi |
| 1378 | # Remove unnecessary trailing slashes from srcdir. |
| 1379 | # Double slashes in file names in object file debugging info |
| 1380 | # mess up M-x gdb in Emacs. |
| 1381 | case $srcdir in |
| 1382 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1383 | esac |
| 1384 | for ac_var in $ac_precious_vars; do |
| 1385 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1386 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1387 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1388 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1389 | done |
| 1390 | |
| 1391 | # |
| 1392 | # Report the --help message. |
| 1393 | # |
| 1394 | if test "$ac_init_help" = "long"; then |
| 1395 | # Omit some internal or obsolete options to make the list less imposing. |
| 1396 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1397 | cat <<_ACEOF |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 1398 | \`configure' configures ndn-cpp 0.2 to adapt to many kinds of systems. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1399 | |
| 1400 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1401 | |
| 1402 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1403 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1404 | |
| 1405 | Defaults for the options are specified in brackets. |
| 1406 | |
| 1407 | Configuration: |
| 1408 | -h, --help display this help and exit |
| 1409 | --help=short display options specific to this package |
| 1410 | --help=recursive display the short help of all the included packages |
| 1411 | -V, --version display version information and exit |
| 1412 | -q, --quiet, --silent do not print \`checking ...' messages |
| 1413 | --cache-file=FILE cache test results in FILE [disabled] |
| 1414 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1415 | -n, --no-create do not create output files |
| 1416 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1417 | |
| 1418 | Installation directories: |
| 1419 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1420 | [$ac_default_prefix] |
| 1421 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1422 | [PREFIX] |
| 1423 | |
| 1424 | By default, \`make install' will install all the files in |
| 1425 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1426 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1427 | for instance \`--prefix=\$HOME'. |
| 1428 | |
| 1429 | For better control, use the options below. |
| 1430 | |
| 1431 | Fine tuning of the installation directories: |
| 1432 | --bindir=DIR user executables [EPREFIX/bin] |
| 1433 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1434 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1435 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1436 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1437 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1438 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1439 | --includedir=DIR C header files [PREFIX/include] |
| 1440 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1441 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1442 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1443 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1444 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1445 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1446 | --docdir=DIR documentation root [DATAROOTDIR/doc/ndn-cpp] |
| 1447 | --htmldir=DIR html documentation [DOCDIR] |
| 1448 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1449 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1450 | --psdir=DIR ps documentation [DOCDIR] |
| 1451 | _ACEOF |
| 1452 | |
| 1453 | cat <<\_ACEOF |
| 1454 | |
| 1455 | Program names: |
| 1456 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1457 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1458 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1459 | |
| 1460 | System types: |
| 1461 | --build=BUILD configure for building on BUILD [guessed] |
| 1462 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1463 | _ACEOF |
| 1464 | fi |
| 1465 | |
| 1466 | if test -n "$ac_init_help"; then |
| 1467 | case $ac_init_help in |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 1468 | short | recursive ) echo "Configuration of ndn-cpp 0.2:";; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1469 | esac |
| 1470 | cat <<\_ACEOF |
| 1471 | |
| 1472 | Optional Features: |
| 1473 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1474 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1475 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1476 | --enable-silent-rules less verbose build output (undo: "make V=1") |
| 1477 | --disable-silent-rules verbose build output (undo: "make V=0") |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 1478 | --enable-maintainer-mode |
| 1479 | enable make rules and dependencies not useful (and |
| 1480 | sometimes confusing) to the casual installer |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1481 | --enable-dependency-tracking |
| 1482 | do not reject slow dependency extractors |
| 1483 | --disable-dependency-tracking |
| 1484 | speeds up one-time build |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1485 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1486 | --enable-static[=PKGS] build static libraries [default=yes] |
| 1487 | --enable-fast-install[=PKGS] |
| 1488 | optimize for fast installation [default=yes] |
| 1489 | --disable-libtool-lock avoid locking (might break parallel builds) |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 1490 | --disable-doxygen-doc don't generate any doxygen documentation |
| 1491 | --enable-doxygen-dot generate graphics for doxygen documentation |
| 1492 | --enable-doxygen-man generate doxygen manual pages |
| 1493 | --enable-doxygen-rtf generate doxygen RTF documentation |
| 1494 | --enable-doxygen-xml generate doxygen XML documentation |
| 1495 | --enable-doxygen-chm generate doxygen compressed HTML help documentation |
| 1496 | --enable-doxygen-chi generate doxygen seperate compressed HTML help index |
| 1497 | file |
| 1498 | --disable-doxygen-html don't generate doxygen plain HTML documentation |
| 1499 | --enable-doxygen-ps generate doxygen PostScript documentation |
| 1500 | --enable-doxygen-pdf generate doxygen PDF documentation |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1501 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1502 | Optional Packages: |
| 1503 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1504 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1505 | --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1506 | both] |
| 1507 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1508 | --with-sysroot=DIR Search for dependent libraries within DIR |
| 1509 | (or the compiler's sysroot if not specified). |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 1510 | --with-sqlite3=[ARG] use SQLite 3 library [default=yes], optionally |
| 1511 | specify the prefix for sqlite3 library |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1512 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1513 | Some influential environment variables: |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1514 | CC C compiler command |
| 1515 | CFLAGS C compiler flags |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1516 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1517 | nonstandard directory <lib dir> |
| 1518 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 1519 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1520 | you have headers in a nonstandard directory <include dir> |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1521 | CPP C preprocessor |
| 1522 | CXX C++ compiler command |
| 1523 | CXXFLAGS C++ compiler flags |
| 1524 | CXXCPP C++ preprocessor |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 1525 | OBJCXX Objective C++ compiler command |
| 1526 | OBJCXXFLAGS Objective C++ compiler flags |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 1527 | DOXYGEN_PAPER_SIZE |
| 1528 | a4wide (default), a4, letter, legal or executive |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1529 | |
| 1530 | Use these variables to override the choices made by `configure' or to help |
| 1531 | it to find libraries and programs with nonstandard names/locations. |
| 1532 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 1533 | Report bugs to <ndn-lib@lists.cs.ucla.edu>. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1534 | ndn-cpp home page: <https://github.com/named-data/ndn-cpp>. |
| 1535 | _ACEOF |
| 1536 | ac_status=$? |
| 1537 | fi |
| 1538 | |
| 1539 | if test "$ac_init_help" = "recursive"; then |
| 1540 | # If there are subdirs, report their specific --help. |
| 1541 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1542 | test -d "$ac_dir" || |
| 1543 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1544 | continue |
| 1545 | ac_builddir=. |
| 1546 | |
| 1547 | case "$ac_dir" in |
| 1548 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1549 | *) |
| 1550 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1551 | # A ".." for each directory in $ac_dir_suffix. |
| 1552 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1553 | case $ac_top_builddir_sub in |
| 1554 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1555 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1556 | esac ;; |
| 1557 | esac |
| 1558 | ac_abs_top_builddir=$ac_pwd |
| 1559 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1560 | # for backward compatibility: |
| 1561 | ac_top_builddir=$ac_top_build_prefix |
| 1562 | |
| 1563 | case $srcdir in |
| 1564 | .) # We are building in place. |
| 1565 | ac_srcdir=. |
| 1566 | ac_top_srcdir=$ac_top_builddir_sub |
| 1567 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1568 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1569 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1570 | ac_top_srcdir=$srcdir |
| 1571 | ac_abs_top_srcdir=$srcdir ;; |
| 1572 | *) # Relative name. |
| 1573 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1574 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1575 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1576 | esac |
| 1577 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1578 | |
| 1579 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1580 | # Check for guested configure. |
| 1581 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1582 | echo && |
| 1583 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1584 | elif test -f "$ac_srcdir/configure"; then |
| 1585 | echo && |
| 1586 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1587 | else |
| 1588 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1589 | fi || ac_status=$? |
| 1590 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1591 | done |
| 1592 | fi |
| 1593 | |
| 1594 | test -n "$ac_init_help" && exit $ac_status |
| 1595 | if $ac_init_version; then |
| 1596 | cat <<\_ACEOF |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 1597 | ndn-cpp configure 0.2 |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1598 | generated by GNU Autoconf 2.69 |
| 1599 | |
| 1600 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 1601 | This configure script is free software; the Free Software Foundation |
| 1602 | gives unlimited permission to copy, distribute and modify it. |
| 1603 | _ACEOF |
| 1604 | exit |
| 1605 | fi |
| 1606 | |
| 1607 | ## ------------------------ ## |
| 1608 | ## Autoconf initialization. ## |
| 1609 | ## ------------------------ ## |
| 1610 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1611 | # ac_fn_c_try_compile LINENO |
| 1612 | # -------------------------- |
| 1613 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1614 | ac_fn_c_try_compile () |
| 1615 | { |
| 1616 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1617 | rm -f conftest.$ac_objext |
| 1618 | if { { ac_try="$ac_compile" |
| 1619 | case "(($ac_try" in |
| 1620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1621 | *) ac_try_echo=$ac_try;; |
| 1622 | esac |
| 1623 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1624 | $as_echo "$ac_try_echo"; } >&5 |
| 1625 | (eval "$ac_compile") 2>conftest.err |
| 1626 | ac_status=$? |
| 1627 | if test -s conftest.err; then |
| 1628 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1629 | cat conftest.er1 >&5 |
| 1630 | mv -f conftest.er1 conftest.err |
| 1631 | fi |
| 1632 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1633 | test $ac_status = 0; } && { |
| 1634 | test -z "$ac_c_werror_flag" || |
| 1635 | test ! -s conftest.err |
| 1636 | } && test -s conftest.$ac_objext; then : |
| 1637 | ac_retval=0 |
| 1638 | else |
| 1639 | $as_echo "$as_me: failed program was:" >&5 |
| 1640 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1641 | |
| 1642 | ac_retval=1 |
| 1643 | fi |
| 1644 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1645 | as_fn_set_status $ac_retval |
| 1646 | |
| 1647 | } # ac_fn_c_try_compile |
| 1648 | |
| 1649 | # ac_fn_c_try_link LINENO |
| 1650 | # ----------------------- |
| 1651 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1652 | ac_fn_c_try_link () |
| 1653 | { |
| 1654 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1655 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1656 | if { { ac_try="$ac_link" |
| 1657 | case "(($ac_try" in |
| 1658 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1659 | *) ac_try_echo=$ac_try;; |
| 1660 | esac |
| 1661 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1662 | $as_echo "$ac_try_echo"; } >&5 |
| 1663 | (eval "$ac_link") 2>conftest.err |
| 1664 | ac_status=$? |
| 1665 | if test -s conftest.err; then |
| 1666 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1667 | cat conftest.er1 >&5 |
| 1668 | mv -f conftest.er1 conftest.err |
| 1669 | fi |
| 1670 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1671 | test $ac_status = 0; } && { |
| 1672 | test -z "$ac_c_werror_flag" || |
| 1673 | test ! -s conftest.err |
| 1674 | } && test -s conftest$ac_exeext && { |
| 1675 | test "$cross_compiling" = yes || |
| 1676 | test -x conftest$ac_exeext |
| 1677 | }; then : |
| 1678 | ac_retval=0 |
| 1679 | else |
| 1680 | $as_echo "$as_me: failed program was:" >&5 |
| 1681 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1682 | |
| 1683 | ac_retval=1 |
| 1684 | fi |
| 1685 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1686 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1687 | # interfere with the next link command; also delete a directory that is |
| 1688 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1689 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1690 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1691 | as_fn_set_status $ac_retval |
| 1692 | |
| 1693 | } # ac_fn_c_try_link |
| 1694 | |
| 1695 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1696 | # ------------------------------------------------------- |
| 1697 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1698 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1699 | ac_fn_c_check_header_compile () |
| 1700 | { |
| 1701 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1703 | $as_echo_n "checking for $2... " >&6; } |
| 1704 | if eval \${$3+:} false; then : |
| 1705 | $as_echo_n "(cached) " >&6 |
| 1706 | else |
| 1707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1708 | /* end confdefs.h. */ |
| 1709 | $4 |
| 1710 | #include <$2> |
| 1711 | _ACEOF |
| 1712 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1713 | eval "$3=yes" |
| 1714 | else |
| 1715 | eval "$3=no" |
| 1716 | fi |
| 1717 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1718 | fi |
| 1719 | eval ac_res=\$$3 |
| 1720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1721 | $as_echo "$ac_res" >&6; } |
| 1722 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1723 | |
| 1724 | } # ac_fn_c_check_header_compile |
| 1725 | |
| 1726 | # ac_fn_c_try_cpp LINENO |
| 1727 | # ---------------------- |
| 1728 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1729 | ac_fn_c_try_cpp () |
| 1730 | { |
| 1731 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1732 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1733 | case "(($ac_try" in |
| 1734 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1735 | *) ac_try_echo=$ac_try;; |
| 1736 | esac |
| 1737 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1738 | $as_echo "$ac_try_echo"; } >&5 |
| 1739 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1740 | ac_status=$? |
| 1741 | if test -s conftest.err; then |
| 1742 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1743 | cat conftest.er1 >&5 |
| 1744 | mv -f conftest.er1 conftest.err |
| 1745 | fi |
| 1746 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1747 | test $ac_status = 0; } > conftest.i && { |
| 1748 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1749 | test ! -s conftest.err |
| 1750 | }; then : |
| 1751 | ac_retval=0 |
| 1752 | else |
| 1753 | $as_echo "$as_me: failed program was:" >&5 |
| 1754 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1755 | |
| 1756 | ac_retval=1 |
| 1757 | fi |
| 1758 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1759 | as_fn_set_status $ac_retval |
| 1760 | |
| 1761 | } # ac_fn_c_try_cpp |
| 1762 | |
| 1763 | # ac_fn_c_try_run LINENO |
| 1764 | # ---------------------- |
| 1765 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1766 | # that executables *can* be run. |
| 1767 | ac_fn_c_try_run () |
| 1768 | { |
| 1769 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1770 | if { { ac_try="$ac_link" |
| 1771 | case "(($ac_try" in |
| 1772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1773 | *) ac_try_echo=$ac_try;; |
| 1774 | esac |
| 1775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1776 | $as_echo "$ac_try_echo"; } >&5 |
| 1777 | (eval "$ac_link") 2>&5 |
| 1778 | ac_status=$? |
| 1779 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1780 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1781 | { { case "(($ac_try" in |
| 1782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1783 | *) ac_try_echo=$ac_try;; |
| 1784 | esac |
| 1785 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1786 | $as_echo "$ac_try_echo"; } >&5 |
| 1787 | (eval "$ac_try") 2>&5 |
| 1788 | ac_status=$? |
| 1789 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1790 | test $ac_status = 0; }; }; then : |
| 1791 | ac_retval=0 |
| 1792 | else |
| 1793 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1794 | $as_echo "$as_me: failed program was:" >&5 |
| 1795 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1796 | |
| 1797 | ac_retval=$ac_status |
| 1798 | fi |
| 1799 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1800 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1801 | as_fn_set_status $ac_retval |
| 1802 | |
| 1803 | } # ac_fn_c_try_run |
| 1804 | |
| 1805 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1806 | # ---------------------------------- |
| 1807 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1808 | ac_fn_c_check_func () |
| 1809 | { |
| 1810 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1812 | $as_echo_n "checking for $2... " >&6; } |
| 1813 | if eval \${$3+:} false; then : |
| 1814 | $as_echo_n "(cached) " >&6 |
| 1815 | else |
| 1816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1817 | /* end confdefs.h. */ |
| 1818 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1820 | #define $2 innocuous_$2 |
| 1821 | |
| 1822 | /* System header to define __stub macros and hopefully few prototypes, |
| 1823 | which can conflict with char $2 (); below. |
| 1824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1825 | <limits.h> exists even on freestanding compilers. */ |
| 1826 | |
| 1827 | #ifdef __STDC__ |
| 1828 | # include <limits.h> |
| 1829 | #else |
| 1830 | # include <assert.h> |
| 1831 | #endif |
| 1832 | |
| 1833 | #undef $2 |
| 1834 | |
| 1835 | /* Override any GCC internal prototype to avoid an error. |
| 1836 | Use char because int might match the return type of a GCC |
| 1837 | builtin and then its argument prototype would still apply. */ |
| 1838 | #ifdef __cplusplus |
| 1839 | extern "C" |
| 1840 | #endif |
| 1841 | char $2 (); |
| 1842 | /* The GNU C library defines this for functions which it implements |
| 1843 | to always fail with ENOSYS. Some functions are actually named |
| 1844 | something starting with __ and the normal name is an alias. */ |
| 1845 | #if defined __stub_$2 || defined __stub___$2 |
| 1846 | choke me |
| 1847 | #endif |
| 1848 | |
| 1849 | int |
| 1850 | main () |
| 1851 | { |
| 1852 | return $2 (); |
| 1853 | ; |
| 1854 | return 0; |
| 1855 | } |
| 1856 | _ACEOF |
| 1857 | if ac_fn_c_try_link "$LINENO"; then : |
| 1858 | eval "$3=yes" |
| 1859 | else |
| 1860 | eval "$3=no" |
| 1861 | fi |
| 1862 | rm -f core conftest.err conftest.$ac_objext \ |
| 1863 | conftest$ac_exeext conftest.$ac_ext |
| 1864 | fi |
| 1865 | eval ac_res=\$$3 |
| 1866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1867 | $as_echo "$ac_res" >&6; } |
| 1868 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1869 | |
| 1870 | } # ac_fn_c_check_func |
| 1871 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 1872 | # ac_fn_cxx_try_compile LINENO |
| 1873 | # ---------------------------- |
| 1874 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1875 | ac_fn_cxx_try_compile () |
| 1876 | { |
| 1877 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1878 | rm -f conftest.$ac_objext |
| 1879 | if { { ac_try="$ac_compile" |
| 1880 | case "(($ac_try" in |
| 1881 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1882 | *) ac_try_echo=$ac_try;; |
| 1883 | esac |
| 1884 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1885 | $as_echo "$ac_try_echo"; } >&5 |
| 1886 | (eval "$ac_compile") 2>conftest.err |
| 1887 | ac_status=$? |
| 1888 | if test -s conftest.err; then |
| 1889 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1890 | cat conftest.er1 >&5 |
| 1891 | mv -f conftest.er1 conftest.err |
| 1892 | fi |
| 1893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1894 | test $ac_status = 0; } && { |
| 1895 | test -z "$ac_cxx_werror_flag" || |
| 1896 | test ! -s conftest.err |
| 1897 | } && test -s conftest.$ac_objext; then : |
| 1898 | ac_retval=0 |
| 1899 | else |
| 1900 | $as_echo "$as_me: failed program was:" >&5 |
| 1901 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1902 | |
| 1903 | ac_retval=1 |
| 1904 | fi |
| 1905 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1906 | as_fn_set_status $ac_retval |
| 1907 | |
| 1908 | } # ac_fn_cxx_try_compile |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1909 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1910 | # ac_fn_cxx_try_cpp LINENO |
| 1911 | # ------------------------ |
| 1912 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1913 | ac_fn_cxx_try_cpp () |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1914 | { |
| 1915 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1916 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1917 | case "(($ac_try" in |
| 1918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1919 | *) ac_try_echo=$ac_try;; |
| 1920 | esac |
| 1921 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1922 | $as_echo "$ac_try_echo"; } >&5 |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1923 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1924 | ac_status=$? |
| 1925 | if test -s conftest.err; then |
| 1926 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1927 | cat conftest.er1 >&5 |
| 1928 | mv -f conftest.er1 conftest.err |
| 1929 | fi |
| 1930 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1931 | test $ac_status = 0; } > conftest.i && { |
| 1932 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1933 | test ! -s conftest.err |
| 1934 | }; then : |
| 1935 | ac_retval=0 |
| 1936 | else |
| 1937 | $as_echo "$as_me: failed program was:" >&5 |
| 1938 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1939 | |
| 1940 | ac_retval=1 |
| 1941 | fi |
| 1942 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1943 | as_fn_set_status $ac_retval |
| 1944 | |
| 1945 | } # ac_fn_cxx_try_cpp |
| 1946 | |
| 1947 | # ac_fn_cxx_try_link LINENO |
| 1948 | # ------------------------- |
| 1949 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1950 | ac_fn_cxx_try_link () |
| 1951 | { |
| 1952 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1953 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1954 | if { { ac_try="$ac_link" |
| 1955 | case "(($ac_try" in |
| 1956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1957 | *) ac_try_echo=$ac_try;; |
| 1958 | esac |
| 1959 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1960 | $as_echo "$ac_try_echo"; } >&5 |
| 1961 | (eval "$ac_link") 2>conftest.err |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1962 | ac_status=$? |
| 1963 | if test -s conftest.err; then |
| 1964 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1965 | cat conftest.er1 >&5 |
| 1966 | mv -f conftest.er1 conftest.err |
| 1967 | fi |
| 1968 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1969 | test $ac_status = 0; } && { |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1970 | test -z "$ac_cxx_werror_flag" || |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1971 | test ! -s conftest.err |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1972 | } && test -s conftest$ac_exeext && { |
| 1973 | test "$cross_compiling" = yes || |
| 1974 | test -x conftest$ac_exeext |
| 1975 | }; then : |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1976 | ac_retval=0 |
| 1977 | else |
| 1978 | $as_echo "$as_me: failed program was:" >&5 |
| 1979 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1980 | |
| 1981 | ac_retval=1 |
| 1982 | fi |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1983 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1984 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1985 | # interfere with the next link command; also delete a directory that is |
| 1986 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1987 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 1988 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1989 | as_fn_set_status $ac_retval |
| 1990 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 1991 | } # ac_fn_cxx_try_link |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 1992 | |
| 1993 | # ac_fn_objcxx_try_compile LINENO |
| 1994 | # ------------------------------- |
| 1995 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1996 | ac_fn_objcxx_try_compile () |
| 1997 | { |
| 1998 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1999 | rm -f conftest.$ac_objext |
| 2000 | if { { ac_try="$ac_compile" |
| 2001 | case "(($ac_try" in |
| 2002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2003 | *) ac_try_echo=$ac_try;; |
| 2004 | esac |
| 2005 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2006 | $as_echo "$ac_try_echo"; } >&5 |
| 2007 | (eval "$ac_compile") 2>conftest.err |
| 2008 | ac_status=$? |
| 2009 | if test -s conftest.err; then |
| 2010 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2011 | cat conftest.er1 >&5 |
| 2012 | mv -f conftest.er1 conftest.err |
| 2013 | fi |
| 2014 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2015 | test $ac_status = 0; } && { |
| 2016 | test -z "$ac_objcxx_werror_flag" || |
| 2017 | test ! -s conftest.err |
| 2018 | } && test -s conftest.$ac_objext; then : |
| 2019 | ac_retval=0 |
| 2020 | else |
| 2021 | $as_echo "$as_me: failed program was:" >&5 |
| 2022 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2023 | |
| 2024 | ac_retval=1 |
| 2025 | fi |
| 2026 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2027 | as_fn_set_status $ac_retval |
| 2028 | |
| 2029 | } # ac_fn_objcxx_try_compile |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 2030 | |
| 2031 | # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES |
| 2032 | # --------------------------------------------- |
| 2033 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2034 | # variable VAR accordingly. |
| 2035 | ac_fn_cxx_check_type () |
| 2036 | { |
| 2037 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2039 | $as_echo_n "checking for $2... " >&6; } |
| 2040 | if eval \${$3+:} false; then : |
| 2041 | $as_echo_n "(cached) " >&6 |
| 2042 | else |
| 2043 | eval "$3=no" |
| 2044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2045 | /* end confdefs.h. */ |
| 2046 | $4 |
| 2047 | int |
| 2048 | main () |
| 2049 | { |
| 2050 | if (sizeof ($2)) |
| 2051 | return 0; |
| 2052 | ; |
| 2053 | return 0; |
| 2054 | } |
| 2055 | _ACEOF |
| 2056 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2058 | /* end confdefs.h. */ |
| 2059 | $4 |
| 2060 | int |
| 2061 | main () |
| 2062 | { |
| 2063 | if (sizeof (($2))) |
| 2064 | return 0; |
| 2065 | ; |
| 2066 | return 0; |
| 2067 | } |
| 2068 | _ACEOF |
| 2069 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2070 | |
| 2071 | else |
| 2072 | eval "$3=yes" |
| 2073 | fi |
| 2074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2075 | fi |
| 2076 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2077 | fi |
| 2078 | eval ac_res=\$$3 |
| 2079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2080 | $as_echo "$ac_res" >&6; } |
| 2081 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2082 | |
| 2083 | } # ac_fn_cxx_check_type |
| 2084 | |
| 2085 | # ac_fn_c_find_intX_t LINENO BITS VAR |
| 2086 | # ----------------------------------- |
| 2087 | # Finds a signed integer type with width BITS, setting cache variable VAR |
| 2088 | # accordingly. |
| 2089 | ac_fn_c_find_intX_t () |
| 2090 | { |
| 2091 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 |
| 2093 | $as_echo_n "checking for int$2_t... " >&6; } |
| 2094 | if eval \${$3+:} false; then : |
| 2095 | $as_echo_n "(cached) " >&6 |
| 2096 | else |
| 2097 | eval "$3=no" |
| 2098 | # Order is important - never check a type that is potentially smaller |
| 2099 | # than half of the expected target width. |
| 2100 | for ac_type in int$2_t 'int' 'long int' \ |
| 2101 | 'long long int' 'short int' 'signed char'; do |
| 2102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2103 | /* end confdefs.h. */ |
| 2104 | $ac_includes_default |
| 2105 | enum { N = $2 / 2 - 1 }; |
| 2106 | int |
| 2107 | main () |
| 2108 | { |
| 2109 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; |
| 2110 | test_array [0] = 0; |
| 2111 | return test_array [0]; |
| 2112 | |
| 2113 | ; |
| 2114 | return 0; |
| 2115 | } |
| 2116 | _ACEOF |
| 2117 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2119 | /* end confdefs.h. */ |
| 2120 | $ac_includes_default |
| 2121 | enum { N = $2 / 2 - 1 }; |
| 2122 | int |
| 2123 | main () |
| 2124 | { |
| 2125 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) |
| 2126 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; |
| 2127 | test_array [0] = 0; |
| 2128 | return test_array [0]; |
| 2129 | |
| 2130 | ; |
| 2131 | return 0; |
| 2132 | } |
| 2133 | _ACEOF |
| 2134 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2135 | |
| 2136 | else |
| 2137 | case $ac_type in #( |
| 2138 | int$2_t) : |
| 2139 | eval "$3=yes" ;; #( |
| 2140 | *) : |
| 2141 | eval "$3=\$ac_type" ;; |
| 2142 | esac |
| 2143 | fi |
| 2144 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2145 | fi |
| 2146 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2147 | if eval test \"x\$"$3"\" = x"no"; then : |
| 2148 | |
| 2149 | else |
| 2150 | break |
| 2151 | fi |
| 2152 | done |
| 2153 | fi |
| 2154 | eval ac_res=\$$3 |
| 2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2156 | $as_echo "$ac_res" >&6; } |
| 2157 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2158 | |
| 2159 | } # ac_fn_c_find_intX_t |
| 2160 | |
| 2161 | # ac_fn_c_find_uintX_t LINENO BITS VAR |
| 2162 | # ------------------------------------ |
| 2163 | # Finds an unsigned integer type with width BITS, setting cache variable VAR |
| 2164 | # accordingly. |
| 2165 | ac_fn_c_find_uintX_t () |
| 2166 | { |
| 2167 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 |
| 2169 | $as_echo_n "checking for uint$2_t... " >&6; } |
| 2170 | if eval \${$3+:} false; then : |
| 2171 | $as_echo_n "(cached) " >&6 |
| 2172 | else |
| 2173 | eval "$3=no" |
| 2174 | # Order is important - never check a type that is potentially smaller |
| 2175 | # than half of the expected target width. |
| 2176 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ |
| 2177 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do |
| 2178 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2179 | /* end confdefs.h. */ |
| 2180 | $ac_includes_default |
| 2181 | int |
| 2182 | main () |
| 2183 | { |
| 2184 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; |
| 2185 | test_array [0] = 0; |
| 2186 | return test_array [0]; |
| 2187 | |
| 2188 | ; |
| 2189 | return 0; |
| 2190 | } |
| 2191 | _ACEOF |
| 2192 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2193 | case $ac_type in #( |
| 2194 | uint$2_t) : |
| 2195 | eval "$3=yes" ;; #( |
| 2196 | *) : |
| 2197 | eval "$3=\$ac_type" ;; |
| 2198 | esac |
| 2199 | fi |
| 2200 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2201 | if eval test \"x\$"$3"\" = x"no"; then : |
| 2202 | |
| 2203 | else |
| 2204 | break |
| 2205 | fi |
| 2206 | done |
| 2207 | fi |
| 2208 | eval ac_res=\$$3 |
| 2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2210 | $as_echo "$ac_res" >&6; } |
| 2211 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2212 | |
| 2213 | } # ac_fn_c_find_uintX_t |
| 2214 | |
| 2215 | # ac_fn_cxx_check_func LINENO FUNC VAR |
| 2216 | # ------------------------------------ |
| 2217 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2218 | ac_fn_cxx_check_func () |
| 2219 | { |
| 2220 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2222 | $as_echo_n "checking for $2... " >&6; } |
| 2223 | if eval \${$3+:} false; then : |
| 2224 | $as_echo_n "(cached) " >&6 |
| 2225 | else |
| 2226 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2227 | /* end confdefs.h. */ |
| 2228 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2229 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2230 | #define $2 innocuous_$2 |
| 2231 | |
| 2232 | /* System header to define __stub macros and hopefully few prototypes, |
| 2233 | which can conflict with char $2 (); below. |
| 2234 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2235 | <limits.h> exists even on freestanding compilers. */ |
| 2236 | |
| 2237 | #ifdef __STDC__ |
| 2238 | # include <limits.h> |
| 2239 | #else |
| 2240 | # include <assert.h> |
| 2241 | #endif |
| 2242 | |
| 2243 | #undef $2 |
| 2244 | |
| 2245 | /* Override any GCC internal prototype to avoid an error. |
| 2246 | Use char because int might match the return type of a GCC |
| 2247 | builtin and then its argument prototype would still apply. */ |
| 2248 | #ifdef __cplusplus |
| 2249 | extern "C" |
| 2250 | #endif |
| 2251 | char $2 (); |
| 2252 | /* The GNU C library defines this for functions which it implements |
| 2253 | to always fail with ENOSYS. Some functions are actually named |
| 2254 | something starting with __ and the normal name is an alias. */ |
| 2255 | #if defined __stub_$2 || defined __stub___$2 |
| 2256 | choke me |
| 2257 | #endif |
| 2258 | |
| 2259 | int |
| 2260 | main () |
| 2261 | { |
| 2262 | return $2 (); |
| 2263 | ; |
| 2264 | return 0; |
| 2265 | } |
| 2266 | _ACEOF |
| 2267 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 2268 | eval "$3=yes" |
| 2269 | else |
| 2270 | eval "$3=no" |
| 2271 | fi |
| 2272 | rm -f core conftest.err conftest.$ac_objext \ |
| 2273 | conftest$ac_exeext conftest.$ac_ext |
| 2274 | fi |
| 2275 | eval ac_res=\$$3 |
| 2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2277 | $as_echo "$ac_res" >&6; } |
| 2278 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2279 | |
| 2280 | } # ac_fn_cxx_check_func |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2281 | cat >config.log <<_ACEOF |
| 2282 | This file contains any messages produced by compilers while |
| 2283 | running configure, to aid debugging if configure makes a mistake. |
| 2284 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 2285 | It was created by ndn-cpp $as_me 0.2, which was |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2286 | generated by GNU Autoconf 2.69. Invocation command line was |
| 2287 | |
| 2288 | $ $0 $@ |
| 2289 | |
| 2290 | _ACEOF |
| 2291 | exec 5>>config.log |
| 2292 | { |
| 2293 | cat <<_ASUNAME |
| 2294 | ## --------- ## |
| 2295 | ## Platform. ## |
| 2296 | ## --------- ## |
| 2297 | |
| 2298 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2299 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2300 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2301 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2302 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2303 | |
| 2304 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2305 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2306 | |
| 2307 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2308 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2309 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2310 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2311 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2312 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2313 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2314 | |
| 2315 | _ASUNAME |
| 2316 | |
| 2317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2318 | for as_dir in $PATH |
| 2319 | do |
| 2320 | IFS=$as_save_IFS |
| 2321 | test -z "$as_dir" && as_dir=. |
| 2322 | $as_echo "PATH: $as_dir" |
| 2323 | done |
| 2324 | IFS=$as_save_IFS |
| 2325 | |
| 2326 | } >&5 |
| 2327 | |
| 2328 | cat >&5 <<_ACEOF |
| 2329 | |
| 2330 | |
| 2331 | ## ----------- ## |
| 2332 | ## Core tests. ## |
| 2333 | ## ----------- ## |
| 2334 | |
| 2335 | _ACEOF |
| 2336 | |
| 2337 | |
| 2338 | # Keep a trace of the command line. |
| 2339 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2340 | # Strip out --silent because we don't want to record it for future runs. |
| 2341 | # Also quote any args containing shell meta-characters. |
| 2342 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2343 | ac_configure_args= |
| 2344 | ac_configure_args0= |
| 2345 | ac_configure_args1= |
| 2346 | ac_must_keep_next=false |
| 2347 | for ac_pass in 1 2 |
| 2348 | do |
| 2349 | for ac_arg |
| 2350 | do |
| 2351 | case $ac_arg in |
| 2352 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2353 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2354 | | -silent | --silent | --silen | --sile | --sil) |
| 2355 | continue ;; |
| 2356 | *\'*) |
| 2357 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2358 | esac |
| 2359 | case $ac_pass in |
| 2360 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2361 | 2) |
| 2362 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2363 | if test $ac_must_keep_next = true; then |
| 2364 | ac_must_keep_next=false # Got value, back to normal. |
| 2365 | else |
| 2366 | case $ac_arg in |
| 2367 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2368 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2369 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2370 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2371 | case "$ac_configure_args0 " in |
| 2372 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2373 | esac |
| 2374 | ;; |
| 2375 | -* ) ac_must_keep_next=true ;; |
| 2376 | esac |
| 2377 | fi |
| 2378 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2379 | ;; |
| 2380 | esac |
| 2381 | done |
| 2382 | done |
| 2383 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2384 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2385 | |
| 2386 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2387 | # config.log. We remove comments because anyway the quotes in there |
| 2388 | # would cause problems or look ugly. |
| 2389 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2390 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2391 | trap 'exit_status=$? |
| 2392 | # Save into config.log some information that might help in debugging. |
| 2393 | { |
| 2394 | echo |
| 2395 | |
| 2396 | $as_echo "## ---------------- ## |
| 2397 | ## Cache variables. ## |
| 2398 | ## ---------------- ##" |
| 2399 | echo |
| 2400 | # The following way of writing the cache mishandles newlines in values, |
| 2401 | ( |
| 2402 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2403 | eval ac_val=\$$ac_var |
| 2404 | case $ac_val in #( |
| 2405 | *${as_nl}*) |
| 2406 | case $ac_var in #( |
| 2407 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2408 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2409 | esac |
| 2410 | case $ac_var in #( |
| 2411 | _ | IFS | as_nl) ;; #( |
| 2412 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2413 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2414 | esac ;; |
| 2415 | esac |
| 2416 | done |
| 2417 | (set) 2>&1 | |
| 2418 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2419 | *${as_nl}ac_space=\ *) |
| 2420 | sed -n \ |
| 2421 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2422 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2423 | ;; #( |
| 2424 | *) |
| 2425 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2426 | ;; |
| 2427 | esac | |
| 2428 | sort |
| 2429 | ) |
| 2430 | echo |
| 2431 | |
| 2432 | $as_echo "## ----------------- ## |
| 2433 | ## Output variables. ## |
| 2434 | ## ----------------- ##" |
| 2435 | echo |
| 2436 | for ac_var in $ac_subst_vars |
| 2437 | do |
| 2438 | eval ac_val=\$$ac_var |
| 2439 | case $ac_val in |
| 2440 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2441 | esac |
| 2442 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2443 | done | sort |
| 2444 | echo |
| 2445 | |
| 2446 | if test -n "$ac_subst_files"; then |
| 2447 | $as_echo "## ------------------- ## |
| 2448 | ## File substitutions. ## |
| 2449 | ## ------------------- ##" |
| 2450 | echo |
| 2451 | for ac_var in $ac_subst_files |
| 2452 | do |
| 2453 | eval ac_val=\$$ac_var |
| 2454 | case $ac_val in |
| 2455 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2456 | esac |
| 2457 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2458 | done | sort |
| 2459 | echo |
| 2460 | fi |
| 2461 | |
| 2462 | if test -s confdefs.h; then |
| 2463 | $as_echo "## ----------- ## |
| 2464 | ## confdefs.h. ## |
| 2465 | ## ----------- ##" |
| 2466 | echo |
| 2467 | cat confdefs.h |
| 2468 | echo |
| 2469 | fi |
| 2470 | test "$ac_signal" != 0 && |
| 2471 | $as_echo "$as_me: caught signal $ac_signal" |
| 2472 | $as_echo "$as_me: exit $exit_status" |
| 2473 | } >&5 |
| 2474 | rm -f core *.core core.conftest.* && |
| 2475 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2476 | exit $exit_status |
| 2477 | ' 0 |
| 2478 | for ac_signal in 1 2 13 15; do |
| 2479 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2480 | done |
| 2481 | ac_signal=0 |
| 2482 | |
| 2483 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2484 | rm -f -r conftest* confdefs.h |
| 2485 | |
| 2486 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2487 | |
| 2488 | # Predefined preprocessor variables. |
| 2489 | |
| 2490 | cat >>confdefs.h <<_ACEOF |
| 2491 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2492 | _ACEOF |
| 2493 | |
| 2494 | cat >>confdefs.h <<_ACEOF |
| 2495 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2496 | _ACEOF |
| 2497 | |
| 2498 | cat >>confdefs.h <<_ACEOF |
| 2499 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2500 | _ACEOF |
| 2501 | |
| 2502 | cat >>confdefs.h <<_ACEOF |
| 2503 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2504 | _ACEOF |
| 2505 | |
| 2506 | cat >>confdefs.h <<_ACEOF |
| 2507 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2508 | _ACEOF |
| 2509 | |
| 2510 | cat >>confdefs.h <<_ACEOF |
| 2511 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2512 | _ACEOF |
| 2513 | |
| 2514 | |
| 2515 | # Let the site file select an alternate cache file if it wants to. |
| 2516 | # Prefer an explicitly selected file to automatically selected ones. |
| 2517 | ac_site_file1=NONE |
| 2518 | ac_site_file2=NONE |
| 2519 | if test -n "$CONFIG_SITE"; then |
| 2520 | # We do not want a PATH search for config.site. |
| 2521 | case $CONFIG_SITE in #(( |
| 2522 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2523 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2524 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2525 | esac |
| 2526 | elif test "x$prefix" != xNONE; then |
| 2527 | ac_site_file1=$prefix/share/config.site |
| 2528 | ac_site_file2=$prefix/etc/config.site |
| 2529 | else |
| 2530 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2531 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2532 | fi |
| 2533 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2534 | do |
| 2535 | test "x$ac_site_file" = xNONE && continue |
| 2536 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2538 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2539 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2540 | . "$ac_site_file" \ |
| 2541 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2542 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2543 | as_fn_error $? "failed to load site script $ac_site_file |
| 2544 | See \`config.log' for more details" "$LINENO" 5; } |
| 2545 | fi |
| 2546 | done |
| 2547 | |
| 2548 | if test -r "$cache_file"; then |
| 2549 | # Some versions of bash will fail to source /dev/null (special files |
| 2550 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2551 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2552 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2553 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2554 | case $cache_file in |
| 2555 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2556 | *) . "./$cache_file";; |
| 2557 | esac |
| 2558 | fi |
| 2559 | else |
| 2560 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2561 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2562 | >$cache_file |
| 2563 | fi |
| 2564 | |
| 2565 | # Check that the precious variables saved in the cache have kept the same |
| 2566 | # value. |
| 2567 | ac_cache_corrupted=false |
| 2568 | for ac_var in $ac_precious_vars; do |
| 2569 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2570 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2571 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2572 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2573 | case $ac_old_set,$ac_new_set in |
| 2574 | set,) |
| 2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2576 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2577 | ac_cache_corrupted=: ;; |
| 2578 | ,set) |
| 2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2580 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2581 | ac_cache_corrupted=: ;; |
| 2582 | ,);; |
| 2583 | *) |
| 2584 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2585 | # differences in whitespace do not lead to failure. |
| 2586 | ac_old_val_w=`echo x $ac_old_val` |
| 2587 | ac_new_val_w=`echo x $ac_new_val` |
| 2588 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2589 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2590 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2591 | ac_cache_corrupted=: |
| 2592 | else |
| 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2594 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2595 | eval $ac_var=\$ac_old_val |
| 2596 | fi |
| 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2598 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2600 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2601 | fi;; |
| 2602 | esac |
| 2603 | # Pass precious variables to config.status. |
| 2604 | if test "$ac_new_set" = set; then |
| 2605 | case $ac_new_val in |
| 2606 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2607 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2608 | esac |
| 2609 | case " $ac_configure_args " in |
| 2610 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2611 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2612 | esac |
| 2613 | fi |
| 2614 | done |
| 2615 | if $ac_cache_corrupted; then |
| 2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2617 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2618 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2619 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2620 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2621 | fi |
| 2622 | ## -------------------- ## |
| 2623 | ## Main body of script. ## |
| 2624 | ## -------------------- ## |
| 2625 | |
| 2626 | ac_ext=c |
| 2627 | ac_cpp='$CPP $CPPFLAGS' |
| 2628 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2629 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2630 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2631 | |
| 2632 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 2633 | am__api_version='1.14' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2634 | |
| 2635 | ac_aux_dir= |
| 2636 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2637 | if test -f "$ac_dir/install-sh"; then |
| 2638 | ac_aux_dir=$ac_dir |
| 2639 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2640 | break |
| 2641 | elif test -f "$ac_dir/install.sh"; then |
| 2642 | ac_aux_dir=$ac_dir |
| 2643 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2644 | break |
| 2645 | elif test -f "$ac_dir/shtool"; then |
| 2646 | ac_aux_dir=$ac_dir |
| 2647 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2648 | break |
| 2649 | fi |
| 2650 | done |
| 2651 | if test -z "$ac_aux_dir"; then |
| 2652 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2653 | fi |
| 2654 | |
| 2655 | # These three variables are undocumented and unsupported, |
| 2656 | # and are intended to be withdrawn in a future Autoconf release. |
| 2657 | # They can cause serious problems if a builder's source tree is in a directory |
| 2658 | # whose full name contains unusual characters. |
| 2659 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2660 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2661 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2662 | |
| 2663 | |
| 2664 | # Find a good install program. We prefer a C program (faster), |
| 2665 | # so one script is as good as another. But avoid the broken or |
| 2666 | # incompatible versions: |
| 2667 | # SysV /etc/install, /usr/sbin/install |
| 2668 | # SunOS /usr/etc/install |
| 2669 | # IRIX /sbin/install |
| 2670 | # AIX /bin/install |
| 2671 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2672 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2673 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2674 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2675 | # OS/2's system install, which has a completely different semantic |
| 2676 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2677 | # Reject install programs that cannot install multiple files. |
| 2678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2679 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2680 | if test -z "$INSTALL"; then |
| 2681 | if ${ac_cv_path_install+:} false; then : |
| 2682 | $as_echo_n "(cached) " >&6 |
| 2683 | else |
| 2684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2685 | for as_dir in $PATH |
| 2686 | do |
| 2687 | IFS=$as_save_IFS |
| 2688 | test -z "$as_dir" && as_dir=. |
| 2689 | # Account for people who put trailing slashes in PATH elements. |
| 2690 | case $as_dir/ in #(( |
| 2691 | ./ | .// | /[cC]/* | \ |
| 2692 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2693 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2694 | /usr/ucb/* ) ;; |
| 2695 | *) |
| 2696 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2697 | # Don't use installbsd from OSF since it installs stuff as root |
| 2698 | # by default. |
| 2699 | for ac_prog in ginstall scoinst install; do |
| 2700 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2701 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2702 | if test $ac_prog = install && |
| 2703 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2704 | # AIX install. It has an incompatible calling convention. |
| 2705 | : |
| 2706 | elif test $ac_prog = install && |
| 2707 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2708 | # program-specific install script used by HP pwplus--don't use. |
| 2709 | : |
| 2710 | else |
| 2711 | rm -rf conftest.one conftest.two conftest.dir |
| 2712 | echo one > conftest.one |
| 2713 | echo two > conftest.two |
| 2714 | mkdir conftest.dir |
| 2715 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2716 | test -s conftest.one && test -s conftest.two && |
| 2717 | test -s conftest.dir/conftest.one && |
| 2718 | test -s conftest.dir/conftest.two |
| 2719 | then |
| 2720 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2721 | break 3 |
| 2722 | fi |
| 2723 | fi |
| 2724 | fi |
| 2725 | done |
| 2726 | done |
| 2727 | ;; |
| 2728 | esac |
| 2729 | |
| 2730 | done |
| 2731 | IFS=$as_save_IFS |
| 2732 | |
| 2733 | rm -rf conftest.one conftest.two conftest.dir |
| 2734 | |
| 2735 | fi |
| 2736 | if test "${ac_cv_path_install+set}" = set; then |
| 2737 | INSTALL=$ac_cv_path_install |
| 2738 | else |
| 2739 | # As a last resort, use the slow shell script. Don't cache a |
| 2740 | # value for INSTALL within a source directory, because that will |
| 2741 | # break other packages using the cache if that directory is |
| 2742 | # removed, or if the value is a relative name. |
| 2743 | INSTALL=$ac_install_sh |
| 2744 | fi |
| 2745 | fi |
| 2746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2747 | $as_echo "$INSTALL" >&6; } |
| 2748 | |
| 2749 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2750 | # It thinks the first close brace ends the variable substitution. |
| 2751 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2752 | |
| 2753 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2754 | |
| 2755 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2756 | |
| 2757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2758 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2759 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2760 | # name. Accept space and tab only in the latter. |
| 2761 | am_lf=' |
| 2762 | ' |
| 2763 | case `pwd` in |
| 2764 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2765 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 2766 | esac |
| 2767 | case $srcdir in |
| 2768 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2769 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 2770 | esac |
| 2771 | |
| 2772 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 2773 | # arguments. Must try -L first in case configure is actually a |
| 2774 | # symlink; some systems play weird games with the mod time of symlinks |
| 2775 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2776 | # directory). |
| 2777 | if ( |
| 2778 | am_has_slept=no |
| 2779 | for am_try in 1 2; do |
| 2780 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2781 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2782 | if test "$*" = "X"; then |
| 2783 | # -L didn't work. |
| 2784 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2785 | fi |
| 2786 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2787 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2788 | |
| 2789 | # If neither matched, then we have a broken ls. This can happen |
| 2790 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2791 | # broken ls alias from the environment. This has actually |
| 2792 | # happened. Such a system could not be considered "sane". |
| 2793 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2794 | alias in your environment" "$LINENO" 5 |
| 2795 | fi |
| 2796 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2797 | break |
| 2798 | fi |
| 2799 | # Just in case. |
| 2800 | sleep 1 |
| 2801 | am_has_slept=yes |
| 2802 | done |
| 2803 | test "$2" = conftest.file |
| 2804 | ) |
| 2805 | then |
| 2806 | # Ok. |
| 2807 | : |
| 2808 | else |
| 2809 | as_fn_error $? "newly created file is older than distributed files! |
| 2810 | Check your system clock" "$LINENO" 5 |
| 2811 | fi |
| 2812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2813 | $as_echo "yes" >&6; } |
| 2814 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2815 | # generated files are strictly newer. |
| 2816 | am_sleep_pid= |
| 2817 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2818 | ( sleep 1 ) & |
| 2819 | am_sleep_pid=$! |
| 2820 | fi |
| 2821 | |
| 2822 | rm -f conftest.file |
| 2823 | |
| 2824 | test "$program_prefix" != NONE && |
| 2825 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2826 | # Use a double $ so make ignores it. |
| 2827 | test "$program_suffix" != NONE && |
| 2828 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2829 | # Double any \ or $. |
| 2830 | # By default was `s,x,x', remove it if useless. |
| 2831 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2832 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2833 | |
| 2834 | # expand $ac_aux_dir to an absolute path |
| 2835 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2836 | |
| 2837 | if test x"${MISSING+set}" != xset; then |
| 2838 | case $am_aux_dir in |
| 2839 | *\ * | *\ *) |
| 2840 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2841 | *) |
| 2842 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2843 | esac |
| 2844 | fi |
| 2845 | # Use eval to expand $SHELL |
| 2846 | if eval "$MISSING --is-lightweight"; then |
| 2847 | am_missing_run="$MISSING " |
| 2848 | else |
| 2849 | am_missing_run= |
| 2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2851 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2852 | fi |
| 2853 | |
| 2854 | if test x"${install_sh}" != xset; then |
| 2855 | case $am_aux_dir in |
| 2856 | *\ * | *\ *) |
| 2857 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2858 | *) |
| 2859 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2860 | esac |
| 2861 | fi |
| 2862 | |
| 2863 | # Installed binaries are usually stripped using 'strip' when the user |
| 2864 | # run "make install-strip". However 'strip' might not be the right |
| 2865 | # tool to use in cross-compilation environments, therefore Automake |
| 2866 | # will honor the 'STRIP' environment variable to overrule this program. |
| 2867 | if test "$cross_compiling" != no; then |
| 2868 | if test -n "$ac_tool_prefix"; then |
| 2869 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2870 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2872 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2873 | if ${ac_cv_prog_STRIP+:} false; then : |
| 2874 | $as_echo_n "(cached) " >&6 |
| 2875 | else |
| 2876 | if test -n "$STRIP"; then |
| 2877 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2878 | else |
| 2879 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2880 | for as_dir in $PATH |
| 2881 | do |
| 2882 | IFS=$as_save_IFS |
| 2883 | test -z "$as_dir" && as_dir=. |
| 2884 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2885 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2886 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2887 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2888 | break 2 |
| 2889 | fi |
| 2890 | done |
| 2891 | done |
| 2892 | IFS=$as_save_IFS |
| 2893 | |
| 2894 | fi |
| 2895 | fi |
| 2896 | STRIP=$ac_cv_prog_STRIP |
| 2897 | if test -n "$STRIP"; then |
| 2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2899 | $as_echo "$STRIP" >&6; } |
| 2900 | else |
| 2901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2902 | $as_echo "no" >&6; } |
| 2903 | fi |
| 2904 | |
| 2905 | |
| 2906 | fi |
| 2907 | if test -z "$ac_cv_prog_STRIP"; then |
| 2908 | ac_ct_STRIP=$STRIP |
| 2909 | # Extract the first word of "strip", so it can be a program name with args. |
| 2910 | set dummy strip; ac_word=$2 |
| 2911 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2912 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2913 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 2914 | $as_echo_n "(cached) " >&6 |
| 2915 | else |
| 2916 | if test -n "$ac_ct_STRIP"; then |
| 2917 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2918 | else |
| 2919 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2920 | for as_dir in $PATH |
| 2921 | do |
| 2922 | IFS=$as_save_IFS |
| 2923 | test -z "$as_dir" && as_dir=. |
| 2924 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2925 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2926 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2927 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2928 | break 2 |
| 2929 | fi |
| 2930 | done |
| 2931 | done |
| 2932 | IFS=$as_save_IFS |
| 2933 | |
| 2934 | fi |
| 2935 | fi |
| 2936 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2937 | if test -n "$ac_ct_STRIP"; then |
| 2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2939 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2940 | else |
| 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2942 | $as_echo "no" >&6; } |
| 2943 | fi |
| 2944 | |
| 2945 | if test "x$ac_ct_STRIP" = x; then |
| 2946 | STRIP=":" |
| 2947 | else |
| 2948 | case $cross_compiling:$ac_tool_warned in |
| 2949 | yes:) |
| 2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2951 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2952 | ac_tool_warned=yes ;; |
| 2953 | esac |
| 2954 | STRIP=$ac_ct_STRIP |
| 2955 | fi |
| 2956 | else |
| 2957 | STRIP="$ac_cv_prog_STRIP" |
| 2958 | fi |
| 2959 | |
| 2960 | fi |
| 2961 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2962 | |
| 2963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2964 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2965 | if test -z "$MKDIR_P"; then |
| 2966 | if ${ac_cv_path_mkdir+:} false; then : |
| 2967 | $as_echo_n "(cached) " >&6 |
| 2968 | else |
| 2969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2970 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2971 | do |
| 2972 | IFS=$as_save_IFS |
| 2973 | test -z "$as_dir" && as_dir=. |
| 2974 | for ac_prog in mkdir gmkdir; do |
| 2975 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2976 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 2977 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2978 | 'mkdir (GNU coreutils) '* | \ |
| 2979 | 'mkdir (coreutils) '* | \ |
| 2980 | 'mkdir (fileutils) '4.1*) |
| 2981 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2982 | break 3;; |
| 2983 | esac |
| 2984 | done |
| 2985 | done |
| 2986 | done |
| 2987 | IFS=$as_save_IFS |
| 2988 | |
| 2989 | fi |
| 2990 | |
| 2991 | test -d ./--version && rmdir ./--version |
| 2992 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2993 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2994 | else |
| 2995 | # As a last resort, use the slow shell script. Don't cache a |
| 2996 | # value for MKDIR_P within a source directory, because that will |
| 2997 | # break other packages using the cache if that directory is |
| 2998 | # removed, or if the value is a relative name. |
| 2999 | MKDIR_P="$ac_install_sh -d" |
| 3000 | fi |
| 3001 | fi |
| 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3003 | $as_echo "$MKDIR_P" >&6; } |
| 3004 | |
| 3005 | for ac_prog in gawk mawk nawk awk |
| 3006 | do |
| 3007 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3008 | set dummy $ac_prog; ac_word=$2 |
| 3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3010 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3011 | if ${ac_cv_prog_AWK+:} false; then : |
| 3012 | $as_echo_n "(cached) " >&6 |
| 3013 | else |
| 3014 | if test -n "$AWK"; then |
| 3015 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3016 | else |
| 3017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3018 | for as_dir in $PATH |
| 3019 | do |
| 3020 | IFS=$as_save_IFS |
| 3021 | test -z "$as_dir" && as_dir=. |
| 3022 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3023 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3024 | ac_cv_prog_AWK="$ac_prog" |
| 3025 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3026 | break 2 |
| 3027 | fi |
| 3028 | done |
| 3029 | done |
| 3030 | IFS=$as_save_IFS |
| 3031 | |
| 3032 | fi |
| 3033 | fi |
| 3034 | AWK=$ac_cv_prog_AWK |
| 3035 | if test -n "$AWK"; then |
| 3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3037 | $as_echo "$AWK" >&6; } |
| 3038 | else |
| 3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3040 | $as_echo "no" >&6; } |
| 3041 | fi |
| 3042 | |
| 3043 | |
| 3044 | test -n "$AWK" && break |
| 3045 | done |
| 3046 | |
| 3047 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3048 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3049 | set x ${MAKE-make} |
| 3050 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3051 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 3052 | $as_echo_n "(cached) " >&6 |
| 3053 | else |
| 3054 | cat >conftest.make <<\_ACEOF |
| 3055 | SHELL = /bin/sh |
| 3056 | all: |
| 3057 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3058 | _ACEOF |
| 3059 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3060 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3061 | *@@@%%%=?*=@@@%%%*) |
| 3062 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3063 | *) |
| 3064 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3065 | esac |
| 3066 | rm -f conftest.make |
| 3067 | fi |
| 3068 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3070 | $as_echo "yes" >&6; } |
| 3071 | SET_MAKE= |
| 3072 | else |
| 3073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3074 | $as_echo "no" >&6; } |
| 3075 | SET_MAKE="MAKE=${MAKE-make}" |
| 3076 | fi |
| 3077 | |
| 3078 | rm -rf .tst 2>/dev/null |
| 3079 | mkdir .tst 2>/dev/null |
| 3080 | if test -d .tst; then |
| 3081 | am__leading_dot=. |
| 3082 | else |
| 3083 | am__leading_dot=_ |
| 3084 | fi |
| 3085 | rmdir .tst 2>/dev/null |
| 3086 | |
| 3087 | # Check whether --enable-silent-rules was given. |
| 3088 | if test "${enable_silent_rules+set}" = set; then : |
| 3089 | enableval=$enable_silent_rules; |
| 3090 | fi |
| 3091 | |
| 3092 | case $enable_silent_rules in # ((( |
| 3093 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3094 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3095 | *) AM_DEFAULT_VERBOSITY=1;; |
| 3096 | esac |
| 3097 | am_make=${MAKE-make} |
| 3098 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3099 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 3100 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 3101 | $as_echo_n "(cached) " >&6 |
| 3102 | else |
| 3103 | if $as_echo 'TRUE=$(BAR$(V)) |
| 3104 | BAR0=false |
| 3105 | BAR1=true |
| 3106 | V=1 |
| 3107 | am__doit: |
| 3108 | @$(TRUE) |
| 3109 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3110 | am_cv_make_support_nested_variables=yes |
| 3111 | else |
| 3112 | am_cv_make_support_nested_variables=no |
| 3113 | fi |
| 3114 | fi |
| 3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3116 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 3117 | if test $am_cv_make_support_nested_variables = yes; then |
| 3118 | AM_V='$(V)' |
| 3119 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 3120 | else |
| 3121 | AM_V=$AM_DEFAULT_VERBOSITY |
| 3122 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 3123 | fi |
| 3124 | AM_BACKSLASH='\' |
| 3125 | |
| 3126 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3127 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3128 | # is not polluted with repeated "-I." |
| 3129 | am__isrc=' -I$(srcdir)' |
| 3130 | # test to see if srcdir already configured |
| 3131 | if test -f $srcdir/config.status; then |
| 3132 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3133 | fi |
| 3134 | fi |
| 3135 | |
| 3136 | # test whether we have cygpath |
| 3137 | if test -z "$CYGPATH_W"; then |
| 3138 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3139 | CYGPATH_W='cygpath -w' |
| 3140 | else |
| 3141 | CYGPATH_W=echo |
| 3142 | fi |
| 3143 | fi |
| 3144 | |
| 3145 | |
| 3146 | # Define the identity of the package. |
| 3147 | PACKAGE='ndn-cpp' |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 3148 | VERSION='0.2' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3149 | |
| 3150 | |
| 3151 | # Some tools Automake needs. |
| 3152 | |
| 3153 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3154 | |
| 3155 | |
| 3156 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3157 | |
| 3158 | |
| 3159 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3160 | |
| 3161 | |
| 3162 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3163 | |
| 3164 | |
| 3165 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3166 | |
| 3167 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 3168 | # dies out for good. For more background, see: |
| 3169 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 3170 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 3171 | mkdir_p='$(MKDIR_P)' |
| 3172 | |
| 3173 | # We need awk for the "check" target. The system "awk" is bad on |
| 3174 | # some platforms. |
| 3175 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 3176 | # in the wild :-( We should find a proper way to deprecate it ... |
| 3177 | AMTAR='$${TAR-tar}' |
| 3178 | |
| 3179 | |
| 3180 | # We'll loop over all known methods to create a tar archive until one works. |
| 3181 | _am_tools='gnutar pax cpio none' |
| 3182 | |
| 3183 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 3184 | |
| 3185 | |
| 3186 | |
| 3187 | |
| 3188 | |
| 3189 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 3190 | # POSIX will say in a future version that running "rm -f" with no argument |
| 3191 | # is OK; and we want to be able to make that assumption in our Makefile |
| 3192 | # recipes. So use an aggressive probe to check that the usage we want is |
| 3193 | # actually supported "in the wild" to an acceptable degree. |
| 3194 | # See automake bug#10828. |
| 3195 | # To make any issue more visible, cause the running configure to be aborted |
| 3196 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 3197 | # user can still override this though. |
| 3198 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 3199 | cat >&2 <<'END' |
| 3200 | Oops! |
| 3201 | |
| 3202 | Your 'rm' program seems unable to run without file operands specified |
| 3203 | on the command line, even when the '-f' option is present. This is contrary |
| 3204 | to the behaviour of most rm programs out there, and not conforming with |
| 3205 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3206 | |
| 3207 | Please tell bug-automake@gnu.org about your system, including the value |
| 3208 | of your $PATH and any error possibly output before this message. This |
| 3209 | can help us improve future automake versions. |
| 3210 | |
| 3211 | END |
| 3212 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 3213 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3214 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3215 | echo >&2 |
| 3216 | else |
| 3217 | cat >&2 <<'END' |
| 3218 | Aborting the configuration process, to ensure you take notice of the issue. |
| 3219 | |
| 3220 | You can download and install GNU coreutils to get an 'rm' implementation |
| 3221 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 3222 | |
| 3223 | If you want to complete the configuration process using your problematic |
| 3224 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3225 | to "yes", and re-run configure. |
| 3226 | |
| 3227 | END |
| 3228 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3229 | fi |
| 3230 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3231 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 3232 | |
Jeff Thompson | 23cb742 | 2013-10-09 16:11:47 -0700 | [diff] [blame] | 3233 | |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame^] | 3234 | # Create config.h without prefixes. Put it in the include directory so CFLAGS will have -I./include . |
| 3235 | ac_config_headers="$ac_config_headers include/config.h" |
Jeff Thompson | b752300 | 2013-10-09 10:25:00 -0700 | [diff] [blame] | 3236 | |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame^] | 3237 | # Add prefixes and output to a unique file name which will go into the ndn-cpp include install directory. |
Jeff Thompson | b752300 | 2013-10-09 10:25:00 -0700 | [diff] [blame] | 3238 | |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame^] | 3239 | ac_config_commands="$ac_config_commands include/ndn-cpp/ndn-cpp-config.h" |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3240 | |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 3241 | |
| 3242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3243 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3244 | # Check whether --enable-maintainer-mode was given. |
| 3245 | if test "${enable_maintainer_mode+set}" = set; then : |
| 3246 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3247 | else |
| 3248 | USE_MAINTAINER_MODE=no |
| 3249 | fi |
| 3250 | |
| 3251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3252 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 3253 | if test $USE_MAINTAINER_MODE = yes; then |
| 3254 | MAINTAINER_MODE_TRUE= |
| 3255 | MAINTAINER_MODE_FALSE='#' |
| 3256 | else |
| 3257 | MAINTAINER_MODE_TRUE='#' |
| 3258 | MAINTAINER_MODE_FALSE= |
| 3259 | fi |
| 3260 | |
| 3261 | MAINT=$MAINTAINER_MODE_TRUE |
| 3262 | |
| 3263 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3264 | DEPDIR="${am__leading_dot}deps" |
| 3265 | |
| 3266 | ac_config_commands="$ac_config_commands depfiles" |
| 3267 | |
| 3268 | |
| 3269 | am_make=${MAKE-make} |
| 3270 | cat > confinc << 'END' |
| 3271 | am__doit: |
| 3272 | @echo this is the am__doit target |
| 3273 | .PHONY: am__doit |
| 3274 | END |
| 3275 | # If we don't find an include directive, just comment out the code. |
| 3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3277 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3278 | am__include="#" |
| 3279 | am__quote= |
| 3280 | _am_result=none |
| 3281 | # First try GNU make style include. |
| 3282 | echo "include confinc" > confmf |
| 3283 | # Ignore all kinds of additional output from 'make'. |
| 3284 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3285 | *the\ am__doit\ target*) |
| 3286 | am__include=include |
| 3287 | am__quote= |
| 3288 | _am_result=GNU |
| 3289 | ;; |
| 3290 | esac |
| 3291 | # Now try BSD make style include. |
| 3292 | if test "$am__include" = "#"; then |
| 3293 | echo '.include "confinc"' > confmf |
| 3294 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3295 | *the\ am__doit\ target*) |
| 3296 | am__include=.include |
| 3297 | am__quote="\"" |
| 3298 | _am_result=BSD |
| 3299 | ;; |
| 3300 | esac |
| 3301 | fi |
| 3302 | |
| 3303 | |
| 3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3305 | $as_echo "$_am_result" >&6; } |
| 3306 | rm -f confinc confmf |
| 3307 | |
| 3308 | # Check whether --enable-dependency-tracking was given. |
| 3309 | if test "${enable_dependency_tracking+set}" = set; then : |
| 3310 | enableval=$enable_dependency_tracking; |
| 3311 | fi |
| 3312 | |
| 3313 | if test "x$enable_dependency_tracking" != xno; then |
| 3314 | am_depcomp="$ac_aux_dir/depcomp" |
| 3315 | AMDEPBACKSLASH='\' |
| 3316 | am__nodep='_no' |
| 3317 | fi |
| 3318 | if test "x$enable_dependency_tracking" != xno; then |
| 3319 | AMDEP_TRUE= |
| 3320 | AMDEP_FALSE='#' |
| 3321 | else |
| 3322 | AMDEP_TRUE='#' |
| 3323 | AMDEP_FALSE= |
| 3324 | fi |
| 3325 | |
| 3326 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3327 | ac_ext=c |
| 3328 | ac_cpp='$CPP $CPPFLAGS' |
| 3329 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3330 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3331 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3332 | if test -n "$ac_tool_prefix"; then |
| 3333 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3334 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3336 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3337 | if ${ac_cv_prog_CC+:} false; then : |
| 3338 | $as_echo_n "(cached) " >&6 |
| 3339 | else |
| 3340 | if test -n "$CC"; then |
| 3341 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3342 | else |
| 3343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3344 | for as_dir in $PATH |
| 3345 | do |
| 3346 | IFS=$as_save_IFS |
| 3347 | test -z "$as_dir" && as_dir=. |
| 3348 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3349 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3350 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3351 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3352 | break 2 |
| 3353 | fi |
| 3354 | done |
| 3355 | done |
| 3356 | IFS=$as_save_IFS |
| 3357 | |
| 3358 | fi |
| 3359 | fi |
| 3360 | CC=$ac_cv_prog_CC |
| 3361 | if test -n "$CC"; then |
| 3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3363 | $as_echo "$CC" >&6; } |
| 3364 | else |
| 3365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3366 | $as_echo "no" >&6; } |
| 3367 | fi |
| 3368 | |
| 3369 | |
| 3370 | fi |
| 3371 | if test -z "$ac_cv_prog_CC"; then |
| 3372 | ac_ct_CC=$CC |
| 3373 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3374 | set dummy gcc; ac_word=$2 |
| 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3376 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3377 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3378 | $as_echo_n "(cached) " >&6 |
| 3379 | else |
| 3380 | if test -n "$ac_ct_CC"; then |
| 3381 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3382 | else |
| 3383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3384 | for as_dir in $PATH |
| 3385 | do |
| 3386 | IFS=$as_save_IFS |
| 3387 | test -z "$as_dir" && as_dir=. |
| 3388 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3389 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3390 | ac_cv_prog_ac_ct_CC="gcc" |
| 3391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3392 | break 2 |
| 3393 | fi |
| 3394 | done |
| 3395 | done |
| 3396 | IFS=$as_save_IFS |
| 3397 | |
| 3398 | fi |
| 3399 | fi |
| 3400 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3401 | if test -n "$ac_ct_CC"; then |
| 3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3403 | $as_echo "$ac_ct_CC" >&6; } |
| 3404 | else |
| 3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3406 | $as_echo "no" >&6; } |
| 3407 | fi |
| 3408 | |
| 3409 | if test "x$ac_ct_CC" = x; then |
| 3410 | CC="" |
| 3411 | else |
| 3412 | case $cross_compiling:$ac_tool_warned in |
| 3413 | yes:) |
| 3414 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3415 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3416 | ac_tool_warned=yes ;; |
| 3417 | esac |
| 3418 | CC=$ac_ct_CC |
| 3419 | fi |
| 3420 | else |
| 3421 | CC="$ac_cv_prog_CC" |
| 3422 | fi |
| 3423 | |
| 3424 | if test -z "$CC"; then |
| 3425 | if test -n "$ac_tool_prefix"; then |
| 3426 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3427 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3429 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3430 | if ${ac_cv_prog_CC+:} false; then : |
| 3431 | $as_echo_n "(cached) " >&6 |
| 3432 | else |
| 3433 | if test -n "$CC"; then |
| 3434 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3435 | else |
| 3436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3437 | for as_dir in $PATH |
| 3438 | do |
| 3439 | IFS=$as_save_IFS |
| 3440 | test -z "$as_dir" && as_dir=. |
| 3441 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3442 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3443 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3444 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3445 | break 2 |
| 3446 | fi |
| 3447 | done |
| 3448 | done |
| 3449 | IFS=$as_save_IFS |
| 3450 | |
| 3451 | fi |
| 3452 | fi |
| 3453 | CC=$ac_cv_prog_CC |
| 3454 | if test -n "$CC"; then |
| 3455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3456 | $as_echo "$CC" >&6; } |
| 3457 | else |
| 3458 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3459 | $as_echo "no" >&6; } |
| 3460 | fi |
| 3461 | |
| 3462 | |
| 3463 | fi |
| 3464 | fi |
| 3465 | if test -z "$CC"; then |
| 3466 | # Extract the first word of "cc", so it can be a program name with args. |
| 3467 | set dummy cc; ac_word=$2 |
| 3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3469 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3470 | if ${ac_cv_prog_CC+:} false; then : |
| 3471 | $as_echo_n "(cached) " >&6 |
| 3472 | else |
| 3473 | if test -n "$CC"; then |
| 3474 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3475 | else |
| 3476 | ac_prog_rejected=no |
| 3477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3478 | for as_dir in $PATH |
| 3479 | do |
| 3480 | IFS=$as_save_IFS |
| 3481 | test -z "$as_dir" && as_dir=. |
| 3482 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3484 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3485 | ac_prog_rejected=yes |
| 3486 | continue |
| 3487 | fi |
| 3488 | ac_cv_prog_CC="cc" |
| 3489 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3490 | break 2 |
| 3491 | fi |
| 3492 | done |
| 3493 | done |
| 3494 | IFS=$as_save_IFS |
| 3495 | |
| 3496 | if test $ac_prog_rejected = yes; then |
| 3497 | # We found a bogon in the path, so make sure we never use it. |
| 3498 | set dummy $ac_cv_prog_CC |
| 3499 | shift |
| 3500 | if test $# != 0; then |
| 3501 | # We chose a different compiler from the bogus one. |
| 3502 | # However, it has the same basename, so the bogon will be chosen |
| 3503 | # first if we set CC to just the basename; use the full file name. |
| 3504 | shift |
| 3505 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3506 | fi |
| 3507 | fi |
| 3508 | fi |
| 3509 | fi |
| 3510 | CC=$ac_cv_prog_CC |
| 3511 | if test -n "$CC"; then |
| 3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3513 | $as_echo "$CC" >&6; } |
| 3514 | else |
| 3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3516 | $as_echo "no" >&6; } |
| 3517 | fi |
| 3518 | |
| 3519 | |
| 3520 | fi |
| 3521 | if test -z "$CC"; then |
| 3522 | if test -n "$ac_tool_prefix"; then |
| 3523 | for ac_prog in cl.exe |
| 3524 | do |
| 3525 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3526 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3528 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3529 | if ${ac_cv_prog_CC+:} false; then : |
| 3530 | $as_echo_n "(cached) " >&6 |
| 3531 | else |
| 3532 | if test -n "$CC"; then |
| 3533 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3534 | else |
| 3535 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3536 | for as_dir in $PATH |
| 3537 | do |
| 3538 | IFS=$as_save_IFS |
| 3539 | test -z "$as_dir" && as_dir=. |
| 3540 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3541 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3542 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3543 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3544 | break 2 |
| 3545 | fi |
| 3546 | done |
| 3547 | done |
| 3548 | IFS=$as_save_IFS |
| 3549 | |
| 3550 | fi |
| 3551 | fi |
| 3552 | CC=$ac_cv_prog_CC |
| 3553 | if test -n "$CC"; then |
| 3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3555 | $as_echo "$CC" >&6; } |
| 3556 | else |
| 3557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3558 | $as_echo "no" >&6; } |
| 3559 | fi |
| 3560 | |
| 3561 | |
| 3562 | test -n "$CC" && break |
| 3563 | done |
| 3564 | fi |
| 3565 | if test -z "$CC"; then |
| 3566 | ac_ct_CC=$CC |
| 3567 | for ac_prog in cl.exe |
| 3568 | do |
| 3569 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3570 | set dummy $ac_prog; ac_word=$2 |
| 3571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3572 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3573 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3574 | $as_echo_n "(cached) " >&6 |
| 3575 | else |
| 3576 | if test -n "$ac_ct_CC"; then |
| 3577 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3578 | else |
| 3579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3580 | for as_dir in $PATH |
| 3581 | do |
| 3582 | IFS=$as_save_IFS |
| 3583 | test -z "$as_dir" && as_dir=. |
| 3584 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3585 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3586 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3587 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3588 | break 2 |
| 3589 | fi |
| 3590 | done |
| 3591 | done |
| 3592 | IFS=$as_save_IFS |
| 3593 | |
| 3594 | fi |
| 3595 | fi |
| 3596 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3597 | if test -n "$ac_ct_CC"; then |
| 3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3599 | $as_echo "$ac_ct_CC" >&6; } |
| 3600 | else |
| 3601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3602 | $as_echo "no" >&6; } |
| 3603 | fi |
| 3604 | |
| 3605 | |
| 3606 | test -n "$ac_ct_CC" && break |
| 3607 | done |
| 3608 | |
| 3609 | if test "x$ac_ct_CC" = x; then |
| 3610 | CC="" |
| 3611 | else |
| 3612 | case $cross_compiling:$ac_tool_warned in |
| 3613 | yes:) |
| 3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3615 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3616 | ac_tool_warned=yes ;; |
| 3617 | esac |
| 3618 | CC=$ac_ct_CC |
| 3619 | fi |
| 3620 | fi |
| 3621 | |
| 3622 | fi |
| 3623 | |
| 3624 | |
| 3625 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3626 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3627 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3628 | See \`config.log' for more details" "$LINENO" 5; } |
| 3629 | |
| 3630 | # Provide some information about the compiler. |
| 3631 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3632 | set X $ac_compile |
| 3633 | ac_compiler=$2 |
| 3634 | for ac_option in --version -v -V -qversion; do |
| 3635 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3636 | case "(($ac_try" in |
| 3637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3638 | *) ac_try_echo=$ac_try;; |
| 3639 | esac |
| 3640 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3641 | $as_echo "$ac_try_echo"; } >&5 |
| 3642 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3643 | ac_status=$? |
| 3644 | if test -s conftest.err; then |
| 3645 | sed '10a\ |
| 3646 | ... rest of stderr output deleted ... |
| 3647 | 10q' conftest.err >conftest.er1 |
| 3648 | cat conftest.er1 >&5 |
| 3649 | fi |
| 3650 | rm -f conftest.er1 conftest.err |
| 3651 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3652 | test $ac_status = 0; } |
| 3653 | done |
| 3654 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 3655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3656 | /* end confdefs.h. */ |
| 3657 | |
| 3658 | int |
| 3659 | main () |
| 3660 | { |
| 3661 | |
| 3662 | ; |
| 3663 | return 0; |
| 3664 | } |
| 3665 | _ACEOF |
| 3666 | ac_clean_files_save=$ac_clean_files |
| 3667 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3668 | # Try to create an executable without -o first, disregard a.out. |
| 3669 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3670 | # of exeext. |
| 3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3672 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3673 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3674 | |
| 3675 | # The possible output files: |
| 3676 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3677 | |
| 3678 | ac_rmfiles= |
| 3679 | for ac_file in $ac_files |
| 3680 | do |
| 3681 | case $ac_file in |
| 3682 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3683 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3684 | esac |
| 3685 | done |
| 3686 | rm -f $ac_rmfiles |
| 3687 | |
| 3688 | if { { ac_try="$ac_link_default" |
| 3689 | case "(($ac_try" in |
| 3690 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3691 | *) ac_try_echo=$ac_try;; |
| 3692 | esac |
| 3693 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3694 | $as_echo "$ac_try_echo"; } >&5 |
| 3695 | (eval "$ac_link_default") 2>&5 |
| 3696 | ac_status=$? |
| 3697 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3698 | test $ac_status = 0; }; then : |
| 3699 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3700 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3701 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3702 | # so that the user can short-circuit this test for compilers unknown to |
| 3703 | # Autoconf. |
| 3704 | for ac_file in $ac_files '' |
| 3705 | do |
| 3706 | test -f "$ac_file" || continue |
| 3707 | case $ac_file in |
| 3708 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3709 | ;; |
| 3710 | [ab].out ) |
| 3711 | # We found the default executable, but exeext='' is most |
| 3712 | # certainly right. |
| 3713 | break;; |
| 3714 | *.* ) |
| 3715 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3716 | then :; else |
| 3717 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3718 | fi |
| 3719 | # We set ac_cv_exeext here because the later test for it is not |
| 3720 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3721 | # argument, so we may need to know it at that point already. |
| 3722 | # Even if this section looks crufty: it has the advantage of |
| 3723 | # actually working. |
| 3724 | break;; |
| 3725 | * ) |
| 3726 | break;; |
| 3727 | esac |
| 3728 | done |
| 3729 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3730 | |
| 3731 | else |
| 3732 | ac_file='' |
| 3733 | fi |
| 3734 | if test -z "$ac_file"; then : |
| 3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3736 | $as_echo "no" >&6; } |
| 3737 | $as_echo "$as_me: failed program was:" >&5 |
| 3738 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3739 | |
| 3740 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3741 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3742 | as_fn_error 77 "C compiler cannot create executables |
| 3743 | See \`config.log' for more details" "$LINENO" 5; } |
| 3744 | else |
| 3745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3746 | $as_echo "yes" >&6; } |
| 3747 | fi |
| 3748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3749 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3751 | $as_echo "$ac_file" >&6; } |
| 3752 | ac_exeext=$ac_cv_exeext |
| 3753 | |
| 3754 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3755 | ac_clean_files=$ac_clean_files_save |
| 3756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3757 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3758 | if { { ac_try="$ac_link" |
| 3759 | case "(($ac_try" in |
| 3760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3761 | *) ac_try_echo=$ac_try;; |
| 3762 | esac |
| 3763 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3764 | $as_echo "$ac_try_echo"; } >&5 |
| 3765 | (eval "$ac_link") 2>&5 |
| 3766 | ac_status=$? |
| 3767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3768 | test $ac_status = 0; }; then : |
| 3769 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3770 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3771 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3772 | # `rm'. |
| 3773 | for ac_file in conftest.exe conftest conftest.*; do |
| 3774 | test -f "$ac_file" || continue |
| 3775 | case $ac_file in |
| 3776 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3777 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3778 | break;; |
| 3779 | * ) break;; |
| 3780 | esac |
| 3781 | done |
| 3782 | else |
| 3783 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3784 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3785 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3786 | See \`config.log' for more details" "$LINENO" 5; } |
| 3787 | fi |
| 3788 | rm -f conftest conftest$ac_cv_exeext |
| 3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3790 | $as_echo "$ac_cv_exeext" >&6; } |
| 3791 | |
| 3792 | rm -f conftest.$ac_ext |
| 3793 | EXEEXT=$ac_cv_exeext |
| 3794 | ac_exeext=$EXEEXT |
| 3795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3796 | /* end confdefs.h. */ |
| 3797 | #include <stdio.h> |
| 3798 | int |
| 3799 | main () |
| 3800 | { |
| 3801 | FILE *f = fopen ("conftest.out", "w"); |
| 3802 | return ferror (f) || fclose (f) != 0; |
| 3803 | |
| 3804 | ; |
| 3805 | return 0; |
| 3806 | } |
| 3807 | _ACEOF |
| 3808 | ac_clean_files="$ac_clean_files conftest.out" |
| 3809 | # Check that the compiler produces executables we can run. If not, either |
| 3810 | # the compiler is broken, or we cross compile. |
| 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3812 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3813 | if test "$cross_compiling" != yes; then |
| 3814 | { { ac_try="$ac_link" |
| 3815 | case "(($ac_try" in |
| 3816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3817 | *) ac_try_echo=$ac_try;; |
| 3818 | esac |
| 3819 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3820 | $as_echo "$ac_try_echo"; } >&5 |
| 3821 | (eval "$ac_link") 2>&5 |
| 3822 | ac_status=$? |
| 3823 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3824 | test $ac_status = 0; } |
| 3825 | if { ac_try='./conftest$ac_cv_exeext' |
| 3826 | { { case "(($ac_try" in |
| 3827 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3828 | *) ac_try_echo=$ac_try;; |
| 3829 | esac |
| 3830 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3831 | $as_echo "$ac_try_echo"; } >&5 |
| 3832 | (eval "$ac_try") 2>&5 |
| 3833 | ac_status=$? |
| 3834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3835 | test $ac_status = 0; }; }; then |
| 3836 | cross_compiling=no |
| 3837 | else |
| 3838 | if test "$cross_compiling" = maybe; then |
| 3839 | cross_compiling=yes |
| 3840 | else |
| 3841 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3842 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3843 | as_fn_error $? "cannot run C compiled programs. |
| 3844 | If you meant to cross compile, use \`--host'. |
| 3845 | See \`config.log' for more details" "$LINENO" 5; } |
| 3846 | fi |
| 3847 | fi |
| 3848 | fi |
| 3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3850 | $as_echo "$cross_compiling" >&6; } |
| 3851 | |
| 3852 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3853 | ac_clean_files=$ac_clean_files_save |
| 3854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3855 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3856 | if ${ac_cv_objext+:} false; then : |
| 3857 | $as_echo_n "(cached) " >&6 |
| 3858 | else |
| 3859 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3860 | /* end confdefs.h. */ |
| 3861 | |
| 3862 | int |
| 3863 | main () |
| 3864 | { |
| 3865 | |
| 3866 | ; |
| 3867 | return 0; |
| 3868 | } |
| 3869 | _ACEOF |
| 3870 | rm -f conftest.o conftest.obj |
| 3871 | if { { ac_try="$ac_compile" |
| 3872 | case "(($ac_try" in |
| 3873 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3874 | *) ac_try_echo=$ac_try;; |
| 3875 | esac |
| 3876 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3877 | $as_echo "$ac_try_echo"; } >&5 |
| 3878 | (eval "$ac_compile") 2>&5 |
| 3879 | ac_status=$? |
| 3880 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3881 | test $ac_status = 0; }; then : |
| 3882 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3883 | test -f "$ac_file" || continue; |
| 3884 | case $ac_file in |
| 3885 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3886 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3887 | break;; |
| 3888 | esac |
| 3889 | done |
| 3890 | else |
| 3891 | $as_echo "$as_me: failed program was:" >&5 |
| 3892 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3893 | |
| 3894 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3895 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3896 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3897 | See \`config.log' for more details" "$LINENO" 5; } |
| 3898 | fi |
| 3899 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3900 | fi |
| 3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3902 | $as_echo "$ac_cv_objext" >&6; } |
| 3903 | OBJEXT=$ac_cv_objext |
| 3904 | ac_objext=$OBJEXT |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3906 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3907 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3908 | $as_echo_n "(cached) " >&6 |
| 3909 | else |
| 3910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3911 | /* end confdefs.h. */ |
| 3912 | |
| 3913 | int |
| 3914 | main () |
| 3915 | { |
| 3916 | #ifndef __GNUC__ |
| 3917 | choke me |
| 3918 | #endif |
| 3919 | |
| 3920 | ; |
| 3921 | return 0; |
| 3922 | } |
| 3923 | _ACEOF |
| 3924 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3925 | ac_compiler_gnu=yes |
| 3926 | else |
| 3927 | ac_compiler_gnu=no |
| 3928 | fi |
| 3929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3930 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3931 | |
| 3932 | fi |
| 3933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3934 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3935 | if test $ac_compiler_gnu = yes; then |
| 3936 | GCC=yes |
| 3937 | else |
| 3938 | GCC= |
| 3939 | fi |
| 3940 | ac_test_CFLAGS=${CFLAGS+set} |
| 3941 | ac_save_CFLAGS=$CFLAGS |
| 3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3943 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3944 | if ${ac_cv_prog_cc_g+:} false; then : |
| 3945 | $as_echo_n "(cached) " >&6 |
| 3946 | else |
| 3947 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3948 | ac_c_werror_flag=yes |
| 3949 | ac_cv_prog_cc_g=no |
| 3950 | CFLAGS="-g" |
| 3951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3952 | /* end confdefs.h. */ |
| 3953 | |
| 3954 | int |
| 3955 | main () |
| 3956 | { |
| 3957 | |
| 3958 | ; |
| 3959 | return 0; |
| 3960 | } |
| 3961 | _ACEOF |
| 3962 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3963 | ac_cv_prog_cc_g=yes |
| 3964 | else |
| 3965 | CFLAGS="" |
| 3966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3967 | /* end confdefs.h. */ |
| 3968 | |
| 3969 | int |
| 3970 | main () |
| 3971 | { |
| 3972 | |
| 3973 | ; |
| 3974 | return 0; |
| 3975 | } |
| 3976 | _ACEOF |
| 3977 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3978 | |
| 3979 | else |
| 3980 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3981 | CFLAGS="-g" |
| 3982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3983 | /* end confdefs.h. */ |
| 3984 | |
| 3985 | int |
| 3986 | main () |
| 3987 | { |
| 3988 | |
| 3989 | ; |
| 3990 | return 0; |
| 3991 | } |
| 3992 | _ACEOF |
| 3993 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3994 | ac_cv_prog_cc_g=yes |
| 3995 | fi |
| 3996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3997 | fi |
| 3998 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3999 | fi |
| 4000 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4001 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4002 | fi |
| 4003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4004 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4005 | if test "$ac_test_CFLAGS" = set; then |
| 4006 | CFLAGS=$ac_save_CFLAGS |
| 4007 | elif test $ac_cv_prog_cc_g = yes; then |
| 4008 | if test "$GCC" = yes; then |
| 4009 | CFLAGS="-g -O2" |
| 4010 | else |
| 4011 | CFLAGS="-g" |
| 4012 | fi |
| 4013 | else |
| 4014 | if test "$GCC" = yes; then |
| 4015 | CFLAGS="-O2" |
| 4016 | else |
| 4017 | CFLAGS= |
| 4018 | fi |
| 4019 | fi |
| 4020 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4021 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4022 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 4023 | $as_echo_n "(cached) " >&6 |
| 4024 | else |
| 4025 | ac_cv_prog_cc_c89=no |
| 4026 | ac_save_CC=$CC |
| 4027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4028 | /* end confdefs.h. */ |
| 4029 | #include <stdarg.h> |
| 4030 | #include <stdio.h> |
| 4031 | struct stat; |
| 4032 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4033 | struct buf { int x; }; |
| 4034 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4035 | static char *e (p, i) |
| 4036 | char **p; |
| 4037 | int i; |
| 4038 | { |
| 4039 | return p[i]; |
| 4040 | } |
| 4041 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4042 | { |
| 4043 | char *s; |
| 4044 | va_list v; |
| 4045 | va_start (v,p); |
| 4046 | s = g (p, va_arg (v,int)); |
| 4047 | va_end (v); |
| 4048 | return s; |
| 4049 | } |
| 4050 | |
| 4051 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4052 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4053 | These don't provoke an error unfortunately, instead are silently treated |
| 4054 | as 'x'. The following induces an error, until -std is added to get |
| 4055 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4056 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4057 | that's true only with -std. */ |
| 4058 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4059 | |
| 4060 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4061 | inside strings and character constants. */ |
| 4062 | #define FOO(x) 'x' |
| 4063 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4064 | |
| 4065 | int test (int i, double x); |
| 4066 | struct s1 {int (*f) (int a);}; |
| 4067 | struct s2 {int (*f) (double a);}; |
| 4068 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4069 | int argc; |
| 4070 | char **argv; |
| 4071 | int |
| 4072 | main () |
| 4073 | { |
| 4074 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4075 | ; |
| 4076 | return 0; |
| 4077 | } |
| 4078 | _ACEOF |
| 4079 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4080 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4081 | do |
| 4082 | CC="$ac_save_CC $ac_arg" |
| 4083 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4084 | ac_cv_prog_cc_c89=$ac_arg |
| 4085 | fi |
| 4086 | rm -f core conftest.err conftest.$ac_objext |
| 4087 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4088 | done |
| 4089 | rm -f conftest.$ac_ext |
| 4090 | CC=$ac_save_CC |
| 4091 | |
| 4092 | fi |
| 4093 | # AC_CACHE_VAL |
| 4094 | case "x$ac_cv_prog_cc_c89" in |
| 4095 | x) |
| 4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4097 | $as_echo "none needed" >&6; } ;; |
| 4098 | xno) |
| 4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4100 | $as_echo "unsupported" >&6; } ;; |
| 4101 | *) |
| 4102 | CC="$CC $ac_cv_prog_cc_c89" |
| 4103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4104 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4105 | esac |
| 4106 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4107 | |
| 4108 | fi |
| 4109 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4110 | ac_ext=c |
| 4111 | ac_cpp='$CPP $CPPFLAGS' |
| 4112 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4113 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4114 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4115 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4116 | ac_ext=c |
| 4117 | ac_cpp='$CPP $CPPFLAGS' |
| 4118 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4119 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4120 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4122 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 4123 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 4124 | $as_echo_n "(cached) " >&6 |
| 4125 | else |
| 4126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4127 | /* end confdefs.h. */ |
| 4128 | |
| 4129 | int |
| 4130 | main () |
| 4131 | { |
| 4132 | |
| 4133 | ; |
| 4134 | return 0; |
| 4135 | } |
| 4136 | _ACEOF |
| 4137 | # Make sure it works both with $CC and with simple cc. |
| 4138 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 4139 | # compilers refuse to overwrite an existing .o file with -o, |
| 4140 | # though they will create one. |
| 4141 | am_cv_prog_cc_c_o=yes |
| 4142 | for am_i in 1 2; do |
| 4143 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4144 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4145 | ac_status=$? |
| 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4147 | (exit $ac_status); } \ |
| 4148 | && test -f conftest2.$ac_objext; then |
| 4149 | : OK |
| 4150 | else |
| 4151 | am_cv_prog_cc_c_o=no |
| 4152 | break |
| 4153 | fi |
| 4154 | done |
| 4155 | rm -f core conftest* |
| 4156 | unset am_i |
| 4157 | fi |
| 4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4159 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4160 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4161 | # Losing compiler, so override with the script. |
| 4162 | # FIXME: It is wrong to rewrite CC. |
| 4163 | # But if we don't then we get into trouble of one sort or another. |
| 4164 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4165 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4166 | CC="$am_aux_dir/compile $CC" |
| 4167 | fi |
| 4168 | ac_ext=c |
| 4169 | ac_cpp='$CPP $CPPFLAGS' |
| 4170 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4171 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4172 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4173 | |
| 4174 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4175 | depcc="$CC" am_compiler_list= |
| 4176 | |
| 4177 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4178 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4179 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 4180 | $as_echo_n "(cached) " >&6 |
| 4181 | else |
| 4182 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4183 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4184 | # making bogus files that we don't know about and never remove. For |
| 4185 | # instance it was reported that on HP-UX the gcc test will end up |
| 4186 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4187 | # in D". |
| 4188 | rm -rf conftest.dir |
| 4189 | mkdir conftest.dir |
| 4190 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4191 | # using a relative directory. |
| 4192 | cp "$am_depcomp" conftest.dir |
| 4193 | cd conftest.dir |
| 4194 | # We will build objects and dependencies in a subdirectory because |
| 4195 | # it helps to detect inapplicable dependency modes. For instance |
| 4196 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4197 | # side effect of compilation, but ICC will put the dependencies in |
| 4198 | # the current directory while Tru64 will put them in the object |
| 4199 | # directory. |
| 4200 | mkdir sub |
| 4201 | |
| 4202 | am_cv_CC_dependencies_compiler_type=none |
| 4203 | if test "$am_compiler_list" = ""; then |
| 4204 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4205 | fi |
| 4206 | am__universal=false |
| 4207 | case " $depcc " in #( |
| 4208 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4209 | esac |
| 4210 | |
| 4211 | for depmode in $am_compiler_list; do |
| 4212 | # Setup a source with many dependencies, because some compilers |
| 4213 | # like to wrap large dependency lists on column 80 (with \), and |
| 4214 | # we should not choose a depcomp mode which is confused by this. |
| 4215 | # |
| 4216 | # We need to recreate these files for each test, as the compiler may |
| 4217 | # overwrite some of them when testing with obscure command lines. |
| 4218 | # This happens at least with the AIX C compiler. |
| 4219 | : > sub/conftest.c |
| 4220 | for i in 1 2 3 4 5 6; do |
| 4221 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4222 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4223 | # Solaris 10 /bin/sh. |
| 4224 | echo '/* dummy */' > sub/conftst$i.h |
| 4225 | done |
| 4226 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4227 | |
| 4228 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4229 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4230 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4231 | # versions had trouble with output in subdirs. |
| 4232 | am__obj=sub/conftest.${OBJEXT-o} |
| 4233 | am__minus_obj="-o $am__obj" |
| 4234 | case $depmode in |
| 4235 | gcc) |
| 4236 | # This depmode causes a compiler race in universal mode. |
| 4237 | test "$am__universal" = false || continue |
| 4238 | ;; |
| 4239 | nosideeffect) |
| 4240 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4241 | # only be used when explicitly requested. |
| 4242 | if test "x$enable_dependency_tracking" = xyes; then |
| 4243 | continue |
| 4244 | else |
| 4245 | break |
| 4246 | fi |
| 4247 | ;; |
| 4248 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4249 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 4250 | # not run yet. These depmodes are late enough in the game, and |
| 4251 | # so weak that their functioning should not be impacted. |
| 4252 | am__obj=conftest.${OBJEXT-o} |
| 4253 | am__minus_obj= |
| 4254 | ;; |
| 4255 | none) break ;; |
| 4256 | esac |
| 4257 | if depmode=$depmode \ |
| 4258 | source=sub/conftest.c object=$am__obj \ |
| 4259 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4260 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4261 | >/dev/null 2>conftest.err && |
| 4262 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4263 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4264 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4265 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4266 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4267 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4268 | # that says an option was ignored or not supported. |
| 4269 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4270 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4271 | # The diagnosis changed in icc 8.0: |
| 4272 | # icc: Command line remark: option '-MP' not supported |
| 4273 | if (grep 'ignoring option' conftest.err || |
| 4274 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4275 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4276 | break |
| 4277 | fi |
| 4278 | fi |
| 4279 | done |
| 4280 | |
| 4281 | cd .. |
| 4282 | rm -rf conftest.dir |
| 4283 | else |
| 4284 | am_cv_CC_dependencies_compiler_type=none |
| 4285 | fi |
| 4286 | |
| 4287 | fi |
| 4288 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4289 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4290 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4291 | |
| 4292 | if |
| 4293 | test "x$enable_dependency_tracking" != xno \ |
| 4294 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4295 | am__fastdepCC_TRUE= |
| 4296 | am__fastdepCC_FALSE='#' |
| 4297 | else |
| 4298 | am__fastdepCC_TRUE='#' |
| 4299 | am__fastdepCC_FALSE= |
| 4300 | fi |
| 4301 | |
| 4302 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4303 | |
| 4304 | if test -n "$ac_tool_prefix"; then |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4305 | for ac_prog in ar lib "link -lib" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4306 | do |
| 4307 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4308 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4309 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4310 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4311 | if ${ac_cv_prog_AR+:} false; then : |
| 4312 | $as_echo_n "(cached) " >&6 |
| 4313 | else |
| 4314 | if test -n "$AR"; then |
| 4315 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4316 | else |
| 4317 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4318 | for as_dir in $PATH |
| 4319 | do |
| 4320 | IFS=$as_save_IFS |
| 4321 | test -z "$as_dir" && as_dir=. |
| 4322 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4323 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4324 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 4325 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4326 | break 2 |
| 4327 | fi |
| 4328 | done |
| 4329 | done |
| 4330 | IFS=$as_save_IFS |
| 4331 | |
| 4332 | fi |
| 4333 | fi |
| 4334 | AR=$ac_cv_prog_AR |
| 4335 | if test -n "$AR"; then |
| 4336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4337 | $as_echo "$AR" >&6; } |
| 4338 | else |
| 4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4340 | $as_echo "no" >&6; } |
| 4341 | fi |
| 4342 | |
| 4343 | |
| 4344 | test -n "$AR" && break |
| 4345 | done |
| 4346 | fi |
| 4347 | if test -z "$AR"; then |
| 4348 | ac_ct_AR=$AR |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4349 | for ac_prog in ar lib "link -lib" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4350 | do |
| 4351 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4352 | set dummy $ac_prog; ac_word=$2 |
| 4353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4354 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4355 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 4356 | $as_echo_n "(cached) " >&6 |
| 4357 | else |
| 4358 | if test -n "$ac_ct_AR"; then |
| 4359 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4360 | else |
| 4361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4362 | for as_dir in $PATH |
| 4363 | do |
| 4364 | IFS=$as_save_IFS |
| 4365 | test -z "$as_dir" && as_dir=. |
| 4366 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4367 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4368 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 4369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4370 | break 2 |
| 4371 | fi |
| 4372 | done |
| 4373 | done |
| 4374 | IFS=$as_save_IFS |
| 4375 | |
| 4376 | fi |
| 4377 | fi |
| 4378 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4379 | if test -n "$ac_ct_AR"; then |
| 4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 4381 | $as_echo "$ac_ct_AR" >&6; } |
| 4382 | else |
| 4383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4384 | $as_echo "no" >&6; } |
| 4385 | fi |
| 4386 | |
| 4387 | |
| 4388 | test -n "$ac_ct_AR" && break |
| 4389 | done |
| 4390 | |
| 4391 | if test "x$ac_ct_AR" = x; then |
| 4392 | AR="false" |
| 4393 | else |
| 4394 | case $cross_compiling:$ac_tool_warned in |
| 4395 | yes:) |
| 4396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4397 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4398 | ac_tool_warned=yes ;; |
| 4399 | esac |
| 4400 | AR=$ac_ct_AR |
| 4401 | fi |
| 4402 | fi |
| 4403 | |
| 4404 | : ${AR=ar} |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4405 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 |
| 4407 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } |
| 4408 | if ${am_cv_ar_interface+:} false; then : |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4409 | $as_echo_n "(cached) " >&6 |
| 4410 | else |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4411 | ac_ext=c |
| 4412 | ac_cpp='$CPP $CPPFLAGS' |
| 4413 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4414 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4415 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4416 | |
| 4417 | am_cv_ar_interface=ar |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4419 | /* end confdefs.h. */ |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4420 | int some_variable = 0; |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4421 | _ACEOF |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4422 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4423 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' |
| 4424 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4425 | (eval $am_ar_try) 2>&5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4426 | ac_status=$? |
| 4427 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4428 | test $ac_status = 0; } |
| 4429 | if test "$ac_status" -eq 0; then |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4430 | am_cv_ar_interface=ar |
| 4431 | else |
| 4432 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' |
| 4433 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4434 | (eval $am_ar_try) 2>&5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4435 | ac_status=$? |
| 4436 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4437 | test $ac_status = 0; } |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4438 | if test "$ac_status" -eq 0; then |
| 4439 | am_cv_ar_interface=lib |
| 4440 | else |
| 4441 | am_cv_ar_interface=unknown |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4442 | fi |
| 4443 | fi |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4444 | rm -f conftest.lib libconftest.a |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4445 | |
| 4446 | fi |
| 4447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4448 | ac_ext=c |
| 4449 | ac_cpp='$CPP $CPPFLAGS' |
| 4450 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4451 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4452 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4453 | |
| 4454 | fi |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 4456 | $as_echo "$am_cv_ar_interface" >&6; } |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4457 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4458 | case $am_cv_ar_interface in |
| 4459 | ar) |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4460 | ;; |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4461 | lib) |
| 4462 | # Microsoft lib, so override with the ar-lib wrapper script. |
| 4463 | # FIXME: It is wrong to rewrite AR. |
| 4464 | # But if we don't then we get into trouble of one sort or another. |
| 4465 | # A longer-term fix would be to have automake use am__AR in this case, |
| 4466 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something |
| 4467 | # similar. |
| 4468 | AR="$am_aux_dir/ar-lib $AR" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4469 | ;; |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4470 | unknown) |
| 4471 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4472 | ;; |
| 4473 | esac |
| 4474 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 4475 | case `pwd` in |
| 4476 | *\ * | *\ *) |
| 4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4478 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4479 | esac |
| 4480 | |
| 4481 | |
| 4482 | |
| 4483 | macro_version='2.4.2' |
| 4484 | macro_revision='1.3337' |
| 4485 | |
| 4486 | |
| 4487 | |
| 4488 | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 | |
| 4493 | |
| 4494 | |
| 4495 | |
| 4496 | |
| 4497 | |
| 4498 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4499 | |
| 4500 | # Make sure we can run config.sub. |
| 4501 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4502 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4503 | |
| 4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4505 | $as_echo_n "checking build system type... " >&6; } |
| 4506 | if ${ac_cv_build+:} false; then : |
| 4507 | $as_echo_n "(cached) " >&6 |
| 4508 | else |
| 4509 | ac_build_alias=$build_alias |
| 4510 | test "x$ac_build_alias" = x && |
| 4511 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4512 | test "x$ac_build_alias" = x && |
| 4513 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4514 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4515 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4516 | |
| 4517 | fi |
| 4518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4519 | $as_echo "$ac_cv_build" >&6; } |
| 4520 | case $ac_cv_build in |
| 4521 | *-*-*) ;; |
| 4522 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4523 | esac |
| 4524 | build=$ac_cv_build |
| 4525 | ac_save_IFS=$IFS; IFS='-' |
| 4526 | set x $ac_cv_build |
| 4527 | shift |
| 4528 | build_cpu=$1 |
| 4529 | build_vendor=$2 |
| 4530 | shift; shift |
| 4531 | # Remember, the first character of IFS is used to create $*, |
| 4532 | # except with old shells: |
| 4533 | build_os=$* |
| 4534 | IFS=$ac_save_IFS |
| 4535 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4536 | |
| 4537 | |
| 4538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4539 | $as_echo_n "checking host system type... " >&6; } |
| 4540 | if ${ac_cv_host+:} false; then : |
| 4541 | $as_echo_n "(cached) " >&6 |
| 4542 | else |
| 4543 | if test "x$host_alias" = x; then |
| 4544 | ac_cv_host=$ac_cv_build |
| 4545 | else |
| 4546 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4547 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4548 | fi |
| 4549 | |
| 4550 | fi |
| 4551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4552 | $as_echo "$ac_cv_host" >&6; } |
| 4553 | case $ac_cv_host in |
| 4554 | *-*-*) ;; |
| 4555 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4556 | esac |
| 4557 | host=$ac_cv_host |
| 4558 | ac_save_IFS=$IFS; IFS='-' |
| 4559 | set x $ac_cv_host |
| 4560 | shift |
| 4561 | host_cpu=$1 |
| 4562 | host_vendor=$2 |
| 4563 | shift; shift |
| 4564 | # Remember, the first character of IFS is used to create $*, |
| 4565 | # except with old shells: |
| 4566 | host_os=$* |
| 4567 | IFS=$ac_save_IFS |
| 4568 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4569 | |
| 4570 | |
| 4571 | # Backslashify metacharacters that are still active within |
| 4572 | # double-quoted strings. |
| 4573 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 4574 | |
| 4575 | # Same as above, but do not quote variable references. |
| 4576 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 4577 | |
| 4578 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4579 | # double_quote_subst'ed string. |
| 4580 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4581 | |
| 4582 | # Sed substitution to delay expansion of an escaped single quote. |
| 4583 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 4584 | |
| 4585 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 4586 | no_glob_subst='s/\*/\\\*/g' |
| 4587 | |
| 4588 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 4589 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4590 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4591 | |
| 4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 4593 | $as_echo_n "checking how to print strings... " >&6; } |
| 4594 | # Test print first, because it will be a builtin if present. |
| 4595 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 4596 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4597 | ECHO='print -r --' |
| 4598 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4599 | ECHO='printf %s\n' |
| 4600 | else |
| 4601 | # Use this function as a fallback that always works. |
| 4602 | func_fallback_echo () |
| 4603 | { |
| 4604 | eval 'cat <<_LTECHO_EOF |
| 4605 | $1 |
| 4606 | _LTECHO_EOF' |
| 4607 | } |
| 4608 | ECHO='func_fallback_echo' |
| 4609 | fi |
| 4610 | |
| 4611 | # func_echo_all arg... |
| 4612 | # Invoke $ECHO with all args, space-separated. |
| 4613 | func_echo_all () |
| 4614 | { |
| 4615 | $ECHO "" |
| 4616 | } |
| 4617 | |
| 4618 | case "$ECHO" in |
| 4619 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 4620 | $as_echo "printf" >&6; } ;; |
| 4621 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 4622 | $as_echo "print -r" >&6; } ;; |
| 4623 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 4624 | $as_echo "cat" >&6; } ;; |
| 4625 | esac |
| 4626 | |
| 4627 | |
| 4628 | |
| 4629 | |
| 4630 | |
| 4631 | |
| 4632 | |
| 4633 | |
| 4634 | |
| 4635 | |
| 4636 | |
| 4637 | |
| 4638 | |
| 4639 | |
| 4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4641 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4642 | if ${ac_cv_path_SED+:} false; then : |
| 4643 | $as_echo_n "(cached) " >&6 |
| 4644 | else |
| 4645 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4646 | for ac_i in 1 2 3 4 5 6 7; do |
| 4647 | ac_script="$ac_script$as_nl$ac_script" |
| 4648 | done |
| 4649 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4650 | { ac_script=; unset ac_script;} |
| 4651 | if test -z "$SED"; then |
| 4652 | ac_path_SED_found=false |
| 4653 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4655 | for as_dir in $PATH |
| 4656 | do |
| 4657 | IFS=$as_save_IFS |
| 4658 | test -z "$as_dir" && as_dir=. |
| 4659 | for ac_prog in sed gsed; do |
| 4660 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4661 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4662 | as_fn_executable_p "$ac_path_SED" || continue |
| 4663 | # Check for GNU ac_path_SED and select it if it is found. |
| 4664 | # Check for GNU $ac_path_SED |
| 4665 | case `"$ac_path_SED" --version 2>&1` in |
| 4666 | *GNU*) |
| 4667 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4668 | *) |
| 4669 | ac_count=0 |
| 4670 | $as_echo_n 0123456789 >"conftest.in" |
| 4671 | while : |
| 4672 | do |
| 4673 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4674 | mv "conftest.tmp" "conftest.in" |
| 4675 | cp "conftest.in" "conftest.nl" |
| 4676 | $as_echo '' >> "conftest.nl" |
| 4677 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4678 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4679 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4680 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4681 | # Best one so far, save it but keep looking for a better one |
| 4682 | ac_cv_path_SED="$ac_path_SED" |
| 4683 | ac_path_SED_max=$ac_count |
| 4684 | fi |
| 4685 | # 10*(2^10) chars as input seems more than enough |
| 4686 | test $ac_count -gt 10 && break |
| 4687 | done |
| 4688 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4689 | esac |
| 4690 | |
| 4691 | $ac_path_SED_found && break 3 |
| 4692 | done |
| 4693 | done |
| 4694 | done |
| 4695 | IFS=$as_save_IFS |
| 4696 | if test -z "$ac_cv_path_SED"; then |
| 4697 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4698 | fi |
| 4699 | else |
| 4700 | ac_cv_path_SED=$SED |
| 4701 | fi |
| 4702 | |
| 4703 | fi |
| 4704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4705 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4706 | SED="$ac_cv_path_SED" |
| 4707 | rm -f conftest.sed |
| 4708 | |
| 4709 | test -z "$SED" && SED=sed |
| 4710 | Xsed="$SED -e 1s/^X//" |
| 4711 | |
| 4712 | |
| 4713 | |
| 4714 | |
| 4715 | |
| 4716 | |
| 4717 | |
| 4718 | |
| 4719 | |
| 4720 | |
| 4721 | |
| 4722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4723 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4724 | if ${ac_cv_path_GREP+:} false; then : |
| 4725 | $as_echo_n "(cached) " >&6 |
| 4726 | else |
| 4727 | if test -z "$GREP"; then |
| 4728 | ac_path_GREP_found=false |
| 4729 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4731 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4732 | do |
| 4733 | IFS=$as_save_IFS |
| 4734 | test -z "$as_dir" && as_dir=. |
| 4735 | for ac_prog in grep ggrep; do |
| 4736 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4737 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4738 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4739 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4740 | # Check for GNU $ac_path_GREP |
| 4741 | case `"$ac_path_GREP" --version 2>&1` in |
| 4742 | *GNU*) |
| 4743 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4744 | *) |
| 4745 | ac_count=0 |
| 4746 | $as_echo_n 0123456789 >"conftest.in" |
| 4747 | while : |
| 4748 | do |
| 4749 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4750 | mv "conftest.tmp" "conftest.in" |
| 4751 | cp "conftest.in" "conftest.nl" |
| 4752 | $as_echo 'GREP' >> "conftest.nl" |
| 4753 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4754 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4755 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4756 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4757 | # Best one so far, save it but keep looking for a better one |
| 4758 | ac_cv_path_GREP="$ac_path_GREP" |
| 4759 | ac_path_GREP_max=$ac_count |
| 4760 | fi |
| 4761 | # 10*(2^10) chars as input seems more than enough |
| 4762 | test $ac_count -gt 10 && break |
| 4763 | done |
| 4764 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4765 | esac |
| 4766 | |
| 4767 | $ac_path_GREP_found && break 3 |
| 4768 | done |
| 4769 | done |
| 4770 | done |
| 4771 | IFS=$as_save_IFS |
| 4772 | if test -z "$ac_cv_path_GREP"; then |
| 4773 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4774 | fi |
| 4775 | else |
| 4776 | ac_cv_path_GREP=$GREP |
| 4777 | fi |
| 4778 | |
| 4779 | fi |
| 4780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4781 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4782 | GREP="$ac_cv_path_GREP" |
| 4783 | |
| 4784 | |
| 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4786 | $as_echo_n "checking for egrep... " >&6; } |
| 4787 | if ${ac_cv_path_EGREP+:} false; then : |
| 4788 | $as_echo_n "(cached) " >&6 |
| 4789 | else |
| 4790 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4791 | then ac_cv_path_EGREP="$GREP -E" |
| 4792 | else |
| 4793 | if test -z "$EGREP"; then |
| 4794 | ac_path_EGREP_found=false |
| 4795 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4797 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4798 | do |
| 4799 | IFS=$as_save_IFS |
| 4800 | test -z "$as_dir" && as_dir=. |
| 4801 | for ac_prog in egrep; do |
| 4802 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4803 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4804 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4805 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4806 | # Check for GNU $ac_path_EGREP |
| 4807 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4808 | *GNU*) |
| 4809 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4810 | *) |
| 4811 | ac_count=0 |
| 4812 | $as_echo_n 0123456789 >"conftest.in" |
| 4813 | while : |
| 4814 | do |
| 4815 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4816 | mv "conftest.tmp" "conftest.in" |
| 4817 | cp "conftest.in" "conftest.nl" |
| 4818 | $as_echo 'EGREP' >> "conftest.nl" |
| 4819 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4820 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4821 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4822 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4823 | # Best one so far, save it but keep looking for a better one |
| 4824 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4825 | ac_path_EGREP_max=$ac_count |
| 4826 | fi |
| 4827 | # 10*(2^10) chars as input seems more than enough |
| 4828 | test $ac_count -gt 10 && break |
| 4829 | done |
| 4830 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4831 | esac |
| 4832 | |
| 4833 | $ac_path_EGREP_found && break 3 |
| 4834 | done |
| 4835 | done |
| 4836 | done |
| 4837 | IFS=$as_save_IFS |
| 4838 | if test -z "$ac_cv_path_EGREP"; then |
| 4839 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4840 | fi |
| 4841 | else |
| 4842 | ac_cv_path_EGREP=$EGREP |
| 4843 | fi |
| 4844 | |
| 4845 | fi |
| 4846 | fi |
| 4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4848 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4849 | EGREP="$ac_cv_path_EGREP" |
| 4850 | |
| 4851 | |
| 4852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4853 | $as_echo_n "checking for fgrep... " >&6; } |
| 4854 | if ${ac_cv_path_FGREP+:} false; then : |
| 4855 | $as_echo_n "(cached) " >&6 |
| 4856 | else |
| 4857 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4858 | then ac_cv_path_FGREP="$GREP -F" |
| 4859 | else |
| 4860 | if test -z "$FGREP"; then |
| 4861 | ac_path_FGREP_found=false |
| 4862 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4864 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4865 | do |
| 4866 | IFS=$as_save_IFS |
| 4867 | test -z "$as_dir" && as_dir=. |
| 4868 | for ac_prog in fgrep; do |
| 4869 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4870 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4871 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 4872 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4873 | # Check for GNU $ac_path_FGREP |
| 4874 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4875 | *GNU*) |
| 4876 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4877 | *) |
| 4878 | ac_count=0 |
| 4879 | $as_echo_n 0123456789 >"conftest.in" |
| 4880 | while : |
| 4881 | do |
| 4882 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4883 | mv "conftest.tmp" "conftest.in" |
| 4884 | cp "conftest.in" "conftest.nl" |
| 4885 | $as_echo 'FGREP' >> "conftest.nl" |
| 4886 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4887 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4888 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4889 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4890 | # Best one so far, save it but keep looking for a better one |
| 4891 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4892 | ac_path_FGREP_max=$ac_count |
| 4893 | fi |
| 4894 | # 10*(2^10) chars as input seems more than enough |
| 4895 | test $ac_count -gt 10 && break |
| 4896 | done |
| 4897 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4898 | esac |
| 4899 | |
| 4900 | $ac_path_FGREP_found && break 3 |
| 4901 | done |
| 4902 | done |
| 4903 | done |
| 4904 | IFS=$as_save_IFS |
| 4905 | if test -z "$ac_cv_path_FGREP"; then |
| 4906 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4907 | fi |
| 4908 | else |
| 4909 | ac_cv_path_FGREP=$FGREP |
| 4910 | fi |
| 4911 | |
| 4912 | fi |
| 4913 | fi |
| 4914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4915 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4916 | FGREP="$ac_cv_path_FGREP" |
| 4917 | |
| 4918 | |
| 4919 | test -z "$GREP" && GREP=grep |
| 4920 | |
| 4921 | |
| 4922 | |
| 4923 | |
| 4924 | |
| 4925 | |
| 4926 | |
| 4927 | |
| 4928 | |
| 4929 | |
| 4930 | |
| 4931 | |
| 4932 | |
| 4933 | |
| 4934 | |
| 4935 | |
| 4936 | |
| 4937 | |
| 4938 | |
| 4939 | # Check whether --with-gnu-ld was given. |
| 4940 | if test "${with_gnu_ld+set}" = set; then : |
| 4941 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 4942 | else |
| 4943 | with_gnu_ld=no |
| 4944 | fi |
| 4945 | |
| 4946 | ac_prog=ld |
| 4947 | if test "$GCC" = yes; then |
| 4948 | # Check if gcc -print-prog-name=ld gives a path. |
| 4949 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4950 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 4951 | case $host in |
| 4952 | *-*-mingw*) |
| 4953 | # gcc leaves a trailing carriage return which upsets mingw |
| 4954 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4955 | *) |
| 4956 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4957 | esac |
| 4958 | case $ac_prog in |
| 4959 | # Accept absolute paths. |
| 4960 | [\\/]* | ?:[\\/]*) |
| 4961 | re_direlt='/[^/][^/]*/\.\./' |
| 4962 | # Canonicalize the pathname of ld |
| 4963 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4964 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4965 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 4966 | done |
| 4967 | test -z "$LD" && LD="$ac_prog" |
| 4968 | ;; |
| 4969 | "") |
| 4970 | # If it fails, then pretend we aren't using GCC. |
| 4971 | ac_prog=ld |
| 4972 | ;; |
| 4973 | *) |
| 4974 | # If it is relative, then search for the first ld in PATH. |
| 4975 | with_gnu_ld=unknown |
| 4976 | ;; |
| 4977 | esac |
| 4978 | elif test "$with_gnu_ld" = yes; then |
| 4979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4980 | $as_echo_n "checking for GNU ld... " >&6; } |
| 4981 | else |
| 4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4983 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 4984 | fi |
| 4985 | if ${lt_cv_path_LD+:} false; then : |
| 4986 | $as_echo_n "(cached) " >&6 |
| 4987 | else |
| 4988 | if test -z "$LD"; then |
| 4989 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4990 | for ac_dir in $PATH; do |
| 4991 | IFS="$lt_save_ifs" |
| 4992 | test -z "$ac_dir" && ac_dir=. |
| 4993 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4994 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4995 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 4996 | # but apparently some variants of GNU ld only accept -v. |
| 4997 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4998 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4999 | *GNU* | *'with BFD'*) |
| 5000 | test "$with_gnu_ld" != no && break |
| 5001 | ;; |
| 5002 | *) |
| 5003 | test "$with_gnu_ld" != yes && break |
| 5004 | ;; |
| 5005 | esac |
| 5006 | fi |
| 5007 | done |
| 5008 | IFS="$lt_save_ifs" |
| 5009 | else |
| 5010 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5011 | fi |
| 5012 | fi |
| 5013 | |
| 5014 | LD="$lt_cv_path_LD" |
| 5015 | if test -n "$LD"; then |
| 5016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5017 | $as_echo "$LD" >&6; } |
| 5018 | else |
| 5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5020 | $as_echo "no" >&6; } |
| 5021 | fi |
| 5022 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 5023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 5024 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 5025 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 5026 | $as_echo_n "(cached) " >&6 |
| 5027 | else |
| 5028 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5029 | case `$LD -v 2>&1 </dev/null` in |
| 5030 | *GNU* | *'with BFD'*) |
| 5031 | lt_cv_prog_gnu_ld=yes |
| 5032 | ;; |
| 5033 | *) |
| 5034 | lt_cv_prog_gnu_ld=no |
| 5035 | ;; |
| 5036 | esac |
| 5037 | fi |
| 5038 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 5039 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 5040 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5041 | |
| 5042 | |
| 5043 | |
| 5044 | |
| 5045 | |
| 5046 | |
| 5047 | |
| 5048 | |
| 5049 | |
| 5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 5051 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5052 | if ${lt_cv_path_NM+:} false; then : |
| 5053 | $as_echo_n "(cached) " >&6 |
| 5054 | else |
| 5055 | if test -n "$NM"; then |
| 5056 | # Let the user override the test. |
| 5057 | lt_cv_path_NM="$NM" |
| 5058 | else |
| 5059 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5060 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5061 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5062 | fi |
| 5063 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5064 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5065 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5066 | IFS="$lt_save_ifs" |
| 5067 | test -z "$ac_dir" && ac_dir=. |
| 5068 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5069 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5070 | # Check to see if the nm accepts a BSD-compat flag. |
| 5071 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5072 | # nm: unknown option "B" ignored |
| 5073 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5074 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5075 | */dev/null* | *'Invalid file or object type'*) |
| 5076 | lt_cv_path_NM="$tmp_nm -B" |
| 5077 | break |
| 5078 | ;; |
| 5079 | *) |
| 5080 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5081 | */dev/null*) |
| 5082 | lt_cv_path_NM="$tmp_nm -p" |
| 5083 | break |
| 5084 | ;; |
| 5085 | *) |
| 5086 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5087 | continue # so that we can try to find one that supports BSD flags |
| 5088 | ;; |
| 5089 | esac |
| 5090 | ;; |
| 5091 | esac |
| 5092 | fi |
| 5093 | done |
| 5094 | IFS="$lt_save_ifs" |
| 5095 | done |
| 5096 | : ${lt_cv_path_NM=no} |
| 5097 | fi |
| 5098 | fi |
| 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5100 | $as_echo "$lt_cv_path_NM" >&6; } |
| 5101 | if test "$lt_cv_path_NM" != "no"; then |
| 5102 | NM="$lt_cv_path_NM" |
| 5103 | else |
| 5104 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5105 | if test -n "$DUMPBIN"; then : |
| 5106 | # Let the user override the test. |
| 5107 | else |
| 5108 | if test -n "$ac_tool_prefix"; then |
| 5109 | for ac_prog in dumpbin "link -dump" |
| 5110 | do |
| 5111 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5112 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5114 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5115 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 5116 | $as_echo_n "(cached) " >&6 |
| 5117 | else |
| 5118 | if test -n "$DUMPBIN"; then |
| 5119 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5120 | else |
| 5121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5122 | for as_dir in $PATH |
| 5123 | do |
| 5124 | IFS=$as_save_IFS |
| 5125 | test -z "$as_dir" && as_dir=. |
| 5126 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5127 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5128 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5130 | break 2 |
| 5131 | fi |
| 5132 | done |
| 5133 | done |
| 5134 | IFS=$as_save_IFS |
| 5135 | |
| 5136 | fi |
| 5137 | fi |
| 5138 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5139 | if test -n "$DUMPBIN"; then |
| 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5141 | $as_echo "$DUMPBIN" >&6; } |
| 5142 | else |
| 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5144 | $as_echo "no" >&6; } |
| 5145 | fi |
| 5146 | |
| 5147 | |
| 5148 | test -n "$DUMPBIN" && break |
| 5149 | done |
| 5150 | fi |
| 5151 | if test -z "$DUMPBIN"; then |
| 5152 | ac_ct_DUMPBIN=$DUMPBIN |
| 5153 | for ac_prog in dumpbin "link -dump" |
| 5154 | do |
| 5155 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5156 | set dummy $ac_prog; ac_word=$2 |
| 5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5158 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5159 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 5160 | $as_echo_n "(cached) " >&6 |
| 5161 | else |
| 5162 | if test -n "$ac_ct_DUMPBIN"; then |
| 5163 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5164 | else |
| 5165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5166 | for as_dir in $PATH |
| 5167 | do |
| 5168 | IFS=$as_save_IFS |
| 5169 | test -z "$as_dir" && as_dir=. |
| 5170 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5172 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5174 | break 2 |
| 5175 | fi |
| 5176 | done |
| 5177 | done |
| 5178 | IFS=$as_save_IFS |
| 5179 | |
| 5180 | fi |
| 5181 | fi |
| 5182 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5183 | if test -n "$ac_ct_DUMPBIN"; then |
| 5184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5185 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5186 | else |
| 5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5188 | $as_echo "no" >&6; } |
| 5189 | fi |
| 5190 | |
| 5191 | |
| 5192 | test -n "$ac_ct_DUMPBIN" && break |
| 5193 | done |
| 5194 | |
| 5195 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5196 | DUMPBIN=":" |
| 5197 | else |
| 5198 | case $cross_compiling:$ac_tool_warned in |
| 5199 | yes:) |
| 5200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5201 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5202 | ac_tool_warned=yes ;; |
| 5203 | esac |
| 5204 | DUMPBIN=$ac_ct_DUMPBIN |
| 5205 | fi |
| 5206 | fi |
| 5207 | |
| 5208 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 5209 | *COFF*) |
| 5210 | DUMPBIN="$DUMPBIN -symbols" |
| 5211 | ;; |
| 5212 | *) |
| 5213 | DUMPBIN=: |
| 5214 | ;; |
| 5215 | esac |
| 5216 | fi |
| 5217 | |
| 5218 | if test "$DUMPBIN" != ":"; then |
| 5219 | NM="$DUMPBIN" |
| 5220 | fi |
| 5221 | fi |
| 5222 | test -z "$NM" && NM=nm |
| 5223 | |
| 5224 | |
| 5225 | |
| 5226 | |
| 5227 | |
| 5228 | |
| 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5230 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5231 | if ${lt_cv_nm_interface+:} false; then : |
| 5232 | $as_echo_n "(cached) " >&6 |
| 5233 | else |
| 5234 | lt_cv_nm_interface="BSD nm" |
| 5235 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5236 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 5237 | (eval "$ac_compile" 2>conftest.err) |
| 5238 | cat conftest.err >&5 |
| 5239 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 5240 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5241 | cat conftest.err >&5 |
| 5242 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 5243 | cat conftest.out >&5 |
| 5244 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5245 | lt_cv_nm_interface="MS dumpbin" |
| 5246 | fi |
| 5247 | rm -f conftest* |
| 5248 | fi |
| 5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5250 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 5251 | |
| 5252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5253 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 5254 | LN_S=$as_ln_s |
| 5255 | if test "$LN_S" = "ln -s"; then |
| 5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5257 | $as_echo "yes" >&6; } |
| 5258 | else |
| 5259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5260 | $as_echo "no, using $LN_S" >&6; } |
| 5261 | fi |
| 5262 | |
| 5263 | # find the maximum length of command line arguments |
| 5264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5265 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5266 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 5267 | $as_echo_n "(cached) " >&6 |
| 5268 | else |
| 5269 | i=0 |
| 5270 | teststring="ABCD" |
| 5271 | |
| 5272 | case $build_os in |
| 5273 | msdosdjgpp*) |
| 5274 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5275 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5276 | # during glob expansion). Even if it were fixed, the result of this |
| 5277 | # check would be larger than it should be. |
| 5278 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5279 | ;; |
| 5280 | |
| 5281 | gnu*) |
| 5282 | # Under GNU Hurd, this test is not required because there is |
| 5283 | # no limit to the length of command line arguments. |
| 5284 | # Libtool will interpret -1 as no limit whatsoever |
| 5285 | lt_cv_sys_max_cmd_len=-1; |
| 5286 | ;; |
| 5287 | |
| 5288 | cygwin* | mingw* | cegcc*) |
| 5289 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5290 | # about 5 minutes as the teststring grows exponentially. |
| 5291 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5292 | # you end up with a "frozen" computer, even though with patience |
| 5293 | # the test eventually succeeds (with a max line length of 256k). |
| 5294 | # Instead, let's just punt: use the minimum linelength reported by |
| 5295 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5296 | lt_cv_sys_max_cmd_len=8192; |
| 5297 | ;; |
| 5298 | |
| 5299 | mint*) |
| 5300 | # On MiNT this can take a long time and run out of memory. |
| 5301 | lt_cv_sys_max_cmd_len=8192; |
| 5302 | ;; |
| 5303 | |
| 5304 | amigaos*) |
| 5305 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5306 | # So we just punt and use a minimum line length of 8192. |
| 5307 | lt_cv_sys_max_cmd_len=8192; |
| 5308 | ;; |
| 5309 | |
| 5310 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5311 | # This has been around since 386BSD, at least. Likely further. |
| 5312 | if test -x /sbin/sysctl; then |
| 5313 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5314 | elif test -x /usr/sbin/sysctl; then |
| 5315 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5316 | else |
| 5317 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5318 | fi |
| 5319 | # And add a safety zone |
| 5320 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5321 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5322 | ;; |
| 5323 | |
| 5324 | interix*) |
| 5325 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5326 | lt_cv_sys_max_cmd_len=196608 |
| 5327 | ;; |
| 5328 | |
| 5329 | os2*) |
| 5330 | # The test takes a long time on OS/2. |
| 5331 | lt_cv_sys_max_cmd_len=8192 |
| 5332 | ;; |
| 5333 | |
| 5334 | osf*) |
| 5335 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5336 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5337 | # nice to cause kernel panics so lets avoid the loop below. |
| 5338 | # First set a reasonable default. |
| 5339 | lt_cv_sys_max_cmd_len=16384 |
| 5340 | # |
| 5341 | if test -x /sbin/sysconfig; then |
| 5342 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5343 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5344 | esac |
| 5345 | fi |
| 5346 | ;; |
| 5347 | sco3.2v5*) |
| 5348 | lt_cv_sys_max_cmd_len=102400 |
| 5349 | ;; |
| 5350 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5351 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5352 | if test -n "$kargmax"; then |
| 5353 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5354 | else |
| 5355 | lt_cv_sys_max_cmd_len=32768 |
| 5356 | fi |
| 5357 | ;; |
| 5358 | *) |
| 5359 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5360 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5361 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5362 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5363 | else |
| 5364 | # Make teststring a little bigger before we do anything with it. |
| 5365 | # a 1K string should be a reasonable start. |
| 5366 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5367 | teststring=$teststring$teststring |
| 5368 | done |
| 5369 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5370 | # If test is not a shell built-in, we'll probably end up computing a |
| 5371 | # maximum length that is only half of the actual maximum length, but |
| 5372 | # we can't tell. |
| 5373 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5374 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 5375 | test $i != 17 # 1/2 MB should be enough |
| 5376 | do |
| 5377 | i=`expr $i + 1` |
| 5378 | teststring=$teststring$teststring |
| 5379 | done |
| 5380 | # Only check the string length outside the loop. |
| 5381 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5382 | teststring= |
| 5383 | # Add a significant safety factor because C++ compilers can tack on |
| 5384 | # massive amounts of additional arguments before passing them to the |
| 5385 | # linker. It appears as though 1/2 is a usable value. |
| 5386 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5387 | fi |
| 5388 | ;; |
| 5389 | esac |
| 5390 | |
| 5391 | fi |
| 5392 | |
| 5393 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5395 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5396 | else |
| 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5398 | $as_echo "none" >&6; } |
| 5399 | fi |
| 5400 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5401 | |
| 5402 | |
| 5403 | |
| 5404 | |
| 5405 | |
| 5406 | |
| 5407 | : ${CP="cp -f"} |
| 5408 | : ${MV="mv -f"} |
| 5409 | : ${RM="rm -f"} |
| 5410 | |
| 5411 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5412 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5413 | # Try some XSI features |
| 5414 | xsi_shell=no |
| 5415 | ( _lt_dummy="a/b/c" |
| 5416 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 5417 | = c,a/b,b/c, \ |
| 5418 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5419 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5420 | && xsi_shell=yes |
| 5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5422 | $as_echo "$xsi_shell" >&6; } |
| 5423 | |
| 5424 | |
| 5425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5426 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5427 | lt_shell_append=no |
| 5428 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5429 | >/dev/null 2>&1 \ |
| 5430 | && lt_shell_append=yes |
| 5431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5432 | $as_echo "$lt_shell_append" >&6; } |
| 5433 | |
| 5434 | |
| 5435 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5436 | lt_unset=unset |
| 5437 | else |
| 5438 | lt_unset=false |
| 5439 | fi |
| 5440 | |
| 5441 | |
| 5442 | |
| 5443 | |
| 5444 | |
| 5445 | # test EBCDIC or ASCII |
| 5446 | case `echo X|tr X '\101'` in |
| 5447 | A) # ASCII based system |
| 5448 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5449 | lt_SP2NL='tr \040 \012' |
| 5450 | lt_NL2SP='tr \015\012 \040\040' |
| 5451 | ;; |
| 5452 | *) # EBCDIC based system |
| 5453 | lt_SP2NL='tr \100 \n' |
| 5454 | lt_NL2SP='tr \r\n \100\100' |
| 5455 | ;; |
| 5456 | esac |
| 5457 | |
| 5458 | |
| 5459 | |
| 5460 | |
| 5461 | |
| 5462 | |
| 5463 | |
| 5464 | |
| 5465 | |
| 5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 5467 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 5468 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 5469 | $as_echo_n "(cached) " >&6 |
| 5470 | else |
| 5471 | case $host in |
| 5472 | *-*-mingw* ) |
| 5473 | case $build in |
| 5474 | *-*-mingw* ) # actually msys |
| 5475 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 5476 | ;; |
| 5477 | *-*-cygwin* ) |
| 5478 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 5479 | ;; |
| 5480 | * ) # otherwise, assume *nix |
| 5481 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 5482 | ;; |
| 5483 | esac |
| 5484 | ;; |
| 5485 | *-*-cygwin* ) |
| 5486 | case $build in |
| 5487 | *-*-mingw* ) # actually msys |
| 5488 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 5489 | ;; |
| 5490 | *-*-cygwin* ) |
| 5491 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5492 | ;; |
| 5493 | * ) # otherwise, assume *nix |
| 5494 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 5495 | ;; |
| 5496 | esac |
| 5497 | ;; |
| 5498 | * ) # unhandled hosts (and "normal" native builds) |
| 5499 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5500 | ;; |
| 5501 | esac |
| 5502 | |
| 5503 | fi |
| 5504 | |
| 5505 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 5507 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 5508 | |
| 5509 | |
| 5510 | |
| 5511 | |
| 5512 | |
| 5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 5514 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 5515 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 5516 | $as_echo_n "(cached) " >&6 |
| 5517 | else |
| 5518 | #assume ordinary cross tools, or native build. |
| 5519 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 5520 | case $host in |
| 5521 | *-*-mingw* ) |
| 5522 | case $build in |
| 5523 | *-*-mingw* ) # actually msys |
| 5524 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 5525 | ;; |
| 5526 | esac |
| 5527 | ;; |
| 5528 | esac |
| 5529 | |
| 5530 | fi |
| 5531 | |
| 5532 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 5534 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 5535 | |
| 5536 | |
| 5537 | |
| 5538 | |
| 5539 | |
| 5540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5541 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5542 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 5543 | $as_echo_n "(cached) " >&6 |
| 5544 | else |
| 5545 | lt_cv_ld_reload_flag='-r' |
| 5546 | fi |
| 5547 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5548 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5549 | reload_flag=$lt_cv_ld_reload_flag |
| 5550 | case $reload_flag in |
| 5551 | "" | " "*) ;; |
| 5552 | *) reload_flag=" $reload_flag" ;; |
| 5553 | esac |
| 5554 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5555 | case $host_os in |
| 5556 | cygwin* | mingw* | pw32* | cegcc*) |
| 5557 | if test "$GCC" != yes; then |
| 5558 | reload_cmds=false |
| 5559 | fi |
| 5560 | ;; |
| 5561 | darwin*) |
| 5562 | if test "$GCC" = yes; then |
| 5563 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5564 | else |
| 5565 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5566 | fi |
| 5567 | ;; |
| 5568 | esac |
| 5569 | |
| 5570 | |
| 5571 | |
| 5572 | |
| 5573 | |
| 5574 | |
| 5575 | |
| 5576 | |
| 5577 | |
| 5578 | if test -n "$ac_tool_prefix"; then |
| 5579 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5580 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5582 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5583 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 5584 | $as_echo_n "(cached) " >&6 |
| 5585 | else |
| 5586 | if test -n "$OBJDUMP"; then |
| 5587 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5588 | else |
| 5589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5590 | for as_dir in $PATH |
| 5591 | do |
| 5592 | IFS=$as_save_IFS |
| 5593 | test -z "$as_dir" && as_dir=. |
| 5594 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5596 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5598 | break 2 |
| 5599 | fi |
| 5600 | done |
| 5601 | done |
| 5602 | IFS=$as_save_IFS |
| 5603 | |
| 5604 | fi |
| 5605 | fi |
| 5606 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5607 | if test -n "$OBJDUMP"; then |
| 5608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5609 | $as_echo "$OBJDUMP" >&6; } |
| 5610 | else |
| 5611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5612 | $as_echo "no" >&6; } |
| 5613 | fi |
| 5614 | |
| 5615 | |
| 5616 | fi |
| 5617 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5618 | ac_ct_OBJDUMP=$OBJDUMP |
| 5619 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5620 | set dummy objdump; ac_word=$2 |
| 5621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5622 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5623 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 5624 | $as_echo_n "(cached) " >&6 |
| 5625 | else |
| 5626 | if test -n "$ac_ct_OBJDUMP"; then |
| 5627 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5628 | else |
| 5629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5630 | for as_dir in $PATH |
| 5631 | do |
| 5632 | IFS=$as_save_IFS |
| 5633 | test -z "$as_dir" && as_dir=. |
| 5634 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5635 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5636 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5637 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5638 | break 2 |
| 5639 | fi |
| 5640 | done |
| 5641 | done |
| 5642 | IFS=$as_save_IFS |
| 5643 | |
| 5644 | fi |
| 5645 | fi |
| 5646 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5647 | if test -n "$ac_ct_OBJDUMP"; then |
| 5648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5649 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5650 | else |
| 5651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5652 | $as_echo "no" >&6; } |
| 5653 | fi |
| 5654 | |
| 5655 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5656 | OBJDUMP="false" |
| 5657 | else |
| 5658 | case $cross_compiling:$ac_tool_warned in |
| 5659 | yes:) |
| 5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5661 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5662 | ac_tool_warned=yes ;; |
| 5663 | esac |
| 5664 | OBJDUMP=$ac_ct_OBJDUMP |
| 5665 | fi |
| 5666 | else |
| 5667 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5668 | fi |
| 5669 | |
| 5670 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5671 | |
| 5672 | |
| 5673 | |
| 5674 | |
| 5675 | |
| 5676 | |
| 5677 | |
| 5678 | |
| 5679 | |
| 5680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5681 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5682 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 5683 | $as_echo_n "(cached) " >&6 |
| 5684 | else |
| 5685 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5686 | lt_cv_file_magic_test_file= |
| 5687 | lt_cv_deplibs_check_method='unknown' |
| 5688 | # Need to set the preceding variable on all platforms that support |
| 5689 | # interlibrary dependencies. |
| 5690 | # 'none' -- dependencies not supported. |
| 5691 | # `unknown' -- same as none, but documents that we really don't know. |
| 5692 | # 'pass_all' -- all dependencies passed with no checks. |
| 5693 | # 'test_compile' -- check by making test program. |
| 5694 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5695 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5696 | # If you have `file' or equivalent on your system and you're not sure |
| 5697 | # whether `pass_all' will *always* work, you probably want this one. |
| 5698 | |
| 5699 | case $host_os in |
| 5700 | aix[4-9]*) |
| 5701 | lt_cv_deplibs_check_method=pass_all |
| 5702 | ;; |
| 5703 | |
| 5704 | beos*) |
| 5705 | lt_cv_deplibs_check_method=pass_all |
| 5706 | ;; |
| 5707 | |
| 5708 | bsdi[45]*) |
| 5709 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5710 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5711 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5712 | ;; |
| 5713 | |
| 5714 | cygwin*) |
| 5715 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5716 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5717 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5718 | ;; |
| 5719 | |
| 5720 | mingw* | pw32*) |
| 5721 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5722 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5723 | # unless we find 'file', for example because we are cross-compiling. |
| 5724 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5725 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 5726 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5727 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5728 | else |
| 5729 | # Keep this pattern in sync with the one in func_win32_libid. |
| 5730 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 5731 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5732 | fi |
| 5733 | ;; |
| 5734 | |
| 5735 | cegcc*) |
| 5736 | # use the weaker test based on 'objdump'. See mingw*. |
| 5737 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5738 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5739 | ;; |
| 5740 | |
| 5741 | darwin* | rhapsody*) |
| 5742 | lt_cv_deplibs_check_method=pass_all |
| 5743 | ;; |
| 5744 | |
| 5745 | freebsd* | dragonfly*) |
| 5746 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5747 | case $host_cpu in |
| 5748 | i*86 ) |
| 5749 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5750 | # Let's accept both of them until this is cleared up. |
| 5751 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5752 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5753 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5754 | ;; |
| 5755 | esac |
| 5756 | else |
| 5757 | lt_cv_deplibs_check_method=pass_all |
| 5758 | fi |
| 5759 | ;; |
| 5760 | |
| 5761 | gnu*) |
| 5762 | lt_cv_deplibs_check_method=pass_all |
| 5763 | ;; |
| 5764 | |
| 5765 | haiku*) |
| 5766 | lt_cv_deplibs_check_method=pass_all |
| 5767 | ;; |
| 5768 | |
| 5769 | hpux10.20* | hpux11*) |
| 5770 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5771 | case $host_cpu in |
| 5772 | ia64*) |
| 5773 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5774 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5775 | ;; |
| 5776 | hppa*64*) |
| 5777 | 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]' |
| 5778 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5779 | ;; |
| 5780 | *) |
| 5781 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 5782 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5783 | ;; |
| 5784 | esac |
| 5785 | ;; |
| 5786 | |
| 5787 | interix[3-9]*) |
| 5788 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5789 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5790 | ;; |
| 5791 | |
| 5792 | irix5* | irix6* | nonstopux*) |
| 5793 | case $LD in |
| 5794 | *-32|*"-32 ") libmagic=32-bit;; |
| 5795 | *-n32|*"-n32 ") libmagic=N32;; |
| 5796 | *-64|*"-64 ") libmagic=64-bit;; |
| 5797 | *) libmagic=never-match;; |
| 5798 | esac |
| 5799 | lt_cv_deplibs_check_method=pass_all |
| 5800 | ;; |
| 5801 | |
| 5802 | # This must be glibc/ELF. |
| 5803 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 5804 | lt_cv_deplibs_check_method=pass_all |
| 5805 | ;; |
| 5806 | |
| 5807 | netbsd*) |
| 5808 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5809 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5810 | else |
| 5811 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5812 | fi |
| 5813 | ;; |
| 5814 | |
| 5815 | newos6*) |
| 5816 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5817 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5818 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5819 | ;; |
| 5820 | |
| 5821 | *nto* | *qnx*) |
| 5822 | lt_cv_deplibs_check_method=pass_all |
| 5823 | ;; |
| 5824 | |
| 5825 | openbsd*) |
| 5826 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5827 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5828 | else |
| 5829 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5830 | fi |
| 5831 | ;; |
| 5832 | |
| 5833 | osf3* | osf4* | osf5*) |
| 5834 | lt_cv_deplibs_check_method=pass_all |
| 5835 | ;; |
| 5836 | |
| 5837 | rdos*) |
| 5838 | lt_cv_deplibs_check_method=pass_all |
| 5839 | ;; |
| 5840 | |
| 5841 | solaris*) |
| 5842 | lt_cv_deplibs_check_method=pass_all |
| 5843 | ;; |
| 5844 | |
| 5845 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5846 | lt_cv_deplibs_check_method=pass_all |
| 5847 | ;; |
| 5848 | |
| 5849 | sysv4 | sysv4.3*) |
| 5850 | case $host_vendor in |
| 5851 | motorola) |
| 5852 | 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]' |
| 5853 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5854 | ;; |
| 5855 | ncr) |
| 5856 | lt_cv_deplibs_check_method=pass_all |
| 5857 | ;; |
| 5858 | sequent) |
| 5859 | lt_cv_file_magic_cmd='/bin/file' |
| 5860 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5861 | ;; |
| 5862 | sni) |
| 5863 | lt_cv_file_magic_cmd='/bin/file' |
| 5864 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5865 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5866 | ;; |
| 5867 | siemens) |
| 5868 | lt_cv_deplibs_check_method=pass_all |
| 5869 | ;; |
| 5870 | pc) |
| 5871 | lt_cv_deplibs_check_method=pass_all |
| 5872 | ;; |
| 5873 | esac |
| 5874 | ;; |
| 5875 | |
| 5876 | tpf*) |
| 5877 | lt_cv_deplibs_check_method=pass_all |
| 5878 | ;; |
| 5879 | esac |
| 5880 | |
| 5881 | fi |
| 5882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5883 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 5884 | |
| 5885 | file_magic_glob= |
| 5886 | want_nocaseglob=no |
| 5887 | if test "$build" = "$host"; then |
| 5888 | case $host_os in |
| 5889 | mingw* | pw32*) |
| 5890 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 5891 | want_nocaseglob=yes |
| 5892 | else |
| 5893 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 5894 | fi |
| 5895 | ;; |
| 5896 | esac |
| 5897 | fi |
| 5898 | |
| 5899 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5900 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5901 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5902 | |
| 5903 | |
| 5904 | |
| 5905 | |
| 5906 | |
| 5907 | |
| 5908 | |
| 5909 | |
| 5910 | |
| 5911 | |
| 5912 | |
| 5913 | |
| 5914 | |
| 5915 | |
| 5916 | |
| 5917 | |
| 5918 | |
| 5919 | |
| 5920 | |
| 5921 | |
| 5922 | |
| 5923 | |
| 5924 | if test -n "$ac_tool_prefix"; then |
| 5925 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 5926 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 5927 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5928 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5929 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 5930 | $as_echo_n "(cached) " >&6 |
| 5931 | else |
| 5932 | if test -n "$DLLTOOL"; then |
| 5933 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 5934 | else |
| 5935 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5936 | for as_dir in $PATH |
| 5937 | do |
| 5938 | IFS=$as_save_IFS |
| 5939 | test -z "$as_dir" && as_dir=. |
| 5940 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5941 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5942 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 5943 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5944 | break 2 |
| 5945 | fi |
| 5946 | done |
| 5947 | done |
| 5948 | IFS=$as_save_IFS |
| 5949 | |
| 5950 | fi |
| 5951 | fi |
| 5952 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 5953 | if test -n "$DLLTOOL"; then |
| 5954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 5955 | $as_echo "$DLLTOOL" >&6; } |
| 5956 | else |
| 5957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5958 | $as_echo "no" >&6; } |
| 5959 | fi |
| 5960 | |
| 5961 | |
| 5962 | fi |
| 5963 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 5964 | ac_ct_DLLTOOL=$DLLTOOL |
| 5965 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 5966 | set dummy dlltool; ac_word=$2 |
| 5967 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5968 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5969 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 5970 | $as_echo_n "(cached) " >&6 |
| 5971 | else |
| 5972 | if test -n "$ac_ct_DLLTOOL"; then |
| 5973 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 5974 | else |
| 5975 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5976 | for as_dir in $PATH |
| 5977 | do |
| 5978 | IFS=$as_save_IFS |
| 5979 | test -z "$as_dir" && as_dir=. |
| 5980 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5981 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5982 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 5983 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5984 | break 2 |
| 5985 | fi |
| 5986 | done |
| 5987 | done |
| 5988 | IFS=$as_save_IFS |
| 5989 | |
| 5990 | fi |
| 5991 | fi |
| 5992 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 5993 | if test -n "$ac_ct_DLLTOOL"; then |
| 5994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 5995 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 5996 | else |
| 5997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5998 | $as_echo "no" >&6; } |
| 5999 | fi |
| 6000 | |
| 6001 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6002 | DLLTOOL="false" |
| 6003 | else |
| 6004 | case $cross_compiling:$ac_tool_warned in |
| 6005 | yes:) |
| 6006 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6007 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6008 | ac_tool_warned=yes ;; |
| 6009 | esac |
| 6010 | DLLTOOL=$ac_ct_DLLTOOL |
| 6011 | fi |
| 6012 | else |
| 6013 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6014 | fi |
| 6015 | |
| 6016 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6017 | |
| 6018 | |
| 6019 | |
| 6020 | |
| 6021 | |
| 6022 | |
| 6023 | |
| 6024 | |
| 6025 | |
| 6026 | |
| 6027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 6028 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 6029 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 6030 | $as_echo_n "(cached) " >&6 |
| 6031 | else |
| 6032 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 6033 | |
| 6034 | case $host_os in |
| 6035 | cygwin* | mingw* | pw32* | cegcc*) |
| 6036 | # two different shell functions defined in ltmain.sh |
| 6037 | # decide which to use based on capabilities of $DLLTOOL |
| 6038 | case `$DLLTOOL --help 2>&1` in |
| 6039 | *--identify-strict*) |
| 6040 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 6041 | ;; |
| 6042 | *) |
| 6043 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 6044 | ;; |
| 6045 | esac |
| 6046 | ;; |
| 6047 | *) |
| 6048 | # fallback: assume linklib IS sharedlib |
| 6049 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 6050 | ;; |
| 6051 | esac |
| 6052 | |
| 6053 | fi |
| 6054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 6055 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 6056 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 6057 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 6058 | |
| 6059 | |
| 6060 | |
| 6061 | |
| 6062 | |
| 6063 | |
| 6064 | |
| 6065 | if test -n "$ac_tool_prefix"; then |
| 6066 | for ac_prog in ar |
| 6067 | do |
| 6068 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6069 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6071 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6072 | if ${ac_cv_prog_AR+:} false; then : |
| 6073 | $as_echo_n "(cached) " >&6 |
| 6074 | else |
| 6075 | if test -n "$AR"; then |
| 6076 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6077 | else |
| 6078 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6079 | for as_dir in $PATH |
| 6080 | do |
| 6081 | IFS=$as_save_IFS |
| 6082 | test -z "$as_dir" && as_dir=. |
| 6083 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6084 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6085 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 6086 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6087 | break 2 |
| 6088 | fi |
| 6089 | done |
| 6090 | done |
| 6091 | IFS=$as_save_IFS |
| 6092 | |
| 6093 | fi |
| 6094 | fi |
| 6095 | AR=$ac_cv_prog_AR |
| 6096 | if test -n "$AR"; then |
| 6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6098 | $as_echo "$AR" >&6; } |
| 6099 | else |
| 6100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6101 | $as_echo "no" >&6; } |
| 6102 | fi |
| 6103 | |
| 6104 | |
| 6105 | test -n "$AR" && break |
| 6106 | done |
| 6107 | fi |
| 6108 | if test -z "$AR"; then |
| 6109 | ac_ct_AR=$AR |
| 6110 | for ac_prog in ar |
| 6111 | do |
| 6112 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6113 | set dummy $ac_prog; ac_word=$2 |
| 6114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6115 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6116 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 6117 | $as_echo_n "(cached) " >&6 |
| 6118 | else |
| 6119 | if test -n "$ac_ct_AR"; then |
| 6120 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6121 | else |
| 6122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6123 | for as_dir in $PATH |
| 6124 | do |
| 6125 | IFS=$as_save_IFS |
| 6126 | test -z "$as_dir" && as_dir=. |
| 6127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6129 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 6130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6131 | break 2 |
| 6132 | fi |
| 6133 | done |
| 6134 | done |
| 6135 | IFS=$as_save_IFS |
| 6136 | |
| 6137 | fi |
| 6138 | fi |
| 6139 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6140 | if test -n "$ac_ct_AR"; then |
| 6141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6142 | $as_echo "$ac_ct_AR" >&6; } |
| 6143 | else |
| 6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6145 | $as_echo "no" >&6; } |
| 6146 | fi |
| 6147 | |
| 6148 | |
| 6149 | test -n "$ac_ct_AR" && break |
| 6150 | done |
| 6151 | |
| 6152 | if test "x$ac_ct_AR" = x; then |
| 6153 | AR="false" |
| 6154 | else |
| 6155 | case $cross_compiling:$ac_tool_warned in |
| 6156 | yes:) |
| 6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6158 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6159 | ac_tool_warned=yes ;; |
| 6160 | esac |
| 6161 | AR=$ac_ct_AR |
| 6162 | fi |
| 6163 | fi |
| 6164 | |
| 6165 | : ${AR=ar} |
| 6166 | : ${AR_FLAGS=cru} |
| 6167 | |
| 6168 | |
| 6169 | |
| 6170 | |
| 6171 | |
| 6172 | |
| 6173 | |
| 6174 | |
| 6175 | |
| 6176 | |
| 6177 | |
| 6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 6179 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 6180 | if ${lt_cv_ar_at_file+:} false; then : |
| 6181 | $as_echo_n "(cached) " >&6 |
| 6182 | else |
| 6183 | lt_cv_ar_at_file=no |
| 6184 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6185 | /* end confdefs.h. */ |
| 6186 | |
| 6187 | int |
| 6188 | main () |
| 6189 | { |
| 6190 | |
| 6191 | ; |
| 6192 | return 0; |
| 6193 | } |
| 6194 | _ACEOF |
| 6195 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6196 | echo conftest.$ac_objext > conftest.lst |
| 6197 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 6198 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6199 | (eval $lt_ar_try) 2>&5 |
| 6200 | ac_status=$? |
| 6201 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6202 | test $ac_status = 0; } |
| 6203 | if test "$ac_status" -eq 0; then |
| 6204 | # Ensure the archiver fails upon bogus file names. |
| 6205 | rm -f conftest.$ac_objext libconftest.a |
| 6206 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6207 | (eval $lt_ar_try) 2>&5 |
| 6208 | ac_status=$? |
| 6209 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6210 | test $ac_status = 0; } |
| 6211 | if test "$ac_status" -ne 0; then |
| 6212 | lt_cv_ar_at_file=@ |
| 6213 | fi |
| 6214 | fi |
| 6215 | rm -f conftest.* libconftest.a |
| 6216 | |
| 6217 | fi |
| 6218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6219 | |
| 6220 | fi |
| 6221 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 6222 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 6223 | |
| 6224 | if test "x$lt_cv_ar_at_file" = xno; then |
| 6225 | archiver_list_spec= |
| 6226 | else |
| 6227 | archiver_list_spec=$lt_cv_ar_at_file |
| 6228 | fi |
| 6229 | |
| 6230 | |
| 6231 | |
| 6232 | |
| 6233 | |
| 6234 | |
| 6235 | |
| 6236 | if test -n "$ac_tool_prefix"; then |
| 6237 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6238 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6240 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6241 | if ${ac_cv_prog_STRIP+:} false; then : |
| 6242 | $as_echo_n "(cached) " >&6 |
| 6243 | else |
| 6244 | if test -n "$STRIP"; then |
| 6245 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6246 | else |
| 6247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6248 | for as_dir in $PATH |
| 6249 | do |
| 6250 | IFS=$as_save_IFS |
| 6251 | test -z "$as_dir" && as_dir=. |
| 6252 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6254 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6256 | break 2 |
| 6257 | fi |
| 6258 | done |
| 6259 | done |
| 6260 | IFS=$as_save_IFS |
| 6261 | |
| 6262 | fi |
| 6263 | fi |
| 6264 | STRIP=$ac_cv_prog_STRIP |
| 6265 | if test -n "$STRIP"; then |
| 6266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 6267 | $as_echo "$STRIP" >&6; } |
| 6268 | else |
| 6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6270 | $as_echo "no" >&6; } |
| 6271 | fi |
| 6272 | |
| 6273 | |
| 6274 | fi |
| 6275 | if test -z "$ac_cv_prog_STRIP"; then |
| 6276 | ac_ct_STRIP=$STRIP |
| 6277 | # Extract the first word of "strip", so it can be a program name with args. |
| 6278 | set dummy strip; ac_word=$2 |
| 6279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6280 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6281 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 6282 | $as_echo_n "(cached) " >&6 |
| 6283 | else |
| 6284 | if test -n "$ac_ct_STRIP"; then |
| 6285 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6286 | else |
| 6287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6288 | for as_dir in $PATH |
| 6289 | do |
| 6290 | IFS=$as_save_IFS |
| 6291 | test -z "$as_dir" && as_dir=. |
| 6292 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6294 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6296 | break 2 |
| 6297 | fi |
| 6298 | done |
| 6299 | done |
| 6300 | IFS=$as_save_IFS |
| 6301 | |
| 6302 | fi |
| 6303 | fi |
| 6304 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6305 | if test -n "$ac_ct_STRIP"; then |
| 6306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 6307 | $as_echo "$ac_ct_STRIP" >&6; } |
| 6308 | else |
| 6309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6310 | $as_echo "no" >&6; } |
| 6311 | fi |
| 6312 | |
| 6313 | if test "x$ac_ct_STRIP" = x; then |
| 6314 | STRIP=":" |
| 6315 | else |
| 6316 | case $cross_compiling:$ac_tool_warned in |
| 6317 | yes:) |
| 6318 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6319 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6320 | ac_tool_warned=yes ;; |
| 6321 | esac |
| 6322 | STRIP=$ac_ct_STRIP |
| 6323 | fi |
| 6324 | else |
| 6325 | STRIP="$ac_cv_prog_STRIP" |
| 6326 | fi |
| 6327 | |
| 6328 | test -z "$STRIP" && STRIP=: |
| 6329 | |
| 6330 | |
| 6331 | |
| 6332 | |
| 6333 | |
| 6334 | |
| 6335 | if test -n "$ac_tool_prefix"; then |
| 6336 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6337 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6339 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6340 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 6341 | $as_echo_n "(cached) " >&6 |
| 6342 | else |
| 6343 | if test -n "$RANLIB"; then |
| 6344 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6345 | else |
| 6346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6347 | for as_dir in $PATH |
| 6348 | do |
| 6349 | IFS=$as_save_IFS |
| 6350 | test -z "$as_dir" && as_dir=. |
| 6351 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6352 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6353 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6354 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6355 | break 2 |
| 6356 | fi |
| 6357 | done |
| 6358 | done |
| 6359 | IFS=$as_save_IFS |
| 6360 | |
| 6361 | fi |
| 6362 | fi |
| 6363 | RANLIB=$ac_cv_prog_RANLIB |
| 6364 | if test -n "$RANLIB"; then |
| 6365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6366 | $as_echo "$RANLIB" >&6; } |
| 6367 | else |
| 6368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6369 | $as_echo "no" >&6; } |
| 6370 | fi |
| 6371 | |
| 6372 | |
| 6373 | fi |
| 6374 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6375 | ac_ct_RANLIB=$RANLIB |
| 6376 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6377 | set dummy ranlib; ac_word=$2 |
| 6378 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6379 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6380 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 6381 | $as_echo_n "(cached) " >&6 |
| 6382 | else |
| 6383 | if test -n "$ac_ct_RANLIB"; then |
| 6384 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6385 | else |
| 6386 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6387 | for as_dir in $PATH |
| 6388 | do |
| 6389 | IFS=$as_save_IFS |
| 6390 | test -z "$as_dir" && as_dir=. |
| 6391 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6392 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6393 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6394 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6395 | break 2 |
| 6396 | fi |
| 6397 | done |
| 6398 | done |
| 6399 | IFS=$as_save_IFS |
| 6400 | |
| 6401 | fi |
| 6402 | fi |
| 6403 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6404 | if test -n "$ac_ct_RANLIB"; then |
| 6405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6406 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6407 | else |
| 6408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6409 | $as_echo "no" >&6; } |
| 6410 | fi |
| 6411 | |
| 6412 | if test "x$ac_ct_RANLIB" = x; then |
| 6413 | RANLIB=":" |
| 6414 | else |
| 6415 | case $cross_compiling:$ac_tool_warned in |
| 6416 | yes:) |
| 6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6418 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6419 | ac_tool_warned=yes ;; |
| 6420 | esac |
| 6421 | RANLIB=$ac_ct_RANLIB |
| 6422 | fi |
| 6423 | else |
| 6424 | RANLIB="$ac_cv_prog_RANLIB" |
| 6425 | fi |
| 6426 | |
| 6427 | test -z "$RANLIB" && RANLIB=: |
| 6428 | |
| 6429 | |
| 6430 | |
| 6431 | |
| 6432 | |
| 6433 | |
| 6434 | # Determine commands to create old-style static archives. |
| 6435 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6436 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6437 | old_postuninstall_cmds= |
| 6438 | |
| 6439 | if test -n "$RANLIB"; then |
| 6440 | case $host_os in |
| 6441 | openbsd*) |
| 6442 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 6443 | ;; |
| 6444 | *) |
| 6445 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 6446 | ;; |
| 6447 | esac |
| 6448 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 6449 | fi |
| 6450 | |
| 6451 | case $host_os in |
| 6452 | darwin*) |
| 6453 | lock_old_archive_extraction=yes ;; |
| 6454 | *) |
| 6455 | lock_old_archive_extraction=no ;; |
| 6456 | esac |
| 6457 | |
| 6458 | |
| 6459 | |
| 6460 | |
| 6461 | |
| 6462 | |
| 6463 | |
| 6464 | |
| 6465 | |
| 6466 | |
| 6467 | |
| 6468 | |
| 6469 | |
| 6470 | |
| 6471 | |
| 6472 | |
| 6473 | |
| 6474 | |
| 6475 | |
| 6476 | |
| 6477 | |
| 6478 | |
| 6479 | |
| 6480 | |
| 6481 | |
| 6482 | |
| 6483 | |
| 6484 | |
| 6485 | |
| 6486 | |
| 6487 | |
| 6488 | |
| 6489 | |
| 6490 | |
| 6491 | |
| 6492 | |
| 6493 | |
| 6494 | |
| 6495 | |
| 6496 | # If no C compiler was specified, use CC. |
| 6497 | LTCC=${LTCC-"$CC"} |
| 6498 | |
| 6499 | # If no C compiler flags were specified, use CFLAGS. |
| 6500 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6501 | |
| 6502 | # Allow CC to be a program name with arguments. |
| 6503 | compiler=$CC |
| 6504 | |
| 6505 | |
| 6506 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6508 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6509 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 6510 | $as_echo_n "(cached) " >&6 |
| 6511 | else |
| 6512 | |
| 6513 | # These are sane defaults that work on at least a few old systems. |
| 6514 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6515 | |
| 6516 | # Character class describing NM global symbol codes. |
| 6517 | symcode='[BCDEGRST]' |
| 6518 | |
| 6519 | # Regexp to match symbols that can be accessed directly from C. |
| 6520 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6521 | |
| 6522 | # Define system-specific variables. |
| 6523 | case $host_os in |
| 6524 | aix*) |
| 6525 | symcode='[BCDT]' |
| 6526 | ;; |
| 6527 | cygwin* | mingw* | pw32* | cegcc*) |
| 6528 | symcode='[ABCDGISTW]' |
| 6529 | ;; |
| 6530 | hpux*) |
| 6531 | if test "$host_cpu" = ia64; then |
| 6532 | symcode='[ABCDEGRST]' |
| 6533 | fi |
| 6534 | ;; |
| 6535 | irix* | nonstopux*) |
| 6536 | symcode='[BCDEGRST]' |
| 6537 | ;; |
| 6538 | osf*) |
| 6539 | symcode='[BCDEGQRST]' |
| 6540 | ;; |
| 6541 | solaris*) |
| 6542 | symcode='[BDRT]' |
| 6543 | ;; |
| 6544 | sco3.2v5*) |
| 6545 | symcode='[DT]' |
| 6546 | ;; |
| 6547 | sysv4.2uw2*) |
| 6548 | symcode='[DT]' |
| 6549 | ;; |
| 6550 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6551 | symcode='[ABDT]' |
| 6552 | ;; |
| 6553 | sysv4) |
| 6554 | symcode='[DFNSTU]' |
| 6555 | ;; |
| 6556 | esac |
| 6557 | |
| 6558 | # If we're using GNU nm, then use its standard symbol codes. |
| 6559 | case `$NM -V 2>&1` in |
| 6560 | *GNU* | *'with BFD'*) |
| 6561 | symcode='[ABCDGIRSTW]' ;; |
| 6562 | esac |
| 6563 | |
| 6564 | # Transform an extracted symbol line into a proper C declaration. |
| 6565 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6566 | # so use this general approach. |
| 6567 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6568 | |
| 6569 | # Transform an extracted symbol line into symbol name and symbol address |
| 6570 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6571 | 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'" |
| 6572 | |
| 6573 | # Handle CRLF in mingw tool chain |
| 6574 | opt_cr= |
| 6575 | case $build_os in |
| 6576 | mingw*) |
| 6577 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6578 | ;; |
| 6579 | esac |
| 6580 | |
| 6581 | # Try without a prefix underscore, then with it. |
| 6582 | for ac_symprfx in "" "_"; do |
| 6583 | |
| 6584 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6585 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6586 | |
| 6587 | # Write the raw and C identifiers. |
| 6588 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6589 | # Fake it for dumpbin and say T for any non-static function |
| 6590 | # and D for any global variable. |
| 6591 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6592 | # which start with @ or ?. |
| 6593 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6594 | " {last_section=section; section=\$ 3};"\ |
| 6595 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 6596 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6597 | " \$ 0!~/External *\|/{next};"\ |
| 6598 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6599 | " {if(hide[section]) next};"\ |
| 6600 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6601 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6602 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6603 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6604 | " ' prfx=^$ac_symprfx" |
| 6605 | else |
| 6606 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6607 | fi |
| 6608 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 6609 | |
| 6610 | # Check to see that the pipe works correctly. |
| 6611 | pipe_works=no |
| 6612 | |
| 6613 | rm -f conftest* |
| 6614 | cat > conftest.$ac_ext <<_LT_EOF |
| 6615 | #ifdef __cplusplus |
| 6616 | extern "C" { |
| 6617 | #endif |
| 6618 | char nm_test_var; |
| 6619 | void nm_test_func(void); |
| 6620 | void nm_test_func(void){} |
| 6621 | #ifdef __cplusplus |
| 6622 | } |
| 6623 | #endif |
| 6624 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6625 | _LT_EOF |
| 6626 | |
| 6627 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6628 | (eval $ac_compile) 2>&5 |
| 6629 | ac_status=$? |
| 6630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6631 | test $ac_status = 0; }; then |
| 6632 | # Now try to grab the symbols. |
| 6633 | nlist=conftest.nm |
| 6634 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6635 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 6636 | ac_status=$? |
| 6637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6638 | test $ac_status = 0; } && test -s "$nlist"; then |
| 6639 | # Try sorting and uniquifying the output. |
| 6640 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6641 | mv -f "$nlist"T "$nlist" |
| 6642 | else |
| 6643 | rm -f "$nlist"T |
| 6644 | fi |
| 6645 | |
| 6646 | # Make sure that we snagged all the symbols we need. |
| 6647 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6648 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6649 | cat <<_LT_EOF > conftest.$ac_ext |
| 6650 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 6651 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 6652 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 6653 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6654 | # define LT_DLSYM_CONST |
| 6655 | #elif defined(__osf__) |
| 6656 | /* This system does not cope well with relocations in const data. */ |
| 6657 | # define LT_DLSYM_CONST |
| 6658 | #else |
| 6659 | # define LT_DLSYM_CONST const |
| 6660 | #endif |
| 6661 | |
| 6662 | #ifdef __cplusplus |
| 6663 | extern "C" { |
| 6664 | #endif |
| 6665 | |
| 6666 | _LT_EOF |
| 6667 | # Now generate the symbol file. |
| 6668 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6669 | |
| 6670 | cat <<_LT_EOF >> conftest.$ac_ext |
| 6671 | |
| 6672 | /* The mapping between symbol names and symbols. */ |
| 6673 | LT_DLSYM_CONST struct { |
| 6674 | const char *name; |
| 6675 | void *address; |
| 6676 | } |
| 6677 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6678 | { |
| 6679 | { "@PROGRAM@", (void *) 0 }, |
| 6680 | _LT_EOF |
| 6681 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6682 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6683 | {0, (void *) 0} |
| 6684 | }; |
| 6685 | |
| 6686 | /* This works around a problem in FreeBSD linker */ |
| 6687 | #ifdef FREEBSD_WORKAROUND |
| 6688 | static const void *lt_preloaded_setup() { |
| 6689 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6690 | } |
| 6691 | #endif |
| 6692 | |
| 6693 | #ifdef __cplusplus |
| 6694 | } |
| 6695 | #endif |
| 6696 | _LT_EOF |
| 6697 | # Now try linking the two files. |
| 6698 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6699 | lt_globsym_save_LIBS=$LIBS |
| 6700 | lt_globsym_save_CFLAGS=$CFLAGS |
| 6701 | LIBS="conftstm.$ac_objext" |
| 6702 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6703 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6704 | (eval $ac_link) 2>&5 |
| 6705 | ac_status=$? |
| 6706 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6707 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 6708 | pipe_works=yes |
| 6709 | fi |
| 6710 | LIBS=$lt_globsym_save_LIBS |
| 6711 | CFLAGS=$lt_globsym_save_CFLAGS |
| 6712 | else |
| 6713 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6714 | fi |
| 6715 | else |
| 6716 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6717 | fi |
| 6718 | else |
| 6719 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6720 | fi |
| 6721 | else |
| 6722 | echo "$progname: failed program was:" >&5 |
| 6723 | cat conftest.$ac_ext >&5 |
| 6724 | fi |
| 6725 | rm -rf conftest* conftst* |
| 6726 | |
| 6727 | # Do not use the global_symbol_pipe unless it works. |
| 6728 | if test "$pipe_works" = yes; then |
| 6729 | break |
| 6730 | else |
| 6731 | lt_cv_sys_global_symbol_pipe= |
| 6732 | fi |
| 6733 | done |
| 6734 | |
| 6735 | fi |
| 6736 | |
| 6737 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6738 | lt_cv_sys_global_symbol_to_cdecl= |
| 6739 | fi |
| 6740 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6742 | $as_echo "failed" >&6; } |
| 6743 | else |
| 6744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6745 | $as_echo "ok" >&6; } |
| 6746 | fi |
| 6747 | |
| 6748 | # Response file support. |
| 6749 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6750 | nm_file_list_spec='@' |
| 6751 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6752 | nm_file_list_spec='@' |
| 6753 | fi |
| 6754 | |
| 6755 | |
| 6756 | |
| 6757 | |
| 6758 | |
| 6759 | |
| 6760 | |
| 6761 | |
| 6762 | |
| 6763 | |
| 6764 | |
| 6765 | |
| 6766 | |
| 6767 | |
| 6768 | |
| 6769 | |
| 6770 | |
| 6771 | |
| 6772 | |
| 6773 | |
| 6774 | |
| 6775 | |
| 6776 | |
| 6777 | |
| 6778 | |
| 6779 | |
| 6780 | |
| 6781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6782 | $as_echo_n "checking for sysroot... " >&6; } |
| 6783 | |
| 6784 | # Check whether --with-sysroot was given. |
| 6785 | if test "${with_sysroot+set}" = set; then : |
| 6786 | withval=$with_sysroot; |
| 6787 | else |
| 6788 | with_sysroot=no |
| 6789 | fi |
| 6790 | |
| 6791 | |
| 6792 | lt_sysroot= |
| 6793 | case ${with_sysroot} in #( |
| 6794 | yes) |
| 6795 | if test "$GCC" = yes; then |
| 6796 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6797 | fi |
| 6798 | ;; #( |
| 6799 | /*) |
| 6800 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6801 | ;; #( |
| 6802 | no|'') |
| 6803 | ;; #( |
| 6804 | *) |
| 6805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 6806 | $as_echo "${with_sysroot}" >&6; } |
| 6807 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6808 | ;; |
| 6809 | esac |
| 6810 | |
| 6811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6812 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 6813 | |
| 6814 | |
| 6815 | |
| 6816 | |
| 6817 | |
| 6818 | # Check whether --enable-libtool-lock was given. |
| 6819 | if test "${enable_libtool_lock+set}" = set; then : |
| 6820 | enableval=$enable_libtool_lock; |
| 6821 | fi |
| 6822 | |
| 6823 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6824 | |
| 6825 | # Some flags need to be propagated to the compiler or linker for good |
| 6826 | # libtool support. |
| 6827 | case $host in |
| 6828 | ia64-*-hpux*) |
| 6829 | # Find out which ABI we are using. |
| 6830 | echo 'int i;' > conftest.$ac_ext |
| 6831 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6832 | (eval $ac_compile) 2>&5 |
| 6833 | ac_status=$? |
| 6834 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6835 | test $ac_status = 0; }; then |
| 6836 | case `/usr/bin/file conftest.$ac_objext` in |
| 6837 | *ELF-32*) |
| 6838 | HPUX_IA64_MODE="32" |
| 6839 | ;; |
| 6840 | *ELF-64*) |
| 6841 | HPUX_IA64_MODE="64" |
| 6842 | ;; |
| 6843 | esac |
| 6844 | fi |
| 6845 | rm -rf conftest* |
| 6846 | ;; |
| 6847 | *-*-irix6*) |
| 6848 | # Find out which ABI we are using. |
| 6849 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6850 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6851 | (eval $ac_compile) 2>&5 |
| 6852 | ac_status=$? |
| 6853 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6854 | test $ac_status = 0; }; then |
| 6855 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6856 | case `/usr/bin/file conftest.$ac_objext` in |
| 6857 | *32-bit*) |
| 6858 | LD="${LD-ld} -melf32bsmip" |
| 6859 | ;; |
| 6860 | *N32*) |
| 6861 | LD="${LD-ld} -melf32bmipn32" |
| 6862 | ;; |
| 6863 | *64-bit*) |
| 6864 | LD="${LD-ld} -melf64bmip" |
| 6865 | ;; |
| 6866 | esac |
| 6867 | else |
| 6868 | case `/usr/bin/file conftest.$ac_objext` in |
| 6869 | *32-bit*) |
| 6870 | LD="${LD-ld} -32" |
| 6871 | ;; |
| 6872 | *N32*) |
| 6873 | LD="${LD-ld} -n32" |
| 6874 | ;; |
| 6875 | *64-bit*) |
| 6876 | LD="${LD-ld} -64" |
| 6877 | ;; |
| 6878 | esac |
| 6879 | fi |
| 6880 | fi |
| 6881 | rm -rf conftest* |
| 6882 | ;; |
| 6883 | |
| 6884 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6885 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6886 | # Find out which ABI we are using. |
| 6887 | echo 'int i;' > conftest.$ac_ext |
| 6888 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6889 | (eval $ac_compile) 2>&5 |
| 6890 | ac_status=$? |
| 6891 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6892 | test $ac_status = 0; }; then |
| 6893 | case `/usr/bin/file conftest.o` in |
| 6894 | *32-bit*) |
| 6895 | case $host in |
| 6896 | x86_64-*kfreebsd*-gnu) |
| 6897 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6898 | ;; |
| 6899 | x86_64-*linux*) |
| 6900 | LD="${LD-ld} -m elf_i386" |
| 6901 | ;; |
| 6902 | ppc64-*linux*|powerpc64-*linux*) |
| 6903 | LD="${LD-ld} -m elf32ppclinux" |
| 6904 | ;; |
| 6905 | s390x-*linux*) |
| 6906 | LD="${LD-ld} -m elf_s390" |
| 6907 | ;; |
| 6908 | sparc64-*linux*) |
| 6909 | LD="${LD-ld} -m elf32_sparc" |
| 6910 | ;; |
| 6911 | esac |
| 6912 | ;; |
| 6913 | *64-bit*) |
| 6914 | case $host in |
| 6915 | x86_64-*kfreebsd*-gnu) |
| 6916 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6917 | ;; |
| 6918 | x86_64-*linux*) |
| 6919 | LD="${LD-ld} -m elf_x86_64" |
| 6920 | ;; |
| 6921 | ppc*-*linux*|powerpc*-*linux*) |
| 6922 | LD="${LD-ld} -m elf64ppc" |
| 6923 | ;; |
| 6924 | s390*-*linux*|s390*-*tpf*) |
| 6925 | LD="${LD-ld} -m elf64_s390" |
| 6926 | ;; |
| 6927 | sparc*-*linux*) |
| 6928 | LD="${LD-ld} -m elf64_sparc" |
| 6929 | ;; |
| 6930 | esac |
| 6931 | ;; |
| 6932 | esac |
| 6933 | fi |
| 6934 | rm -rf conftest* |
| 6935 | ;; |
| 6936 | |
| 6937 | *-*-sco3.2v5*) |
| 6938 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6939 | SAVE_CFLAGS="$CFLAGS" |
| 6940 | CFLAGS="$CFLAGS -belf" |
| 6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6942 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6943 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 6944 | $as_echo_n "(cached) " >&6 |
| 6945 | else |
| 6946 | ac_ext=c |
| 6947 | ac_cpp='$CPP $CPPFLAGS' |
| 6948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6951 | |
| 6952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6953 | /* end confdefs.h. */ |
| 6954 | |
| 6955 | int |
| 6956 | main () |
| 6957 | { |
| 6958 | |
| 6959 | ; |
| 6960 | return 0; |
| 6961 | } |
| 6962 | _ACEOF |
| 6963 | if ac_fn_c_try_link "$LINENO"; then : |
| 6964 | lt_cv_cc_needs_belf=yes |
| 6965 | else |
| 6966 | lt_cv_cc_needs_belf=no |
| 6967 | fi |
| 6968 | rm -f core conftest.err conftest.$ac_objext \ |
| 6969 | conftest$ac_exeext conftest.$ac_ext |
| 6970 | ac_ext=c |
| 6971 | ac_cpp='$CPP $CPPFLAGS' |
| 6972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6975 | |
| 6976 | fi |
| 6977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6978 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6979 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6980 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6981 | CFLAGS="$SAVE_CFLAGS" |
| 6982 | fi |
| 6983 | ;; |
| 6984 | *-*solaris*) |
| 6985 | # Find out which ABI we are using. |
| 6986 | echo 'int i;' > conftest.$ac_ext |
| 6987 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6988 | (eval $ac_compile) 2>&5 |
| 6989 | ac_status=$? |
| 6990 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6991 | test $ac_status = 0; }; then |
| 6992 | case `/usr/bin/file conftest.o` in |
| 6993 | *64-bit*) |
| 6994 | case $lt_cv_prog_gnu_ld in |
| 6995 | yes*) |
| 6996 | case $host in |
| 6997 | i?86-*-solaris*) |
| 6998 | LD="${LD-ld} -m elf_x86_64" |
| 6999 | ;; |
| 7000 | sparc*-*-solaris*) |
| 7001 | LD="${LD-ld} -m elf64_sparc" |
| 7002 | ;; |
| 7003 | esac |
| 7004 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 7005 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 7006 | LD="${LD-ld}_sol2" |
| 7007 | fi |
| 7008 | ;; |
| 7009 | *) |
| 7010 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 7011 | LD="${LD-ld} -64" |
| 7012 | fi |
| 7013 | ;; |
| 7014 | esac |
| 7015 | ;; |
| 7016 | esac |
| 7017 | fi |
| 7018 | rm -rf conftest* |
| 7019 | ;; |
| 7020 | esac |
| 7021 | |
| 7022 | need_locks="$enable_libtool_lock" |
| 7023 | |
| 7024 | if test -n "$ac_tool_prefix"; then |
| 7025 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 7026 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 7027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7028 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7029 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 7030 | $as_echo_n "(cached) " >&6 |
| 7031 | else |
| 7032 | if test -n "$MANIFEST_TOOL"; then |
| 7033 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 7034 | else |
| 7035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7036 | for as_dir in $PATH |
| 7037 | do |
| 7038 | IFS=$as_save_IFS |
| 7039 | test -z "$as_dir" && as_dir=. |
| 7040 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7041 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7042 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 7043 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7044 | break 2 |
| 7045 | fi |
| 7046 | done |
| 7047 | done |
| 7048 | IFS=$as_save_IFS |
| 7049 | |
| 7050 | fi |
| 7051 | fi |
| 7052 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 7053 | if test -n "$MANIFEST_TOOL"; then |
| 7054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 7055 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 7056 | else |
| 7057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7058 | $as_echo "no" >&6; } |
| 7059 | fi |
| 7060 | |
| 7061 | |
| 7062 | fi |
| 7063 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 7064 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 7065 | # Extract the first word of "mt", so it can be a program name with args. |
| 7066 | set dummy mt; ac_word=$2 |
| 7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7068 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7069 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 7070 | $as_echo_n "(cached) " >&6 |
| 7071 | else |
| 7072 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 7073 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 7074 | else |
| 7075 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7076 | for as_dir in $PATH |
| 7077 | do |
| 7078 | IFS=$as_save_IFS |
| 7079 | test -z "$as_dir" && as_dir=. |
| 7080 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7081 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7082 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 7083 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7084 | break 2 |
| 7085 | fi |
| 7086 | done |
| 7087 | done |
| 7088 | IFS=$as_save_IFS |
| 7089 | |
| 7090 | fi |
| 7091 | fi |
| 7092 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 7093 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 7094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 7095 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 7096 | else |
| 7097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7098 | $as_echo "no" >&6; } |
| 7099 | fi |
| 7100 | |
| 7101 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 7102 | MANIFEST_TOOL=":" |
| 7103 | else |
| 7104 | case $cross_compiling:$ac_tool_warned in |
| 7105 | yes:) |
| 7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7107 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7108 | ac_tool_warned=yes ;; |
| 7109 | esac |
| 7110 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 7111 | fi |
| 7112 | else |
| 7113 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 7114 | fi |
| 7115 | |
| 7116 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 7117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 7118 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 7119 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 7120 | $as_echo_n "(cached) " >&6 |
| 7121 | else |
| 7122 | lt_cv_path_mainfest_tool=no |
| 7123 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 7124 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 7125 | cat conftest.err >&5 |
| 7126 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 7127 | lt_cv_path_mainfest_tool=yes |
| 7128 | fi |
| 7129 | rm -f conftest* |
| 7130 | fi |
| 7131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 7132 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 7133 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 7134 | MANIFEST_TOOL=: |
| 7135 | fi |
| 7136 | |
| 7137 | |
| 7138 | |
| 7139 | |
| 7140 | |
| 7141 | |
| 7142 | case $host_os in |
| 7143 | rhapsody* | darwin*) |
| 7144 | if test -n "$ac_tool_prefix"; then |
| 7145 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 7146 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 7147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7148 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7149 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 7150 | $as_echo_n "(cached) " >&6 |
| 7151 | else |
| 7152 | if test -n "$DSYMUTIL"; then |
| 7153 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 7154 | else |
| 7155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7156 | for as_dir in $PATH |
| 7157 | do |
| 7158 | IFS=$as_save_IFS |
| 7159 | test -z "$as_dir" && as_dir=. |
| 7160 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7161 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7162 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 7163 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7164 | break 2 |
| 7165 | fi |
| 7166 | done |
| 7167 | done |
| 7168 | IFS=$as_save_IFS |
| 7169 | |
| 7170 | fi |
| 7171 | fi |
| 7172 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 7173 | if test -n "$DSYMUTIL"; then |
| 7174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 7175 | $as_echo "$DSYMUTIL" >&6; } |
| 7176 | else |
| 7177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7178 | $as_echo "no" >&6; } |
| 7179 | fi |
| 7180 | |
| 7181 | |
| 7182 | fi |
| 7183 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 7184 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 7185 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 7186 | set dummy dsymutil; ac_word=$2 |
| 7187 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7188 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7189 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 7190 | $as_echo_n "(cached) " >&6 |
| 7191 | else |
| 7192 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7193 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 7194 | else |
| 7195 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7196 | for as_dir in $PATH |
| 7197 | do |
| 7198 | IFS=$as_save_IFS |
| 7199 | test -z "$as_dir" && as_dir=. |
| 7200 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7201 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7202 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 7203 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7204 | break 2 |
| 7205 | fi |
| 7206 | done |
| 7207 | done |
| 7208 | IFS=$as_save_IFS |
| 7209 | |
| 7210 | fi |
| 7211 | fi |
| 7212 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 7213 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 7215 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 7216 | else |
| 7217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7218 | $as_echo "no" >&6; } |
| 7219 | fi |
| 7220 | |
| 7221 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 7222 | DSYMUTIL=":" |
| 7223 | else |
| 7224 | case $cross_compiling:$ac_tool_warned in |
| 7225 | yes:) |
| 7226 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7227 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7228 | ac_tool_warned=yes ;; |
| 7229 | esac |
| 7230 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 7231 | fi |
| 7232 | else |
| 7233 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 7234 | fi |
| 7235 | |
| 7236 | if test -n "$ac_tool_prefix"; then |
| 7237 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 7238 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7240 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7241 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 7242 | $as_echo_n "(cached) " >&6 |
| 7243 | else |
| 7244 | if test -n "$NMEDIT"; then |
| 7245 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 7246 | else |
| 7247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7248 | for as_dir in $PATH |
| 7249 | do |
| 7250 | IFS=$as_save_IFS |
| 7251 | test -z "$as_dir" && as_dir=. |
| 7252 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7253 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7254 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 7255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7256 | break 2 |
| 7257 | fi |
| 7258 | done |
| 7259 | done |
| 7260 | IFS=$as_save_IFS |
| 7261 | |
| 7262 | fi |
| 7263 | fi |
| 7264 | NMEDIT=$ac_cv_prog_NMEDIT |
| 7265 | if test -n "$NMEDIT"; then |
| 7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 7267 | $as_echo "$NMEDIT" >&6; } |
| 7268 | else |
| 7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7270 | $as_echo "no" >&6; } |
| 7271 | fi |
| 7272 | |
| 7273 | |
| 7274 | fi |
| 7275 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 7276 | ac_ct_NMEDIT=$NMEDIT |
| 7277 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 7278 | set dummy nmedit; ac_word=$2 |
| 7279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7280 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7281 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 7282 | $as_echo_n "(cached) " >&6 |
| 7283 | else |
| 7284 | if test -n "$ac_ct_NMEDIT"; then |
| 7285 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 7286 | else |
| 7287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7288 | for as_dir in $PATH |
| 7289 | do |
| 7290 | IFS=$as_save_IFS |
| 7291 | test -z "$as_dir" && as_dir=. |
| 7292 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7293 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7294 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 7295 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7296 | break 2 |
| 7297 | fi |
| 7298 | done |
| 7299 | done |
| 7300 | IFS=$as_save_IFS |
| 7301 | |
| 7302 | fi |
| 7303 | fi |
| 7304 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 7305 | if test -n "$ac_ct_NMEDIT"; then |
| 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 7307 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 7308 | else |
| 7309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7310 | $as_echo "no" >&6; } |
| 7311 | fi |
| 7312 | |
| 7313 | if test "x$ac_ct_NMEDIT" = x; then |
| 7314 | NMEDIT=":" |
| 7315 | else |
| 7316 | case $cross_compiling:$ac_tool_warned in |
| 7317 | yes:) |
| 7318 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7319 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7320 | ac_tool_warned=yes ;; |
| 7321 | esac |
| 7322 | NMEDIT=$ac_ct_NMEDIT |
| 7323 | fi |
| 7324 | else |
| 7325 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 7326 | fi |
| 7327 | |
| 7328 | if test -n "$ac_tool_prefix"; then |
| 7329 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 7330 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 7331 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7332 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7333 | if ${ac_cv_prog_LIPO+:} false; then : |
| 7334 | $as_echo_n "(cached) " >&6 |
| 7335 | else |
| 7336 | if test -n "$LIPO"; then |
| 7337 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7338 | else |
| 7339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7340 | for as_dir in $PATH |
| 7341 | do |
| 7342 | IFS=$as_save_IFS |
| 7343 | test -z "$as_dir" && as_dir=. |
| 7344 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7345 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7346 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 7347 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7348 | break 2 |
| 7349 | fi |
| 7350 | done |
| 7351 | done |
| 7352 | IFS=$as_save_IFS |
| 7353 | |
| 7354 | fi |
| 7355 | fi |
| 7356 | LIPO=$ac_cv_prog_LIPO |
| 7357 | if test -n "$LIPO"; then |
| 7358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 7359 | $as_echo "$LIPO" >&6; } |
| 7360 | else |
| 7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7362 | $as_echo "no" >&6; } |
| 7363 | fi |
| 7364 | |
| 7365 | |
| 7366 | fi |
| 7367 | if test -z "$ac_cv_prog_LIPO"; then |
| 7368 | ac_ct_LIPO=$LIPO |
| 7369 | # Extract the first word of "lipo", so it can be a program name with args. |
| 7370 | set dummy lipo; ac_word=$2 |
| 7371 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7372 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7373 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 7374 | $as_echo_n "(cached) " >&6 |
| 7375 | else |
| 7376 | if test -n "$ac_ct_LIPO"; then |
| 7377 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7378 | else |
| 7379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7380 | for as_dir in $PATH |
| 7381 | do |
| 7382 | IFS=$as_save_IFS |
| 7383 | test -z "$as_dir" && as_dir=. |
| 7384 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7385 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7386 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 7387 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7388 | break 2 |
| 7389 | fi |
| 7390 | done |
| 7391 | done |
| 7392 | IFS=$as_save_IFS |
| 7393 | |
| 7394 | fi |
| 7395 | fi |
| 7396 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7397 | if test -n "$ac_ct_LIPO"; then |
| 7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 7399 | $as_echo "$ac_ct_LIPO" >&6; } |
| 7400 | else |
| 7401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7402 | $as_echo "no" >&6; } |
| 7403 | fi |
| 7404 | |
| 7405 | if test "x$ac_ct_LIPO" = x; then |
| 7406 | LIPO=":" |
| 7407 | else |
| 7408 | case $cross_compiling:$ac_tool_warned in |
| 7409 | yes:) |
| 7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7411 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7412 | ac_tool_warned=yes ;; |
| 7413 | esac |
| 7414 | LIPO=$ac_ct_LIPO |
| 7415 | fi |
| 7416 | else |
| 7417 | LIPO="$ac_cv_prog_LIPO" |
| 7418 | fi |
| 7419 | |
| 7420 | if test -n "$ac_tool_prefix"; then |
| 7421 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 7422 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 7423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7424 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7425 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 7426 | $as_echo_n "(cached) " >&6 |
| 7427 | else |
| 7428 | if test -n "$OTOOL"; then |
| 7429 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7430 | else |
| 7431 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7432 | for as_dir in $PATH |
| 7433 | do |
| 7434 | IFS=$as_save_IFS |
| 7435 | test -z "$as_dir" && as_dir=. |
| 7436 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7437 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7438 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 7439 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7440 | break 2 |
| 7441 | fi |
| 7442 | done |
| 7443 | done |
| 7444 | IFS=$as_save_IFS |
| 7445 | |
| 7446 | fi |
| 7447 | fi |
| 7448 | OTOOL=$ac_cv_prog_OTOOL |
| 7449 | if test -n "$OTOOL"; then |
| 7450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 7451 | $as_echo "$OTOOL" >&6; } |
| 7452 | else |
| 7453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7454 | $as_echo "no" >&6; } |
| 7455 | fi |
| 7456 | |
| 7457 | |
| 7458 | fi |
| 7459 | if test -z "$ac_cv_prog_OTOOL"; then |
| 7460 | ac_ct_OTOOL=$OTOOL |
| 7461 | # Extract the first word of "otool", so it can be a program name with args. |
| 7462 | set dummy otool; ac_word=$2 |
| 7463 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7464 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7465 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 7466 | $as_echo_n "(cached) " >&6 |
| 7467 | else |
| 7468 | if test -n "$ac_ct_OTOOL"; then |
| 7469 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7470 | else |
| 7471 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7472 | for as_dir in $PATH |
| 7473 | do |
| 7474 | IFS=$as_save_IFS |
| 7475 | test -z "$as_dir" && as_dir=. |
| 7476 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7477 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7478 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 7479 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7480 | break 2 |
| 7481 | fi |
| 7482 | done |
| 7483 | done |
| 7484 | IFS=$as_save_IFS |
| 7485 | |
| 7486 | fi |
| 7487 | fi |
| 7488 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7489 | if test -n "$ac_ct_OTOOL"; then |
| 7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 7491 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 7492 | else |
| 7493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7494 | $as_echo "no" >&6; } |
| 7495 | fi |
| 7496 | |
| 7497 | if test "x$ac_ct_OTOOL" = x; then |
| 7498 | OTOOL=":" |
| 7499 | else |
| 7500 | case $cross_compiling:$ac_tool_warned in |
| 7501 | yes:) |
| 7502 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7503 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7504 | ac_tool_warned=yes ;; |
| 7505 | esac |
| 7506 | OTOOL=$ac_ct_OTOOL |
| 7507 | fi |
| 7508 | else |
| 7509 | OTOOL="$ac_cv_prog_OTOOL" |
| 7510 | fi |
| 7511 | |
| 7512 | if test -n "$ac_tool_prefix"; then |
| 7513 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7514 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 7515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7516 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7517 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 7518 | $as_echo_n "(cached) " >&6 |
| 7519 | else |
| 7520 | if test -n "$OTOOL64"; then |
| 7521 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7522 | else |
| 7523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7524 | for as_dir in $PATH |
| 7525 | do |
| 7526 | IFS=$as_save_IFS |
| 7527 | test -z "$as_dir" && as_dir=. |
| 7528 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7529 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7530 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 7531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7532 | break 2 |
| 7533 | fi |
| 7534 | done |
| 7535 | done |
| 7536 | IFS=$as_save_IFS |
| 7537 | |
| 7538 | fi |
| 7539 | fi |
| 7540 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 7541 | if test -n "$OTOOL64"; then |
| 7542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 7543 | $as_echo "$OTOOL64" >&6; } |
| 7544 | else |
| 7545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7546 | $as_echo "no" >&6; } |
| 7547 | fi |
| 7548 | |
| 7549 | |
| 7550 | fi |
| 7551 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 7552 | ac_ct_OTOOL64=$OTOOL64 |
| 7553 | # Extract the first word of "otool64", so it can be a program name with args. |
| 7554 | set dummy otool64; ac_word=$2 |
| 7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7556 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7557 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 7558 | $as_echo_n "(cached) " >&6 |
| 7559 | else |
| 7560 | if test -n "$ac_ct_OTOOL64"; then |
| 7561 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7562 | else |
| 7563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7564 | for as_dir in $PATH |
| 7565 | do |
| 7566 | IFS=$as_save_IFS |
| 7567 | test -z "$as_dir" && as_dir=. |
| 7568 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7569 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7570 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 7571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7572 | break 2 |
| 7573 | fi |
| 7574 | done |
| 7575 | done |
| 7576 | IFS=$as_save_IFS |
| 7577 | |
| 7578 | fi |
| 7579 | fi |
| 7580 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7581 | if test -n "$ac_ct_OTOOL64"; then |
| 7582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7583 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7584 | else |
| 7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7586 | $as_echo "no" >&6; } |
| 7587 | fi |
| 7588 | |
| 7589 | if test "x$ac_ct_OTOOL64" = x; then |
| 7590 | OTOOL64=":" |
| 7591 | else |
| 7592 | case $cross_compiling:$ac_tool_warned in |
| 7593 | yes:) |
| 7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7595 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7596 | ac_tool_warned=yes ;; |
| 7597 | esac |
| 7598 | OTOOL64=$ac_ct_OTOOL64 |
| 7599 | fi |
| 7600 | else |
| 7601 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7602 | fi |
| 7603 | |
| 7604 | |
| 7605 | |
| 7606 | |
| 7607 | |
| 7608 | |
| 7609 | |
| 7610 | |
| 7611 | |
| 7612 | |
| 7613 | |
| 7614 | |
| 7615 | |
| 7616 | |
| 7617 | |
| 7618 | |
| 7619 | |
| 7620 | |
| 7621 | |
| 7622 | |
| 7623 | |
| 7624 | |
| 7625 | |
| 7626 | |
| 7627 | |
| 7628 | |
| 7629 | |
| 7630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7631 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7632 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 7633 | $as_echo_n "(cached) " >&6 |
| 7634 | else |
| 7635 | lt_cv_apple_cc_single_mod=no |
| 7636 | if test -z "${LT_MULTI_MODULE}"; then |
| 7637 | # By default we will add the -single_module flag. You can override |
| 7638 | # by either setting the environment variable LT_MULTI_MODULE |
| 7639 | # non-empty at configure time, or by adding -multi_module to the |
| 7640 | # link flags. |
| 7641 | rm -rf libconftest.dylib* |
| 7642 | echo "int foo(void){return 1;}" > conftest.c |
| 7643 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7644 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7645 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7646 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7647 | _lt_result=$? |
| 7648 | # If there is a non-empty error log, and "single_module" |
| 7649 | # appears in it, assume the flag caused a linker warning |
| 7650 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 7651 | cat conftest.err >&5 |
| 7652 | # Otherwise, if the output was created with a 0 exit code from |
| 7653 | # the compiler, it worked. |
| 7654 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 7655 | lt_cv_apple_cc_single_mod=yes |
| 7656 | else |
| 7657 | cat conftest.err >&5 |
| 7658 | fi |
| 7659 | rm -rf libconftest.dylib* |
| 7660 | rm -f conftest.* |
| 7661 | fi |
| 7662 | fi |
| 7663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7664 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7665 | |
| 7666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7667 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7668 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 7669 | $as_echo_n "(cached) " >&6 |
| 7670 | else |
| 7671 | lt_cv_ld_exported_symbols_list=no |
| 7672 | save_LDFLAGS=$LDFLAGS |
| 7673 | echo "_main" > conftest.sym |
| 7674 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7676 | /* end confdefs.h. */ |
| 7677 | |
| 7678 | int |
| 7679 | main () |
| 7680 | { |
| 7681 | |
| 7682 | ; |
| 7683 | return 0; |
| 7684 | } |
| 7685 | _ACEOF |
| 7686 | if ac_fn_c_try_link "$LINENO"; then : |
| 7687 | lt_cv_ld_exported_symbols_list=yes |
| 7688 | else |
| 7689 | lt_cv_ld_exported_symbols_list=no |
| 7690 | fi |
| 7691 | rm -f core conftest.err conftest.$ac_objext \ |
| 7692 | conftest$ac_exeext conftest.$ac_ext |
| 7693 | LDFLAGS="$save_LDFLAGS" |
| 7694 | |
| 7695 | fi |
| 7696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7697 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7698 | |
| 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 7700 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 7701 | if ${lt_cv_ld_force_load+:} false; then : |
| 7702 | $as_echo_n "(cached) " >&6 |
| 7703 | else |
| 7704 | lt_cv_ld_force_load=no |
| 7705 | cat > conftest.c << _LT_EOF |
| 7706 | int forced_loaded() { return 2;} |
| 7707 | _LT_EOF |
| 7708 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7709 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7710 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 7711 | $AR cru libconftest.a conftest.o 2>&5 |
| 7712 | echo "$RANLIB libconftest.a" >&5 |
| 7713 | $RANLIB libconftest.a 2>&5 |
| 7714 | cat > conftest.c << _LT_EOF |
| 7715 | int main() { return 0;} |
| 7716 | _LT_EOF |
| 7717 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 7718 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 7719 | _lt_result=$? |
| 7720 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 7721 | cat conftest.err >&5 |
| 7722 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 7723 | lt_cv_ld_force_load=yes |
| 7724 | else |
| 7725 | cat conftest.err >&5 |
| 7726 | fi |
| 7727 | rm -f conftest.err libconftest.a conftest conftest.c |
| 7728 | rm -rf conftest.dSYM |
| 7729 | |
| 7730 | fi |
| 7731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7732 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 7733 | case $host_os in |
| 7734 | rhapsody* | darwin1.[012]) |
| 7735 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7736 | darwin1.*) |
| 7737 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7738 | darwin*) # darwin 5.x on |
| 7739 | # if running on 10.5 or later, the deployment target defaults |
| 7740 | # to the OS version, if on x86, and 10.4, the deployment |
| 7741 | # target defaults to 10.4. Don't you love it? |
| 7742 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7743 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7744 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7745 | 10.[012]*) |
| 7746 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7747 | 10.*) |
| 7748 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7749 | esac |
| 7750 | ;; |
| 7751 | esac |
| 7752 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7753 | _lt_dar_single_mod='$single_module' |
| 7754 | fi |
| 7755 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7756 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7757 | else |
| 7758 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7759 | fi |
| 7760 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 7761 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7762 | else |
| 7763 | _lt_dsymutil= |
| 7764 | fi |
| 7765 | ;; |
| 7766 | esac |
| 7767 | |
| 7768 | ac_ext=c |
| 7769 | ac_cpp='$CPP $CPPFLAGS' |
| 7770 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7771 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7772 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 7774 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 7775 | # On Suns, sometimes $CPP names a directory. |
| 7776 | if test -n "$CPP" && test -d "$CPP"; then |
| 7777 | CPP= |
| 7778 | fi |
| 7779 | if test -z "$CPP"; then |
| 7780 | if ${ac_cv_prog_CPP+:} false; then : |
| 7781 | $as_echo_n "(cached) " >&6 |
| 7782 | else |
| 7783 | # Double quotes because CPP needs to be expanded |
| 7784 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7785 | do |
| 7786 | ac_preproc_ok=false |
| 7787 | for ac_c_preproc_warn_flag in '' yes |
| 7788 | do |
| 7789 | # Use a header file that comes with gcc, so configuring glibc |
| 7790 | # with a fresh cross-compiler works. |
| 7791 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7792 | # <limits.h> exists even on freestanding compilers. |
| 7793 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7794 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7796 | /* end confdefs.h. */ |
| 7797 | #ifdef __STDC__ |
| 7798 | # include <limits.h> |
| 7799 | #else |
| 7800 | # include <assert.h> |
| 7801 | #endif |
| 7802 | Syntax error |
| 7803 | _ACEOF |
| 7804 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7805 | |
| 7806 | else |
| 7807 | # Broken: fails on valid input. |
| 7808 | continue |
| 7809 | fi |
| 7810 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7811 | |
| 7812 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7813 | # can be detected and how. |
| 7814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7815 | /* end confdefs.h. */ |
| 7816 | #include <ac_nonexistent.h> |
| 7817 | _ACEOF |
| 7818 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7819 | # Broken: success on invalid input. |
| 7820 | continue |
| 7821 | else |
| 7822 | # Passes both tests. |
| 7823 | ac_preproc_ok=: |
| 7824 | break |
| 7825 | fi |
| 7826 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7827 | |
| 7828 | done |
| 7829 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7830 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7831 | if $ac_preproc_ok; then : |
| 7832 | break |
| 7833 | fi |
| 7834 | |
| 7835 | done |
| 7836 | ac_cv_prog_CPP=$CPP |
| 7837 | |
| 7838 | fi |
| 7839 | CPP=$ac_cv_prog_CPP |
| 7840 | else |
| 7841 | ac_cv_prog_CPP=$CPP |
| 7842 | fi |
| 7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 7844 | $as_echo "$CPP" >&6; } |
| 7845 | ac_preproc_ok=false |
| 7846 | for ac_c_preproc_warn_flag in '' yes |
| 7847 | do |
| 7848 | # Use a header file that comes with gcc, so configuring glibc |
| 7849 | # with a fresh cross-compiler works. |
| 7850 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7851 | # <limits.h> exists even on freestanding compilers. |
| 7852 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7853 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7855 | /* end confdefs.h. */ |
| 7856 | #ifdef __STDC__ |
| 7857 | # include <limits.h> |
| 7858 | #else |
| 7859 | # include <assert.h> |
| 7860 | #endif |
| 7861 | Syntax error |
| 7862 | _ACEOF |
| 7863 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7864 | |
| 7865 | else |
| 7866 | # Broken: fails on valid input. |
| 7867 | continue |
| 7868 | fi |
| 7869 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7870 | |
| 7871 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7872 | # can be detected and how. |
| 7873 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7874 | /* end confdefs.h. */ |
| 7875 | #include <ac_nonexistent.h> |
| 7876 | _ACEOF |
| 7877 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7878 | # Broken: success on invalid input. |
| 7879 | continue |
| 7880 | else |
| 7881 | # Passes both tests. |
| 7882 | ac_preproc_ok=: |
| 7883 | break |
| 7884 | fi |
| 7885 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7886 | |
| 7887 | done |
| 7888 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7889 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7890 | if $ac_preproc_ok; then : |
| 7891 | |
| 7892 | else |
| 7893 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7894 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7895 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7896 | See \`config.log' for more details" "$LINENO" 5; } |
| 7897 | fi |
| 7898 | |
| 7899 | ac_ext=c |
| 7900 | ac_cpp='$CPP $CPPFLAGS' |
| 7901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7904 | |
| 7905 | |
| 7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7907 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7908 | if ${ac_cv_header_stdc+:} false; then : |
| 7909 | $as_echo_n "(cached) " >&6 |
| 7910 | else |
| 7911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7912 | /* end confdefs.h. */ |
| 7913 | #include <stdlib.h> |
| 7914 | #include <stdarg.h> |
| 7915 | #include <string.h> |
| 7916 | #include <float.h> |
| 7917 | |
| 7918 | int |
| 7919 | main () |
| 7920 | { |
| 7921 | |
| 7922 | ; |
| 7923 | return 0; |
| 7924 | } |
| 7925 | _ACEOF |
| 7926 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7927 | ac_cv_header_stdc=yes |
| 7928 | else |
| 7929 | ac_cv_header_stdc=no |
| 7930 | fi |
| 7931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7932 | |
| 7933 | if test $ac_cv_header_stdc = yes; then |
| 7934 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7935 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7936 | /* end confdefs.h. */ |
| 7937 | #include <string.h> |
| 7938 | |
| 7939 | _ACEOF |
| 7940 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7941 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7942 | |
| 7943 | else |
| 7944 | ac_cv_header_stdc=no |
| 7945 | fi |
| 7946 | rm -f conftest* |
| 7947 | |
| 7948 | fi |
| 7949 | |
| 7950 | if test $ac_cv_header_stdc = yes; then |
| 7951 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7953 | /* end confdefs.h. */ |
| 7954 | #include <stdlib.h> |
| 7955 | |
| 7956 | _ACEOF |
| 7957 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7958 | $EGREP "free" >/dev/null 2>&1; then : |
| 7959 | |
| 7960 | else |
| 7961 | ac_cv_header_stdc=no |
| 7962 | fi |
| 7963 | rm -f conftest* |
| 7964 | |
| 7965 | fi |
| 7966 | |
| 7967 | if test $ac_cv_header_stdc = yes; then |
| 7968 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7969 | if test "$cross_compiling" = yes; then : |
| 7970 | : |
| 7971 | else |
| 7972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7973 | /* end confdefs.h. */ |
| 7974 | #include <ctype.h> |
| 7975 | #include <stdlib.h> |
| 7976 | #if ((' ' & 0x0FF) == 0x020) |
| 7977 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7978 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7979 | #else |
| 7980 | # define ISLOWER(c) \ |
| 7981 | (('a' <= (c) && (c) <= 'i') \ |
| 7982 | || ('j' <= (c) && (c) <= 'r') \ |
| 7983 | || ('s' <= (c) && (c) <= 'z')) |
| 7984 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7985 | #endif |
| 7986 | |
| 7987 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7988 | int |
| 7989 | main () |
| 7990 | { |
| 7991 | int i; |
| 7992 | for (i = 0; i < 256; i++) |
| 7993 | if (XOR (islower (i), ISLOWER (i)) |
| 7994 | || toupper (i) != TOUPPER (i)) |
| 7995 | return 2; |
| 7996 | return 0; |
| 7997 | } |
| 7998 | _ACEOF |
| 7999 | if ac_fn_c_try_run "$LINENO"; then : |
| 8000 | |
| 8001 | else |
| 8002 | ac_cv_header_stdc=no |
| 8003 | fi |
| 8004 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8005 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8006 | fi |
| 8007 | |
| 8008 | fi |
| 8009 | fi |
| 8010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 8011 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 8012 | if test $ac_cv_header_stdc = yes; then |
| 8013 | |
| 8014 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 8015 | |
| 8016 | fi |
| 8017 | |
| 8018 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 8019 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 8020 | inttypes.h stdint.h unistd.h |
| 8021 | do : |
| 8022 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8023 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 8024 | " |
| 8025 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 8026 | cat >>confdefs.h <<_ACEOF |
| 8027 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8028 | _ACEOF |
| 8029 | |
| 8030 | fi |
| 8031 | |
| 8032 | done |
| 8033 | |
| 8034 | |
| 8035 | for ac_header in dlfcn.h |
| 8036 | do : |
| 8037 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 8038 | " |
| 8039 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 8040 | cat >>confdefs.h <<_ACEOF |
| 8041 | #define HAVE_DLFCN_H 1 |
| 8042 | _ACEOF |
| 8043 | |
| 8044 | fi |
| 8045 | |
| 8046 | done |
| 8047 | |
| 8048 | |
| 8049 | |
| 8050 | |
| 8051 | |
| 8052 | # Set options |
| 8053 | |
| 8054 | |
| 8055 | |
| 8056 | enable_dlopen=no |
| 8057 | |
| 8058 | |
| 8059 | enable_win32_dll=no |
| 8060 | |
| 8061 | |
| 8062 | # Check whether --enable-shared was given. |
| 8063 | if test "${enable_shared+set}" = set; then : |
| 8064 | enableval=$enable_shared; p=${PACKAGE-default} |
| 8065 | case $enableval in |
| 8066 | yes) enable_shared=yes ;; |
| 8067 | no) enable_shared=no ;; |
| 8068 | *) |
| 8069 | enable_shared=no |
| 8070 | # Look at the argument we got. We use all the common list separators. |
| 8071 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8072 | for pkg in $enableval; do |
| 8073 | IFS="$lt_save_ifs" |
| 8074 | if test "X$pkg" = "X$p"; then |
| 8075 | enable_shared=yes |
| 8076 | fi |
| 8077 | done |
| 8078 | IFS="$lt_save_ifs" |
| 8079 | ;; |
| 8080 | esac |
| 8081 | else |
| 8082 | enable_shared=yes |
| 8083 | fi |
| 8084 | |
| 8085 | |
| 8086 | |
| 8087 | |
| 8088 | |
| 8089 | |
| 8090 | |
| 8091 | |
| 8092 | |
| 8093 | # Check whether --enable-static was given. |
| 8094 | if test "${enable_static+set}" = set; then : |
| 8095 | enableval=$enable_static; p=${PACKAGE-default} |
| 8096 | case $enableval in |
| 8097 | yes) enable_static=yes ;; |
| 8098 | no) enable_static=no ;; |
| 8099 | *) |
| 8100 | enable_static=no |
| 8101 | # Look at the argument we got. We use all the common list separators. |
| 8102 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8103 | for pkg in $enableval; do |
| 8104 | IFS="$lt_save_ifs" |
| 8105 | if test "X$pkg" = "X$p"; then |
| 8106 | enable_static=yes |
| 8107 | fi |
| 8108 | done |
| 8109 | IFS="$lt_save_ifs" |
| 8110 | ;; |
| 8111 | esac |
| 8112 | else |
| 8113 | enable_static=yes |
| 8114 | fi |
| 8115 | |
| 8116 | |
| 8117 | |
| 8118 | |
| 8119 | |
| 8120 | |
| 8121 | |
| 8122 | |
| 8123 | |
| 8124 | |
| 8125 | # Check whether --with-pic was given. |
| 8126 | if test "${with_pic+set}" = set; then : |
| 8127 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 8128 | case $withval in |
| 8129 | yes|no) pic_mode=$withval ;; |
| 8130 | *) |
| 8131 | pic_mode=default |
| 8132 | # Look at the argument we got. We use all the common list separators. |
| 8133 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8134 | for lt_pkg in $withval; do |
| 8135 | IFS="$lt_save_ifs" |
| 8136 | if test "X$lt_pkg" = "X$lt_p"; then |
| 8137 | pic_mode=yes |
| 8138 | fi |
| 8139 | done |
| 8140 | IFS="$lt_save_ifs" |
| 8141 | ;; |
| 8142 | esac |
| 8143 | else |
| 8144 | pic_mode=default |
| 8145 | fi |
| 8146 | |
| 8147 | |
| 8148 | test -z "$pic_mode" && pic_mode=default |
| 8149 | |
| 8150 | |
| 8151 | |
| 8152 | |
| 8153 | |
| 8154 | |
| 8155 | |
| 8156 | # Check whether --enable-fast-install was given. |
| 8157 | if test "${enable_fast_install+set}" = set; then : |
| 8158 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 8159 | case $enableval in |
| 8160 | yes) enable_fast_install=yes ;; |
| 8161 | no) enable_fast_install=no ;; |
| 8162 | *) |
| 8163 | enable_fast_install=no |
| 8164 | # Look at the argument we got. We use all the common list separators. |
| 8165 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8166 | for pkg in $enableval; do |
| 8167 | IFS="$lt_save_ifs" |
| 8168 | if test "X$pkg" = "X$p"; then |
| 8169 | enable_fast_install=yes |
| 8170 | fi |
| 8171 | done |
| 8172 | IFS="$lt_save_ifs" |
| 8173 | ;; |
| 8174 | esac |
| 8175 | else |
| 8176 | enable_fast_install=yes |
| 8177 | fi |
| 8178 | |
| 8179 | |
| 8180 | |
| 8181 | |
| 8182 | |
| 8183 | |
| 8184 | |
| 8185 | |
| 8186 | |
| 8187 | |
| 8188 | |
| 8189 | # This can be used to rebuild libtool when needed |
| 8190 | LIBTOOL_DEPS="$ltmain" |
| 8191 | |
| 8192 | # Always use our own libtool. |
| 8193 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8194 | |
| 8195 | |
| 8196 | |
| 8197 | |
| 8198 | |
| 8199 | |
| 8200 | |
| 8201 | |
| 8202 | |
| 8203 | |
| 8204 | |
| 8205 | |
| 8206 | |
| 8207 | |
| 8208 | |
| 8209 | |
| 8210 | |
| 8211 | |
| 8212 | |
| 8213 | |
| 8214 | |
| 8215 | |
| 8216 | |
| 8217 | |
| 8218 | |
| 8219 | |
| 8220 | |
| 8221 | |
| 8222 | |
| 8223 | |
| 8224 | test -z "$LN_S" && LN_S="ln -s" |
| 8225 | |
| 8226 | |
| 8227 | |
| 8228 | |
| 8229 | |
| 8230 | |
| 8231 | |
| 8232 | |
| 8233 | |
| 8234 | |
| 8235 | |
| 8236 | |
| 8237 | |
| 8238 | |
| 8239 | if test -n "${ZSH_VERSION+set}" ; then |
| 8240 | setopt NO_GLOB_SUBST |
| 8241 | fi |
| 8242 | |
| 8243 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 8244 | $as_echo_n "checking for objdir... " >&6; } |
| 8245 | if ${lt_cv_objdir+:} false; then : |
| 8246 | $as_echo_n "(cached) " >&6 |
| 8247 | else |
| 8248 | rm -f .libs 2>/dev/null |
| 8249 | mkdir .libs 2>/dev/null |
| 8250 | if test -d .libs; then |
| 8251 | lt_cv_objdir=.libs |
| 8252 | else |
| 8253 | # MS-DOS does not allow filenames that begin with a dot. |
| 8254 | lt_cv_objdir=_libs |
| 8255 | fi |
| 8256 | rmdir .libs 2>/dev/null |
| 8257 | fi |
| 8258 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8259 | $as_echo "$lt_cv_objdir" >&6; } |
| 8260 | objdir=$lt_cv_objdir |
| 8261 | |
| 8262 | |
| 8263 | |
| 8264 | |
| 8265 | |
| 8266 | cat >>confdefs.h <<_ACEOF |
| 8267 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8268 | _ACEOF |
| 8269 | |
| 8270 | |
| 8271 | |
| 8272 | |
| 8273 | case $host_os in |
| 8274 | aix3*) |
| 8275 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8276 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8277 | # vanish in a puff of smoke. |
| 8278 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8279 | COLLECT_NAMES= |
| 8280 | export COLLECT_NAMES |
| 8281 | fi |
| 8282 | ;; |
| 8283 | esac |
| 8284 | |
| 8285 | # Global variables: |
| 8286 | ofile=libtool |
| 8287 | can_build_shared=yes |
| 8288 | |
| 8289 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 8290 | # which needs '.lib'). |
| 8291 | libext=a |
| 8292 | |
| 8293 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8294 | |
| 8295 | old_CC="$CC" |
| 8296 | old_CFLAGS="$CFLAGS" |
| 8297 | |
| 8298 | # Set sane defaults for various variables |
| 8299 | test -z "$CC" && CC=cc |
| 8300 | test -z "$LTCC" && LTCC=$CC |
| 8301 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8302 | test -z "$LD" && LD=ld |
| 8303 | test -z "$ac_objext" && ac_objext=o |
| 8304 | |
| 8305 | for cc_temp in $compiler""; do |
| 8306 | case $cc_temp in |
| 8307 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8308 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8309 | \-*) ;; |
| 8310 | *) break;; |
| 8311 | esac |
| 8312 | done |
| 8313 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8314 | |
| 8315 | |
| 8316 | # Only perform the check for file, if the check method requires it |
| 8317 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8318 | case $deplibs_check_method in |
| 8319 | file_magic*) |
| 8320 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 8321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8322 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8323 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8324 | $as_echo_n "(cached) " >&6 |
| 8325 | else |
| 8326 | case $MAGIC_CMD in |
| 8327 | [\\/*] | ?:[\\/]*) |
| 8328 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8329 | ;; |
| 8330 | *) |
| 8331 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8332 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8333 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8334 | for ac_dir in $ac_dummy; do |
| 8335 | IFS="$lt_save_ifs" |
| 8336 | test -z "$ac_dir" && ac_dir=. |
| 8337 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8338 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8339 | if test -n "$file_magic_test_file"; then |
| 8340 | case $deplibs_check_method in |
| 8341 | "file_magic "*) |
| 8342 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8343 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8344 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8345 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8346 | : |
| 8347 | else |
| 8348 | cat <<_LT_EOF 1>&2 |
| 8349 | |
| 8350 | *** Warning: the command libtool uses to detect shared libraries, |
| 8351 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8352 | *** The result is that libtool may fail to recognize shared libraries |
| 8353 | *** as such. This will affect the creation of libtool libraries that |
| 8354 | *** depend on shared libraries, but programs linked with such libtool |
| 8355 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8356 | *** may want to report the problem to your system manager and/or to |
| 8357 | *** bug-libtool@gnu.org |
| 8358 | |
| 8359 | _LT_EOF |
| 8360 | fi ;; |
| 8361 | esac |
| 8362 | fi |
| 8363 | break |
| 8364 | fi |
| 8365 | done |
| 8366 | IFS="$lt_save_ifs" |
| 8367 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8368 | ;; |
| 8369 | esac |
| 8370 | fi |
| 8371 | |
| 8372 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8373 | if test -n "$MAGIC_CMD"; then |
| 8374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8375 | $as_echo "$MAGIC_CMD" >&6; } |
| 8376 | else |
| 8377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8378 | $as_echo "no" >&6; } |
| 8379 | fi |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8386 | if test -n "$ac_tool_prefix"; then |
| 8387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8388 | $as_echo_n "checking for file... " >&6; } |
| 8389 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8390 | $as_echo_n "(cached) " >&6 |
| 8391 | else |
| 8392 | case $MAGIC_CMD in |
| 8393 | [\\/*] | ?:[\\/]*) |
| 8394 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8395 | ;; |
| 8396 | *) |
| 8397 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8398 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8399 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8400 | for ac_dir in $ac_dummy; do |
| 8401 | IFS="$lt_save_ifs" |
| 8402 | test -z "$ac_dir" && ac_dir=. |
| 8403 | if test -f $ac_dir/file; then |
| 8404 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8405 | if test -n "$file_magic_test_file"; then |
| 8406 | case $deplibs_check_method in |
| 8407 | "file_magic "*) |
| 8408 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8409 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8410 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8411 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8412 | : |
| 8413 | else |
| 8414 | cat <<_LT_EOF 1>&2 |
| 8415 | |
| 8416 | *** Warning: the command libtool uses to detect shared libraries, |
| 8417 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8418 | *** The result is that libtool may fail to recognize shared libraries |
| 8419 | *** as such. This will affect the creation of libtool libraries that |
| 8420 | *** depend on shared libraries, but programs linked with such libtool |
| 8421 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8422 | *** may want to report the problem to your system manager and/or to |
| 8423 | *** bug-libtool@gnu.org |
| 8424 | |
| 8425 | _LT_EOF |
| 8426 | fi ;; |
| 8427 | esac |
| 8428 | fi |
| 8429 | break |
| 8430 | fi |
| 8431 | done |
| 8432 | IFS="$lt_save_ifs" |
| 8433 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8434 | ;; |
| 8435 | esac |
| 8436 | fi |
| 8437 | |
| 8438 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8439 | if test -n "$MAGIC_CMD"; then |
| 8440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8441 | $as_echo "$MAGIC_CMD" >&6; } |
| 8442 | else |
| 8443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8444 | $as_echo "no" >&6; } |
| 8445 | fi |
| 8446 | |
| 8447 | |
| 8448 | else |
| 8449 | MAGIC_CMD=: |
| 8450 | fi |
| 8451 | fi |
| 8452 | |
| 8453 | fi |
| 8454 | ;; |
| 8455 | esac |
| 8456 | |
| 8457 | # Use C for the default configuration in the libtool script |
| 8458 | |
| 8459 | lt_save_CC="$CC" |
| 8460 | ac_ext=c |
| 8461 | ac_cpp='$CPP $CPPFLAGS' |
| 8462 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8463 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8465 | |
| 8466 | |
| 8467 | # Source file extension for C test sources. |
| 8468 | ac_ext=c |
| 8469 | |
| 8470 | # Object file extension for compiled C test sources. |
| 8471 | objext=o |
| 8472 | objext=$objext |
| 8473 | |
| 8474 | # Code to be used in simple compile tests |
| 8475 | lt_simple_compile_test_code="int some_variable = 0;" |
| 8476 | |
| 8477 | # Code to be used in simple link tests |
| 8478 | lt_simple_link_test_code='int main(){return(0);}' |
| 8479 | |
| 8480 | |
| 8481 | |
| 8482 | |
| 8483 | |
| 8484 | |
| 8485 | |
| 8486 | # If no C compiler was specified, use CC. |
| 8487 | LTCC=${LTCC-"$CC"} |
| 8488 | |
| 8489 | # If no C compiler flags were specified, use CFLAGS. |
| 8490 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8491 | |
| 8492 | # Allow CC to be a program name with arguments. |
| 8493 | compiler=$CC |
| 8494 | |
| 8495 | # Save the default compiler, since it gets overwritten when the other |
| 8496 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8497 | compiler_DEFAULT=$CC |
| 8498 | |
| 8499 | # save warnings/boilerplate of simple test code |
| 8500 | ac_outfile=conftest.$ac_objext |
| 8501 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8502 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8503 | _lt_compiler_boilerplate=`cat conftest.err` |
| 8504 | $RM conftest* |
| 8505 | |
| 8506 | ac_outfile=conftest.$ac_objext |
| 8507 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8508 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8509 | _lt_linker_boilerplate=`cat conftest.err` |
| 8510 | $RM -r conftest* |
| 8511 | |
| 8512 | |
Jeff Thompson | 23cb742 | 2013-10-09 16:11:47 -0700 | [diff] [blame] | 8513 | ## CAVEAT EMPTOR: |
| 8514 | ## There is no encapsulation within the following macros, do not change |
| 8515 | ## the running order or otherwise move them around unless you know exactly |
| 8516 | ## what you are doing... |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 8517 | if test -n "$compiler"; then |
| 8518 | |
| 8519 | lt_prog_compiler_no_builtin_flag= |
| 8520 | |
| 8521 | if test "$GCC" = yes; then |
| 8522 | case $cc_basename in |
| 8523 | nvcc*) |
| 8524 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8525 | *) |
| 8526 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8527 | esac |
| 8528 | |
| 8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8530 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8531 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 8532 | $as_echo_n "(cached) " >&6 |
| 8533 | else |
| 8534 | lt_cv_prog_compiler_rtti_exceptions=no |
| 8535 | ac_outfile=conftest.$ac_objext |
| 8536 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8537 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8538 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8539 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8540 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8541 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8542 | # The option is referenced via a variable to avoid confusing sed. |
| 8543 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8544 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8545 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8546 | -e 's:$: $lt_compiler_flag:'` |
| 8547 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8548 | (eval "$lt_compile" 2>conftest.err) |
| 8549 | ac_status=$? |
| 8550 | cat conftest.err >&5 |
| 8551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8552 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8553 | # The compiler can only warn and ignore the option if not recognized |
| 8554 | # So say no if there are warnings other than the usual output. |
| 8555 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8556 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8557 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8558 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8559 | fi |
| 8560 | fi |
| 8561 | $RM conftest* |
| 8562 | |
| 8563 | fi |
| 8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8565 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8566 | |
| 8567 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8568 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8569 | else |
| 8570 | : |
| 8571 | fi |
| 8572 | |
| 8573 | fi |
| 8574 | |
| 8575 | |
| 8576 | |
| 8577 | |
| 8578 | |
| 8579 | |
| 8580 | lt_prog_compiler_wl= |
| 8581 | lt_prog_compiler_pic= |
| 8582 | lt_prog_compiler_static= |
| 8583 | |
| 8584 | |
| 8585 | if test "$GCC" = yes; then |
| 8586 | lt_prog_compiler_wl='-Wl,' |
| 8587 | lt_prog_compiler_static='-static' |
| 8588 | |
| 8589 | case $host_os in |
| 8590 | aix*) |
| 8591 | # All AIX code is PIC. |
| 8592 | if test "$host_cpu" = ia64; then |
| 8593 | # AIX 5 now supports IA64 processor |
| 8594 | lt_prog_compiler_static='-Bstatic' |
| 8595 | fi |
| 8596 | ;; |
| 8597 | |
| 8598 | amigaos*) |
| 8599 | case $host_cpu in |
| 8600 | powerpc) |
| 8601 | # see comment about AmigaOS4 .so support |
| 8602 | lt_prog_compiler_pic='-fPIC' |
| 8603 | ;; |
| 8604 | m68k) |
| 8605 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8606 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8607 | # like `-m68040'. |
| 8608 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8609 | ;; |
| 8610 | esac |
| 8611 | ;; |
| 8612 | |
| 8613 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8614 | # PIC is the default for these OSes. |
| 8615 | ;; |
| 8616 | |
| 8617 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8618 | # This hack is so that the source file can tell whether it is being |
| 8619 | # built for inclusion in a dll (and should export symbols for example). |
| 8620 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8621 | # (--disable-auto-import) libraries |
| 8622 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8623 | ;; |
| 8624 | |
| 8625 | darwin* | rhapsody*) |
| 8626 | # PIC is the default on this platform |
| 8627 | # Common symbols not allowed in MH_DYLIB files |
| 8628 | lt_prog_compiler_pic='-fno-common' |
| 8629 | ;; |
| 8630 | |
| 8631 | haiku*) |
| 8632 | # PIC is the default for Haiku. |
| 8633 | # The "-static" flag exists, but is broken. |
| 8634 | lt_prog_compiler_static= |
| 8635 | ;; |
| 8636 | |
| 8637 | hpux*) |
| 8638 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8639 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8640 | # sets the default TLS model and affects inlining. |
| 8641 | case $host_cpu in |
| 8642 | hppa*64*) |
| 8643 | # +Z the default |
| 8644 | ;; |
| 8645 | *) |
| 8646 | lt_prog_compiler_pic='-fPIC' |
| 8647 | ;; |
| 8648 | esac |
| 8649 | ;; |
| 8650 | |
| 8651 | interix[3-9]*) |
| 8652 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8653 | # Instead, we relocate shared libraries at runtime. |
| 8654 | ;; |
| 8655 | |
| 8656 | msdosdjgpp*) |
| 8657 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8658 | # on systems that don't support them. |
| 8659 | lt_prog_compiler_can_build_shared=no |
| 8660 | enable_shared=no |
| 8661 | ;; |
| 8662 | |
| 8663 | *nto* | *qnx*) |
| 8664 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8665 | # it will coredump. |
| 8666 | lt_prog_compiler_pic='-fPIC -shared' |
| 8667 | ;; |
| 8668 | |
| 8669 | sysv4*MP*) |
| 8670 | if test -d /usr/nec; then |
| 8671 | lt_prog_compiler_pic=-Kconform_pic |
| 8672 | fi |
| 8673 | ;; |
| 8674 | |
| 8675 | *) |
| 8676 | lt_prog_compiler_pic='-fPIC' |
| 8677 | ;; |
| 8678 | esac |
| 8679 | |
| 8680 | case $cc_basename in |
| 8681 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8682 | lt_prog_compiler_wl='-Xlinker ' |
| 8683 | if test -n "$lt_prog_compiler_pic"; then |
| 8684 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 8685 | fi |
| 8686 | ;; |
| 8687 | esac |
| 8688 | else |
| 8689 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8690 | case $host_os in |
| 8691 | aix*) |
| 8692 | lt_prog_compiler_wl='-Wl,' |
| 8693 | if test "$host_cpu" = ia64; then |
| 8694 | # AIX 5 now supports IA64 processor |
| 8695 | lt_prog_compiler_static='-Bstatic' |
| 8696 | else |
| 8697 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8698 | fi |
| 8699 | ;; |
| 8700 | |
| 8701 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8702 | # This hack is so that the source file can tell whether it is being |
| 8703 | # built for inclusion in a dll (and should export symbols for example). |
| 8704 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8705 | ;; |
| 8706 | |
| 8707 | hpux9* | hpux10* | hpux11*) |
| 8708 | lt_prog_compiler_wl='-Wl,' |
| 8709 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8710 | # not for PA HP-UX. |
| 8711 | case $host_cpu in |
| 8712 | hppa*64*|ia64*) |
| 8713 | # +Z the default |
| 8714 | ;; |
| 8715 | *) |
| 8716 | lt_prog_compiler_pic='+Z' |
| 8717 | ;; |
| 8718 | esac |
| 8719 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8720 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8721 | ;; |
| 8722 | |
| 8723 | irix5* | irix6* | nonstopux*) |
| 8724 | lt_prog_compiler_wl='-Wl,' |
| 8725 | # PIC (with -KPIC) is the default. |
| 8726 | lt_prog_compiler_static='-non_shared' |
| 8727 | ;; |
| 8728 | |
| 8729 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8730 | case $cc_basename in |
| 8731 | # old Intel for x86_64 which still supported -KPIC. |
| 8732 | ecc*) |
| 8733 | lt_prog_compiler_wl='-Wl,' |
| 8734 | lt_prog_compiler_pic='-KPIC' |
| 8735 | lt_prog_compiler_static='-static' |
| 8736 | ;; |
| 8737 | # icc used to be incompatible with GCC. |
| 8738 | # ICC 10 doesn't accept -KPIC any more. |
| 8739 | icc* | ifort*) |
| 8740 | lt_prog_compiler_wl='-Wl,' |
| 8741 | lt_prog_compiler_pic='-fPIC' |
| 8742 | lt_prog_compiler_static='-static' |
| 8743 | ;; |
| 8744 | # Lahey Fortran 8.1. |
| 8745 | lf95*) |
| 8746 | lt_prog_compiler_wl='-Wl,' |
| 8747 | lt_prog_compiler_pic='--shared' |
| 8748 | lt_prog_compiler_static='--static' |
| 8749 | ;; |
| 8750 | nagfor*) |
| 8751 | # NAG Fortran compiler |
| 8752 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8753 | lt_prog_compiler_pic='-PIC' |
| 8754 | lt_prog_compiler_static='-Bstatic' |
| 8755 | ;; |
| 8756 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8757 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8758 | # which looks to be a dead project) |
| 8759 | lt_prog_compiler_wl='-Wl,' |
| 8760 | lt_prog_compiler_pic='-fpic' |
| 8761 | lt_prog_compiler_static='-Bstatic' |
| 8762 | ;; |
| 8763 | ccc*) |
| 8764 | lt_prog_compiler_wl='-Wl,' |
| 8765 | # All Alpha code is PIC. |
| 8766 | lt_prog_compiler_static='-non_shared' |
| 8767 | ;; |
| 8768 | xl* | bgxl* | bgf* | mpixl*) |
| 8769 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8770 | lt_prog_compiler_wl='-Wl,' |
| 8771 | lt_prog_compiler_pic='-qpic' |
| 8772 | lt_prog_compiler_static='-qstaticlink' |
| 8773 | ;; |
| 8774 | *) |
| 8775 | case `$CC -V 2>&1 | sed 5q` in |
| 8776 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 8777 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8778 | lt_prog_compiler_pic='-KPIC' |
| 8779 | lt_prog_compiler_static='-Bstatic' |
| 8780 | lt_prog_compiler_wl='' |
| 8781 | ;; |
| 8782 | *Sun\ F* | *Sun*Fortran*) |
| 8783 | lt_prog_compiler_pic='-KPIC' |
| 8784 | lt_prog_compiler_static='-Bstatic' |
| 8785 | lt_prog_compiler_wl='-Qoption ld ' |
| 8786 | ;; |
| 8787 | *Sun\ C*) |
| 8788 | # Sun C 5.9 |
| 8789 | lt_prog_compiler_pic='-KPIC' |
| 8790 | lt_prog_compiler_static='-Bstatic' |
| 8791 | lt_prog_compiler_wl='-Wl,' |
| 8792 | ;; |
| 8793 | *Intel*\ [CF]*Compiler*) |
| 8794 | lt_prog_compiler_wl='-Wl,' |
| 8795 | lt_prog_compiler_pic='-fPIC' |
| 8796 | lt_prog_compiler_static='-static' |
| 8797 | ;; |
| 8798 | *Portland\ Group*) |
| 8799 | lt_prog_compiler_wl='-Wl,' |
| 8800 | lt_prog_compiler_pic='-fpic' |
| 8801 | lt_prog_compiler_static='-Bstatic' |
| 8802 | ;; |
| 8803 | esac |
| 8804 | ;; |
| 8805 | esac |
| 8806 | ;; |
| 8807 | |
| 8808 | newsos6) |
| 8809 | lt_prog_compiler_pic='-KPIC' |
| 8810 | lt_prog_compiler_static='-Bstatic' |
| 8811 | ;; |
| 8812 | |
| 8813 | *nto* | *qnx*) |
| 8814 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8815 | # it will coredump. |
| 8816 | lt_prog_compiler_pic='-fPIC -shared' |
| 8817 | ;; |
| 8818 | |
| 8819 | osf3* | osf4* | osf5*) |
| 8820 | lt_prog_compiler_wl='-Wl,' |
| 8821 | # All OSF/1 code is PIC. |
| 8822 | lt_prog_compiler_static='-non_shared' |
| 8823 | ;; |
| 8824 | |
| 8825 | rdos*) |
| 8826 | lt_prog_compiler_static='-non_shared' |
| 8827 | ;; |
| 8828 | |
| 8829 | solaris*) |
| 8830 | lt_prog_compiler_pic='-KPIC' |
| 8831 | lt_prog_compiler_static='-Bstatic' |
| 8832 | case $cc_basename in |
| 8833 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 8834 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8835 | *) |
| 8836 | lt_prog_compiler_wl='-Wl,';; |
| 8837 | esac |
| 8838 | ;; |
| 8839 | |
| 8840 | sunos4*) |
| 8841 | lt_prog_compiler_wl='-Qoption ld ' |
| 8842 | lt_prog_compiler_pic='-PIC' |
| 8843 | lt_prog_compiler_static='-Bstatic' |
| 8844 | ;; |
| 8845 | |
| 8846 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8847 | lt_prog_compiler_wl='-Wl,' |
| 8848 | lt_prog_compiler_pic='-KPIC' |
| 8849 | lt_prog_compiler_static='-Bstatic' |
| 8850 | ;; |
| 8851 | |
| 8852 | sysv4*MP*) |
| 8853 | if test -d /usr/nec ;then |
| 8854 | lt_prog_compiler_pic='-Kconform_pic' |
| 8855 | lt_prog_compiler_static='-Bstatic' |
| 8856 | fi |
| 8857 | ;; |
| 8858 | |
| 8859 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8860 | lt_prog_compiler_wl='-Wl,' |
| 8861 | lt_prog_compiler_pic='-KPIC' |
| 8862 | lt_prog_compiler_static='-Bstatic' |
| 8863 | ;; |
| 8864 | |
| 8865 | unicos*) |
| 8866 | lt_prog_compiler_wl='-Wl,' |
| 8867 | lt_prog_compiler_can_build_shared=no |
| 8868 | ;; |
| 8869 | |
| 8870 | uts4*) |
| 8871 | lt_prog_compiler_pic='-pic' |
| 8872 | lt_prog_compiler_static='-Bstatic' |
| 8873 | ;; |
| 8874 | |
| 8875 | *) |
| 8876 | lt_prog_compiler_can_build_shared=no |
| 8877 | ;; |
| 8878 | esac |
| 8879 | fi |
| 8880 | |
| 8881 | case $host_os in |
| 8882 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8883 | *djgpp*) |
| 8884 | lt_prog_compiler_pic= |
| 8885 | ;; |
| 8886 | *) |
| 8887 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8888 | ;; |
| 8889 | esac |
| 8890 | |
| 8891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8892 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8893 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 8894 | $as_echo_n "(cached) " >&6 |
| 8895 | else |
| 8896 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8897 | fi |
| 8898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 8899 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 8900 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 8901 | |
| 8902 | # |
| 8903 | # Check to make sure the PIC flag actually works. |
| 8904 | # |
| 8905 | if test -n "$lt_prog_compiler_pic"; then |
| 8906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8907 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8908 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 8909 | $as_echo_n "(cached) " >&6 |
| 8910 | else |
| 8911 | lt_cv_prog_compiler_pic_works=no |
| 8912 | ac_outfile=conftest.$ac_objext |
| 8913 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8914 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8915 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8916 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8917 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8918 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8919 | # The option is referenced via a variable to avoid confusing sed. |
| 8920 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8921 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8922 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8923 | -e 's:$: $lt_compiler_flag:'` |
| 8924 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8925 | (eval "$lt_compile" 2>conftest.err) |
| 8926 | ac_status=$? |
| 8927 | cat conftest.err >&5 |
| 8928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8929 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8930 | # The compiler can only warn and ignore the option if not recognized |
| 8931 | # So say no if there are warnings other than the usual output. |
| 8932 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8933 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8934 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8935 | lt_cv_prog_compiler_pic_works=yes |
| 8936 | fi |
| 8937 | fi |
| 8938 | $RM conftest* |
| 8939 | |
| 8940 | fi |
| 8941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8942 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 8943 | |
| 8944 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 8945 | case $lt_prog_compiler_pic in |
| 8946 | "" | " "*) ;; |
| 8947 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8948 | esac |
| 8949 | else |
| 8950 | lt_prog_compiler_pic= |
| 8951 | lt_prog_compiler_can_build_shared=no |
| 8952 | fi |
| 8953 | |
| 8954 | fi |
| 8955 | |
| 8956 | |
| 8957 | |
| 8958 | |
| 8959 | |
| 8960 | |
| 8961 | |
| 8962 | |
| 8963 | |
| 8964 | |
| 8965 | |
| 8966 | # |
| 8967 | # Check to make sure the static flag actually works. |
| 8968 | # |
| 8969 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 8970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8971 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8972 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 8973 | $as_echo_n "(cached) " >&6 |
| 8974 | else |
| 8975 | lt_cv_prog_compiler_static_works=no |
| 8976 | save_LDFLAGS="$LDFLAGS" |
| 8977 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 8978 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 8979 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8980 | # The linker can only warn and ignore the option if not recognized |
| 8981 | # So say no if there are warnings |
| 8982 | if test -s conftest.err; then |
| 8983 | # Append any errors to the config.log. |
| 8984 | cat conftest.err 1>&5 |
| 8985 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 8986 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8987 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 8988 | lt_cv_prog_compiler_static_works=yes |
| 8989 | fi |
| 8990 | else |
| 8991 | lt_cv_prog_compiler_static_works=yes |
| 8992 | fi |
| 8993 | fi |
| 8994 | $RM -r conftest* |
| 8995 | LDFLAGS="$save_LDFLAGS" |
| 8996 | |
| 8997 | fi |
| 8998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8999 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 9000 | |
| 9001 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 9002 | : |
| 9003 | else |
| 9004 | lt_prog_compiler_static= |
| 9005 | fi |
| 9006 | |
| 9007 | |
| 9008 | |
| 9009 | |
| 9010 | |
| 9011 | |
| 9012 | |
| 9013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9014 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9015 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9016 | $as_echo_n "(cached) " >&6 |
| 9017 | else |
| 9018 | lt_cv_prog_compiler_c_o=no |
| 9019 | $RM -r conftest 2>/dev/null |
| 9020 | mkdir conftest |
| 9021 | cd conftest |
| 9022 | mkdir out |
| 9023 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9024 | |
| 9025 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9026 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9027 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9028 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9029 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9030 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9031 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9032 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9033 | -e 's:$: $lt_compiler_flag:'` |
| 9034 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9035 | (eval "$lt_compile" 2>out/conftest.err) |
| 9036 | ac_status=$? |
| 9037 | cat out/conftest.err >&5 |
| 9038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9039 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9040 | then |
| 9041 | # The compiler can only warn and ignore the option if not recognized |
| 9042 | # So say no if there are warnings |
| 9043 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9044 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9045 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9046 | lt_cv_prog_compiler_c_o=yes |
| 9047 | fi |
| 9048 | fi |
| 9049 | chmod u+w . 2>&5 |
| 9050 | $RM conftest* |
| 9051 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9052 | # template instantiation |
| 9053 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9054 | $RM out/* && rmdir out |
| 9055 | cd .. |
| 9056 | $RM -r conftest |
| 9057 | $RM conftest* |
| 9058 | |
| 9059 | fi |
| 9060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9061 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9062 | |
| 9063 | |
| 9064 | |
| 9065 | |
| 9066 | |
| 9067 | |
| 9068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9069 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9070 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9071 | $as_echo_n "(cached) " >&6 |
| 9072 | else |
| 9073 | lt_cv_prog_compiler_c_o=no |
| 9074 | $RM -r conftest 2>/dev/null |
| 9075 | mkdir conftest |
| 9076 | cd conftest |
| 9077 | mkdir out |
| 9078 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9079 | |
| 9080 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9081 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9082 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9083 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9084 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9085 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9086 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9087 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9088 | -e 's:$: $lt_compiler_flag:'` |
| 9089 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9090 | (eval "$lt_compile" 2>out/conftest.err) |
| 9091 | ac_status=$? |
| 9092 | cat out/conftest.err >&5 |
| 9093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9094 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9095 | then |
| 9096 | # The compiler can only warn and ignore the option if not recognized |
| 9097 | # So say no if there are warnings |
| 9098 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9099 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9100 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9101 | lt_cv_prog_compiler_c_o=yes |
| 9102 | fi |
| 9103 | fi |
| 9104 | chmod u+w . 2>&5 |
| 9105 | $RM conftest* |
| 9106 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9107 | # template instantiation |
| 9108 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9109 | $RM out/* && rmdir out |
| 9110 | cd .. |
| 9111 | $RM -r conftest |
| 9112 | $RM conftest* |
| 9113 | |
| 9114 | fi |
| 9115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9116 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9117 | |
| 9118 | |
| 9119 | |
| 9120 | |
| 9121 | hard_links="nottested" |
| 9122 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 9123 | # do not overwrite the value of need_locks provided by the user |
| 9124 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 9125 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 9126 | hard_links=yes |
| 9127 | $RM conftest* |
| 9128 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9129 | touch conftest.a |
| 9130 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 9131 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 9133 | $as_echo "$hard_links" >&6; } |
| 9134 | if test "$hard_links" = no; then |
| 9135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 9136 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 9137 | need_locks=warn |
| 9138 | fi |
| 9139 | else |
| 9140 | need_locks=no |
| 9141 | fi |
| 9142 | |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | |
| 9147 | |
| 9148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9149 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 9150 | |
| 9151 | runpath_var= |
| 9152 | allow_undefined_flag= |
| 9153 | always_export_symbols=no |
| 9154 | archive_cmds= |
| 9155 | archive_expsym_cmds= |
| 9156 | compiler_needs_object=no |
| 9157 | enable_shared_with_static_runtimes=no |
| 9158 | export_dynamic_flag_spec= |
| 9159 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9160 | hardcode_automatic=no |
| 9161 | hardcode_direct=no |
| 9162 | hardcode_direct_absolute=no |
| 9163 | hardcode_libdir_flag_spec= |
| 9164 | hardcode_libdir_separator= |
| 9165 | hardcode_minus_L=no |
| 9166 | hardcode_shlibpath_var=unsupported |
| 9167 | inherit_rpath=no |
| 9168 | link_all_deplibs=unknown |
| 9169 | module_cmds= |
| 9170 | module_expsym_cmds= |
| 9171 | old_archive_from_new_cmds= |
| 9172 | old_archive_from_expsyms_cmds= |
| 9173 | thread_safe_flag_spec= |
| 9174 | whole_archive_flag_spec= |
| 9175 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 9176 | # included in the symbol list |
| 9177 | include_expsyms= |
| 9178 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 9179 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 9180 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 9181 | # as well as any symbol that contains `d'. |
| 9182 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 9183 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9184 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 9185 | # the symbol is explicitly referenced. Since portable code cannot |
| 9186 | # rely on this symbol name, it's probably fine to never include it in |
| 9187 | # preloaded symbol tables. |
| 9188 | # Exclude shared library initialization/finalization symbols. |
| 9189 | extract_expsyms_cmds= |
| 9190 | |
| 9191 | case $host_os in |
| 9192 | cygwin* | mingw* | pw32* | cegcc*) |
| 9193 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9194 | # When not using gcc, we currently assume that we are using |
| 9195 | # Microsoft Visual C++. |
| 9196 | if test "$GCC" != yes; then |
| 9197 | with_gnu_ld=no |
| 9198 | fi |
| 9199 | ;; |
| 9200 | interix*) |
| 9201 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9202 | with_gnu_ld=yes |
| 9203 | ;; |
| 9204 | openbsd*) |
| 9205 | with_gnu_ld=no |
| 9206 | ;; |
| 9207 | esac |
| 9208 | |
| 9209 | ld_shlibs=yes |
| 9210 | |
| 9211 | # On some targets, GNU ld is compatible enough with the native linker |
| 9212 | # that we're better off using the native interface for both. |
| 9213 | lt_use_gnu_ld_interface=no |
| 9214 | if test "$with_gnu_ld" = yes; then |
| 9215 | case $host_os in |
| 9216 | aix*) |
| 9217 | # The AIX port of GNU ld has always aspired to compatibility |
| 9218 | # with the native linker. However, as the warning in the GNU ld |
| 9219 | # block says, versions before 2.19.5* couldn't really create working |
| 9220 | # shared libraries, regardless of the interface used. |
| 9221 | case `$LD -v 2>&1` in |
| 9222 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 9223 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 9224 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 9225 | *) |
| 9226 | lt_use_gnu_ld_interface=yes |
| 9227 | ;; |
| 9228 | esac |
| 9229 | ;; |
| 9230 | *) |
| 9231 | lt_use_gnu_ld_interface=yes |
| 9232 | ;; |
| 9233 | esac |
| 9234 | fi |
| 9235 | |
| 9236 | if test "$lt_use_gnu_ld_interface" = yes; then |
| 9237 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9238 | wlarc='${wl}' |
| 9239 | |
| 9240 | # Set some defaults for GNU ld with shared library support. These |
| 9241 | # are reset later if shared libraries are not supported. Putting them |
| 9242 | # here allows them to be overridden if necessary. |
| 9243 | runpath_var=LD_RUN_PATH |
| 9244 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9245 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 9246 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9247 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9248 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9249 | else |
| 9250 | whole_archive_flag_spec= |
| 9251 | fi |
| 9252 | supports_anon_versioning=no |
| 9253 | case `$LD -v 2>&1` in |
| 9254 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 9255 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9256 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9257 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 9258 | *\ 2.11.*) ;; # other 2.11 versions |
| 9259 | *) supports_anon_versioning=yes ;; |
| 9260 | esac |
| 9261 | |
| 9262 | # See if GNU ld supports shared libraries. |
| 9263 | case $host_os in |
| 9264 | aix[3-9]*) |
| 9265 | # On AIX/PPC, the GNU linker is very broken |
| 9266 | if test "$host_cpu" != ia64; then |
| 9267 | ld_shlibs=no |
| 9268 | cat <<_LT_EOF 1>&2 |
| 9269 | |
| 9270 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 9271 | *** to be unable to reliably create shared libraries on AIX. |
| 9272 | *** Therefore, libtool is disabling shared libraries support. If you |
| 9273 | *** really care for shared libraries, you may want to install binutils |
| 9274 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 9275 | *** You will then need to restart the configuration process. |
| 9276 | |
| 9277 | _LT_EOF |
| 9278 | fi |
| 9279 | ;; |
| 9280 | |
| 9281 | amigaos*) |
| 9282 | case $host_cpu in |
| 9283 | powerpc) |
| 9284 | # see comment about AmigaOS4 .so support |
| 9285 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9286 | archive_expsym_cmds='' |
| 9287 | ;; |
| 9288 | m68k) |
| 9289 | 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)' |
| 9290 | hardcode_libdir_flag_spec='-L$libdir' |
| 9291 | hardcode_minus_L=yes |
| 9292 | ;; |
| 9293 | esac |
| 9294 | ;; |
| 9295 | |
| 9296 | beos*) |
| 9297 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9298 | allow_undefined_flag=unsupported |
| 9299 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9300 | # support --undefined. This deserves some investigation. FIXME |
| 9301 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9302 | else |
| 9303 | ld_shlibs=no |
| 9304 | fi |
| 9305 | ;; |
| 9306 | |
| 9307 | cygwin* | mingw* | pw32* | cegcc*) |
| 9308 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 9309 | # as there is no search path for DLLs. |
| 9310 | hardcode_libdir_flag_spec='-L$libdir' |
| 9311 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 9312 | allow_undefined_flag=unsupported |
| 9313 | always_export_symbols=no |
| 9314 | enable_shared_with_static_runtimes=yes |
| 9315 | 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' |
| 9316 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 9317 | |
| 9318 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9319 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9320 | # If the export-symbols file already is a .def file (1st line |
| 9321 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9322 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9323 | cp $export_symbols $output_objdir/$soname.def; |
| 9324 | else |
| 9325 | echo EXPORTS > $output_objdir/$soname.def; |
| 9326 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9327 | fi~ |
| 9328 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9329 | else |
| 9330 | ld_shlibs=no |
| 9331 | fi |
| 9332 | ;; |
| 9333 | |
| 9334 | haiku*) |
| 9335 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9336 | link_all_deplibs=yes |
| 9337 | ;; |
| 9338 | |
| 9339 | interix[3-9]*) |
| 9340 | hardcode_direct=no |
| 9341 | hardcode_shlibpath_var=no |
| 9342 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9343 | export_dynamic_flag_spec='${wl}-E' |
| 9344 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9345 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9346 | # default) and relocated if they conflict, which is a slow very memory |
| 9347 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9348 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9349 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9350 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9351 | 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' |
| 9352 | ;; |
| 9353 | |
| 9354 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9355 | tmp_diet=no |
| 9356 | if test "$host_os" = linux-dietlibc; then |
| 9357 | case $cc_basename in |
| 9358 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9359 | esac |
| 9360 | fi |
| 9361 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9362 | && test "$tmp_diet" = no |
| 9363 | then |
| 9364 | tmp_addflag=' $pic_flag' |
| 9365 | tmp_sharedflag='-shared' |
| 9366 | case $cc_basename,$host_cpu in |
| 9367 | pgcc*) # Portland Group C compiler |
| 9368 | 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' |
| 9369 | tmp_addflag=' $pic_flag' |
| 9370 | ;; |
| 9371 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9372 | # Portland Group f77 and f90 compilers |
| 9373 | 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' |
| 9374 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9375 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9376 | tmp_addflag=' -i_dynamic' ;; |
| 9377 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9378 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9379 | ifc* | ifort*) # Intel Fortran compiler |
| 9380 | tmp_addflag=' -nofor_main' ;; |
| 9381 | lf95*) # Lahey Fortran 8.1 |
| 9382 | whole_archive_flag_spec= |
| 9383 | tmp_sharedflag='--shared' ;; |
| 9384 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9385 | tmp_sharedflag='-qmkshrobj' |
| 9386 | tmp_addflag= ;; |
| 9387 | nvcc*) # Cuda Compiler Driver 2.2 |
| 9388 | 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' |
| 9389 | compiler_needs_object=yes |
| 9390 | ;; |
| 9391 | esac |
| 9392 | case `$CC -V 2>&1 | sed 5q` in |
| 9393 | *Sun\ C*) # Sun C 5.9 |
| 9394 | 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' |
| 9395 | compiler_needs_object=yes |
| 9396 | tmp_sharedflag='-G' ;; |
| 9397 | *Sun\ F*) # Sun Fortran 8.3 |
| 9398 | tmp_sharedflag='-G' ;; |
| 9399 | esac |
| 9400 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9401 | |
| 9402 | if test "x$supports_anon_versioning" = xyes; then |
| 9403 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9404 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9405 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9406 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9407 | fi |
| 9408 | |
| 9409 | case $cc_basename in |
| 9410 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 9411 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9412 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9413 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9414 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 9415 | if test "x$supports_anon_versioning" = xyes; then |
| 9416 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9417 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9418 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9419 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9420 | fi |
| 9421 | ;; |
| 9422 | esac |
| 9423 | else |
| 9424 | ld_shlibs=no |
| 9425 | fi |
| 9426 | ;; |
| 9427 | |
| 9428 | netbsd*) |
| 9429 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9430 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9431 | wlarc= |
| 9432 | else |
| 9433 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9434 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9435 | fi |
| 9436 | ;; |
| 9437 | |
| 9438 | solaris*) |
| 9439 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 9440 | ld_shlibs=no |
| 9441 | cat <<_LT_EOF 1>&2 |
| 9442 | |
| 9443 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9444 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9445 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9446 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9447 | *** your PATH or compiler configuration so that the native linker is |
| 9448 | *** used, and then restart. |
| 9449 | |
| 9450 | _LT_EOF |
| 9451 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9452 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9453 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9454 | else |
| 9455 | ld_shlibs=no |
| 9456 | fi |
| 9457 | ;; |
| 9458 | |
| 9459 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9460 | case `$LD -v 2>&1` in |
| 9461 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9462 | ld_shlibs=no |
| 9463 | cat <<_LT_EOF 1>&2 |
| 9464 | |
| 9465 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9466 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9467 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9468 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9469 | *** your PATH or compiler configuration so that the native linker is |
| 9470 | *** used, and then restart. |
| 9471 | |
| 9472 | _LT_EOF |
| 9473 | ;; |
| 9474 | *) |
| 9475 | # For security reasons, it is highly recommended that you always |
| 9476 | # use absolute paths for naming shared libraries, and exclude the |
| 9477 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9478 | # requires that you compile everything twice, which is a pain. |
| 9479 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9480 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9481 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9482 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9483 | else |
| 9484 | ld_shlibs=no |
| 9485 | fi |
| 9486 | ;; |
| 9487 | esac |
| 9488 | ;; |
| 9489 | |
| 9490 | sunos4*) |
| 9491 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9492 | wlarc= |
| 9493 | hardcode_direct=yes |
| 9494 | hardcode_shlibpath_var=no |
| 9495 | ;; |
| 9496 | |
| 9497 | *) |
| 9498 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9499 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9500 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9501 | else |
| 9502 | ld_shlibs=no |
| 9503 | fi |
| 9504 | ;; |
| 9505 | esac |
| 9506 | |
| 9507 | if test "$ld_shlibs" = no; then |
| 9508 | runpath_var= |
| 9509 | hardcode_libdir_flag_spec= |
| 9510 | export_dynamic_flag_spec= |
| 9511 | whole_archive_flag_spec= |
| 9512 | fi |
| 9513 | else |
| 9514 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9515 | case $host_os in |
| 9516 | aix3*) |
| 9517 | allow_undefined_flag=unsupported |
| 9518 | always_export_symbols=yes |
| 9519 | 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' |
| 9520 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9521 | # are no directories specified by -L. |
| 9522 | hardcode_minus_L=yes |
| 9523 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 9524 | # Neither direct hardcoding nor static linking is supported with a |
| 9525 | # broken collect2. |
| 9526 | hardcode_direct=unsupported |
| 9527 | fi |
| 9528 | ;; |
| 9529 | |
| 9530 | aix[4-9]*) |
| 9531 | if test "$host_cpu" = ia64; then |
| 9532 | # On IA64, the linker does run time linking by default, so we don't |
| 9533 | # have to do anything special. |
| 9534 | aix_use_runtimelinking=no |
| 9535 | exp_sym_flag='-Bexport' |
| 9536 | no_entry_flag="" |
| 9537 | else |
| 9538 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9539 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 9540 | # Also, AIX nm treats weak defined symbols like other global |
| 9541 | # defined symbols, whereas GNU nm marks them as "W". |
| 9542 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9543 | 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' |
| 9544 | else |
| 9545 | 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' |
| 9546 | fi |
| 9547 | aix_use_runtimelinking=no |
| 9548 | |
| 9549 | # Test if we are trying to use run time linking or normal |
| 9550 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9551 | # need to do runtime linking. |
| 9552 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 9553 | for ld_flag in $LDFLAGS; do |
| 9554 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9555 | aix_use_runtimelinking=yes |
| 9556 | break |
| 9557 | fi |
| 9558 | done |
| 9559 | ;; |
| 9560 | esac |
| 9561 | |
| 9562 | exp_sym_flag='-bexport' |
| 9563 | no_entry_flag='-bnoentry' |
| 9564 | fi |
| 9565 | |
| 9566 | # When large executables or shared objects are built, AIX ld can |
| 9567 | # have problems creating the table of contents. If linking a library |
| 9568 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9569 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9570 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9571 | |
| 9572 | archive_cmds='' |
| 9573 | hardcode_direct=yes |
| 9574 | hardcode_direct_absolute=yes |
| 9575 | hardcode_libdir_separator=':' |
| 9576 | link_all_deplibs=yes |
| 9577 | file_list_spec='${wl}-f,' |
| 9578 | |
| 9579 | if test "$GCC" = yes; then |
| 9580 | case $host_os in aix4.[012]|aix4.[012].*) |
| 9581 | # We only want to do this on AIX 4.2 and lower, the check |
| 9582 | # below for broken collect2 doesn't work under 4.3+ |
| 9583 | collect2name=`${CC} -print-prog-name=collect2` |
| 9584 | if test -f "$collect2name" && |
| 9585 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9586 | then |
| 9587 | # We have reworked collect2 |
| 9588 | : |
| 9589 | else |
| 9590 | # We have old collect2 |
| 9591 | hardcode_direct=unsupported |
| 9592 | # It fails to find uninstalled libraries when the uninstalled |
| 9593 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9594 | # to unsupported forces relinking |
| 9595 | hardcode_minus_L=yes |
| 9596 | hardcode_libdir_flag_spec='-L$libdir' |
| 9597 | hardcode_libdir_separator= |
| 9598 | fi |
| 9599 | ;; |
| 9600 | esac |
| 9601 | shared_flag='-shared' |
| 9602 | if test "$aix_use_runtimelinking" = yes; then |
| 9603 | shared_flag="$shared_flag "'${wl}-G' |
| 9604 | fi |
| 9605 | else |
| 9606 | # not using gcc |
| 9607 | if test "$host_cpu" = ia64; then |
| 9608 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9609 | # chokes on -Wl,-G. The following line is correct: |
| 9610 | shared_flag='-G' |
| 9611 | else |
| 9612 | if test "$aix_use_runtimelinking" = yes; then |
| 9613 | shared_flag='${wl}-G' |
| 9614 | else |
| 9615 | shared_flag='${wl}-bM:SRE' |
| 9616 | fi |
| 9617 | fi |
| 9618 | fi |
| 9619 | |
| 9620 | export_dynamic_flag_spec='${wl}-bexpall' |
| 9621 | # It seems that -bexpall does not export symbols beginning with |
| 9622 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9623 | always_export_symbols=yes |
| 9624 | if test "$aix_use_runtimelinking" = yes; then |
| 9625 | # Warning - without using the other runtime loading flags (-brtl), |
| 9626 | # -berok will link without error, but may produce a broken library. |
| 9627 | allow_undefined_flag='-berok' |
| 9628 | # Determine the default libpath from the value encoded in an |
| 9629 | # empty executable. |
| 9630 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9631 | aix_libpath=$lt_cv_aix_libpath |
| 9632 | else |
| 9633 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9634 | $as_echo_n "(cached) " >&6 |
| 9635 | else |
| 9636 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9637 | /* end confdefs.h. */ |
| 9638 | |
| 9639 | int |
| 9640 | main () |
| 9641 | { |
| 9642 | |
| 9643 | ; |
| 9644 | return 0; |
| 9645 | } |
| 9646 | _ACEOF |
| 9647 | if ac_fn_c_try_link "$LINENO"; then : |
| 9648 | |
| 9649 | lt_aix_libpath_sed=' |
| 9650 | /Import File Strings/,/^$/ { |
| 9651 | /^0/ { |
| 9652 | s/^0 *\([^ ]*\) *$/\1/ |
| 9653 | p |
| 9654 | } |
| 9655 | }' |
| 9656 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9657 | # Check for a 64-bit object if we didn't find anything. |
| 9658 | if test -z "$lt_cv_aix_libpath_"; then |
| 9659 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9660 | fi |
| 9661 | fi |
| 9662 | rm -f core conftest.err conftest.$ac_objext \ |
| 9663 | conftest$ac_exeext conftest.$ac_ext |
| 9664 | if test -z "$lt_cv_aix_libpath_"; then |
| 9665 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9666 | fi |
| 9667 | |
| 9668 | fi |
| 9669 | |
| 9670 | aix_libpath=$lt_cv_aix_libpath_ |
| 9671 | fi |
| 9672 | |
| 9673 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9674 | 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" |
| 9675 | else |
| 9676 | if test "$host_cpu" = ia64; then |
| 9677 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9678 | allow_undefined_flag="-z nodefs" |
| 9679 | 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" |
| 9680 | else |
| 9681 | # Determine the default libpath from the value encoded in an |
| 9682 | # empty executable. |
| 9683 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9684 | aix_libpath=$lt_cv_aix_libpath |
| 9685 | else |
| 9686 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9687 | $as_echo_n "(cached) " >&6 |
| 9688 | else |
| 9689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9690 | /* end confdefs.h. */ |
| 9691 | |
| 9692 | int |
| 9693 | main () |
| 9694 | { |
| 9695 | |
| 9696 | ; |
| 9697 | return 0; |
| 9698 | } |
| 9699 | _ACEOF |
| 9700 | if ac_fn_c_try_link "$LINENO"; then : |
| 9701 | |
| 9702 | lt_aix_libpath_sed=' |
| 9703 | /Import File Strings/,/^$/ { |
| 9704 | /^0/ { |
| 9705 | s/^0 *\([^ ]*\) *$/\1/ |
| 9706 | p |
| 9707 | } |
| 9708 | }' |
| 9709 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9710 | # Check for a 64-bit object if we didn't find anything. |
| 9711 | if test -z "$lt_cv_aix_libpath_"; then |
| 9712 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9713 | fi |
| 9714 | fi |
| 9715 | rm -f core conftest.err conftest.$ac_objext \ |
| 9716 | conftest$ac_exeext conftest.$ac_ext |
| 9717 | if test -z "$lt_cv_aix_libpath_"; then |
| 9718 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9719 | fi |
| 9720 | |
| 9721 | fi |
| 9722 | |
| 9723 | aix_libpath=$lt_cv_aix_libpath_ |
| 9724 | fi |
| 9725 | |
| 9726 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9727 | # Warning - without using the other run time loading flags, |
| 9728 | # -berok will link without error, but may produce a broken library. |
| 9729 | no_undefined_flag=' ${wl}-bernotok' |
| 9730 | allow_undefined_flag=' ${wl}-berok' |
| 9731 | if test "$with_gnu_ld" = yes; then |
| 9732 | # We only use this code for GNU lds that support --whole-archive. |
| 9733 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9734 | else |
| 9735 | # Exported symbols can be pulled into shared objects from archives |
| 9736 | whole_archive_flag_spec='$convenience' |
| 9737 | fi |
| 9738 | archive_cmds_need_lc=yes |
| 9739 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9740 | 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' |
| 9741 | fi |
| 9742 | fi |
| 9743 | ;; |
| 9744 | |
| 9745 | amigaos*) |
| 9746 | case $host_cpu in |
| 9747 | powerpc) |
| 9748 | # see comment about AmigaOS4 .so support |
| 9749 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9750 | archive_expsym_cmds='' |
| 9751 | ;; |
| 9752 | m68k) |
| 9753 | 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)' |
| 9754 | hardcode_libdir_flag_spec='-L$libdir' |
| 9755 | hardcode_minus_L=yes |
| 9756 | ;; |
| 9757 | esac |
| 9758 | ;; |
| 9759 | |
| 9760 | bsdi[45]*) |
| 9761 | export_dynamic_flag_spec=-rdynamic |
| 9762 | ;; |
| 9763 | |
| 9764 | cygwin* | mingw* | pw32* | cegcc*) |
| 9765 | # When not using gcc, we currently assume that we are using |
| 9766 | # Microsoft Visual C++. |
| 9767 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9768 | # no search path for DLLs. |
| 9769 | case $cc_basename in |
| 9770 | cl*) |
| 9771 | # Native MSVC |
| 9772 | hardcode_libdir_flag_spec=' ' |
| 9773 | allow_undefined_flag=unsupported |
| 9774 | always_export_symbols=yes |
| 9775 | file_list_spec='@' |
| 9776 | # Tell ltmain to make .lib files, not .a files. |
| 9777 | libext=lib |
| 9778 | # Tell ltmain to make .dll files, not .so files. |
| 9779 | shrext_cmds=".dll" |
| 9780 | # FIXME: Setting linknames here is a bad hack. |
| 9781 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 9782 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9783 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 9784 | else |
| 9785 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 9786 | fi~ |
| 9787 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 9788 | linknames=' |
| 9789 | # The linker will not automatically build a static lib if we build a DLL. |
| 9790 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 9791 | enable_shared_with_static_runtimes=yes |
| 9792 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 9793 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9794 | # Don't use ranlib |
| 9795 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9796 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 9797 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 9798 | case $lt_outputfile in |
| 9799 | *.exe|*.EXE) ;; |
| 9800 | *) |
| 9801 | lt_outputfile="$lt_outputfile.exe" |
| 9802 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 9803 | ;; |
| 9804 | esac~ |
| 9805 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 9806 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 9807 | $RM "$lt_outputfile.manifest"; |
| 9808 | fi' |
| 9809 | ;; |
| 9810 | *) |
| 9811 | # Assume MSVC wrapper |
| 9812 | hardcode_libdir_flag_spec=' ' |
| 9813 | allow_undefined_flag=unsupported |
| 9814 | # Tell ltmain to make .lib files, not .a files. |
| 9815 | libext=lib |
| 9816 | # Tell ltmain to make .dll files, not .so files. |
| 9817 | shrext_cmds=".dll" |
| 9818 | # FIXME: Setting linknames here is a bad hack. |
| 9819 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9820 | # The linker will automatically build a .lib file if we build a DLL. |
| 9821 | old_archive_from_new_cmds='true' |
| 9822 | # FIXME: Should let the user specify the lib program. |
| 9823 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9824 | enable_shared_with_static_runtimes=yes |
| 9825 | ;; |
| 9826 | esac |
| 9827 | ;; |
| 9828 | |
| 9829 | darwin* | rhapsody*) |
| 9830 | |
| 9831 | |
| 9832 | archive_cmds_need_lc=no |
| 9833 | hardcode_direct=no |
| 9834 | hardcode_automatic=yes |
| 9835 | hardcode_shlibpath_var=unsupported |
| 9836 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 9837 | 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\"`' |
| 9838 | |
| 9839 | else |
| 9840 | whole_archive_flag_spec='' |
| 9841 | fi |
| 9842 | link_all_deplibs=yes |
| 9843 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9844 | case $cc_basename in |
| 9845 | ifort*) _lt_dar_can_shared=yes ;; |
| 9846 | *) _lt_dar_can_shared=$GCC ;; |
| 9847 | esac |
| 9848 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9849 | output_verbose_link_cmd=func_echo_all |
| 9850 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9851 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9852 | 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}" |
| 9853 | 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}" |
| 9854 | |
| 9855 | else |
| 9856 | ld_shlibs=no |
| 9857 | fi |
| 9858 | |
| 9859 | ;; |
| 9860 | |
| 9861 | dgux*) |
| 9862 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9863 | hardcode_libdir_flag_spec='-L$libdir' |
| 9864 | hardcode_shlibpath_var=no |
| 9865 | ;; |
| 9866 | |
| 9867 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9868 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9869 | # does not break anything, and helps significantly (at the cost of a little |
| 9870 | # extra space). |
| 9871 | freebsd2.2*) |
| 9872 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9873 | hardcode_libdir_flag_spec='-R$libdir' |
| 9874 | hardcode_direct=yes |
| 9875 | hardcode_shlibpath_var=no |
| 9876 | ;; |
| 9877 | |
| 9878 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9879 | freebsd2.*) |
| 9880 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9881 | hardcode_direct=yes |
| 9882 | hardcode_minus_L=yes |
| 9883 | hardcode_shlibpath_var=no |
| 9884 | ;; |
| 9885 | |
| 9886 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 9887 | freebsd* | dragonfly*) |
| 9888 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9889 | hardcode_libdir_flag_spec='-R$libdir' |
| 9890 | hardcode_direct=yes |
| 9891 | hardcode_shlibpath_var=no |
| 9892 | ;; |
| 9893 | |
| 9894 | hpux9*) |
| 9895 | if test "$GCC" = yes; then |
| 9896 | 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' |
| 9897 | else |
| 9898 | 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' |
| 9899 | fi |
| 9900 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9901 | hardcode_libdir_separator=: |
| 9902 | hardcode_direct=yes |
| 9903 | |
| 9904 | # hardcode_minus_L: Not really in the search PATH, |
| 9905 | # but as the default location of the library. |
| 9906 | hardcode_minus_L=yes |
| 9907 | export_dynamic_flag_spec='${wl}-E' |
| 9908 | ;; |
| 9909 | |
| 9910 | hpux10*) |
| 9911 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9912 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9913 | else |
| 9914 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9915 | fi |
| 9916 | if test "$with_gnu_ld" = no; then |
| 9917 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9918 | hardcode_libdir_separator=: |
| 9919 | hardcode_direct=yes |
| 9920 | hardcode_direct_absolute=yes |
| 9921 | export_dynamic_flag_spec='${wl}-E' |
| 9922 | # hardcode_minus_L: Not really in the search PATH, |
| 9923 | # but as the default location of the library. |
| 9924 | hardcode_minus_L=yes |
| 9925 | fi |
| 9926 | ;; |
| 9927 | |
| 9928 | hpux11*) |
| 9929 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 9930 | case $host_cpu in |
| 9931 | hppa*64*) |
| 9932 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9933 | ;; |
| 9934 | ia64*) |
| 9935 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9936 | ;; |
| 9937 | *) |
| 9938 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9939 | ;; |
| 9940 | esac |
| 9941 | else |
| 9942 | case $host_cpu in |
| 9943 | hppa*64*) |
| 9944 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9945 | ;; |
| 9946 | ia64*) |
| 9947 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 9948 | ;; |
| 9949 | *) |
| 9950 | |
| 9951 | # Older versions of the 11.00 compiler do not understand -b yet |
| 9952 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 9953 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 9954 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 9955 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 9956 | $as_echo_n "(cached) " >&6 |
| 9957 | else |
| 9958 | lt_cv_prog_compiler__b=no |
| 9959 | save_LDFLAGS="$LDFLAGS" |
| 9960 | LDFLAGS="$LDFLAGS -b" |
| 9961 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9962 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9963 | # The linker can only warn and ignore the option if not recognized |
| 9964 | # So say no if there are warnings |
| 9965 | if test -s conftest.err; then |
| 9966 | # Append any errors to the config.log. |
| 9967 | cat conftest.err 1>&5 |
| 9968 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9969 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9970 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 9971 | lt_cv_prog_compiler__b=yes |
| 9972 | fi |
| 9973 | else |
| 9974 | lt_cv_prog_compiler__b=yes |
| 9975 | fi |
| 9976 | fi |
| 9977 | $RM -r conftest* |
| 9978 | LDFLAGS="$save_LDFLAGS" |
| 9979 | |
| 9980 | fi |
| 9981 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 9982 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 9983 | |
| 9984 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 9985 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9986 | else |
| 9987 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9988 | fi |
| 9989 | |
| 9990 | ;; |
| 9991 | esac |
| 9992 | fi |
| 9993 | if test "$with_gnu_ld" = no; then |
| 9994 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9995 | hardcode_libdir_separator=: |
| 9996 | |
| 9997 | case $host_cpu in |
| 9998 | hppa*64*|ia64*) |
| 9999 | hardcode_direct=no |
| 10000 | hardcode_shlibpath_var=no |
| 10001 | ;; |
| 10002 | *) |
| 10003 | hardcode_direct=yes |
| 10004 | hardcode_direct_absolute=yes |
| 10005 | export_dynamic_flag_spec='${wl}-E' |
| 10006 | |
| 10007 | # hardcode_minus_L: Not really in the search PATH, |
| 10008 | # but as the default location of the library. |
| 10009 | hardcode_minus_L=yes |
| 10010 | ;; |
| 10011 | esac |
| 10012 | fi |
| 10013 | ;; |
| 10014 | |
| 10015 | irix5* | irix6* | nonstopux*) |
| 10016 | if test "$GCC" = yes; then |
| 10017 | 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' |
| 10018 | # Try to use the -exported_symbol ld option, if it does not |
| 10019 | # work, assume that -exports_file does not work either and |
| 10020 | # implicitly export all symbols. |
| 10021 | # This should be the same for all languages, so no per-tag cache variable. |
| 10022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 10023 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 10024 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 10025 | $as_echo_n "(cached) " >&6 |
| 10026 | else |
| 10027 | save_LDFLAGS="$LDFLAGS" |
| 10028 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 10029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10030 | /* end confdefs.h. */ |
| 10031 | int foo (void) { return 0; } |
| 10032 | _ACEOF |
| 10033 | if ac_fn_c_try_link "$LINENO"; then : |
| 10034 | lt_cv_irix_exported_symbol=yes |
| 10035 | else |
| 10036 | lt_cv_irix_exported_symbol=no |
| 10037 | fi |
| 10038 | rm -f core conftest.err conftest.$ac_objext \ |
| 10039 | conftest$ac_exeext conftest.$ac_ext |
| 10040 | LDFLAGS="$save_LDFLAGS" |
| 10041 | fi |
| 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 10043 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 10044 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 10045 | 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' |
| 10046 | fi |
| 10047 | else |
| 10048 | 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' |
| 10049 | 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' |
| 10050 | fi |
| 10051 | archive_cmds_need_lc='no' |
| 10052 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10053 | hardcode_libdir_separator=: |
| 10054 | inherit_rpath=yes |
| 10055 | link_all_deplibs=yes |
| 10056 | ;; |
| 10057 | |
| 10058 | netbsd*) |
| 10059 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10060 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10061 | else |
| 10062 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 10063 | fi |
| 10064 | hardcode_libdir_flag_spec='-R$libdir' |
| 10065 | hardcode_direct=yes |
| 10066 | hardcode_shlibpath_var=no |
| 10067 | ;; |
| 10068 | |
| 10069 | newsos6) |
| 10070 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10071 | hardcode_direct=yes |
| 10072 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10073 | hardcode_libdir_separator=: |
| 10074 | hardcode_shlibpath_var=no |
| 10075 | ;; |
| 10076 | |
| 10077 | *nto* | *qnx*) |
| 10078 | ;; |
| 10079 | |
| 10080 | openbsd*) |
| 10081 | if test -f /usr/libexec/ld.so; then |
| 10082 | hardcode_direct=yes |
| 10083 | hardcode_shlibpath_var=no |
| 10084 | hardcode_direct_absolute=yes |
| 10085 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10086 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10087 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 10088 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10089 | export_dynamic_flag_spec='${wl}-E' |
| 10090 | else |
| 10091 | case $host_os in |
| 10092 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 10093 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10094 | hardcode_libdir_flag_spec='-R$libdir' |
| 10095 | ;; |
| 10096 | *) |
| 10097 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10098 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10099 | ;; |
| 10100 | esac |
| 10101 | fi |
| 10102 | else |
| 10103 | ld_shlibs=no |
| 10104 | fi |
| 10105 | ;; |
| 10106 | |
| 10107 | os2*) |
| 10108 | hardcode_libdir_flag_spec='-L$libdir' |
| 10109 | hardcode_minus_L=yes |
| 10110 | allow_undefined_flag=unsupported |
| 10111 | 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' |
| 10112 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 10113 | ;; |
| 10114 | |
| 10115 | osf3*) |
| 10116 | if test "$GCC" = yes; then |
| 10117 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10118 | 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' |
| 10119 | else |
| 10120 | allow_undefined_flag=' -expect_unresolved \*' |
| 10121 | 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' |
| 10122 | fi |
| 10123 | archive_cmds_need_lc='no' |
| 10124 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10125 | hardcode_libdir_separator=: |
| 10126 | ;; |
| 10127 | |
| 10128 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 10129 | if test "$GCC" = yes; then |
| 10130 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10131 | 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' |
| 10132 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10133 | else |
| 10134 | allow_undefined_flag=' -expect_unresolved \*' |
| 10135 | 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' |
| 10136 | 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~ |
| 10137 | $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' |
| 10138 | |
| 10139 | # Both c and cxx compiler support -rpath directly |
| 10140 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 10141 | fi |
| 10142 | archive_cmds_need_lc='no' |
| 10143 | hardcode_libdir_separator=: |
| 10144 | ;; |
| 10145 | |
| 10146 | solaris*) |
| 10147 | no_undefined_flag=' -z defs' |
| 10148 | if test "$GCC" = yes; then |
| 10149 | wlarc='${wl}' |
| 10150 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10151 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10152 | $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' |
| 10153 | else |
| 10154 | case `$CC -V 2>&1` in |
| 10155 | *"Compilers 5.0"*) |
| 10156 | wlarc='' |
| 10157 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10158 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10159 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10160 | ;; |
| 10161 | *) |
| 10162 | wlarc='${wl}' |
| 10163 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10164 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10165 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10166 | ;; |
| 10167 | esac |
| 10168 | fi |
| 10169 | hardcode_libdir_flag_spec='-R$libdir' |
| 10170 | hardcode_shlibpath_var=no |
| 10171 | case $host_os in |
| 10172 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10173 | *) |
| 10174 | # The compiler driver will combine and reorder linker options, |
| 10175 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 10176 | # but is careful enough not to reorder. |
| 10177 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10178 | if test "$GCC" = yes; then |
| 10179 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10180 | else |
| 10181 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 10182 | fi |
| 10183 | ;; |
| 10184 | esac |
| 10185 | link_all_deplibs=yes |
| 10186 | ;; |
| 10187 | |
| 10188 | sunos4*) |
| 10189 | if test "x$host_vendor" = xsequent; then |
| 10190 | # Use $CC to link under sequent, because it throws in some extra .o |
| 10191 | # files that make .init and .fini sections work. |
| 10192 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10193 | else |
| 10194 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10195 | fi |
| 10196 | hardcode_libdir_flag_spec='-L$libdir' |
| 10197 | hardcode_direct=yes |
| 10198 | hardcode_minus_L=yes |
| 10199 | hardcode_shlibpath_var=no |
| 10200 | ;; |
| 10201 | |
| 10202 | sysv4) |
| 10203 | case $host_vendor in |
| 10204 | sni) |
| 10205 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10206 | hardcode_direct=yes # is this really true??? |
| 10207 | ;; |
| 10208 | siemens) |
| 10209 | ## LD is ld it makes a PLAMLIB |
| 10210 | ## CC just makes a GrossModule. |
| 10211 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 10212 | reload_cmds='$CC -r -o $output$reload_objs' |
| 10213 | hardcode_direct=no |
| 10214 | ;; |
| 10215 | motorola) |
| 10216 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10217 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 10218 | ;; |
| 10219 | esac |
| 10220 | runpath_var='LD_RUN_PATH' |
| 10221 | hardcode_shlibpath_var=no |
| 10222 | ;; |
| 10223 | |
| 10224 | sysv4.3*) |
| 10225 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10226 | hardcode_shlibpath_var=no |
| 10227 | export_dynamic_flag_spec='-Bexport' |
| 10228 | ;; |
| 10229 | |
| 10230 | sysv4*MP*) |
| 10231 | if test -d /usr/nec; then |
| 10232 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10233 | hardcode_shlibpath_var=no |
| 10234 | runpath_var=LD_RUN_PATH |
| 10235 | hardcode_runpath_var=yes |
| 10236 | ld_shlibs=yes |
| 10237 | fi |
| 10238 | ;; |
| 10239 | |
| 10240 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 10241 | no_undefined_flag='${wl}-z,text' |
| 10242 | archive_cmds_need_lc=no |
| 10243 | hardcode_shlibpath_var=no |
| 10244 | runpath_var='LD_RUN_PATH' |
| 10245 | |
| 10246 | if test "$GCC" = yes; then |
| 10247 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10248 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10249 | else |
| 10250 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10251 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10252 | fi |
| 10253 | ;; |
| 10254 | |
| 10255 | sysv5* | sco3.2v5* | sco5v6*) |
| 10256 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 10257 | # link with -lc, and that would cause any symbols used from libc to |
| 10258 | # always be unresolved, which means just about no library would |
| 10259 | # ever link correctly. If we're not using GNU ld we use -z text |
| 10260 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 10261 | # as -z defs. |
| 10262 | no_undefined_flag='${wl}-z,text' |
| 10263 | allow_undefined_flag='${wl}-z,nodefs' |
| 10264 | archive_cmds_need_lc=no |
| 10265 | hardcode_shlibpath_var=no |
| 10266 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 10267 | hardcode_libdir_separator=':' |
| 10268 | link_all_deplibs=yes |
| 10269 | export_dynamic_flag_spec='${wl}-Bexport' |
| 10270 | runpath_var='LD_RUN_PATH' |
| 10271 | |
| 10272 | if test "$GCC" = yes; then |
| 10273 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10274 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10275 | else |
| 10276 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10277 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10278 | fi |
| 10279 | ;; |
| 10280 | |
| 10281 | uts4*) |
| 10282 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10283 | hardcode_libdir_flag_spec='-L$libdir' |
| 10284 | hardcode_shlibpath_var=no |
| 10285 | ;; |
| 10286 | |
| 10287 | *) |
| 10288 | ld_shlibs=no |
| 10289 | ;; |
| 10290 | esac |
| 10291 | |
| 10292 | if test x$host_vendor = xsni; then |
| 10293 | case $host in |
| 10294 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10295 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10296 | ;; |
| 10297 | esac |
| 10298 | fi |
| 10299 | fi |
| 10300 | |
| 10301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 10302 | $as_echo "$ld_shlibs" >&6; } |
| 10303 | test "$ld_shlibs" = no && can_build_shared=no |
| 10304 | |
| 10305 | with_gnu_ld=$with_gnu_ld |
| 10306 | |
| 10307 | |
| 10308 | |
| 10309 | |
| 10310 | |
| 10311 | |
| 10312 | |
| 10313 | |
| 10314 | |
| 10315 | |
| 10316 | |
| 10317 | |
| 10318 | |
| 10319 | |
| 10320 | |
| 10321 | # |
| 10322 | # Do we need to explicitly link libc? |
| 10323 | # |
| 10324 | case "x$archive_cmds_need_lc" in |
| 10325 | x|xyes) |
| 10326 | # Assume -lc should be added |
| 10327 | archive_cmds_need_lc=yes |
| 10328 | |
| 10329 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10330 | case $archive_cmds in |
| 10331 | *'~'*) |
| 10332 | # FIXME: we may have to deal with multi-command sequences. |
| 10333 | ;; |
| 10334 | '$CC '*) |
| 10335 | # Test whether the compiler implicitly links with -lc since on some |
| 10336 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10337 | # to ld, don't add -lc before -lgcc. |
| 10338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 10339 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 10340 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 10341 | $as_echo_n "(cached) " >&6 |
| 10342 | else |
| 10343 | $RM conftest* |
| 10344 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10345 | |
| 10346 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10347 | (eval $ac_compile) 2>&5 |
| 10348 | ac_status=$? |
| 10349 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10350 | test $ac_status = 0; } 2>conftest.err; then |
| 10351 | soname=conftest |
| 10352 | lib=conftest |
| 10353 | libobjs=conftest.$ac_objext |
| 10354 | deplibs= |
| 10355 | wl=$lt_prog_compiler_wl |
| 10356 | pic_flag=$lt_prog_compiler_pic |
| 10357 | compiler_flags=-v |
| 10358 | linker_flags=-v |
| 10359 | verstring= |
| 10360 | output_objdir=. |
| 10361 | libname=conftest |
| 10362 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 10363 | allow_undefined_flag= |
| 10364 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 10365 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10366 | ac_status=$? |
| 10367 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10368 | test $ac_status = 0; } |
| 10369 | then |
| 10370 | lt_cv_archive_cmds_need_lc=no |
| 10371 | else |
| 10372 | lt_cv_archive_cmds_need_lc=yes |
| 10373 | fi |
| 10374 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 10375 | else |
| 10376 | cat conftest.err 1>&5 |
| 10377 | fi |
| 10378 | $RM conftest* |
| 10379 | |
| 10380 | fi |
| 10381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 10382 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 10383 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 10384 | ;; |
| 10385 | esac |
| 10386 | fi |
| 10387 | ;; |
| 10388 | esac |
| 10389 | |
| 10390 | |
| 10391 | |
| 10392 | |
| 10393 | |
| 10394 | |
| 10395 | |
| 10396 | |
| 10397 | |
| 10398 | |
| 10399 | |
| 10400 | |
| 10401 | |
| 10402 | |
| 10403 | |
| 10404 | |
| 10405 | |
| 10406 | |
| 10407 | |
| 10408 | |
| 10409 | |
| 10410 | |
| 10411 | |
| 10412 | |
| 10413 | |
| 10414 | |
| 10415 | |
| 10416 | |
| 10417 | |
| 10418 | |
| 10419 | |
| 10420 | |
| 10421 | |
| 10422 | |
| 10423 | |
| 10424 | |
| 10425 | |
| 10426 | |
| 10427 | |
| 10428 | |
| 10429 | |
| 10430 | |
| 10431 | |
| 10432 | |
| 10433 | |
| 10434 | |
| 10435 | |
| 10436 | |
| 10437 | |
| 10438 | |
| 10439 | |
| 10440 | |
| 10441 | |
| 10442 | |
| 10443 | |
| 10444 | |
| 10445 | |
| 10446 | |
| 10447 | |
| 10448 | |
| 10449 | |
| 10450 | |
| 10451 | |
| 10452 | |
| 10453 | |
| 10454 | |
| 10455 | |
| 10456 | |
| 10457 | |
| 10458 | |
| 10459 | |
| 10460 | |
| 10461 | |
| 10462 | |
| 10463 | |
| 10464 | |
| 10465 | |
| 10466 | |
| 10467 | |
| 10468 | |
| 10469 | |
| 10470 | |
| 10471 | |
| 10472 | |
| 10473 | |
| 10474 | |
| 10475 | |
| 10476 | |
| 10477 | |
| 10478 | |
| 10479 | |
| 10480 | |
| 10481 | |
| 10482 | |
| 10483 | |
| 10484 | |
| 10485 | |
| 10486 | |
| 10487 | |
| 10488 | |
| 10489 | |
| 10490 | |
| 10491 | |
| 10492 | |
| 10493 | |
| 10494 | |
| 10495 | |
| 10496 | |
| 10497 | |
| 10498 | |
| 10499 | |
| 10500 | |
| 10501 | |
| 10502 | |
| 10503 | |
| 10504 | |
| 10505 | |
| 10506 | |
| 10507 | |
| 10508 | |
| 10509 | |
| 10510 | |
| 10511 | |
| 10512 | |
| 10513 | |
| 10514 | |
| 10515 | |
| 10516 | |
| 10517 | |
| 10518 | |
| 10519 | |
| 10520 | |
| 10521 | |
| 10522 | |
| 10523 | |
| 10524 | |
| 10525 | |
| 10526 | |
| 10527 | |
| 10528 | |
| 10529 | |
| 10530 | |
| 10531 | |
| 10532 | |
| 10533 | |
| 10534 | |
| 10535 | |
| 10536 | |
| 10537 | |
| 10538 | |
| 10539 | |
| 10540 | |
| 10541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10542 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 10543 | |
| 10544 | if test "$GCC" = yes; then |
| 10545 | case $host_os in |
| 10546 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10547 | *) lt_awk_arg="/^libraries:/" ;; |
| 10548 | esac |
| 10549 | case $host_os in |
| 10550 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 10551 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 10552 | esac |
| 10553 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10554 | case $lt_search_path_spec in |
| 10555 | *\;*) |
| 10556 | # if the path contains ";" then we assume it to be the separator |
| 10557 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10558 | # assumed that no part of a normal pathname contains ";" but that should |
| 10559 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10560 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 10561 | ;; |
| 10562 | *) |
| 10563 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 10564 | ;; |
| 10565 | esac |
| 10566 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10567 | # and add multilib dir if necessary. |
| 10568 | lt_tmp_lt_search_path_spec= |
| 10569 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10570 | for lt_sys_path in $lt_search_path_spec; do |
| 10571 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10572 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10573 | else |
| 10574 | test -d "$lt_sys_path" && \ |
| 10575 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10576 | fi |
| 10577 | done |
| 10578 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 10579 | BEGIN {RS=" "; FS="/|\n";} { |
| 10580 | lt_foo=""; |
| 10581 | lt_count=0; |
| 10582 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10583 | if ($lt_i != "" && $lt_i != ".") { |
| 10584 | if ($lt_i == "..") { |
| 10585 | lt_count++; |
| 10586 | } else { |
| 10587 | if (lt_count == 0) { |
| 10588 | lt_foo="/" $lt_i lt_foo; |
| 10589 | } else { |
| 10590 | lt_count--; |
| 10591 | } |
| 10592 | } |
| 10593 | } |
| 10594 | } |
| 10595 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10596 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10597 | }'` |
| 10598 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 10599 | # for these hosts. |
| 10600 | case $host_os in |
| 10601 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 10602 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 10603 | esac |
| 10604 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 10605 | else |
| 10606 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10607 | fi |
| 10608 | library_names_spec= |
| 10609 | libname_spec='lib$name' |
| 10610 | soname_spec= |
| 10611 | shrext_cmds=".so" |
| 10612 | postinstall_cmds= |
| 10613 | postuninstall_cmds= |
| 10614 | finish_cmds= |
| 10615 | finish_eval= |
| 10616 | shlibpath_var= |
| 10617 | shlibpath_overrides_runpath=unknown |
| 10618 | version_type=none |
| 10619 | dynamic_linker="$host_os ld.so" |
| 10620 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10621 | need_lib_prefix=unknown |
| 10622 | hardcode_into_libs=no |
| 10623 | |
| 10624 | # when you set need_version to no, make sure it does not cause -set_version |
| 10625 | # flags to be left without arguments |
| 10626 | need_version=unknown |
| 10627 | |
| 10628 | case $host_os in |
| 10629 | aix3*) |
| 10630 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10631 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10632 | shlibpath_var=LIBPATH |
| 10633 | |
| 10634 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10635 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10636 | ;; |
| 10637 | |
| 10638 | aix[4-9]*) |
| 10639 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10640 | need_lib_prefix=no |
| 10641 | need_version=no |
| 10642 | hardcode_into_libs=yes |
| 10643 | if test "$host_cpu" = ia64; then |
| 10644 | # AIX 5 supports IA64 |
| 10645 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10646 | shlibpath_var=LD_LIBRARY_PATH |
| 10647 | else |
| 10648 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10649 | # for dependence libraries. The import file would start with |
| 10650 | # the line `#! .'. This would cause the generated library to |
| 10651 | # depend on `.', always an invalid library. This was fixed in |
| 10652 | # development snapshots of GCC prior to 3.0. |
| 10653 | case $host_os in |
| 10654 | aix4 | aix4.[01] | aix4.[01].*) |
| 10655 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10656 | echo ' yes ' |
| 10657 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 10658 | : |
| 10659 | else |
| 10660 | can_build_shared=no |
| 10661 | fi |
| 10662 | ;; |
| 10663 | esac |
| 10664 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10665 | # soname into executable. Probably we can add versioning support to |
| 10666 | # collect2, so additional links can be useful in future. |
| 10667 | if test "$aix_use_runtimelinking" = yes; then |
| 10668 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10669 | # instead of lib<name>.a to let people know that these are not |
| 10670 | # typical AIX shared libraries. |
| 10671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10672 | else |
| 10673 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10674 | # and later when we are not doing run time linking. |
| 10675 | library_names_spec='${libname}${release}.a $libname.a' |
| 10676 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10677 | fi |
| 10678 | shlibpath_var=LIBPATH |
| 10679 | fi |
| 10680 | ;; |
| 10681 | |
| 10682 | amigaos*) |
| 10683 | case $host_cpu in |
| 10684 | powerpc) |
| 10685 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10686 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10688 | ;; |
| 10689 | m68k) |
| 10690 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10691 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10692 | 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' |
| 10693 | ;; |
| 10694 | esac |
| 10695 | ;; |
| 10696 | |
| 10697 | beos*) |
| 10698 | library_names_spec='${libname}${shared_ext}' |
| 10699 | dynamic_linker="$host_os ld.so" |
| 10700 | shlibpath_var=LIBRARY_PATH |
| 10701 | ;; |
| 10702 | |
| 10703 | bsdi[45]*) |
| 10704 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10705 | need_version=no |
| 10706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10707 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10708 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10709 | shlibpath_var=LD_LIBRARY_PATH |
| 10710 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10711 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10712 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10713 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10714 | # libtool to hard-code these into programs |
| 10715 | ;; |
| 10716 | |
| 10717 | cygwin* | mingw* | pw32* | cegcc*) |
| 10718 | version_type=windows |
| 10719 | shrext_cmds=".dll" |
| 10720 | need_version=no |
| 10721 | need_lib_prefix=no |
| 10722 | |
| 10723 | case $GCC,$cc_basename in |
| 10724 | yes,*) |
| 10725 | # gcc |
| 10726 | library_names_spec='$libname.dll.a' |
| 10727 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10728 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10729 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10730 | dldir=$destdir/`dirname \$dlpath`~ |
| 10731 | test -d \$dldir || mkdir -p \$dldir~ |
| 10732 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 10733 | chmod a+x \$dldir/$dlname~ |
| 10734 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10735 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10736 | fi' |
| 10737 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10738 | dlpath=$dir/\$dldll~ |
| 10739 | $RM \$dlpath' |
| 10740 | shlibpath_overrides_runpath=yes |
| 10741 | |
| 10742 | case $host_os in |
| 10743 | cygwin*) |
| 10744 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10745 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10746 | |
| 10747 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 10748 | ;; |
| 10749 | mingw* | cegcc*) |
| 10750 | # MinGW DLLs use traditional 'lib' prefix |
| 10751 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10752 | ;; |
| 10753 | pw32*) |
| 10754 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10755 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10756 | ;; |
| 10757 | esac |
| 10758 | dynamic_linker='Win32 ld.exe' |
| 10759 | ;; |
| 10760 | |
| 10761 | *,cl*) |
| 10762 | # Native MSVC |
| 10763 | libname_spec='$name' |
| 10764 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10765 | library_names_spec='${libname}.dll.lib' |
| 10766 | |
| 10767 | case $build_os in |
| 10768 | mingw*) |
| 10769 | sys_lib_search_path_spec= |
| 10770 | lt_save_ifs=$IFS |
| 10771 | IFS=';' |
| 10772 | for lt_path in $LIB |
| 10773 | do |
| 10774 | IFS=$lt_save_ifs |
| 10775 | # Let DOS variable expansion print the short 8.3 style file name. |
| 10776 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 10777 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 10778 | done |
| 10779 | IFS=$lt_save_ifs |
| 10780 | # Convert to MSYS style. |
| 10781 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 10782 | ;; |
| 10783 | cygwin*) |
| 10784 | # Convert to unix form, then to dos form, then back to unix form |
| 10785 | # but this time dos style (no spaces!) so that the unix form looks |
| 10786 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 10787 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 10788 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 10789 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10790 | ;; |
| 10791 | *) |
| 10792 | sys_lib_search_path_spec="$LIB" |
| 10793 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 10794 | # It is most probably a Windows format PATH. |
| 10795 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10796 | else |
| 10797 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10798 | fi |
| 10799 | # FIXME: find the short name or the path components, as spaces are |
| 10800 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 10801 | ;; |
| 10802 | esac |
| 10803 | |
| 10804 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10805 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10806 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10807 | dldir=$destdir/`dirname \$dlpath`~ |
| 10808 | test -d \$dldir || mkdir -p \$dldir~ |
| 10809 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10810 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10811 | dlpath=$dir/\$dldll~ |
| 10812 | $RM \$dlpath' |
| 10813 | shlibpath_overrides_runpath=yes |
| 10814 | dynamic_linker='Win32 link.exe' |
| 10815 | ;; |
| 10816 | |
| 10817 | *) |
| 10818 | # Assume MSVC wrapper |
| 10819 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10820 | dynamic_linker='Win32 ld.exe' |
| 10821 | ;; |
| 10822 | esac |
| 10823 | # FIXME: first we should search . and the directory the executable is in |
| 10824 | shlibpath_var=PATH |
| 10825 | ;; |
| 10826 | |
| 10827 | darwin* | rhapsody*) |
| 10828 | dynamic_linker="$host_os dyld" |
| 10829 | version_type=darwin |
| 10830 | need_lib_prefix=no |
| 10831 | need_version=no |
| 10832 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10833 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10834 | shlibpath_overrides_runpath=yes |
| 10835 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10836 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 10837 | |
| 10838 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 10839 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10840 | ;; |
| 10841 | |
| 10842 | dgux*) |
| 10843 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10844 | need_lib_prefix=no |
| 10845 | need_version=no |
| 10846 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10847 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10848 | shlibpath_var=LD_LIBRARY_PATH |
| 10849 | ;; |
| 10850 | |
| 10851 | freebsd* | dragonfly*) |
| 10852 | # DragonFly does not have aout. When/if they implement a new |
| 10853 | # versioning mechanism, adjust this. |
| 10854 | if test -x /usr/bin/objformat; then |
| 10855 | objformat=`/usr/bin/objformat` |
| 10856 | else |
| 10857 | case $host_os in |
| 10858 | freebsd[23].*) objformat=aout ;; |
| 10859 | *) objformat=elf ;; |
| 10860 | esac |
| 10861 | fi |
| 10862 | version_type=freebsd-$objformat |
| 10863 | case $version_type in |
| 10864 | freebsd-elf*) |
| 10865 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10866 | need_version=no |
| 10867 | need_lib_prefix=no |
| 10868 | ;; |
| 10869 | freebsd-*) |
| 10870 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10871 | need_version=yes |
| 10872 | ;; |
| 10873 | esac |
| 10874 | shlibpath_var=LD_LIBRARY_PATH |
| 10875 | case $host_os in |
| 10876 | freebsd2.*) |
| 10877 | shlibpath_overrides_runpath=yes |
| 10878 | ;; |
| 10879 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 10880 | shlibpath_overrides_runpath=yes |
| 10881 | hardcode_into_libs=yes |
| 10882 | ;; |
| 10883 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10884 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 10885 | shlibpath_overrides_runpath=no |
| 10886 | hardcode_into_libs=yes |
| 10887 | ;; |
| 10888 | *) # from 4.6 on, and DragonFly |
| 10889 | shlibpath_overrides_runpath=yes |
| 10890 | hardcode_into_libs=yes |
| 10891 | ;; |
| 10892 | esac |
| 10893 | ;; |
| 10894 | |
| 10895 | gnu*) |
| 10896 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10897 | need_lib_prefix=no |
| 10898 | need_version=no |
| 10899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10900 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10901 | shlibpath_var=LD_LIBRARY_PATH |
| 10902 | shlibpath_overrides_runpath=no |
| 10903 | hardcode_into_libs=yes |
| 10904 | ;; |
| 10905 | |
| 10906 | haiku*) |
| 10907 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10908 | need_lib_prefix=no |
| 10909 | need_version=no |
| 10910 | dynamic_linker="$host_os runtime_loader" |
| 10911 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10912 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10913 | shlibpath_var=LIBRARY_PATH |
| 10914 | shlibpath_overrides_runpath=yes |
| 10915 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 10916 | hardcode_into_libs=yes |
| 10917 | ;; |
| 10918 | |
| 10919 | hpux9* | hpux10* | hpux11*) |
| 10920 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10921 | # link against other versions. |
| 10922 | version_type=sunos |
| 10923 | need_lib_prefix=no |
| 10924 | need_version=no |
| 10925 | case $host_cpu in |
| 10926 | ia64*) |
| 10927 | shrext_cmds='.so' |
| 10928 | hardcode_into_libs=yes |
| 10929 | dynamic_linker="$host_os dld.so" |
| 10930 | shlibpath_var=LD_LIBRARY_PATH |
| 10931 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10933 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10934 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10935 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10936 | else |
| 10937 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10938 | fi |
| 10939 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10940 | ;; |
| 10941 | hppa*64*) |
| 10942 | shrext_cmds='.sl' |
| 10943 | hardcode_into_libs=yes |
| 10944 | dynamic_linker="$host_os dld.sl" |
| 10945 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10946 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10948 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10949 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10950 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10951 | ;; |
| 10952 | *) |
| 10953 | shrext_cmds='.sl' |
| 10954 | dynamic_linker="$host_os dld.sl" |
| 10955 | shlibpath_var=SHLIB_PATH |
| 10956 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10957 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10958 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10959 | ;; |
| 10960 | esac |
| 10961 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 10962 | postinstall_cmds='chmod 555 $lib' |
| 10963 | # or fails outright, so override atomically: |
| 10964 | install_override_mode=555 |
| 10965 | ;; |
| 10966 | |
| 10967 | interix[3-9]*) |
| 10968 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10969 | need_lib_prefix=no |
| 10970 | need_version=no |
| 10971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10972 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10973 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10974 | shlibpath_var=LD_LIBRARY_PATH |
| 10975 | shlibpath_overrides_runpath=no |
| 10976 | hardcode_into_libs=yes |
| 10977 | ;; |
| 10978 | |
| 10979 | irix5* | irix6* | nonstopux*) |
| 10980 | case $host_os in |
| 10981 | nonstopux*) version_type=nonstopux ;; |
| 10982 | *) |
| 10983 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10984 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10985 | else |
| 10986 | version_type=irix |
| 10987 | fi ;; |
| 10988 | esac |
| 10989 | need_lib_prefix=no |
| 10990 | need_version=no |
| 10991 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10992 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10993 | case $host_os in |
| 10994 | irix5* | nonstopux*) |
| 10995 | libsuff= shlibsuff= |
| 10996 | ;; |
| 10997 | *) |
| 10998 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10999 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11000 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11001 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11002 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11003 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11004 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11005 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11006 | esac |
| 11007 | ;; |
| 11008 | esac |
| 11009 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11010 | shlibpath_overrides_runpath=no |
| 11011 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11012 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11013 | hardcode_into_libs=yes |
| 11014 | ;; |
| 11015 | |
| 11016 | # No shared lib support for Linux oldld, aout, or coff. |
| 11017 | linux*oldld* | linux*aout* | linux*coff*) |
| 11018 | dynamic_linker=no |
| 11019 | ;; |
| 11020 | |
| 11021 | # This must be glibc/ELF. |
| 11022 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 11023 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11024 | need_lib_prefix=no |
| 11025 | need_version=no |
| 11026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11027 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11028 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11029 | shlibpath_var=LD_LIBRARY_PATH |
| 11030 | shlibpath_overrides_runpath=no |
| 11031 | |
| 11032 | # Some binutils ld are patched to set DT_RUNPATH |
| 11033 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 11034 | $as_echo_n "(cached) " >&6 |
| 11035 | else |
| 11036 | lt_cv_shlibpath_overrides_runpath=no |
| 11037 | save_LDFLAGS=$LDFLAGS |
| 11038 | save_libdir=$libdir |
| 11039 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 11040 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 11041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11042 | /* end confdefs.h. */ |
| 11043 | |
| 11044 | int |
| 11045 | main () |
| 11046 | { |
| 11047 | |
| 11048 | ; |
| 11049 | return 0; |
| 11050 | } |
| 11051 | _ACEOF |
| 11052 | if ac_fn_c_try_link "$LINENO"; then : |
| 11053 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 11054 | lt_cv_shlibpath_overrides_runpath=yes |
| 11055 | fi |
| 11056 | fi |
| 11057 | rm -f core conftest.err conftest.$ac_objext \ |
| 11058 | conftest$ac_exeext conftest.$ac_ext |
| 11059 | LDFLAGS=$save_LDFLAGS |
| 11060 | libdir=$save_libdir |
| 11061 | |
| 11062 | fi |
| 11063 | |
| 11064 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 11065 | |
| 11066 | # This implies no fast_install, which is unacceptable. |
| 11067 | # Some rework will be needed to allow for fast_install |
| 11068 | # before this can be enabled. |
| 11069 | hardcode_into_libs=yes |
| 11070 | |
| 11071 | # Append ld.so.conf contents to the search path |
| 11072 | if test -f /etc/ld.so.conf; then |
| 11073 | 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' ' '` |
| 11074 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11075 | fi |
| 11076 | |
| 11077 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11078 | # powerpc, because MkLinux only supported shared libraries with the |
| 11079 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11080 | # most powerpc-linux boxes support dynamic linking these days and |
| 11081 | # people can always --disable-shared, the test was removed, and we |
| 11082 | # assume the GNU/Linux dynamic linker is in use. |
| 11083 | dynamic_linker='GNU/Linux ld.so' |
| 11084 | ;; |
| 11085 | |
| 11086 | netbsd*) |
| 11087 | version_type=sunos |
| 11088 | need_lib_prefix=no |
| 11089 | need_version=no |
| 11090 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11092 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11093 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11094 | else |
| 11095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11096 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11097 | dynamic_linker='NetBSD ld.elf_so' |
| 11098 | fi |
| 11099 | shlibpath_var=LD_LIBRARY_PATH |
| 11100 | shlibpath_overrides_runpath=yes |
| 11101 | hardcode_into_libs=yes |
| 11102 | ;; |
| 11103 | |
| 11104 | newsos6) |
| 11105 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11107 | shlibpath_var=LD_LIBRARY_PATH |
| 11108 | shlibpath_overrides_runpath=yes |
| 11109 | ;; |
| 11110 | |
| 11111 | *nto* | *qnx*) |
| 11112 | version_type=qnx |
| 11113 | need_lib_prefix=no |
| 11114 | need_version=no |
| 11115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11116 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11117 | shlibpath_var=LD_LIBRARY_PATH |
| 11118 | shlibpath_overrides_runpath=no |
| 11119 | hardcode_into_libs=yes |
| 11120 | dynamic_linker='ldqnx.so' |
| 11121 | ;; |
| 11122 | |
| 11123 | openbsd*) |
| 11124 | version_type=sunos |
| 11125 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 11126 | need_lib_prefix=no |
| 11127 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 11128 | case $host_os in |
| 11129 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 11130 | *) need_version=no ;; |
| 11131 | esac |
| 11132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11133 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11134 | shlibpath_var=LD_LIBRARY_PATH |
| 11135 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11136 | case $host_os in |
| 11137 | openbsd2.[89] | openbsd2.[89].*) |
| 11138 | shlibpath_overrides_runpath=no |
| 11139 | ;; |
| 11140 | *) |
| 11141 | shlibpath_overrides_runpath=yes |
| 11142 | ;; |
| 11143 | esac |
| 11144 | else |
| 11145 | shlibpath_overrides_runpath=yes |
| 11146 | fi |
| 11147 | ;; |
| 11148 | |
| 11149 | os2*) |
| 11150 | libname_spec='$name' |
| 11151 | shrext_cmds=".dll" |
| 11152 | need_lib_prefix=no |
| 11153 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11154 | dynamic_linker='OS/2 ld.exe' |
| 11155 | shlibpath_var=LIBPATH |
| 11156 | ;; |
| 11157 | |
| 11158 | osf3* | osf4* | osf5*) |
| 11159 | version_type=osf |
| 11160 | need_lib_prefix=no |
| 11161 | need_version=no |
| 11162 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11163 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11164 | shlibpath_var=LD_LIBRARY_PATH |
| 11165 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11166 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11167 | ;; |
| 11168 | |
| 11169 | rdos*) |
| 11170 | dynamic_linker=no |
| 11171 | ;; |
| 11172 | |
| 11173 | solaris*) |
| 11174 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11175 | need_lib_prefix=no |
| 11176 | need_version=no |
| 11177 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11178 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11179 | shlibpath_var=LD_LIBRARY_PATH |
| 11180 | shlibpath_overrides_runpath=yes |
| 11181 | hardcode_into_libs=yes |
| 11182 | # ldd complains unless libraries are executable |
| 11183 | postinstall_cmds='chmod +x $lib' |
| 11184 | ;; |
| 11185 | |
| 11186 | sunos4*) |
| 11187 | version_type=sunos |
| 11188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11189 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11190 | shlibpath_var=LD_LIBRARY_PATH |
| 11191 | shlibpath_overrides_runpath=yes |
| 11192 | if test "$with_gnu_ld" = yes; then |
| 11193 | need_lib_prefix=no |
| 11194 | fi |
| 11195 | need_version=yes |
| 11196 | ;; |
| 11197 | |
| 11198 | sysv4 | sysv4.3*) |
| 11199 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11200 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11201 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11202 | shlibpath_var=LD_LIBRARY_PATH |
| 11203 | case $host_vendor in |
| 11204 | sni) |
| 11205 | shlibpath_overrides_runpath=no |
| 11206 | need_lib_prefix=no |
| 11207 | runpath_var=LD_RUN_PATH |
| 11208 | ;; |
| 11209 | siemens) |
| 11210 | need_lib_prefix=no |
| 11211 | ;; |
| 11212 | motorola) |
| 11213 | need_lib_prefix=no |
| 11214 | need_version=no |
| 11215 | shlibpath_overrides_runpath=no |
| 11216 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11217 | ;; |
| 11218 | esac |
| 11219 | ;; |
| 11220 | |
| 11221 | sysv4*MP*) |
| 11222 | if test -d /usr/nec ;then |
| 11223 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11224 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11225 | soname_spec='$libname${shared_ext}.$major' |
| 11226 | shlibpath_var=LD_LIBRARY_PATH |
| 11227 | fi |
| 11228 | ;; |
| 11229 | |
| 11230 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11231 | version_type=freebsd-elf |
| 11232 | need_lib_prefix=no |
| 11233 | need_version=no |
| 11234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11235 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11236 | shlibpath_var=LD_LIBRARY_PATH |
| 11237 | shlibpath_overrides_runpath=yes |
| 11238 | hardcode_into_libs=yes |
| 11239 | if test "$with_gnu_ld" = yes; then |
| 11240 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 11241 | else |
| 11242 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 11243 | case $host_os in |
| 11244 | sco3.2v5*) |
| 11245 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 11246 | ;; |
| 11247 | esac |
| 11248 | fi |
| 11249 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 11250 | ;; |
| 11251 | |
| 11252 | tpf*) |
| 11253 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 11254 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11255 | need_lib_prefix=no |
| 11256 | need_version=no |
| 11257 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11258 | shlibpath_var=LD_LIBRARY_PATH |
| 11259 | shlibpath_overrides_runpath=no |
| 11260 | hardcode_into_libs=yes |
| 11261 | ;; |
| 11262 | |
| 11263 | uts4*) |
| 11264 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11266 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11267 | shlibpath_var=LD_LIBRARY_PATH |
| 11268 | ;; |
| 11269 | |
| 11270 | *) |
| 11271 | dynamic_linker=no |
| 11272 | ;; |
| 11273 | esac |
| 11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 11275 | $as_echo "$dynamic_linker" >&6; } |
| 11276 | test "$dynamic_linker" = no && can_build_shared=no |
| 11277 | |
| 11278 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11279 | if test "$GCC" = yes; then |
| 11280 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11281 | fi |
| 11282 | |
| 11283 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 11284 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 11285 | fi |
| 11286 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 11287 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 11288 | fi |
| 11289 | |
| 11290 | |
| 11291 | |
| 11292 | |
| 11293 | |
| 11294 | |
| 11295 | |
| 11296 | |
| 11297 | |
| 11298 | |
| 11299 | |
| 11300 | |
| 11301 | |
| 11302 | |
| 11303 | |
| 11304 | |
| 11305 | |
| 11306 | |
| 11307 | |
| 11308 | |
| 11309 | |
| 11310 | |
| 11311 | |
| 11312 | |
| 11313 | |
| 11314 | |
| 11315 | |
| 11316 | |
| 11317 | |
| 11318 | |
| 11319 | |
| 11320 | |
| 11321 | |
| 11322 | |
| 11323 | |
| 11324 | |
| 11325 | |
| 11326 | |
| 11327 | |
| 11328 | |
| 11329 | |
| 11330 | |
| 11331 | |
| 11332 | |
| 11333 | |
| 11334 | |
| 11335 | |
| 11336 | |
| 11337 | |
| 11338 | |
| 11339 | |
| 11340 | |
| 11341 | |
| 11342 | |
| 11343 | |
| 11344 | |
| 11345 | |
| 11346 | |
| 11347 | |
| 11348 | |
| 11349 | |
| 11350 | |
| 11351 | |
| 11352 | |
| 11353 | |
| 11354 | |
| 11355 | |
| 11356 | |
| 11357 | |
| 11358 | |
| 11359 | |
| 11360 | |
| 11361 | |
| 11362 | |
| 11363 | |
| 11364 | |
| 11365 | |
| 11366 | |
| 11367 | |
| 11368 | |
| 11369 | |
| 11370 | |
| 11371 | |
| 11372 | |
| 11373 | |
| 11374 | |
| 11375 | |
| 11376 | |
| 11377 | |
| 11378 | |
| 11379 | |
| 11380 | |
| 11381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 11382 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 11383 | hardcode_action= |
| 11384 | if test -n "$hardcode_libdir_flag_spec" || |
| 11385 | test -n "$runpath_var" || |
| 11386 | test "X$hardcode_automatic" = "Xyes" ; then |
| 11387 | |
| 11388 | # We can hardcode non-existent directories. |
| 11389 | if test "$hardcode_direct" != no && |
| 11390 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11391 | # have to relink, otherwise we might link with an installed library |
| 11392 | # when we should be linking with a yet-to-be-installed one |
| 11393 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 11394 | test "$hardcode_minus_L" != no; then |
| 11395 | # Linking always hardcodes the temporary library directory. |
| 11396 | hardcode_action=relink |
| 11397 | else |
| 11398 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11399 | hardcode_action=immediate |
| 11400 | fi |
| 11401 | else |
| 11402 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11403 | # directories. |
| 11404 | hardcode_action=unsupported |
| 11405 | fi |
| 11406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 11407 | $as_echo "$hardcode_action" >&6; } |
| 11408 | |
| 11409 | if test "$hardcode_action" = relink || |
| 11410 | test "$inherit_rpath" = yes; then |
| 11411 | # Fast installation is not supported |
| 11412 | enable_fast_install=no |
| 11413 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11414 | test "$enable_shared" = no; then |
| 11415 | # Fast installation is not necessary |
| 11416 | enable_fast_install=needless |
| 11417 | fi |
| 11418 | |
| 11419 | |
| 11420 | |
| 11421 | |
| 11422 | |
| 11423 | |
| 11424 | if test "x$enable_dlopen" != xyes; then |
| 11425 | enable_dlopen=unknown |
| 11426 | enable_dlopen_self=unknown |
| 11427 | enable_dlopen_self_static=unknown |
| 11428 | else |
| 11429 | lt_cv_dlopen=no |
| 11430 | lt_cv_dlopen_libs= |
| 11431 | |
| 11432 | case $host_os in |
| 11433 | beos*) |
| 11434 | lt_cv_dlopen="load_add_on" |
| 11435 | lt_cv_dlopen_libs= |
| 11436 | lt_cv_dlopen_self=yes |
| 11437 | ;; |
| 11438 | |
| 11439 | mingw* | pw32* | cegcc*) |
| 11440 | lt_cv_dlopen="LoadLibrary" |
| 11441 | lt_cv_dlopen_libs= |
| 11442 | ;; |
| 11443 | |
| 11444 | cygwin*) |
| 11445 | lt_cv_dlopen="dlopen" |
| 11446 | lt_cv_dlopen_libs= |
| 11447 | ;; |
| 11448 | |
| 11449 | darwin*) |
| 11450 | # if libdl is installed we need to link against it |
| 11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11452 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11453 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11454 | $as_echo_n "(cached) " >&6 |
| 11455 | else |
| 11456 | ac_check_lib_save_LIBS=$LIBS |
| 11457 | LIBS="-ldl $LIBS" |
| 11458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11459 | /* end confdefs.h. */ |
| 11460 | |
| 11461 | /* Override any GCC internal prototype to avoid an error. |
| 11462 | Use char because int might match the return type of a GCC |
| 11463 | builtin and then its argument prototype would still apply. */ |
| 11464 | #ifdef __cplusplus |
| 11465 | extern "C" |
| 11466 | #endif |
| 11467 | char dlopen (); |
| 11468 | int |
| 11469 | main () |
| 11470 | { |
| 11471 | return dlopen (); |
| 11472 | ; |
| 11473 | return 0; |
| 11474 | } |
| 11475 | _ACEOF |
| 11476 | if ac_fn_c_try_link "$LINENO"; then : |
| 11477 | ac_cv_lib_dl_dlopen=yes |
| 11478 | else |
| 11479 | ac_cv_lib_dl_dlopen=no |
| 11480 | fi |
| 11481 | rm -f core conftest.err conftest.$ac_objext \ |
| 11482 | conftest$ac_exeext conftest.$ac_ext |
| 11483 | LIBS=$ac_check_lib_save_LIBS |
| 11484 | fi |
| 11485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11486 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11487 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11488 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11489 | else |
| 11490 | |
| 11491 | lt_cv_dlopen="dyld" |
| 11492 | lt_cv_dlopen_libs= |
| 11493 | lt_cv_dlopen_self=yes |
| 11494 | |
| 11495 | fi |
| 11496 | |
| 11497 | ;; |
| 11498 | |
| 11499 | *) |
| 11500 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 11501 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| 11502 | lt_cv_dlopen="shl_load" |
| 11503 | else |
| 11504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 11505 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 11506 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 11507 | $as_echo_n "(cached) " >&6 |
| 11508 | else |
| 11509 | ac_check_lib_save_LIBS=$LIBS |
| 11510 | LIBS="-ldld $LIBS" |
| 11511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11512 | /* end confdefs.h. */ |
| 11513 | |
| 11514 | /* Override any GCC internal prototype to avoid an error. |
| 11515 | Use char because int might match the return type of a GCC |
| 11516 | builtin and then its argument prototype would still apply. */ |
| 11517 | #ifdef __cplusplus |
| 11518 | extern "C" |
| 11519 | #endif |
| 11520 | char shl_load (); |
| 11521 | int |
| 11522 | main () |
| 11523 | { |
| 11524 | return shl_load (); |
| 11525 | ; |
| 11526 | return 0; |
| 11527 | } |
| 11528 | _ACEOF |
| 11529 | if ac_fn_c_try_link "$LINENO"; then : |
| 11530 | ac_cv_lib_dld_shl_load=yes |
| 11531 | else |
| 11532 | ac_cv_lib_dld_shl_load=no |
| 11533 | fi |
| 11534 | rm -f core conftest.err conftest.$ac_objext \ |
| 11535 | conftest$ac_exeext conftest.$ac_ext |
| 11536 | LIBS=$ac_check_lib_save_LIBS |
| 11537 | fi |
| 11538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11539 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 11540 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 11541 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 11542 | else |
| 11543 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11544 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| 11545 | lt_cv_dlopen="dlopen" |
| 11546 | else |
| 11547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11548 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11549 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11550 | $as_echo_n "(cached) " >&6 |
| 11551 | else |
| 11552 | ac_check_lib_save_LIBS=$LIBS |
| 11553 | LIBS="-ldl $LIBS" |
| 11554 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11555 | /* end confdefs.h. */ |
| 11556 | |
| 11557 | /* Override any GCC internal prototype to avoid an error. |
| 11558 | Use char because int might match the return type of a GCC |
| 11559 | builtin and then its argument prototype would still apply. */ |
| 11560 | #ifdef __cplusplus |
| 11561 | extern "C" |
| 11562 | #endif |
| 11563 | char dlopen (); |
| 11564 | int |
| 11565 | main () |
| 11566 | { |
| 11567 | return dlopen (); |
| 11568 | ; |
| 11569 | return 0; |
| 11570 | } |
| 11571 | _ACEOF |
| 11572 | if ac_fn_c_try_link "$LINENO"; then : |
| 11573 | ac_cv_lib_dl_dlopen=yes |
| 11574 | else |
| 11575 | ac_cv_lib_dl_dlopen=no |
| 11576 | fi |
| 11577 | rm -f core conftest.err conftest.$ac_objext \ |
| 11578 | conftest$ac_exeext conftest.$ac_ext |
| 11579 | LIBS=$ac_check_lib_save_LIBS |
| 11580 | fi |
| 11581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11582 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11583 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11584 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11585 | else |
| 11586 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 11587 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 11588 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 11589 | $as_echo_n "(cached) " >&6 |
| 11590 | else |
| 11591 | ac_check_lib_save_LIBS=$LIBS |
| 11592 | LIBS="-lsvld $LIBS" |
| 11593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11594 | /* end confdefs.h. */ |
| 11595 | |
| 11596 | /* Override any GCC internal prototype to avoid an error. |
| 11597 | Use char because int might match the return type of a GCC |
| 11598 | builtin and then its argument prototype would still apply. */ |
| 11599 | #ifdef __cplusplus |
| 11600 | extern "C" |
| 11601 | #endif |
| 11602 | char dlopen (); |
| 11603 | int |
| 11604 | main () |
| 11605 | { |
| 11606 | return dlopen (); |
| 11607 | ; |
| 11608 | return 0; |
| 11609 | } |
| 11610 | _ACEOF |
| 11611 | if ac_fn_c_try_link "$LINENO"; then : |
| 11612 | ac_cv_lib_svld_dlopen=yes |
| 11613 | else |
| 11614 | ac_cv_lib_svld_dlopen=no |
| 11615 | fi |
| 11616 | rm -f core conftest.err conftest.$ac_objext \ |
| 11617 | conftest$ac_exeext conftest.$ac_ext |
| 11618 | LIBS=$ac_check_lib_save_LIBS |
| 11619 | fi |
| 11620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11621 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11622 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 11623 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11624 | else |
| 11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11626 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11627 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 11628 | $as_echo_n "(cached) " >&6 |
| 11629 | else |
| 11630 | ac_check_lib_save_LIBS=$LIBS |
| 11631 | LIBS="-ldld $LIBS" |
| 11632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11633 | /* end confdefs.h. */ |
| 11634 | |
| 11635 | /* Override any GCC internal prototype to avoid an error. |
| 11636 | Use char because int might match the return type of a GCC |
| 11637 | builtin and then its argument prototype would still apply. */ |
| 11638 | #ifdef __cplusplus |
| 11639 | extern "C" |
| 11640 | #endif |
| 11641 | char dld_link (); |
| 11642 | int |
| 11643 | main () |
| 11644 | { |
| 11645 | return dld_link (); |
| 11646 | ; |
| 11647 | return 0; |
| 11648 | } |
| 11649 | _ACEOF |
| 11650 | if ac_fn_c_try_link "$LINENO"; then : |
| 11651 | ac_cv_lib_dld_dld_link=yes |
| 11652 | else |
| 11653 | ac_cv_lib_dld_dld_link=no |
| 11654 | fi |
| 11655 | rm -f core conftest.err conftest.$ac_objext \ |
| 11656 | conftest$ac_exeext conftest.$ac_ext |
| 11657 | LIBS=$ac_check_lib_save_LIBS |
| 11658 | fi |
| 11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11660 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11661 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 11662 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 11663 | fi |
| 11664 | |
| 11665 | |
| 11666 | fi |
| 11667 | |
| 11668 | |
| 11669 | fi |
| 11670 | |
| 11671 | |
| 11672 | fi |
| 11673 | |
| 11674 | |
| 11675 | fi |
| 11676 | |
| 11677 | |
| 11678 | fi |
| 11679 | |
| 11680 | ;; |
| 11681 | esac |
| 11682 | |
| 11683 | if test "x$lt_cv_dlopen" != xno; then |
| 11684 | enable_dlopen=yes |
| 11685 | else |
| 11686 | enable_dlopen=no |
| 11687 | fi |
| 11688 | |
| 11689 | case $lt_cv_dlopen in |
| 11690 | dlopen) |
| 11691 | save_CPPFLAGS="$CPPFLAGS" |
| 11692 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11693 | |
| 11694 | save_LDFLAGS="$LDFLAGS" |
| 11695 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11696 | |
| 11697 | save_LIBS="$LIBS" |
| 11698 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11699 | |
| 11700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11701 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11702 | if ${lt_cv_dlopen_self+:} false; then : |
| 11703 | $as_echo_n "(cached) " >&6 |
| 11704 | else |
| 11705 | if test "$cross_compiling" = yes; then : |
| 11706 | lt_cv_dlopen_self=cross |
| 11707 | else |
| 11708 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11709 | lt_status=$lt_dlunknown |
| 11710 | cat > conftest.$ac_ext <<_LT_EOF |
| 11711 | #line $LINENO "configure" |
| 11712 | #include "confdefs.h" |
| 11713 | |
| 11714 | #if HAVE_DLFCN_H |
| 11715 | #include <dlfcn.h> |
| 11716 | #endif |
| 11717 | |
| 11718 | #include <stdio.h> |
| 11719 | |
| 11720 | #ifdef RTLD_GLOBAL |
| 11721 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11722 | #else |
| 11723 | # ifdef DL_GLOBAL |
| 11724 | # define LT_DLGLOBAL DL_GLOBAL |
| 11725 | # else |
| 11726 | # define LT_DLGLOBAL 0 |
| 11727 | # endif |
| 11728 | #endif |
| 11729 | |
| 11730 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11731 | find out it does not work in some platform. */ |
| 11732 | #ifndef LT_DLLAZY_OR_NOW |
| 11733 | # ifdef RTLD_LAZY |
| 11734 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11735 | # else |
| 11736 | # ifdef DL_LAZY |
| 11737 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11738 | # else |
| 11739 | # ifdef RTLD_NOW |
| 11740 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11741 | # else |
| 11742 | # ifdef DL_NOW |
| 11743 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11744 | # else |
| 11745 | # define LT_DLLAZY_OR_NOW 0 |
| 11746 | # endif |
| 11747 | # endif |
| 11748 | # endif |
| 11749 | # endif |
| 11750 | #endif |
| 11751 | |
| 11752 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11753 | correspondingly for the symbols needed. */ |
| 11754 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11755 | int fnord () __attribute__((visibility("default"))); |
| 11756 | #endif |
| 11757 | |
| 11758 | int fnord () { return 42; } |
| 11759 | int main () |
| 11760 | { |
| 11761 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11762 | int status = $lt_dlunknown; |
| 11763 | |
| 11764 | if (self) |
| 11765 | { |
| 11766 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11767 | else |
| 11768 | { |
| 11769 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11770 | else puts (dlerror ()); |
| 11771 | } |
| 11772 | /* dlclose (self); */ |
| 11773 | } |
| 11774 | else |
| 11775 | puts (dlerror ()); |
| 11776 | |
| 11777 | return status; |
| 11778 | } |
| 11779 | _LT_EOF |
| 11780 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11781 | (eval $ac_link) 2>&5 |
| 11782 | ac_status=$? |
| 11783 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11784 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11785 | (./conftest; exit; ) >&5 2>/dev/null |
| 11786 | lt_status=$? |
| 11787 | case x$lt_status in |
| 11788 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11789 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11790 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11791 | esac |
| 11792 | else : |
| 11793 | # compilation failed |
| 11794 | lt_cv_dlopen_self=no |
| 11795 | fi |
| 11796 | fi |
| 11797 | rm -fr conftest* |
| 11798 | |
| 11799 | |
| 11800 | fi |
| 11801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11802 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 11803 | |
| 11804 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11805 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 11806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11807 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11808 | if ${lt_cv_dlopen_self_static+:} false; then : |
| 11809 | $as_echo_n "(cached) " >&6 |
| 11810 | else |
| 11811 | if test "$cross_compiling" = yes; then : |
| 11812 | lt_cv_dlopen_self_static=cross |
| 11813 | else |
| 11814 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11815 | lt_status=$lt_dlunknown |
| 11816 | cat > conftest.$ac_ext <<_LT_EOF |
| 11817 | #line $LINENO "configure" |
| 11818 | #include "confdefs.h" |
| 11819 | |
| 11820 | #if HAVE_DLFCN_H |
| 11821 | #include <dlfcn.h> |
| 11822 | #endif |
| 11823 | |
| 11824 | #include <stdio.h> |
| 11825 | |
| 11826 | #ifdef RTLD_GLOBAL |
| 11827 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11828 | #else |
| 11829 | # ifdef DL_GLOBAL |
| 11830 | # define LT_DLGLOBAL DL_GLOBAL |
| 11831 | # else |
| 11832 | # define LT_DLGLOBAL 0 |
| 11833 | # endif |
| 11834 | #endif |
| 11835 | |
| 11836 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11837 | find out it does not work in some platform. */ |
| 11838 | #ifndef LT_DLLAZY_OR_NOW |
| 11839 | # ifdef RTLD_LAZY |
| 11840 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11841 | # else |
| 11842 | # ifdef DL_LAZY |
| 11843 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11844 | # else |
| 11845 | # ifdef RTLD_NOW |
| 11846 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11847 | # else |
| 11848 | # ifdef DL_NOW |
| 11849 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11850 | # else |
| 11851 | # define LT_DLLAZY_OR_NOW 0 |
| 11852 | # endif |
| 11853 | # endif |
| 11854 | # endif |
| 11855 | # endif |
| 11856 | #endif |
| 11857 | |
| 11858 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11859 | correspondingly for the symbols needed. */ |
| 11860 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11861 | int fnord () __attribute__((visibility("default"))); |
| 11862 | #endif |
| 11863 | |
| 11864 | int fnord () { return 42; } |
| 11865 | int main () |
| 11866 | { |
| 11867 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11868 | int status = $lt_dlunknown; |
| 11869 | |
| 11870 | if (self) |
| 11871 | { |
| 11872 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11873 | else |
| 11874 | { |
| 11875 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11876 | else puts (dlerror ()); |
| 11877 | } |
| 11878 | /* dlclose (self); */ |
| 11879 | } |
| 11880 | else |
| 11881 | puts (dlerror ()); |
| 11882 | |
| 11883 | return status; |
| 11884 | } |
| 11885 | _LT_EOF |
| 11886 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11887 | (eval $ac_link) 2>&5 |
| 11888 | ac_status=$? |
| 11889 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11890 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11891 | (./conftest; exit; ) >&5 2>/dev/null |
| 11892 | lt_status=$? |
| 11893 | case x$lt_status in |
| 11894 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11895 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11896 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11897 | esac |
| 11898 | else : |
| 11899 | # compilation failed |
| 11900 | lt_cv_dlopen_self_static=no |
| 11901 | fi |
| 11902 | fi |
| 11903 | rm -fr conftest* |
| 11904 | |
| 11905 | |
| 11906 | fi |
| 11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11908 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 11909 | fi |
| 11910 | |
| 11911 | CPPFLAGS="$save_CPPFLAGS" |
| 11912 | LDFLAGS="$save_LDFLAGS" |
| 11913 | LIBS="$save_LIBS" |
| 11914 | ;; |
| 11915 | esac |
| 11916 | |
| 11917 | case $lt_cv_dlopen_self in |
| 11918 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11919 | *) enable_dlopen_self=unknown ;; |
| 11920 | esac |
| 11921 | |
| 11922 | case $lt_cv_dlopen_self_static in |
| 11923 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11924 | *) enable_dlopen_self_static=unknown ;; |
| 11925 | esac |
| 11926 | fi |
| 11927 | |
| 11928 | |
| 11929 | |
| 11930 | |
| 11931 | |
| 11932 | |
| 11933 | |
| 11934 | |
| 11935 | |
| 11936 | |
| 11937 | |
| 11938 | |
| 11939 | |
| 11940 | |
| 11941 | |
| 11942 | |
| 11943 | |
| 11944 | striplib= |
| 11945 | old_striplib= |
| 11946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 11947 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 11948 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11949 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11950 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11952 | $as_echo "yes" >&6; } |
| 11953 | else |
| 11954 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11955 | case $host_os in |
| 11956 | darwin*) |
| 11957 | if test -n "$STRIP" ; then |
| 11958 | striplib="$STRIP -x" |
| 11959 | old_striplib="$STRIP -S" |
| 11960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11961 | $as_echo "yes" >&6; } |
| 11962 | else |
| 11963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11964 | $as_echo "no" >&6; } |
| 11965 | fi |
| 11966 | ;; |
| 11967 | *) |
| 11968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11969 | $as_echo "no" >&6; } |
| 11970 | ;; |
| 11971 | esac |
| 11972 | fi |
| 11973 | |
| 11974 | |
| 11975 | |
| 11976 | |
| 11977 | |
| 11978 | |
| 11979 | |
| 11980 | |
| 11981 | |
| 11982 | |
| 11983 | |
| 11984 | |
| 11985 | # Report which library types will actually be built |
| 11986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 11987 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 11988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 11989 | $as_echo "$can_build_shared" >&6; } |
| 11990 | |
| 11991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 11992 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 11993 | test "$can_build_shared" = "no" && enable_shared=no |
| 11994 | |
| 11995 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11996 | # are all built from PIC. |
| 11997 | case $host_os in |
| 11998 | aix3*) |
| 11999 | test "$enable_shared" = yes && enable_static=no |
| 12000 | if test -n "$RANLIB"; then |
| 12001 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12002 | postinstall_cmds='$RANLIB $lib' |
| 12003 | fi |
| 12004 | ;; |
| 12005 | |
| 12006 | aix[4-9]*) |
| 12007 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12008 | test "$enable_shared" = yes && enable_static=no |
| 12009 | fi |
| 12010 | ;; |
| 12011 | esac |
| 12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 12013 | $as_echo "$enable_shared" >&6; } |
| 12014 | |
| 12015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 12016 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 12017 | # Make sure either enable_shared or enable_static is yes. |
| 12018 | test "$enable_shared" = yes || enable_static=yes |
| 12019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 12020 | $as_echo "$enable_static" >&6; } |
| 12021 | |
| 12022 | |
| 12023 | |
| 12024 | |
| 12025 | fi |
| 12026 | ac_ext=c |
| 12027 | ac_cpp='$CPP $CPPFLAGS' |
| 12028 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12029 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12030 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12031 | |
| 12032 | CC="$lt_save_CC" |
| 12033 | |
| 12034 | |
| 12035 | |
| 12036 | |
| 12037 | |
| 12038 | |
| 12039 | |
| 12040 | |
| 12041 | |
| 12042 | |
| 12043 | |
| 12044 | |
| 12045 | |
| 12046 | |
| 12047 | |
| 12048 | ac_config_commands="$ac_config_commands libtool" |
| 12049 | |
| 12050 | |
| 12051 | |
| 12052 | |
| 12053 | # Only expand once: |
| 12054 | |
| 12055 | |
Jeff Thompson | 23cb742 | 2013-10-09 16:11:47 -0700 | [diff] [blame] | 12056 | |
| 12057 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 12058 | ac_ext=cpp |
| 12059 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12060 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12061 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12062 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12063 | if test -z "$CXX"; then |
| 12064 | if test -n "$CCC"; then |
| 12065 | CXX=$CCC |
| 12066 | else |
| 12067 | if test -n "$ac_tool_prefix"; then |
| 12068 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 12069 | do |
| 12070 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12071 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 12072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12073 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12074 | if ${ac_cv_prog_CXX+:} false; then : |
| 12075 | $as_echo_n "(cached) " >&6 |
| 12076 | else |
| 12077 | if test -n "$CXX"; then |
| 12078 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 12079 | else |
| 12080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12081 | for as_dir in $PATH |
| 12082 | do |
| 12083 | IFS=$as_save_IFS |
| 12084 | test -z "$as_dir" && as_dir=. |
| 12085 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12086 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12087 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 12088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12089 | break 2 |
| 12090 | fi |
| 12091 | done |
| 12092 | done |
| 12093 | IFS=$as_save_IFS |
| 12094 | |
| 12095 | fi |
| 12096 | fi |
| 12097 | CXX=$ac_cv_prog_CXX |
| 12098 | if test -n "$CXX"; then |
| 12099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 12100 | $as_echo "$CXX" >&6; } |
| 12101 | else |
| 12102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12103 | $as_echo "no" >&6; } |
| 12104 | fi |
| 12105 | |
| 12106 | |
| 12107 | test -n "$CXX" && break |
| 12108 | done |
| 12109 | fi |
| 12110 | if test -z "$CXX"; then |
| 12111 | ac_ct_CXX=$CXX |
| 12112 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 12113 | do |
| 12114 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12115 | set dummy $ac_prog; ac_word=$2 |
| 12116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12117 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12118 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 12119 | $as_echo_n "(cached) " >&6 |
| 12120 | else |
| 12121 | if test -n "$ac_ct_CXX"; then |
| 12122 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 12123 | else |
| 12124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12125 | for as_dir in $PATH |
| 12126 | do |
| 12127 | IFS=$as_save_IFS |
| 12128 | test -z "$as_dir" && as_dir=. |
| 12129 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12130 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12131 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 12132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12133 | break 2 |
| 12134 | fi |
| 12135 | done |
| 12136 | done |
| 12137 | IFS=$as_save_IFS |
| 12138 | |
| 12139 | fi |
| 12140 | fi |
| 12141 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 12142 | if test -n "$ac_ct_CXX"; then |
| 12143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 12144 | $as_echo "$ac_ct_CXX" >&6; } |
| 12145 | else |
| 12146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12147 | $as_echo "no" >&6; } |
| 12148 | fi |
| 12149 | |
| 12150 | |
| 12151 | test -n "$ac_ct_CXX" && break |
| 12152 | done |
| 12153 | |
| 12154 | if test "x$ac_ct_CXX" = x; then |
| 12155 | CXX="g++" |
| 12156 | else |
| 12157 | case $cross_compiling:$ac_tool_warned in |
| 12158 | yes:) |
| 12159 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12160 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12161 | ac_tool_warned=yes ;; |
| 12162 | esac |
| 12163 | CXX=$ac_ct_CXX |
| 12164 | fi |
| 12165 | fi |
| 12166 | |
| 12167 | fi |
| 12168 | fi |
| 12169 | # Provide some information about the compiler. |
| 12170 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 12171 | set X $ac_compile |
| 12172 | ac_compiler=$2 |
| 12173 | for ac_option in --version -v -V -qversion; do |
| 12174 | { { ac_try="$ac_compiler $ac_option >&5" |
| 12175 | case "(($ac_try" in |
| 12176 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12177 | *) ac_try_echo=$ac_try;; |
| 12178 | esac |
| 12179 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 12180 | $as_echo "$ac_try_echo"; } >&5 |
| 12181 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 12182 | ac_status=$? |
| 12183 | if test -s conftest.err; then |
| 12184 | sed '10a\ |
| 12185 | ... rest of stderr output deleted ... |
| 12186 | 10q' conftest.err >conftest.er1 |
| 12187 | cat conftest.er1 >&5 |
| 12188 | fi |
| 12189 | rm -f conftest.er1 conftest.err |
| 12190 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12191 | test $ac_status = 0; } |
| 12192 | done |
| 12193 | |
| 12194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 12195 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 12196 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 12197 | $as_echo_n "(cached) " >&6 |
| 12198 | else |
| 12199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12200 | /* end confdefs.h. */ |
| 12201 | |
| 12202 | int |
| 12203 | main () |
| 12204 | { |
| 12205 | #ifndef __GNUC__ |
| 12206 | choke me |
| 12207 | #endif |
| 12208 | |
| 12209 | ; |
| 12210 | return 0; |
| 12211 | } |
| 12212 | _ACEOF |
| 12213 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12214 | ac_compiler_gnu=yes |
| 12215 | else |
| 12216 | ac_compiler_gnu=no |
| 12217 | fi |
| 12218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12219 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 12220 | |
| 12221 | fi |
| 12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 12223 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 12224 | if test $ac_compiler_gnu = yes; then |
| 12225 | GXX=yes |
| 12226 | else |
| 12227 | GXX= |
| 12228 | fi |
| 12229 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 12230 | ac_save_CXXFLAGS=$CXXFLAGS |
| 12231 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 12232 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 12233 | if ${ac_cv_prog_cxx_g+:} false; then : |
| 12234 | $as_echo_n "(cached) " >&6 |
| 12235 | else |
| 12236 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 12237 | ac_cxx_werror_flag=yes |
| 12238 | ac_cv_prog_cxx_g=no |
| 12239 | CXXFLAGS="-g" |
| 12240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12241 | /* end confdefs.h. */ |
| 12242 | |
| 12243 | int |
| 12244 | main () |
| 12245 | { |
| 12246 | |
| 12247 | ; |
| 12248 | return 0; |
| 12249 | } |
| 12250 | _ACEOF |
| 12251 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12252 | ac_cv_prog_cxx_g=yes |
| 12253 | else |
| 12254 | CXXFLAGS="" |
| 12255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12256 | /* end confdefs.h. */ |
| 12257 | |
| 12258 | int |
| 12259 | main () |
| 12260 | { |
| 12261 | |
| 12262 | ; |
| 12263 | return 0; |
| 12264 | } |
| 12265 | _ACEOF |
| 12266 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12267 | |
| 12268 | else |
| 12269 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 12270 | CXXFLAGS="-g" |
| 12271 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12272 | /* end confdefs.h. */ |
| 12273 | |
| 12274 | int |
| 12275 | main () |
| 12276 | { |
| 12277 | |
| 12278 | ; |
| 12279 | return 0; |
| 12280 | } |
| 12281 | _ACEOF |
| 12282 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12283 | ac_cv_prog_cxx_g=yes |
| 12284 | fi |
| 12285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12286 | fi |
| 12287 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12288 | fi |
| 12289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12290 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 12291 | fi |
| 12292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 12293 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 12294 | if test "$ac_test_CXXFLAGS" = set; then |
| 12295 | CXXFLAGS=$ac_save_CXXFLAGS |
| 12296 | elif test $ac_cv_prog_cxx_g = yes; then |
| 12297 | if test "$GXX" = yes; then |
| 12298 | CXXFLAGS="-g -O2" |
| 12299 | else |
| 12300 | CXXFLAGS="-g" |
| 12301 | fi |
| 12302 | else |
| 12303 | if test "$GXX" = yes; then |
| 12304 | CXXFLAGS="-O2" |
| 12305 | else |
| 12306 | CXXFLAGS= |
| 12307 | fi |
| 12308 | fi |
| 12309 | ac_ext=c |
| 12310 | ac_cpp='$CPP $CPPFLAGS' |
| 12311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12314 | |
| 12315 | depcc="$CXX" am_compiler_list= |
| 12316 | |
| 12317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 12318 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 12319 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| 12320 | $as_echo_n "(cached) " >&6 |
| 12321 | else |
| 12322 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 12323 | # We make a subdir and do the tests there. Otherwise we can end up |
| 12324 | # making bogus files that we don't know about and never remove. For |
| 12325 | # instance it was reported that on HP-UX the gcc test will end up |
| 12326 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 12327 | # in D". |
| 12328 | rm -rf conftest.dir |
| 12329 | mkdir conftest.dir |
| 12330 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 12331 | # using a relative directory. |
| 12332 | cp "$am_depcomp" conftest.dir |
| 12333 | cd conftest.dir |
| 12334 | # We will build objects and dependencies in a subdirectory because |
| 12335 | # it helps to detect inapplicable dependency modes. For instance |
| 12336 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 12337 | # side effect of compilation, but ICC will put the dependencies in |
| 12338 | # the current directory while Tru64 will put them in the object |
| 12339 | # directory. |
| 12340 | mkdir sub |
| 12341 | |
| 12342 | am_cv_CXX_dependencies_compiler_type=none |
| 12343 | if test "$am_compiler_list" = ""; then |
| 12344 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 12345 | fi |
| 12346 | am__universal=false |
| 12347 | case " $depcc " in #( |
| 12348 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 12349 | esac |
| 12350 | |
| 12351 | for depmode in $am_compiler_list; do |
| 12352 | # Setup a source with many dependencies, because some compilers |
| 12353 | # like to wrap large dependency lists on column 80 (with \), and |
| 12354 | # we should not choose a depcomp mode which is confused by this. |
| 12355 | # |
| 12356 | # We need to recreate these files for each test, as the compiler may |
| 12357 | # overwrite some of them when testing with obscure command lines. |
| 12358 | # This happens at least with the AIX C compiler. |
| 12359 | : > sub/conftest.c |
| 12360 | for i in 1 2 3 4 5 6; do |
| 12361 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 12362 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 12363 | # Solaris 10 /bin/sh. |
| 12364 | echo '/* dummy */' > sub/conftst$i.h |
| 12365 | done |
| 12366 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 12367 | |
| 12368 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 12369 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 12370 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 12371 | # versions had trouble with output in subdirs. |
| 12372 | am__obj=sub/conftest.${OBJEXT-o} |
| 12373 | am__minus_obj="-o $am__obj" |
| 12374 | case $depmode in |
| 12375 | gcc) |
| 12376 | # This depmode causes a compiler race in universal mode. |
| 12377 | test "$am__universal" = false || continue |
| 12378 | ;; |
| 12379 | nosideeffect) |
| 12380 | # After this tag, mechanisms are not by side-effect, so they'll |
| 12381 | # only be used when explicitly requested. |
| 12382 | if test "x$enable_dependency_tracking" = xyes; then |
| 12383 | continue |
| 12384 | else |
| 12385 | break |
| 12386 | fi |
| 12387 | ;; |
| 12388 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 12389 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 12390 | # not run yet. These depmodes are late enough in the game, and |
| 12391 | # so weak that their functioning should not be impacted. |
| 12392 | am__obj=conftest.${OBJEXT-o} |
| 12393 | am__minus_obj= |
| 12394 | ;; |
| 12395 | none) break ;; |
| 12396 | esac |
| 12397 | if depmode=$depmode \ |
| 12398 | source=sub/conftest.c object=$am__obj \ |
| 12399 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 12400 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 12401 | >/dev/null 2>conftest.err && |
| 12402 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 12403 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 12404 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 12405 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 12406 | # icc doesn't choke on unknown options, it will just issue warnings |
| 12407 | # or remarks (even with -Werror). So we grep stderr for any message |
| 12408 | # that says an option was ignored or not supported. |
| 12409 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 12410 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 12411 | # The diagnosis changed in icc 8.0: |
| 12412 | # icc: Command line remark: option '-MP' not supported |
| 12413 | if (grep 'ignoring option' conftest.err || |
| 12414 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 12415 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 12416 | break |
| 12417 | fi |
| 12418 | fi |
| 12419 | done |
| 12420 | |
| 12421 | cd .. |
| 12422 | rm -rf conftest.dir |
| 12423 | else |
| 12424 | am_cv_CXX_dependencies_compiler_type=none |
| 12425 | fi |
| 12426 | |
| 12427 | fi |
| 12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 12429 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 12430 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 12431 | |
| 12432 | if |
| 12433 | test "x$enable_dependency_tracking" != xno \ |
| 12434 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 12435 | am__fastdepCXX_TRUE= |
| 12436 | am__fastdepCXX_FALSE='#' |
| 12437 | else |
| 12438 | am__fastdepCXX_TRUE='#' |
| 12439 | am__fastdepCXX_FALSE= |
| 12440 | fi |
| 12441 | |
| 12442 | |
| 12443 | |
| 12444 | |
| 12445 | func_stripname_cnf () |
| 12446 | { |
| 12447 | case ${2} in |
| 12448 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 12449 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 12450 | esac |
| 12451 | } # func_stripname_cnf |
| 12452 | |
| 12453 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12454 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12455 | (test "X$CXX" != "Xg++"))) ; then |
| 12456 | ac_ext=cpp |
| 12457 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12458 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12459 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12460 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 12462 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 12463 | if test -z "$CXXCPP"; then |
| 12464 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| 12465 | $as_echo_n "(cached) " >&6 |
| 12466 | else |
| 12467 | # Double quotes because CXXCPP needs to be expanded |
| 12468 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12469 | do |
| 12470 | ac_preproc_ok=false |
| 12471 | for ac_cxx_preproc_warn_flag in '' yes |
| 12472 | do |
| 12473 | # Use a header file that comes with gcc, so configuring glibc |
| 12474 | # with a fresh cross-compiler works. |
| 12475 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12476 | # <limits.h> exists even on freestanding compilers. |
| 12477 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12478 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12480 | /* end confdefs.h. */ |
| 12481 | #ifdef __STDC__ |
| 12482 | # include <limits.h> |
| 12483 | #else |
| 12484 | # include <assert.h> |
| 12485 | #endif |
| 12486 | Syntax error |
| 12487 | _ACEOF |
| 12488 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12489 | |
| 12490 | else |
| 12491 | # Broken: fails on valid input. |
| 12492 | continue |
| 12493 | fi |
| 12494 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12495 | |
| 12496 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12497 | # can be detected and how. |
| 12498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12499 | /* end confdefs.h. */ |
| 12500 | #include <ac_nonexistent.h> |
| 12501 | _ACEOF |
| 12502 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12503 | # Broken: success on invalid input. |
| 12504 | continue |
| 12505 | else |
| 12506 | # Passes both tests. |
| 12507 | ac_preproc_ok=: |
| 12508 | break |
| 12509 | fi |
| 12510 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12511 | |
| 12512 | done |
| 12513 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12514 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12515 | if $ac_preproc_ok; then : |
| 12516 | break |
| 12517 | fi |
| 12518 | |
| 12519 | done |
| 12520 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12521 | |
| 12522 | fi |
| 12523 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12524 | else |
| 12525 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12526 | fi |
| 12527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 12528 | $as_echo "$CXXCPP" >&6; } |
| 12529 | ac_preproc_ok=false |
| 12530 | for ac_cxx_preproc_warn_flag in '' yes |
| 12531 | do |
| 12532 | # Use a header file that comes with gcc, so configuring glibc |
| 12533 | # with a fresh cross-compiler works. |
| 12534 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12535 | # <limits.h> exists even on freestanding compilers. |
| 12536 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12537 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12539 | /* end confdefs.h. */ |
| 12540 | #ifdef __STDC__ |
| 12541 | # include <limits.h> |
| 12542 | #else |
| 12543 | # include <assert.h> |
| 12544 | #endif |
| 12545 | Syntax error |
| 12546 | _ACEOF |
| 12547 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12548 | |
| 12549 | else |
| 12550 | # Broken: fails on valid input. |
| 12551 | continue |
| 12552 | fi |
| 12553 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12554 | |
| 12555 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12556 | # can be detected and how. |
| 12557 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12558 | /* end confdefs.h. */ |
| 12559 | #include <ac_nonexistent.h> |
| 12560 | _ACEOF |
| 12561 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12562 | # Broken: success on invalid input. |
| 12563 | continue |
| 12564 | else |
| 12565 | # Passes both tests. |
| 12566 | ac_preproc_ok=: |
| 12567 | break |
| 12568 | fi |
| 12569 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12570 | |
| 12571 | done |
| 12572 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12573 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12574 | if $ac_preproc_ok; then : |
| 12575 | |
| 12576 | else |
| 12577 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12578 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12579 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12580 | See \`config.log' for more details" "$LINENO" 5; } |
| 12581 | fi |
| 12582 | |
| 12583 | ac_ext=c |
| 12584 | ac_cpp='$CPP $CPPFLAGS' |
| 12585 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12586 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12587 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12588 | |
| 12589 | else |
| 12590 | _lt_caught_CXX_error=yes |
| 12591 | fi |
| 12592 | |
| 12593 | ac_ext=cpp |
| 12594 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12595 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12596 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12597 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12598 | |
| 12599 | archive_cmds_need_lc_CXX=no |
| 12600 | allow_undefined_flag_CXX= |
| 12601 | always_export_symbols_CXX=no |
| 12602 | archive_expsym_cmds_CXX= |
| 12603 | compiler_needs_object_CXX=no |
| 12604 | export_dynamic_flag_spec_CXX= |
| 12605 | hardcode_direct_CXX=no |
| 12606 | hardcode_direct_absolute_CXX=no |
| 12607 | hardcode_libdir_flag_spec_CXX= |
| 12608 | hardcode_libdir_separator_CXX= |
| 12609 | hardcode_minus_L_CXX=no |
| 12610 | hardcode_shlibpath_var_CXX=unsupported |
| 12611 | hardcode_automatic_CXX=no |
| 12612 | inherit_rpath_CXX=no |
| 12613 | module_cmds_CXX= |
| 12614 | module_expsym_cmds_CXX= |
| 12615 | link_all_deplibs_CXX=unknown |
| 12616 | old_archive_cmds_CXX=$old_archive_cmds |
| 12617 | reload_flag_CXX=$reload_flag |
| 12618 | reload_cmds_CXX=$reload_cmds |
| 12619 | no_undefined_flag_CXX= |
| 12620 | whole_archive_flag_spec_CXX= |
| 12621 | enable_shared_with_static_runtimes_CXX=no |
| 12622 | |
| 12623 | # Source file extension for C++ test sources. |
| 12624 | ac_ext=cpp |
| 12625 | |
| 12626 | # Object file extension for compiled C++ test sources. |
| 12627 | objext=o |
| 12628 | objext_CXX=$objext |
| 12629 | |
| 12630 | # No sense in running all these tests if we already determined that |
| 12631 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 12632 | # are currently assumed to apply to all compilers on this platform, |
| 12633 | # and will be corrupted by setting them based on a non-working compiler. |
| 12634 | if test "$_lt_caught_CXX_error" != yes; then |
| 12635 | # Code to be used in simple compile tests |
| 12636 | lt_simple_compile_test_code="int some_variable = 0;" |
| 12637 | |
| 12638 | # Code to be used in simple link tests |
| 12639 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 12640 | |
| 12641 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12642 | |
| 12643 | |
| 12644 | |
| 12645 | |
| 12646 | |
| 12647 | |
| 12648 | # If no C compiler was specified, use CC. |
| 12649 | LTCC=${LTCC-"$CC"} |
| 12650 | |
| 12651 | # If no C compiler flags were specified, use CFLAGS. |
| 12652 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12653 | |
| 12654 | # Allow CC to be a program name with arguments. |
| 12655 | compiler=$CC |
| 12656 | |
| 12657 | |
| 12658 | # save warnings/boilerplate of simple test code |
| 12659 | ac_outfile=conftest.$ac_objext |
| 12660 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 12661 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12662 | _lt_compiler_boilerplate=`cat conftest.err` |
| 12663 | $RM conftest* |
| 12664 | |
| 12665 | ac_outfile=conftest.$ac_objext |
| 12666 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 12667 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12668 | _lt_linker_boilerplate=`cat conftest.err` |
| 12669 | $RM -r conftest* |
| 12670 | |
| 12671 | |
| 12672 | # Allow CC to be a program name with arguments. |
| 12673 | lt_save_CC=$CC |
| 12674 | lt_save_CFLAGS=$CFLAGS |
| 12675 | lt_save_LD=$LD |
| 12676 | lt_save_GCC=$GCC |
| 12677 | GCC=$GXX |
| 12678 | lt_save_with_gnu_ld=$with_gnu_ld |
| 12679 | lt_save_path_LD=$lt_cv_path_LD |
| 12680 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 12681 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 12682 | else |
| 12683 | $as_unset lt_cv_prog_gnu_ld |
| 12684 | fi |
| 12685 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 12686 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 12687 | else |
| 12688 | $as_unset lt_cv_path_LD |
| 12689 | fi |
| 12690 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 12691 | CC=${CXX-"c++"} |
| 12692 | CFLAGS=$CXXFLAGS |
| 12693 | compiler=$CC |
| 12694 | compiler_CXX=$CC |
| 12695 | for cc_temp in $compiler""; do |
| 12696 | case $cc_temp in |
| 12697 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 12698 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 12699 | \-*) ;; |
| 12700 | *) break;; |
| 12701 | esac |
| 12702 | done |
| 12703 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 12704 | |
| 12705 | |
| 12706 | if test -n "$compiler"; then |
| 12707 | # We don't want -fno-exception when compiling C++ code, so set the |
| 12708 | # no_builtin_flag separately |
| 12709 | if test "$GXX" = yes; then |
| 12710 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 12711 | else |
| 12712 | lt_prog_compiler_no_builtin_flag_CXX= |
| 12713 | fi |
| 12714 | |
| 12715 | if test "$GXX" = yes; then |
| 12716 | # Set up default GNU C++ configuration |
| 12717 | |
| 12718 | |
| 12719 | |
| 12720 | # Check whether --with-gnu-ld was given. |
| 12721 | if test "${with_gnu_ld+set}" = set; then : |
| 12722 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 12723 | else |
| 12724 | with_gnu_ld=no |
| 12725 | fi |
| 12726 | |
| 12727 | ac_prog=ld |
| 12728 | if test "$GCC" = yes; then |
| 12729 | # Check if gcc -print-prog-name=ld gives a path. |
| 12730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 12731 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 12732 | case $host in |
| 12733 | *-*-mingw*) |
| 12734 | # gcc leaves a trailing carriage return which upsets mingw |
| 12735 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12736 | *) |
| 12737 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12738 | esac |
| 12739 | case $ac_prog in |
| 12740 | # Accept absolute paths. |
| 12741 | [\\/]* | ?:[\\/]*) |
| 12742 | re_direlt='/[^/][^/]*/\.\./' |
| 12743 | # Canonicalize the pathname of ld |
| 12744 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 12745 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 12746 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 12747 | done |
| 12748 | test -z "$LD" && LD="$ac_prog" |
| 12749 | ;; |
| 12750 | "") |
| 12751 | # If it fails, then pretend we aren't using GCC. |
| 12752 | ac_prog=ld |
| 12753 | ;; |
| 12754 | *) |
| 12755 | # If it is relative, then search for the first ld in PATH. |
| 12756 | with_gnu_ld=unknown |
| 12757 | ;; |
| 12758 | esac |
| 12759 | elif test "$with_gnu_ld" = yes; then |
| 12760 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 12761 | $as_echo_n "checking for GNU ld... " >&6; } |
| 12762 | else |
| 12763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 12764 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 12765 | fi |
| 12766 | if ${lt_cv_path_LD+:} false; then : |
| 12767 | $as_echo_n "(cached) " >&6 |
| 12768 | else |
| 12769 | if test -z "$LD"; then |
| 12770 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12771 | for ac_dir in $PATH; do |
| 12772 | IFS="$lt_save_ifs" |
| 12773 | test -z "$ac_dir" && ac_dir=. |
| 12774 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12775 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12776 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 12777 | # but apparently some variants of GNU ld only accept -v. |
| 12778 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12779 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12780 | *GNU* | *'with BFD'*) |
| 12781 | test "$with_gnu_ld" != no && break |
| 12782 | ;; |
| 12783 | *) |
| 12784 | test "$with_gnu_ld" != yes && break |
| 12785 | ;; |
| 12786 | esac |
| 12787 | fi |
| 12788 | done |
| 12789 | IFS="$lt_save_ifs" |
| 12790 | else |
| 12791 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12792 | fi |
| 12793 | fi |
| 12794 | |
| 12795 | LD="$lt_cv_path_LD" |
| 12796 | if test -n "$LD"; then |
| 12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 12798 | $as_echo "$LD" >&6; } |
| 12799 | else |
| 12800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12801 | $as_echo "no" >&6; } |
| 12802 | fi |
| 12803 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 12804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 12805 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 12806 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 12807 | $as_echo_n "(cached) " >&6 |
| 12808 | else |
| 12809 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 12810 | case `$LD -v 2>&1 </dev/null` in |
| 12811 | *GNU* | *'with BFD'*) |
| 12812 | lt_cv_prog_gnu_ld=yes |
| 12813 | ;; |
| 12814 | *) |
| 12815 | lt_cv_prog_gnu_ld=no |
| 12816 | ;; |
| 12817 | esac |
| 12818 | fi |
| 12819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 12820 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 12821 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12822 | |
| 12823 | |
| 12824 | |
| 12825 | |
| 12826 | |
| 12827 | |
| 12828 | |
| 12829 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 12830 | # archiving commands below assume that GNU ld is being used. |
| 12831 | if test "$with_gnu_ld" = yes; then |
| 12832 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12833 | archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 12834 | |
| 12835 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12836 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12837 | |
| 12838 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12839 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 12840 | # investigate it a little bit more. (MM) |
| 12841 | wlarc='${wl}' |
| 12842 | |
| 12843 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12844 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 12845 | $GREP 'no-whole-archive' > /dev/null; then |
| 12846 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12847 | else |
| 12848 | whole_archive_flag_spec_CXX= |
| 12849 | fi |
| 12850 | else |
| 12851 | with_gnu_ld=no |
| 12852 | wlarc= |
| 12853 | |
| 12854 | # A generic and very simple default shared library creation |
| 12855 | # command for GNU C++ for the case where it uses the native |
| 12856 | # linker, instead of GNU ld. If possible, this setting should |
| 12857 | # overridden to take advantage of the native linker features on |
| 12858 | # the platform it is being used on. |
| 12859 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12860 | fi |
| 12861 | |
| 12862 | # Commands to make compiler produce verbose output that lists |
| 12863 | # what "hidden" libraries, object files and flags are used when |
| 12864 | # linking a shared library. |
| 12865 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 12866 | |
| 12867 | else |
| 12868 | GXX=no |
| 12869 | with_gnu_ld=no |
| 12870 | wlarc= |
| 12871 | fi |
| 12872 | |
| 12873 | # PORTME: fill in a description of your system's C++ link characteristics |
| 12874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12875 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 12876 | ld_shlibs_CXX=yes |
| 12877 | case $host_os in |
| 12878 | aix3*) |
| 12879 | # FIXME: insert proper C++ library support |
| 12880 | ld_shlibs_CXX=no |
| 12881 | ;; |
| 12882 | aix[4-9]*) |
| 12883 | if test "$host_cpu" = ia64; then |
| 12884 | # On IA64, the linker does run time linking by default, so we don't |
| 12885 | # have to do anything special. |
| 12886 | aix_use_runtimelinking=no |
| 12887 | exp_sym_flag='-Bexport' |
| 12888 | no_entry_flag="" |
| 12889 | else |
| 12890 | aix_use_runtimelinking=no |
| 12891 | |
| 12892 | # Test if we are trying to use run time linking or normal |
| 12893 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12894 | # need to do runtime linking. |
| 12895 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 12896 | for ld_flag in $LDFLAGS; do |
| 12897 | case $ld_flag in |
| 12898 | *-brtl*) |
| 12899 | aix_use_runtimelinking=yes |
| 12900 | break |
| 12901 | ;; |
| 12902 | esac |
| 12903 | done |
| 12904 | ;; |
| 12905 | esac |
| 12906 | |
| 12907 | exp_sym_flag='-bexport' |
| 12908 | no_entry_flag='-bnoentry' |
| 12909 | fi |
| 12910 | |
| 12911 | # When large executables or shared objects are built, AIX ld can |
| 12912 | # have problems creating the table of contents. If linking a library |
| 12913 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 12914 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 12915 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 12916 | |
| 12917 | archive_cmds_CXX='' |
| 12918 | hardcode_direct_CXX=yes |
| 12919 | hardcode_direct_absolute_CXX=yes |
| 12920 | hardcode_libdir_separator_CXX=':' |
| 12921 | link_all_deplibs_CXX=yes |
| 12922 | file_list_spec_CXX='${wl}-f,' |
| 12923 | |
| 12924 | if test "$GXX" = yes; then |
| 12925 | case $host_os in aix4.[012]|aix4.[012].*) |
| 12926 | # We only want to do this on AIX 4.2 and lower, the check |
| 12927 | # below for broken collect2 doesn't work under 4.3+ |
| 12928 | collect2name=`${CC} -print-prog-name=collect2` |
| 12929 | if test -f "$collect2name" && |
| 12930 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 12931 | then |
| 12932 | # We have reworked collect2 |
| 12933 | : |
| 12934 | else |
| 12935 | # We have old collect2 |
| 12936 | hardcode_direct_CXX=unsupported |
| 12937 | # It fails to find uninstalled libraries when the uninstalled |
| 12938 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 12939 | # to unsupported forces relinking |
| 12940 | hardcode_minus_L_CXX=yes |
| 12941 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 12942 | hardcode_libdir_separator_CXX= |
| 12943 | fi |
| 12944 | esac |
| 12945 | shared_flag='-shared' |
| 12946 | if test "$aix_use_runtimelinking" = yes; then |
| 12947 | shared_flag="$shared_flag "'${wl}-G' |
| 12948 | fi |
| 12949 | else |
| 12950 | # not using gcc |
| 12951 | if test "$host_cpu" = ia64; then |
| 12952 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 12953 | # chokes on -Wl,-G. The following line is correct: |
| 12954 | shared_flag='-G' |
| 12955 | else |
| 12956 | if test "$aix_use_runtimelinking" = yes; then |
| 12957 | shared_flag='${wl}-G' |
| 12958 | else |
| 12959 | shared_flag='${wl}-bM:SRE' |
| 12960 | fi |
| 12961 | fi |
| 12962 | fi |
| 12963 | |
| 12964 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 12965 | # It seems that -bexpall does not export symbols beginning with |
| 12966 | # underscore (_), so it is better to generate a list of symbols to |
| 12967 | # export. |
| 12968 | always_export_symbols_CXX=yes |
| 12969 | if test "$aix_use_runtimelinking" = yes; then |
| 12970 | # Warning - without using the other runtime loading flags (-brtl), |
| 12971 | # -berok will link without error, but may produce a broken library. |
| 12972 | allow_undefined_flag_CXX='-berok' |
| 12973 | # Determine the default libpath from the value encoded in an empty |
| 12974 | # executable. |
| 12975 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 12976 | aix_libpath=$lt_cv_aix_libpath |
| 12977 | else |
| 12978 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 12979 | $as_echo_n "(cached) " >&6 |
| 12980 | else |
| 12981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12982 | /* end confdefs.h. */ |
| 12983 | |
| 12984 | int |
| 12985 | main () |
| 12986 | { |
| 12987 | |
| 12988 | ; |
| 12989 | return 0; |
| 12990 | } |
| 12991 | _ACEOF |
| 12992 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 12993 | |
| 12994 | lt_aix_libpath_sed=' |
| 12995 | /Import File Strings/,/^$/ { |
| 12996 | /^0/ { |
| 12997 | s/^0 *\([^ ]*\) *$/\1/ |
| 12998 | p |
| 12999 | } |
| 13000 | }' |
| 13001 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13002 | # Check for a 64-bit object if we didn't find anything. |
| 13003 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13004 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13005 | fi |
| 13006 | fi |
| 13007 | rm -f core conftest.err conftest.$ac_objext \ |
| 13008 | conftest$ac_exeext conftest.$ac_ext |
| 13009 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13010 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 13011 | fi |
| 13012 | |
| 13013 | fi |
| 13014 | |
| 13015 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 13016 | fi |
| 13017 | |
| 13018 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13019 | |
| 13020 | archive_expsym_cmds_CXX='$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" |
| 13021 | else |
| 13022 | if test "$host_cpu" = ia64; then |
| 13023 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 13024 | allow_undefined_flag_CXX="-z nodefs" |
| 13025 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
| 13026 | else |
| 13027 | # Determine the default libpath from the value encoded in an |
| 13028 | # empty executable. |
| 13029 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 13030 | aix_libpath=$lt_cv_aix_libpath |
| 13031 | else |
| 13032 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 13033 | $as_echo_n "(cached) " >&6 |
| 13034 | else |
| 13035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13036 | /* end confdefs.h. */ |
| 13037 | |
| 13038 | int |
| 13039 | main () |
| 13040 | { |
| 13041 | |
| 13042 | ; |
| 13043 | return 0; |
| 13044 | } |
| 13045 | _ACEOF |
| 13046 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 13047 | |
| 13048 | lt_aix_libpath_sed=' |
| 13049 | /Import File Strings/,/^$/ { |
| 13050 | /^0/ { |
| 13051 | s/^0 *\([^ ]*\) *$/\1/ |
| 13052 | p |
| 13053 | } |
| 13054 | }' |
| 13055 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13056 | # Check for a 64-bit object if we didn't find anything. |
| 13057 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13058 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13059 | fi |
| 13060 | fi |
| 13061 | rm -f core conftest.err conftest.$ac_objext \ |
| 13062 | conftest$ac_exeext conftest.$ac_ext |
| 13063 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13064 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 13065 | fi |
| 13066 | |
| 13067 | fi |
| 13068 | |
| 13069 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 13070 | fi |
| 13071 | |
| 13072 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13073 | # Warning - without using the other run time loading flags, |
| 13074 | # -berok will link without error, but may produce a broken library. |
| 13075 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 13076 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 13077 | if test "$with_gnu_ld" = yes; then |
| 13078 | # We only use this code for GNU lds that support --whole-archive. |
| 13079 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 13080 | else |
| 13081 | # Exported symbols can be pulled into shared objects from archives |
| 13082 | whole_archive_flag_spec_CXX='$convenience' |
| 13083 | fi |
| 13084 | archive_cmds_need_lc_CXX=yes |
| 13085 | # This is similar to how AIX traditionally builds its shared |
| 13086 | # libraries. |
| 13087 | archive_expsym_cmds_CXX="\$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' |
| 13088 | fi |
| 13089 | fi |
| 13090 | ;; |
| 13091 | |
| 13092 | beos*) |
| 13093 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13094 | allow_undefined_flag_CXX=unsupported |
| 13095 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 13096 | # support --undefined. This deserves some investigation. FIXME |
| 13097 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13098 | else |
| 13099 | ld_shlibs_CXX=no |
| 13100 | fi |
| 13101 | ;; |
| 13102 | |
| 13103 | chorus*) |
| 13104 | case $cc_basename in |
| 13105 | *) |
| 13106 | # FIXME: insert proper C++ library support |
| 13107 | ld_shlibs_CXX=no |
| 13108 | ;; |
| 13109 | esac |
| 13110 | ;; |
| 13111 | |
| 13112 | cygwin* | mingw* | pw32* | cegcc*) |
| 13113 | case $GXX,$cc_basename in |
| 13114 | ,cl* | no,cl*) |
| 13115 | # Native MSVC |
| 13116 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13117 | # no search path for DLLs. |
| 13118 | hardcode_libdir_flag_spec_CXX=' ' |
| 13119 | allow_undefined_flag_CXX=unsupported |
| 13120 | always_export_symbols_CXX=yes |
| 13121 | file_list_spec_CXX='@' |
| 13122 | # Tell ltmain to make .lib files, not .a files. |
| 13123 | libext=lib |
| 13124 | # Tell ltmain to make .dll files, not .so files. |
| 13125 | shrext_cmds=".dll" |
| 13126 | # FIXME: Setting linknames here is a bad hack. |
| 13127 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 13128 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13129 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 13130 | else |
| 13131 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 13132 | fi~ |
| 13133 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 13134 | linknames=' |
| 13135 | # The linker will not automatically build a static lib if we build a DLL. |
| 13136 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 13137 | enable_shared_with_static_runtimes_CXX=yes |
| 13138 | # Don't use ranlib |
| 13139 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 13140 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 13141 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 13142 | case $lt_outputfile in |
| 13143 | *.exe|*.EXE) ;; |
| 13144 | *) |
| 13145 | lt_outputfile="$lt_outputfile.exe" |
| 13146 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 13147 | ;; |
| 13148 | esac~ |
| 13149 | func_to_tool_file "$lt_outputfile"~ |
| 13150 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 13151 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 13152 | $RM "$lt_outputfile.manifest"; |
| 13153 | fi' |
| 13154 | ;; |
| 13155 | *) |
| 13156 | # g++ |
| 13157 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 13158 | # as there is no search path for DLLs. |
| 13159 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 13160 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
| 13161 | allow_undefined_flag_CXX=unsupported |
| 13162 | always_export_symbols_CXX=no |
| 13163 | enable_shared_with_static_runtimes_CXX=yes |
| 13164 | |
| 13165 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 13166 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 13167 | # If the export-symbols file already is a .def file (1st line |
| 13168 | # is EXPORTS), use it as is; otherwise, prepend... |
| 13169 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13170 | cp $export_symbols $output_objdir/$soname.def; |
| 13171 | else |
| 13172 | echo EXPORTS > $output_objdir/$soname.def; |
| 13173 | cat $export_symbols >> $output_objdir/$soname.def; |
| 13174 | fi~ |
| 13175 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 13176 | else |
| 13177 | ld_shlibs_CXX=no |
| 13178 | fi |
| 13179 | ;; |
| 13180 | esac |
| 13181 | ;; |
| 13182 | darwin* | rhapsody*) |
| 13183 | |
| 13184 | |
| 13185 | archive_cmds_need_lc_CXX=no |
| 13186 | hardcode_direct_CXX=no |
| 13187 | hardcode_automatic_CXX=yes |
| 13188 | hardcode_shlibpath_var_CXX=unsupported |
| 13189 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 13190 | whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 13191 | |
| 13192 | else |
| 13193 | whole_archive_flag_spec_CXX='' |
| 13194 | fi |
| 13195 | link_all_deplibs_CXX=yes |
| 13196 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 13197 | case $cc_basename in |
| 13198 | ifort*) _lt_dar_can_shared=yes ;; |
| 13199 | *) _lt_dar_can_shared=$GCC ;; |
| 13200 | esac |
| 13201 | if test "$_lt_dar_can_shared" = "yes"; then |
| 13202 | output_verbose_link_cmd=func_echo_all |
| 13203 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 13204 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 13205 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
| 13206 | module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
| 13207 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 13208 | archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" |
| 13209 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" |
| 13210 | fi |
| 13211 | |
| 13212 | else |
| 13213 | ld_shlibs_CXX=no |
| 13214 | fi |
| 13215 | |
| 13216 | ;; |
| 13217 | |
| 13218 | dgux*) |
| 13219 | case $cc_basename in |
| 13220 | ec++*) |
| 13221 | # FIXME: insert proper C++ library support |
| 13222 | ld_shlibs_CXX=no |
| 13223 | ;; |
| 13224 | ghcx*) |
| 13225 | # Green Hills C++ Compiler |
| 13226 | # FIXME: insert proper C++ library support |
| 13227 | ld_shlibs_CXX=no |
| 13228 | ;; |
| 13229 | *) |
| 13230 | # FIXME: insert proper C++ library support |
| 13231 | ld_shlibs_CXX=no |
| 13232 | ;; |
| 13233 | esac |
| 13234 | ;; |
| 13235 | |
| 13236 | freebsd2.*) |
| 13237 | # C++ shared libraries reported to be fairly broken before |
| 13238 | # switch to ELF |
| 13239 | ld_shlibs_CXX=no |
| 13240 | ;; |
| 13241 | |
| 13242 | freebsd-elf*) |
| 13243 | archive_cmds_need_lc_CXX=no |
| 13244 | ;; |
| 13245 | |
| 13246 | freebsd* | dragonfly*) |
| 13247 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 13248 | # conventions |
| 13249 | ld_shlibs_CXX=yes |
| 13250 | ;; |
| 13251 | |
| 13252 | gnu*) |
| 13253 | ;; |
| 13254 | |
| 13255 | haiku*) |
| 13256 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13257 | link_all_deplibs_CXX=yes |
| 13258 | ;; |
| 13259 | |
| 13260 | hpux9*) |
| 13261 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 13262 | hardcode_libdir_separator_CXX=: |
| 13263 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13264 | hardcode_direct_CXX=yes |
| 13265 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13266 | # but as the default |
| 13267 | # location of the library. |
| 13268 | |
| 13269 | case $cc_basename in |
| 13270 | CC*) |
| 13271 | # FIXME: insert proper C++ library support |
| 13272 | ld_shlibs_CXX=no |
| 13273 | ;; |
| 13274 | aCC*) |
| 13275 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 13276 | # Commands to make compiler produce verbose output that lists |
| 13277 | # what "hidden" libraries, object files and flags are used when |
| 13278 | # linking a shared library. |
| 13279 | # |
| 13280 | # There doesn't appear to be a way to prevent this compiler from |
| 13281 | # explicitly linking system object files so we need to strip them |
| 13282 | # from the output so that they don't get included in the library |
| 13283 | # dependencies. |
| 13284 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 13285 | ;; |
| 13286 | *) |
| 13287 | if test "$GXX" = yes; then |
| 13288 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 13289 | else |
| 13290 | # FIXME: insert proper C++ library support |
| 13291 | ld_shlibs_CXX=no |
| 13292 | fi |
| 13293 | ;; |
| 13294 | esac |
| 13295 | ;; |
| 13296 | |
| 13297 | hpux10*|hpux11*) |
| 13298 | if test $with_gnu_ld = no; then |
| 13299 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 13300 | hardcode_libdir_separator_CXX=: |
| 13301 | |
| 13302 | case $host_cpu in |
| 13303 | hppa*64*|ia64*) |
| 13304 | ;; |
| 13305 | *) |
| 13306 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13307 | ;; |
| 13308 | esac |
| 13309 | fi |
| 13310 | case $host_cpu in |
| 13311 | hppa*64*|ia64*) |
| 13312 | hardcode_direct_CXX=no |
| 13313 | hardcode_shlibpath_var_CXX=no |
| 13314 | ;; |
| 13315 | *) |
| 13316 | hardcode_direct_CXX=yes |
| 13317 | hardcode_direct_absolute_CXX=yes |
| 13318 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13319 | # but as the default |
| 13320 | # location of the library. |
| 13321 | ;; |
| 13322 | esac |
| 13323 | |
| 13324 | case $cc_basename in |
| 13325 | CC*) |
| 13326 | # FIXME: insert proper C++ library support |
| 13327 | ld_shlibs_CXX=no |
| 13328 | ;; |
| 13329 | aCC*) |
| 13330 | case $host_cpu in |
| 13331 | hppa*64*) |
| 13332 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13333 | ;; |
| 13334 | ia64*) |
| 13335 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13336 | ;; |
| 13337 | *) |
| 13338 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13339 | ;; |
| 13340 | esac |
| 13341 | # Commands to make compiler produce verbose output that lists |
| 13342 | # what "hidden" libraries, object files and flags are used when |
| 13343 | # linking a shared library. |
| 13344 | # |
| 13345 | # There doesn't appear to be a way to prevent this compiler from |
| 13346 | # explicitly linking system object files so we need to strip them |
| 13347 | # from the output so that they don't get included in the library |
| 13348 | # dependencies. |
| 13349 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 13350 | ;; |
| 13351 | *) |
| 13352 | if test "$GXX" = yes; then |
| 13353 | if test $with_gnu_ld = no; then |
| 13354 | case $host_cpu in |
| 13355 | hppa*64*) |
| 13356 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13357 | ;; |
| 13358 | ia64*) |
| 13359 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13360 | ;; |
| 13361 | *) |
| 13362 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13363 | ;; |
| 13364 | esac |
| 13365 | fi |
| 13366 | else |
| 13367 | # FIXME: insert proper C++ library support |
| 13368 | ld_shlibs_CXX=no |
| 13369 | fi |
| 13370 | ;; |
| 13371 | esac |
| 13372 | ;; |
| 13373 | |
| 13374 | interix[3-9]*) |
| 13375 | hardcode_direct_CXX=no |
| 13376 | hardcode_shlibpath_var_CXX=no |
| 13377 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13378 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13379 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 13380 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 13381 | # default) and relocated if they conflict, which is a slow very memory |
| 13382 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 13383 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 13384 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 13385 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 13386 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 13387 | ;; |
| 13388 | irix5* | irix6*) |
| 13389 | case $cc_basename in |
| 13390 | CC*) |
| 13391 | # SGI C++ |
| 13392 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13393 | |
| 13394 | # Archives containing C++ object files must be created using |
| 13395 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 13396 | # necessary to make sure instantiated templates are included |
| 13397 | # in the archive. |
| 13398 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 13399 | ;; |
| 13400 | *) |
| 13401 | if test "$GXX" = yes; then |
| 13402 | if test "$with_gnu_ld" = no; then |
| 13403 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 13404 | else |
| 13405 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' |
| 13406 | fi |
| 13407 | fi |
| 13408 | link_all_deplibs_CXX=yes |
| 13409 | ;; |
| 13410 | esac |
| 13411 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13412 | hardcode_libdir_separator_CXX=: |
| 13413 | inherit_rpath_CXX=yes |
| 13414 | ;; |
| 13415 | |
| 13416 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 13417 | case $cc_basename in |
| 13418 | KCC*) |
| 13419 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13420 | |
| 13421 | # KCC will only create a shared library if the output file |
| 13422 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13423 | # to its proper name (with version) after linking. |
| 13424 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 13425 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
| 13426 | # Commands to make compiler produce verbose output that lists |
| 13427 | # what "hidden" libraries, object files and flags are used when |
| 13428 | # linking a shared library. |
| 13429 | # |
| 13430 | # There doesn't appear to be a way to prevent this compiler from |
| 13431 | # explicitly linking system object files so we need to strip them |
| 13432 | # from the output so that they don't get included in the library |
| 13433 | # dependencies. |
| 13434 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 13435 | |
| 13436 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13437 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13438 | |
| 13439 | # Archives containing C++ object files must be created using |
| 13440 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 13441 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 13442 | ;; |
| 13443 | icpc* | ecpc* ) |
| 13444 | # Intel C++ |
| 13445 | with_gnu_ld=yes |
| 13446 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 13447 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 13448 | # earlier do not add the objects themselves. |
| 13449 | case `$CC -V 2>&1` in |
| 13450 | *"Version 7."*) |
| 13451 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13452 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13453 | ;; |
| 13454 | *) # Version 8.0 or newer |
| 13455 | tmp_idyn= |
| 13456 | case $host_cpu in |
| 13457 | ia64*) tmp_idyn=' -i_dynamic';; |
| 13458 | esac |
| 13459 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13460 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 13461 | ;; |
| 13462 | esac |
| 13463 | archive_cmds_need_lc_CXX=no |
| 13464 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13465 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13466 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 13467 | ;; |
| 13468 | pgCC* | pgcpp*) |
| 13469 | # Portland Group C++ compiler |
| 13470 | case `$CC -V` in |
| 13471 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 13472 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 13473 | rm -rf $tpldir~ |
| 13474 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 13475 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| 13476 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 13477 | rm -rf $tpldir~ |
| 13478 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 13479 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| 13480 | $RANLIB $oldlib' |
| 13481 | archive_cmds_CXX='tpldir=Template.dir~ |
| 13482 | rm -rf $tpldir~ |
| 13483 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13484 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13485 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 13486 | rm -rf $tpldir~ |
| 13487 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13488 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 13489 | ;; |
| 13490 | *) # Version 6 and above use weak symbols |
| 13491 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13492 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
| 13493 | ;; |
| 13494 | esac |
| 13495 | |
| 13496 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 13497 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13498 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 13499 | ;; |
| 13500 | cxx*) |
| 13501 | # Compaq C++ |
| 13502 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13503 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
| 13504 | |
| 13505 | runpath_var=LD_RUN_PATH |
| 13506 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13507 | hardcode_libdir_separator_CXX=: |
| 13508 | |
| 13509 | # Commands to make compiler produce verbose output that lists |
| 13510 | # what "hidden" libraries, object files and flags are used when |
| 13511 | # linking a shared library. |
| 13512 | # |
| 13513 | # There doesn't appear to be a way to prevent this compiler from |
| 13514 | # explicitly linking system object files so we need to strip them |
| 13515 | # from the output so that they don't get included in the library |
| 13516 | # dependencies. |
| 13517 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' |
| 13518 | ;; |
| 13519 | xl* | mpixl* | bgxl*) |
| 13520 | # IBM XL 8.0 on PPC, with GNU ld |
| 13521 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13522 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13523 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13524 | if test "x$supports_anon_versioning" = xyes; then |
| 13525 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13526 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13527 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13528 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13529 | fi |
| 13530 | ;; |
| 13531 | *) |
| 13532 | case `$CC -V 2>&1 | sed 5q` in |
| 13533 | *Sun\ C*) |
| 13534 | # Sun C++ 5.9 |
| 13535 | no_undefined_flag_CXX=' -zdefs' |
| 13536 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13537 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
| 13538 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13539 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
| 13540 | compiler_needs_object_CXX=yes |
| 13541 | |
| 13542 | # Not sure whether something based on |
| 13543 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 13544 | # would be better. |
| 13545 | output_verbose_link_cmd='func_echo_all' |
| 13546 | |
| 13547 | # Archives containing C++ object files must be created using |
| 13548 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13549 | # necessary to make sure instantiated templates are included |
| 13550 | # in the archive. |
| 13551 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13552 | ;; |
| 13553 | esac |
| 13554 | ;; |
| 13555 | esac |
| 13556 | ;; |
| 13557 | |
| 13558 | lynxos*) |
| 13559 | # FIXME: insert proper C++ library support |
| 13560 | ld_shlibs_CXX=no |
| 13561 | ;; |
| 13562 | |
| 13563 | m88k*) |
| 13564 | # FIXME: insert proper C++ library support |
| 13565 | ld_shlibs_CXX=no |
| 13566 | ;; |
| 13567 | |
| 13568 | mvs*) |
| 13569 | case $cc_basename in |
| 13570 | cxx*) |
| 13571 | # FIXME: insert proper C++ library support |
| 13572 | ld_shlibs_CXX=no |
| 13573 | ;; |
| 13574 | *) |
| 13575 | # FIXME: insert proper C++ library support |
| 13576 | ld_shlibs_CXX=no |
| 13577 | ;; |
| 13578 | esac |
| 13579 | ;; |
| 13580 | |
| 13581 | netbsd*) |
| 13582 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13583 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 13584 | wlarc= |
| 13585 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13586 | hardcode_direct_CXX=yes |
| 13587 | hardcode_shlibpath_var_CXX=no |
| 13588 | fi |
| 13589 | # Workaround some broken pre-1.5 toolchains |
| 13590 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 13591 | ;; |
| 13592 | |
| 13593 | *nto* | *qnx*) |
| 13594 | ld_shlibs_CXX=yes |
| 13595 | ;; |
| 13596 | |
| 13597 | openbsd2*) |
| 13598 | # C++ shared libraries are fairly broken |
| 13599 | ld_shlibs_CXX=no |
| 13600 | ;; |
| 13601 | |
| 13602 | openbsd*) |
| 13603 | if test -f /usr/libexec/ld.so; then |
| 13604 | hardcode_direct_CXX=yes |
| 13605 | hardcode_shlibpath_var_CXX=no |
| 13606 | hardcode_direct_absolute_CXX=yes |
| 13607 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 13608 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13609 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13610 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 13611 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13612 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13613 | fi |
| 13614 | output_verbose_link_cmd=func_echo_all |
| 13615 | else |
| 13616 | ld_shlibs_CXX=no |
| 13617 | fi |
| 13618 | ;; |
| 13619 | |
| 13620 | osf3* | osf4* | osf5*) |
| 13621 | case $cc_basename in |
| 13622 | KCC*) |
| 13623 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13624 | |
| 13625 | # KCC will only create a shared library if the output file |
| 13626 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13627 | # to its proper name (with version) after linking. |
| 13628 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
| 13629 | |
| 13630 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13631 | hardcode_libdir_separator_CXX=: |
| 13632 | |
| 13633 | # Archives containing C++ object files must be created using |
| 13634 | # the KAI C++ compiler. |
| 13635 | case $host in |
| 13636 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 13637 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 13638 | esac |
| 13639 | ;; |
| 13640 | RCC*) |
| 13641 | # Rational C++ 2.4.1 |
| 13642 | # FIXME: insert proper C++ library support |
| 13643 | ld_shlibs_CXX=no |
| 13644 | ;; |
| 13645 | cxx*) |
| 13646 | case $host in |
| 13647 | osf3*) |
| 13648 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13649 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13650 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13651 | ;; |
| 13652 | *) |
| 13653 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 13654 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
| 13655 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 13656 | echo "-hidden">> $lib.exp~ |
| 13657 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ |
| 13658 | $RM $lib.exp' |
| 13659 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13660 | ;; |
| 13661 | esac |
| 13662 | |
| 13663 | hardcode_libdir_separator_CXX=: |
| 13664 | |
| 13665 | # Commands to make compiler produce verbose output that lists |
| 13666 | # what "hidden" libraries, object files and flags are used when |
| 13667 | # linking a shared library. |
| 13668 | # |
| 13669 | # There doesn't appear to be a way to prevent this compiler from |
| 13670 | # explicitly linking system object files so we need to strip them |
| 13671 | # from the output so that they don't get included in the library |
| 13672 | # dependencies. |
| 13673 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' |
| 13674 | ;; |
| 13675 | *) |
| 13676 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13677 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13678 | case $host in |
| 13679 | osf3*) |
| 13680 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 13681 | ;; |
| 13682 | *) |
| 13683 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 13684 | ;; |
| 13685 | esac |
| 13686 | |
| 13687 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13688 | hardcode_libdir_separator_CXX=: |
| 13689 | |
| 13690 | # Commands to make compiler produce verbose output that lists |
| 13691 | # what "hidden" libraries, object files and flags are used when |
| 13692 | # linking a shared library. |
| 13693 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13694 | |
| 13695 | else |
| 13696 | # FIXME: insert proper C++ library support |
| 13697 | ld_shlibs_CXX=no |
| 13698 | fi |
| 13699 | ;; |
| 13700 | esac |
| 13701 | ;; |
| 13702 | |
| 13703 | psos*) |
| 13704 | # FIXME: insert proper C++ library support |
| 13705 | ld_shlibs_CXX=no |
| 13706 | ;; |
| 13707 | |
| 13708 | sunos4*) |
| 13709 | case $cc_basename in |
| 13710 | CC*) |
| 13711 | # Sun C++ 4.x |
| 13712 | # FIXME: insert proper C++ library support |
| 13713 | ld_shlibs_CXX=no |
| 13714 | ;; |
| 13715 | lcc*) |
| 13716 | # Lucid |
| 13717 | # FIXME: insert proper C++ library support |
| 13718 | ld_shlibs_CXX=no |
| 13719 | ;; |
| 13720 | *) |
| 13721 | # FIXME: insert proper C++ library support |
| 13722 | ld_shlibs_CXX=no |
| 13723 | ;; |
| 13724 | esac |
| 13725 | ;; |
| 13726 | |
| 13727 | solaris*) |
| 13728 | case $cc_basename in |
| 13729 | CC* | sunCC*) |
| 13730 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13731 | archive_cmds_need_lc_CXX=yes |
| 13732 | no_undefined_flag_CXX=' -zdefs' |
| 13733 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13734 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13735 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13736 | |
| 13737 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13738 | hardcode_shlibpath_var_CXX=no |
| 13739 | case $host_os in |
| 13740 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13741 | *) |
| 13742 | # The compiler driver will combine and reorder linker options, |
| 13743 | # but understands `-z linker_flag'. |
| 13744 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13745 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 13746 | ;; |
| 13747 | esac |
| 13748 | link_all_deplibs_CXX=yes |
| 13749 | |
| 13750 | output_verbose_link_cmd='func_echo_all' |
| 13751 | |
| 13752 | # Archives containing C++ object files must be created using |
| 13753 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13754 | # necessary to make sure instantiated templates are included |
| 13755 | # in the archive. |
| 13756 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13757 | ;; |
| 13758 | gcx*) |
| 13759 | # Green Hills C++ Compiler |
| 13760 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13761 | |
| 13762 | # The C++ compiler must be used to create the archive. |
| 13763 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 13764 | ;; |
| 13765 | *) |
| 13766 | # GNU C++ compiler with Solaris linker |
| 13767 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13768 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 13769 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 13770 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13771 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13772 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13773 | |
| 13774 | # Commands to make compiler produce verbose output that lists |
| 13775 | # what "hidden" libraries, object files and flags are used when |
| 13776 | # linking a shared library. |
| 13777 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13778 | else |
| 13779 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 13780 | # platform. |
| 13781 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13782 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13783 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13784 | |
| 13785 | # Commands to make compiler produce verbose output that lists |
| 13786 | # what "hidden" libraries, object files and flags are used when |
| 13787 | # linking a shared library. |
| 13788 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13789 | fi |
| 13790 | |
| 13791 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 13792 | case $host_os in |
| 13793 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13794 | *) |
| 13795 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 13796 | ;; |
| 13797 | esac |
| 13798 | fi |
| 13799 | ;; |
| 13800 | esac |
| 13801 | ;; |
| 13802 | |
| 13803 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 13804 | no_undefined_flag_CXX='${wl}-z,text' |
| 13805 | archive_cmds_need_lc_CXX=no |
| 13806 | hardcode_shlibpath_var_CXX=no |
| 13807 | runpath_var='LD_RUN_PATH' |
| 13808 | |
| 13809 | case $cc_basename in |
| 13810 | CC*) |
| 13811 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13812 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13813 | ;; |
| 13814 | *) |
| 13815 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13816 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13817 | ;; |
| 13818 | esac |
| 13819 | ;; |
| 13820 | |
| 13821 | sysv5* | sco3.2v5* | sco5v6*) |
| 13822 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 13823 | # link with -lc, and that would cause any symbols used from libc to |
| 13824 | # always be unresolved, which means just about no library would |
| 13825 | # ever link correctly. If we're not using GNU ld we use -z text |
| 13826 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 13827 | # as -z defs. |
| 13828 | no_undefined_flag_CXX='${wl}-z,text' |
| 13829 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 13830 | archive_cmds_need_lc_CXX=no |
| 13831 | hardcode_shlibpath_var_CXX=no |
| 13832 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 13833 | hardcode_libdir_separator_CXX=':' |
| 13834 | link_all_deplibs_CXX=yes |
| 13835 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 13836 | runpath_var='LD_RUN_PATH' |
| 13837 | |
| 13838 | case $cc_basename in |
| 13839 | CC*) |
| 13840 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13841 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13842 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 13843 | '"$old_archive_cmds_CXX" |
| 13844 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 13845 | '"$reload_cmds_CXX" |
| 13846 | ;; |
| 13847 | *) |
| 13848 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13849 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13850 | ;; |
| 13851 | esac |
| 13852 | ;; |
| 13853 | |
| 13854 | tandem*) |
| 13855 | case $cc_basename in |
| 13856 | NCC*) |
| 13857 | # NonStop-UX NCC 3.20 |
| 13858 | # FIXME: insert proper C++ library support |
| 13859 | ld_shlibs_CXX=no |
| 13860 | ;; |
| 13861 | *) |
| 13862 | # FIXME: insert proper C++ library support |
| 13863 | ld_shlibs_CXX=no |
| 13864 | ;; |
| 13865 | esac |
| 13866 | ;; |
| 13867 | |
| 13868 | vxworks*) |
| 13869 | # FIXME: insert proper C++ library support |
| 13870 | ld_shlibs_CXX=no |
| 13871 | ;; |
| 13872 | |
| 13873 | *) |
| 13874 | # FIXME: insert proper C++ library support |
| 13875 | ld_shlibs_CXX=no |
| 13876 | ;; |
| 13877 | esac |
| 13878 | |
| 13879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 13880 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 13881 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13882 | |
| 13883 | GCC_CXX="$GXX" |
| 13884 | LD_CXX="$LD" |
| 13885 | |
| 13886 | ## CAVEAT EMPTOR: |
| 13887 | ## There is no encapsulation within the following macros, do not change |
| 13888 | ## the running order or otherwise move them around unless you know exactly |
| 13889 | ## what you are doing... |
| 13890 | # Dependencies to place before and after the object being linked: |
| 13891 | predep_objects_CXX= |
| 13892 | postdep_objects_CXX= |
| 13893 | predeps_CXX= |
| 13894 | postdeps_CXX= |
| 13895 | compiler_lib_search_path_CXX= |
| 13896 | |
| 13897 | cat > conftest.$ac_ext <<_LT_EOF |
| 13898 | class Foo |
| 13899 | { |
| 13900 | public: |
| 13901 | Foo (void) { a = 0; } |
| 13902 | private: |
| 13903 | int a; |
| 13904 | }; |
| 13905 | _LT_EOF |
| 13906 | |
| 13907 | |
| 13908 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 13909 | case "$CC $CFLAGS " in #( |
| 13910 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 13911 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 13912 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 13913 | esac |
| 13914 | |
| 13915 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 13916 | (eval $ac_compile) 2>&5 |
| 13917 | ac_status=$? |
| 13918 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13919 | test $ac_status = 0; }; then |
| 13920 | # Parse the compiler output and extract the necessary |
| 13921 | # objects, libraries and library flags. |
| 13922 | |
| 13923 | # Sentinel used to keep track of whether or not we are before |
| 13924 | # the conftest object file. |
| 13925 | pre_test_object_deps_done=no |
| 13926 | |
| 13927 | for p in `eval "$output_verbose_link_cmd"`; do |
| 13928 | case ${prev}${p} in |
| 13929 | |
| 13930 | -L* | -R* | -l*) |
| 13931 | # Some compilers place space between "-{L,R}" and the path. |
| 13932 | # Remove the space. |
| 13933 | if test $p = "-L" || |
| 13934 | test $p = "-R"; then |
| 13935 | prev=$p |
| 13936 | continue |
| 13937 | fi |
| 13938 | |
| 13939 | # Expand the sysroot to ease extracting the directories later. |
| 13940 | if test -z "$prev"; then |
| 13941 | case $p in |
| 13942 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 13943 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 13944 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 13945 | esac |
| 13946 | fi |
| 13947 | case $p in |
| 13948 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 13949 | esac |
| 13950 | if test "$pre_test_object_deps_done" = no; then |
| 13951 | case ${prev} in |
| 13952 | -L | -R) |
| 13953 | # Internal compiler library paths should come after those |
| 13954 | # provided the user. The postdeps already come after the |
| 13955 | # user supplied libs so there is no need to process them. |
| 13956 | if test -z "$compiler_lib_search_path_CXX"; then |
| 13957 | compiler_lib_search_path_CXX="${prev}${p}" |
| 13958 | else |
| 13959 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 13960 | fi |
| 13961 | ;; |
| 13962 | # The "-l" case would never come before the object being |
| 13963 | # linked, so don't bother handling this case. |
| 13964 | esac |
| 13965 | else |
| 13966 | if test -z "$postdeps_CXX"; then |
| 13967 | postdeps_CXX="${prev}${p}" |
| 13968 | else |
| 13969 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 13970 | fi |
| 13971 | fi |
| 13972 | prev= |
| 13973 | ;; |
| 13974 | |
| 13975 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| 13976 | *.$objext) |
| 13977 | # This assumes that the test object file only shows up |
| 13978 | # once in the compiler output. |
| 13979 | if test "$p" = "conftest.$objext"; then |
| 13980 | pre_test_object_deps_done=yes |
| 13981 | continue |
| 13982 | fi |
| 13983 | |
| 13984 | if test "$pre_test_object_deps_done" = no; then |
| 13985 | if test -z "$predep_objects_CXX"; then |
| 13986 | predep_objects_CXX="$p" |
| 13987 | else |
| 13988 | predep_objects_CXX="$predep_objects_CXX $p" |
| 13989 | fi |
| 13990 | else |
| 13991 | if test -z "$postdep_objects_CXX"; then |
| 13992 | postdep_objects_CXX="$p" |
| 13993 | else |
| 13994 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 13995 | fi |
| 13996 | fi |
| 13997 | ;; |
| 13998 | |
| 13999 | *) ;; # Ignore the rest. |
| 14000 | |
| 14001 | esac |
| 14002 | done |
| 14003 | |
| 14004 | # Clean up. |
| 14005 | rm -f a.out a.exe |
| 14006 | else |
| 14007 | echo "libtool.m4: error: problem compiling CXX test program" |
| 14008 | fi |
| 14009 | |
| 14010 | $RM -f confest.$objext |
| 14011 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| 14012 | |
| 14013 | # PORTME: override above test on systems where it is broken |
| 14014 | case $host_os in |
| 14015 | interix[3-9]*) |
| 14016 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 14017 | # hack all around it, let's just trust "g++" to DTRT. |
| 14018 | predep_objects_CXX= |
| 14019 | postdep_objects_CXX= |
| 14020 | postdeps_CXX= |
| 14021 | ;; |
| 14022 | |
| 14023 | linux*) |
| 14024 | case `$CC -V 2>&1 | sed 5q` in |
| 14025 | *Sun\ C*) |
| 14026 | # Sun C++ 5.9 |
| 14027 | |
| 14028 | # The more standards-conforming stlport4 library is |
| 14029 | # incompatible with the Cstd library. Avoid specifying |
| 14030 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 14031 | # -library=stlport4 depends on it. |
| 14032 | case " $CXX $CXXFLAGS " in |
| 14033 | *" -library=stlport4 "*) |
| 14034 | solaris_use_stlport4=yes |
| 14035 | ;; |
| 14036 | esac |
| 14037 | |
| 14038 | if test "$solaris_use_stlport4" != yes; then |
| 14039 | postdeps_CXX='-library=Cstd -library=Crun' |
| 14040 | fi |
| 14041 | ;; |
| 14042 | esac |
| 14043 | ;; |
| 14044 | |
| 14045 | solaris*) |
| 14046 | case $cc_basename in |
| 14047 | CC* | sunCC*) |
| 14048 | # The more standards-conforming stlport4 library is |
| 14049 | # incompatible with the Cstd library. Avoid specifying |
| 14050 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 14051 | # -library=stlport4 depends on it. |
| 14052 | case " $CXX $CXXFLAGS " in |
| 14053 | *" -library=stlport4 "*) |
| 14054 | solaris_use_stlport4=yes |
| 14055 | ;; |
| 14056 | esac |
| 14057 | |
| 14058 | # Adding this requires a known-good setup of shared libraries for |
| 14059 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 14060 | # archive will be linked into the output, leading to subtle bugs. |
| 14061 | if test "$solaris_use_stlport4" != yes; then |
| 14062 | postdeps_CXX='-library=Cstd -library=Crun' |
| 14063 | fi |
| 14064 | ;; |
| 14065 | esac |
| 14066 | ;; |
| 14067 | esac |
| 14068 | |
| 14069 | |
| 14070 | case " $postdeps_CXX " in |
| 14071 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 14072 | esac |
| 14073 | compiler_lib_search_dirs_CXX= |
| 14074 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 14075 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 14076 | fi |
| 14077 | |
| 14078 | |
| 14079 | |
| 14080 | |
| 14081 | |
| 14082 | |
| 14083 | |
| 14084 | |
| 14085 | |
| 14086 | |
| 14087 | |
| 14088 | |
| 14089 | |
| 14090 | |
| 14091 | |
| 14092 | |
| 14093 | |
| 14094 | |
| 14095 | |
| 14096 | |
| 14097 | |
| 14098 | |
| 14099 | |
| 14100 | |
| 14101 | |
| 14102 | |
| 14103 | |
| 14104 | |
| 14105 | |
| 14106 | |
| 14107 | |
| 14108 | lt_prog_compiler_wl_CXX= |
| 14109 | lt_prog_compiler_pic_CXX= |
| 14110 | lt_prog_compiler_static_CXX= |
| 14111 | |
| 14112 | |
| 14113 | # C++ specific cases for pic, static, wl, etc. |
| 14114 | if test "$GXX" = yes; then |
| 14115 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14116 | lt_prog_compiler_static_CXX='-static' |
| 14117 | |
| 14118 | case $host_os in |
| 14119 | aix*) |
| 14120 | # All AIX code is PIC. |
| 14121 | if test "$host_cpu" = ia64; then |
| 14122 | # AIX 5 now supports IA64 processor |
| 14123 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14124 | fi |
| 14125 | ;; |
| 14126 | |
| 14127 | amigaos*) |
| 14128 | case $host_cpu in |
| 14129 | powerpc) |
| 14130 | # see comment about AmigaOS4 .so support |
| 14131 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14132 | ;; |
| 14133 | m68k) |
| 14134 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14135 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14136 | # like `-m68040'. |
| 14137 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 14138 | ;; |
| 14139 | esac |
| 14140 | ;; |
| 14141 | |
| 14142 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14143 | # PIC is the default for these OSes. |
| 14144 | ;; |
| 14145 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 14146 | # This hack is so that the source file can tell whether it is being |
| 14147 | # built for inclusion in a dll (and should export symbols for example). |
| 14148 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 14149 | # (--disable-auto-import) libraries |
| 14150 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 14151 | ;; |
| 14152 | darwin* | rhapsody*) |
| 14153 | # PIC is the default on this platform |
| 14154 | # Common symbols not allowed in MH_DYLIB files |
| 14155 | lt_prog_compiler_pic_CXX='-fno-common' |
| 14156 | ;; |
| 14157 | *djgpp*) |
| 14158 | # DJGPP does not support shared libraries at all |
| 14159 | lt_prog_compiler_pic_CXX= |
| 14160 | ;; |
| 14161 | haiku*) |
| 14162 | # PIC is the default for Haiku. |
| 14163 | # The "-static" flag exists, but is broken. |
| 14164 | lt_prog_compiler_static_CXX= |
| 14165 | ;; |
| 14166 | interix[3-9]*) |
| 14167 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14168 | # Instead, we relocate shared libraries at runtime. |
| 14169 | ;; |
| 14170 | sysv4*MP*) |
| 14171 | if test -d /usr/nec; then |
| 14172 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 14173 | fi |
| 14174 | ;; |
| 14175 | hpux*) |
| 14176 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 14177 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 14178 | # sets the default TLS model and affects inlining. |
| 14179 | case $host_cpu in |
| 14180 | hppa*64*) |
| 14181 | ;; |
| 14182 | *) |
| 14183 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14184 | ;; |
| 14185 | esac |
| 14186 | ;; |
| 14187 | *qnx* | *nto*) |
| 14188 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14189 | # it will coredump. |
| 14190 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 14191 | ;; |
| 14192 | *) |
| 14193 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14194 | ;; |
| 14195 | esac |
| 14196 | else |
| 14197 | case $host_os in |
| 14198 | aix[4-9]*) |
| 14199 | # All AIX code is PIC. |
| 14200 | if test "$host_cpu" = ia64; then |
| 14201 | # AIX 5 now supports IA64 processor |
| 14202 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14203 | else |
| 14204 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 14205 | fi |
| 14206 | ;; |
| 14207 | chorus*) |
| 14208 | case $cc_basename in |
| 14209 | cxch68*) |
| 14210 | # Green Hills C++ Compiler |
| 14211 | # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" |
| 14212 | ;; |
| 14213 | esac |
| 14214 | ;; |
| 14215 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 14216 | # This hack is so that the source file can tell whether it is being |
| 14217 | # built for inclusion in a dll (and should export symbols for example). |
| 14218 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 14219 | ;; |
| 14220 | dgux*) |
| 14221 | case $cc_basename in |
| 14222 | ec++*) |
| 14223 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14224 | ;; |
| 14225 | ghcx*) |
| 14226 | # Green Hills C++ Compiler |
| 14227 | lt_prog_compiler_pic_CXX='-pic' |
| 14228 | ;; |
| 14229 | *) |
| 14230 | ;; |
| 14231 | esac |
| 14232 | ;; |
| 14233 | freebsd* | dragonfly*) |
| 14234 | # FreeBSD uses GNU C++ |
| 14235 | ;; |
| 14236 | hpux9* | hpux10* | hpux11*) |
| 14237 | case $cc_basename in |
| 14238 | CC*) |
| 14239 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14240 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 14241 | if test "$host_cpu" != ia64; then |
| 14242 | lt_prog_compiler_pic_CXX='+Z' |
| 14243 | fi |
| 14244 | ;; |
| 14245 | aCC*) |
| 14246 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14247 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 14248 | case $host_cpu in |
| 14249 | hppa*64*|ia64*) |
| 14250 | # +Z the default |
| 14251 | ;; |
| 14252 | *) |
| 14253 | lt_prog_compiler_pic_CXX='+Z' |
| 14254 | ;; |
| 14255 | esac |
| 14256 | ;; |
| 14257 | *) |
| 14258 | ;; |
| 14259 | esac |
| 14260 | ;; |
| 14261 | interix*) |
| 14262 | # This is c89, which is MS Visual C++ (no shared libs) |
| 14263 | # Anyone wants to do a port? |
| 14264 | ;; |
| 14265 | irix5* | irix6* | nonstopux*) |
| 14266 | case $cc_basename in |
| 14267 | CC*) |
| 14268 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14269 | lt_prog_compiler_static_CXX='-non_shared' |
| 14270 | # CC pic flag -KPIC is the default. |
| 14271 | ;; |
| 14272 | *) |
| 14273 | ;; |
| 14274 | esac |
| 14275 | ;; |
| 14276 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 14277 | case $cc_basename in |
| 14278 | KCC*) |
| 14279 | # KAI C++ Compiler |
| 14280 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14281 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14282 | ;; |
| 14283 | ecpc* ) |
| 14284 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 14285 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14286 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14287 | lt_prog_compiler_static_CXX='-static' |
| 14288 | ;; |
| 14289 | icpc* ) |
| 14290 | # Intel C++, used to be incompatible with GCC. |
| 14291 | # ICC 10 doesn't accept -KPIC any more. |
| 14292 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14293 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14294 | lt_prog_compiler_static_CXX='-static' |
| 14295 | ;; |
| 14296 | pgCC* | pgcpp*) |
| 14297 | # Portland Group C++ compiler |
| 14298 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14299 | lt_prog_compiler_pic_CXX='-fpic' |
| 14300 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14301 | ;; |
| 14302 | cxx*) |
| 14303 | # Compaq C++ |
| 14304 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14305 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14306 | lt_prog_compiler_pic_CXX= |
| 14307 | lt_prog_compiler_static_CXX='-non_shared' |
| 14308 | ;; |
| 14309 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 14310 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 14311 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14312 | lt_prog_compiler_pic_CXX='-qpic' |
| 14313 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 14314 | ;; |
| 14315 | *) |
| 14316 | case `$CC -V 2>&1 | sed 5q` in |
| 14317 | *Sun\ C*) |
| 14318 | # Sun C++ 5.9 |
| 14319 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14320 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14321 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14322 | ;; |
| 14323 | esac |
| 14324 | ;; |
| 14325 | esac |
| 14326 | ;; |
| 14327 | lynxos*) |
| 14328 | ;; |
| 14329 | m88k*) |
| 14330 | ;; |
| 14331 | mvs*) |
| 14332 | case $cc_basename in |
| 14333 | cxx*) |
| 14334 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 14335 | ;; |
| 14336 | *) |
| 14337 | ;; |
| 14338 | esac |
| 14339 | ;; |
| 14340 | netbsd*) |
| 14341 | ;; |
| 14342 | *qnx* | *nto*) |
| 14343 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14344 | # it will coredump. |
| 14345 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 14346 | ;; |
| 14347 | osf3* | osf4* | osf5*) |
| 14348 | case $cc_basename in |
| 14349 | KCC*) |
| 14350 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14351 | ;; |
| 14352 | RCC*) |
| 14353 | # Rational C++ 2.4.1 |
| 14354 | lt_prog_compiler_pic_CXX='-pic' |
| 14355 | ;; |
| 14356 | cxx*) |
| 14357 | # Digital/Compaq C++ |
| 14358 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14359 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14360 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14361 | lt_prog_compiler_pic_CXX= |
| 14362 | lt_prog_compiler_static_CXX='-non_shared' |
| 14363 | ;; |
| 14364 | *) |
| 14365 | ;; |
| 14366 | esac |
| 14367 | ;; |
| 14368 | psos*) |
| 14369 | ;; |
| 14370 | solaris*) |
| 14371 | case $cc_basename in |
| 14372 | CC* | sunCC*) |
| 14373 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 14374 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14375 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14376 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14377 | ;; |
| 14378 | gcx*) |
| 14379 | # Green Hills C++ Compiler |
| 14380 | lt_prog_compiler_pic_CXX='-PIC' |
| 14381 | ;; |
| 14382 | *) |
| 14383 | ;; |
| 14384 | esac |
| 14385 | ;; |
| 14386 | sunos4*) |
| 14387 | case $cc_basename in |
| 14388 | CC*) |
| 14389 | # Sun C++ 4.x |
| 14390 | lt_prog_compiler_pic_CXX='-pic' |
| 14391 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14392 | ;; |
| 14393 | lcc*) |
| 14394 | # Lucid |
| 14395 | lt_prog_compiler_pic_CXX='-pic' |
| 14396 | ;; |
| 14397 | *) |
| 14398 | ;; |
| 14399 | esac |
| 14400 | ;; |
| 14401 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14402 | case $cc_basename in |
| 14403 | CC*) |
| 14404 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14405 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14406 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14407 | ;; |
| 14408 | esac |
| 14409 | ;; |
| 14410 | tandem*) |
| 14411 | case $cc_basename in |
| 14412 | NCC*) |
| 14413 | # NonStop-UX NCC 3.20 |
| 14414 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14415 | ;; |
| 14416 | *) |
| 14417 | ;; |
| 14418 | esac |
| 14419 | ;; |
| 14420 | vxworks*) |
| 14421 | ;; |
| 14422 | *) |
| 14423 | lt_prog_compiler_can_build_shared_CXX=no |
| 14424 | ;; |
| 14425 | esac |
| 14426 | fi |
| 14427 | |
| 14428 | case $host_os in |
| 14429 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14430 | *djgpp*) |
| 14431 | lt_prog_compiler_pic_CXX= |
| 14432 | ;; |
| 14433 | *) |
| 14434 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 14435 | ;; |
| 14436 | esac |
| 14437 | |
| 14438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 14439 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 14440 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
| 14441 | $as_echo_n "(cached) " >&6 |
| 14442 | else |
| 14443 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
| 14444 | fi |
| 14445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 14446 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 14447 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 14448 | |
| 14449 | # |
| 14450 | # Check to make sure the PIC flag actually works. |
| 14451 | # |
| 14452 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 14453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 14454 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 14455 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
| 14456 | $as_echo_n "(cached) " >&6 |
| 14457 | else |
| 14458 | lt_cv_prog_compiler_pic_works_CXX=no |
| 14459 | ac_outfile=conftest.$ac_objext |
| 14460 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14461 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 14462 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14463 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14464 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14465 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14466 | # The option is referenced via a variable to avoid confusing sed. |
| 14467 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14468 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14469 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14470 | -e 's:$: $lt_compiler_flag:'` |
| 14471 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14472 | (eval "$lt_compile" 2>conftest.err) |
| 14473 | ac_status=$? |
| 14474 | cat conftest.err >&5 |
| 14475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14476 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14477 | # The compiler can only warn and ignore the option if not recognized |
| 14478 | # So say no if there are warnings other than the usual output. |
| 14479 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 14480 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14481 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14482 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 14483 | fi |
| 14484 | fi |
| 14485 | $RM conftest* |
| 14486 | |
| 14487 | fi |
| 14488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 14489 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 14490 | |
| 14491 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 14492 | case $lt_prog_compiler_pic_CXX in |
| 14493 | "" | " "*) ;; |
| 14494 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 14495 | esac |
| 14496 | else |
| 14497 | lt_prog_compiler_pic_CXX= |
| 14498 | lt_prog_compiler_can_build_shared_CXX=no |
| 14499 | fi |
| 14500 | |
| 14501 | fi |
| 14502 | |
| 14503 | |
| 14504 | |
| 14505 | |
| 14506 | |
| 14507 | # |
| 14508 | # Check to make sure the static flag actually works. |
| 14509 | # |
| 14510 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 14511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14512 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 14513 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
| 14514 | $as_echo_n "(cached) " >&6 |
| 14515 | else |
| 14516 | lt_cv_prog_compiler_static_works_CXX=no |
| 14517 | save_LDFLAGS="$LDFLAGS" |
| 14518 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14519 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14520 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14521 | # The linker can only warn and ignore the option if not recognized |
| 14522 | # So say no if there are warnings |
| 14523 | if test -s conftest.err; then |
| 14524 | # Append any errors to the config.log. |
| 14525 | cat conftest.err 1>&5 |
| 14526 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 14527 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14528 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14529 | lt_cv_prog_compiler_static_works_CXX=yes |
| 14530 | fi |
| 14531 | else |
| 14532 | lt_cv_prog_compiler_static_works_CXX=yes |
| 14533 | fi |
| 14534 | fi |
| 14535 | $RM -r conftest* |
| 14536 | LDFLAGS="$save_LDFLAGS" |
| 14537 | |
| 14538 | fi |
| 14539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 14540 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 14541 | |
| 14542 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 14543 | : |
| 14544 | else |
| 14545 | lt_prog_compiler_static_CXX= |
| 14546 | fi |
| 14547 | |
| 14548 | |
| 14549 | |
| 14550 | |
| 14551 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14552 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 14553 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 14554 | $as_echo_n "(cached) " >&6 |
| 14555 | else |
| 14556 | lt_cv_prog_compiler_c_o_CXX=no |
| 14557 | $RM -r conftest 2>/dev/null |
| 14558 | mkdir conftest |
| 14559 | cd conftest |
| 14560 | mkdir out |
| 14561 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14562 | |
| 14563 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14564 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14565 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14566 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14567 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14568 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14569 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14570 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14571 | -e 's:$: $lt_compiler_flag:'` |
| 14572 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14573 | (eval "$lt_compile" 2>out/conftest.err) |
| 14574 | ac_status=$? |
| 14575 | cat out/conftest.err >&5 |
| 14576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14577 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14578 | then |
| 14579 | # The compiler can only warn and ignore the option if not recognized |
| 14580 | # So say no if there are warnings |
| 14581 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 14582 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14583 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14584 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14585 | fi |
| 14586 | fi |
| 14587 | chmod u+w . 2>&5 |
| 14588 | $RM conftest* |
| 14589 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14590 | # template instantiation |
| 14591 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14592 | $RM out/* && rmdir out |
| 14593 | cd .. |
| 14594 | $RM -r conftest |
| 14595 | $RM conftest* |
| 14596 | |
| 14597 | fi |
| 14598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 14599 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14600 | |
| 14601 | |
| 14602 | |
| 14603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14604 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 14605 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 14606 | $as_echo_n "(cached) " >&6 |
| 14607 | else |
| 14608 | lt_cv_prog_compiler_c_o_CXX=no |
| 14609 | $RM -r conftest 2>/dev/null |
| 14610 | mkdir conftest |
| 14611 | cd conftest |
| 14612 | mkdir out |
| 14613 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14614 | |
| 14615 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14616 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14617 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14618 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14619 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14620 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14621 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14622 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14623 | -e 's:$: $lt_compiler_flag:'` |
| 14624 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14625 | (eval "$lt_compile" 2>out/conftest.err) |
| 14626 | ac_status=$? |
| 14627 | cat out/conftest.err >&5 |
| 14628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14629 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14630 | then |
| 14631 | # The compiler can only warn and ignore the option if not recognized |
| 14632 | # So say no if there are warnings |
| 14633 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 14634 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14635 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14636 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14637 | fi |
| 14638 | fi |
| 14639 | chmod u+w . 2>&5 |
| 14640 | $RM conftest* |
| 14641 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14642 | # template instantiation |
| 14643 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14644 | $RM out/* && rmdir out |
| 14645 | cd .. |
| 14646 | $RM -r conftest |
| 14647 | $RM conftest* |
| 14648 | |
| 14649 | fi |
| 14650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 14651 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14652 | |
| 14653 | |
| 14654 | |
| 14655 | |
| 14656 | hard_links="nottested" |
| 14657 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 14658 | # do not overwrite the value of need_locks provided by the user |
| 14659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 14660 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 14661 | hard_links=yes |
| 14662 | $RM conftest* |
| 14663 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14664 | touch conftest.a |
| 14665 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14666 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 14668 | $as_echo "$hard_links" >&6; } |
| 14669 | if test "$hard_links" = no; then |
| 14670 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14671 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14672 | need_locks=warn |
| 14673 | fi |
| 14674 | else |
| 14675 | need_locks=no |
| 14676 | fi |
| 14677 | |
| 14678 | |
| 14679 | |
| 14680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14681 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 14682 | |
| 14683 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14684 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 14685 | case $host_os in |
| 14686 | aix[4-9]*) |
| 14687 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14688 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14689 | # Also, AIX nm treats weak defined symbols like other global defined |
| 14690 | # symbols, whereas GNU nm marks them as "W". |
| 14691 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 14692 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 14693 | else |
| 14694 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
| 14695 | fi |
| 14696 | ;; |
| 14697 | pw32*) |
| 14698 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 14699 | ;; |
| 14700 | cygwin* | mingw* | cegcc*) |
| 14701 | case $cc_basename in |
| 14702 | cl*) |
| 14703 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 14704 | ;; |
| 14705 | *) |
| 14706 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 14707 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 14708 | ;; |
| 14709 | esac |
| 14710 | ;; |
| 14711 | *) |
| 14712 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14713 | ;; |
| 14714 | esac |
| 14715 | |
| 14716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 14717 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 14718 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 14719 | |
| 14720 | with_gnu_ld_CXX=$with_gnu_ld |
| 14721 | |
| 14722 | |
| 14723 | |
| 14724 | |
| 14725 | |
| 14726 | |
| 14727 | # |
| 14728 | # Do we need to explicitly link libc? |
| 14729 | # |
| 14730 | case "x$archive_cmds_need_lc_CXX" in |
| 14731 | x|xyes) |
| 14732 | # Assume -lc should be added |
| 14733 | archive_cmds_need_lc_CXX=yes |
| 14734 | |
| 14735 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14736 | case $archive_cmds_CXX in |
| 14737 | *'~'*) |
| 14738 | # FIXME: we may have to deal with multi-command sequences. |
| 14739 | ;; |
| 14740 | '$CC '*) |
| 14741 | # Test whether the compiler implicitly links with -lc since on some |
| 14742 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14743 | # to ld, don't add -lc before -lgcc. |
| 14744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 14745 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 14746 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
| 14747 | $as_echo_n "(cached) " >&6 |
| 14748 | else |
| 14749 | $RM conftest* |
| 14750 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14751 | |
| 14752 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 14753 | (eval $ac_compile) 2>&5 |
| 14754 | ac_status=$? |
| 14755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14756 | test $ac_status = 0; } 2>conftest.err; then |
| 14757 | soname=conftest |
| 14758 | lib=conftest |
| 14759 | libobjs=conftest.$ac_objext |
| 14760 | deplibs= |
| 14761 | wl=$lt_prog_compiler_wl_CXX |
| 14762 | pic_flag=$lt_prog_compiler_pic_CXX |
| 14763 | compiler_flags=-v |
| 14764 | linker_flags=-v |
| 14765 | verstring= |
| 14766 | output_objdir=. |
| 14767 | libname=conftest |
| 14768 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 14769 | allow_undefined_flag_CXX= |
| 14770 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 14771 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14772 | ac_status=$? |
| 14773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14774 | test $ac_status = 0; } |
| 14775 | then |
| 14776 | lt_cv_archive_cmds_need_lc_CXX=no |
| 14777 | else |
| 14778 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 14779 | fi |
| 14780 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 14781 | else |
| 14782 | cat conftest.err 1>&5 |
| 14783 | fi |
| 14784 | $RM conftest* |
| 14785 | |
| 14786 | fi |
| 14787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 14788 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 14789 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 14790 | ;; |
| 14791 | esac |
| 14792 | fi |
| 14793 | ;; |
| 14794 | esac |
| 14795 | |
| 14796 | |
| 14797 | |
| 14798 | |
| 14799 | |
| 14800 | |
| 14801 | |
| 14802 | |
| 14803 | |
| 14804 | |
| 14805 | |
| 14806 | |
| 14807 | |
| 14808 | |
| 14809 | |
| 14810 | |
| 14811 | |
| 14812 | |
| 14813 | |
| 14814 | |
| 14815 | |
| 14816 | |
| 14817 | |
| 14818 | |
| 14819 | |
| 14820 | |
| 14821 | |
| 14822 | |
| 14823 | |
| 14824 | |
| 14825 | |
| 14826 | |
| 14827 | |
| 14828 | |
| 14829 | |
| 14830 | |
| 14831 | |
| 14832 | |
| 14833 | |
| 14834 | |
| 14835 | |
| 14836 | |
| 14837 | |
| 14838 | |
| 14839 | |
| 14840 | |
| 14841 | |
| 14842 | |
| 14843 | |
| 14844 | |
| 14845 | |
| 14846 | |
| 14847 | |
| 14848 | |
| 14849 | |
| 14850 | |
| 14851 | |
| 14852 | |
| 14853 | |
| 14854 | |
| 14855 | |
| 14856 | |
| 14857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 14858 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 14859 | |
| 14860 | library_names_spec= |
| 14861 | libname_spec='lib$name' |
| 14862 | soname_spec= |
| 14863 | shrext_cmds=".so" |
| 14864 | postinstall_cmds= |
| 14865 | postuninstall_cmds= |
| 14866 | finish_cmds= |
| 14867 | finish_eval= |
| 14868 | shlibpath_var= |
| 14869 | shlibpath_overrides_runpath=unknown |
| 14870 | version_type=none |
| 14871 | dynamic_linker="$host_os ld.so" |
| 14872 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14873 | need_lib_prefix=unknown |
| 14874 | hardcode_into_libs=no |
| 14875 | |
| 14876 | # when you set need_version to no, make sure it does not cause -set_version |
| 14877 | # flags to be left without arguments |
| 14878 | need_version=unknown |
| 14879 | |
| 14880 | case $host_os in |
| 14881 | aix3*) |
| 14882 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14883 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14884 | shlibpath_var=LIBPATH |
| 14885 | |
| 14886 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14887 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14888 | ;; |
| 14889 | |
| 14890 | aix[4-9]*) |
| 14891 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14892 | need_lib_prefix=no |
| 14893 | need_version=no |
| 14894 | hardcode_into_libs=yes |
| 14895 | if test "$host_cpu" = ia64; then |
| 14896 | # AIX 5 supports IA64 |
| 14897 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14898 | shlibpath_var=LD_LIBRARY_PATH |
| 14899 | else |
| 14900 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14901 | # for dependence libraries. The import file would start with |
| 14902 | # the line `#! .'. This would cause the generated library to |
| 14903 | # depend on `.', always an invalid library. This was fixed in |
| 14904 | # development snapshots of GCC prior to 3.0. |
| 14905 | case $host_os in |
| 14906 | aix4 | aix4.[01] | aix4.[01].*) |
| 14907 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14908 | echo ' yes ' |
| 14909 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 14910 | : |
| 14911 | else |
| 14912 | can_build_shared=no |
| 14913 | fi |
| 14914 | ;; |
| 14915 | esac |
| 14916 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 14917 | # soname into executable. Probably we can add versioning support to |
| 14918 | # collect2, so additional links can be useful in future. |
| 14919 | if test "$aix_use_runtimelinking" = yes; then |
| 14920 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 14921 | # instead of lib<name>.a to let people know that these are not |
| 14922 | # typical AIX shared libraries. |
| 14923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14924 | else |
| 14925 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 14926 | # and later when we are not doing run time linking. |
| 14927 | library_names_spec='${libname}${release}.a $libname.a' |
| 14928 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14929 | fi |
| 14930 | shlibpath_var=LIBPATH |
| 14931 | fi |
| 14932 | ;; |
| 14933 | |
| 14934 | amigaos*) |
| 14935 | case $host_cpu in |
| 14936 | powerpc) |
| 14937 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 14938 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 14939 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14940 | ;; |
| 14941 | m68k) |
| 14942 | library_names_spec='$libname.ixlibrary $libname.a' |
| 14943 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 14944 | 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' |
| 14945 | ;; |
| 14946 | esac |
| 14947 | ;; |
| 14948 | |
| 14949 | beos*) |
| 14950 | library_names_spec='${libname}${shared_ext}' |
| 14951 | dynamic_linker="$host_os ld.so" |
| 14952 | shlibpath_var=LIBRARY_PATH |
| 14953 | ;; |
| 14954 | |
| 14955 | bsdi[45]*) |
| 14956 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14957 | need_version=no |
| 14958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14959 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14960 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 14961 | shlibpath_var=LD_LIBRARY_PATH |
| 14962 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 14963 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 14964 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 14965 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 14966 | # libtool to hard-code these into programs |
| 14967 | ;; |
| 14968 | |
| 14969 | cygwin* | mingw* | pw32* | cegcc*) |
| 14970 | version_type=windows |
| 14971 | shrext_cmds=".dll" |
| 14972 | need_version=no |
| 14973 | need_lib_prefix=no |
| 14974 | |
| 14975 | case $GCC,$cc_basename in |
| 14976 | yes,*) |
| 14977 | # gcc |
| 14978 | library_names_spec='$libname.dll.a' |
| 14979 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 14980 | postinstall_cmds='base_file=`basename \${file}`~ |
| 14981 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 14982 | dldir=$destdir/`dirname \$dlpath`~ |
| 14983 | test -d \$dldir || mkdir -p \$dldir~ |
| 14984 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 14985 | chmod a+x \$dldir/$dlname~ |
| 14986 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 14987 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 14988 | fi' |
| 14989 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 14990 | dlpath=$dir/\$dldll~ |
| 14991 | $RM \$dlpath' |
| 14992 | shlibpath_overrides_runpath=yes |
| 14993 | |
| 14994 | case $host_os in |
| 14995 | cygwin*) |
| 14996 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 14997 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 14998 | |
| 14999 | ;; |
| 15000 | mingw* | cegcc*) |
| 15001 | # MinGW DLLs use traditional 'lib' prefix |
| 15002 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15003 | ;; |
| 15004 | pw32*) |
| 15005 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15006 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15007 | ;; |
| 15008 | esac |
| 15009 | dynamic_linker='Win32 ld.exe' |
| 15010 | ;; |
| 15011 | |
| 15012 | *,cl*) |
| 15013 | # Native MSVC |
| 15014 | libname_spec='$name' |
| 15015 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15016 | library_names_spec='${libname}.dll.lib' |
| 15017 | |
| 15018 | case $build_os in |
| 15019 | mingw*) |
| 15020 | sys_lib_search_path_spec= |
| 15021 | lt_save_ifs=$IFS |
| 15022 | IFS=';' |
| 15023 | for lt_path in $LIB |
| 15024 | do |
| 15025 | IFS=$lt_save_ifs |
| 15026 | # Let DOS variable expansion print the short 8.3 style file name. |
| 15027 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 15028 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 15029 | done |
| 15030 | IFS=$lt_save_ifs |
| 15031 | # Convert to MSYS style. |
| 15032 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 15033 | ;; |
| 15034 | cygwin*) |
| 15035 | # Convert to unix form, then to dos form, then back to unix form |
| 15036 | # but this time dos style (no spaces!) so that the unix form looks |
| 15037 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 15038 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 15039 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 15040 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15041 | ;; |
| 15042 | *) |
| 15043 | sys_lib_search_path_spec="$LIB" |
| 15044 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 15045 | # It is most probably a Windows format PATH. |
| 15046 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15047 | else |
| 15048 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15049 | fi |
| 15050 | # FIXME: find the short name or the path components, as spaces are |
| 15051 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 15052 | ;; |
| 15053 | esac |
| 15054 | |
| 15055 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15056 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15057 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 15058 | dldir=$destdir/`dirname \$dlpath`~ |
| 15059 | test -d \$dldir || mkdir -p \$dldir~ |
| 15060 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 15061 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15062 | dlpath=$dir/\$dldll~ |
| 15063 | $RM \$dlpath' |
| 15064 | shlibpath_overrides_runpath=yes |
| 15065 | dynamic_linker='Win32 link.exe' |
| 15066 | ;; |
| 15067 | |
| 15068 | *) |
| 15069 | # Assume MSVC wrapper |
| 15070 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15071 | dynamic_linker='Win32 ld.exe' |
| 15072 | ;; |
| 15073 | esac |
| 15074 | # FIXME: first we should search . and the directory the executable is in |
| 15075 | shlibpath_var=PATH |
| 15076 | ;; |
| 15077 | |
| 15078 | darwin* | rhapsody*) |
| 15079 | dynamic_linker="$host_os dyld" |
| 15080 | version_type=darwin |
| 15081 | need_lib_prefix=no |
| 15082 | need_version=no |
| 15083 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15084 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15085 | shlibpath_overrides_runpath=yes |
| 15086 | shlibpath_var=DYLD_LIBRARY_PATH |
| 15087 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 15088 | |
| 15089 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15090 | ;; |
| 15091 | |
| 15092 | dgux*) |
| 15093 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15094 | need_lib_prefix=no |
| 15095 | need_version=no |
| 15096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15097 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15098 | shlibpath_var=LD_LIBRARY_PATH |
| 15099 | ;; |
| 15100 | |
| 15101 | freebsd* | dragonfly*) |
| 15102 | # DragonFly does not have aout. When/if they implement a new |
| 15103 | # versioning mechanism, adjust this. |
| 15104 | if test -x /usr/bin/objformat; then |
| 15105 | objformat=`/usr/bin/objformat` |
| 15106 | else |
| 15107 | case $host_os in |
| 15108 | freebsd[23].*) objformat=aout ;; |
| 15109 | *) objformat=elf ;; |
| 15110 | esac |
| 15111 | fi |
| 15112 | version_type=freebsd-$objformat |
| 15113 | case $version_type in |
| 15114 | freebsd-elf*) |
| 15115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15116 | need_version=no |
| 15117 | need_lib_prefix=no |
| 15118 | ;; |
| 15119 | freebsd-*) |
| 15120 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15121 | need_version=yes |
| 15122 | ;; |
| 15123 | esac |
| 15124 | shlibpath_var=LD_LIBRARY_PATH |
| 15125 | case $host_os in |
| 15126 | freebsd2.*) |
| 15127 | shlibpath_overrides_runpath=yes |
| 15128 | ;; |
| 15129 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 15130 | shlibpath_overrides_runpath=yes |
| 15131 | hardcode_into_libs=yes |
| 15132 | ;; |
| 15133 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15134 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 15135 | shlibpath_overrides_runpath=no |
| 15136 | hardcode_into_libs=yes |
| 15137 | ;; |
| 15138 | *) # from 4.6 on, and DragonFly |
| 15139 | shlibpath_overrides_runpath=yes |
| 15140 | hardcode_into_libs=yes |
| 15141 | ;; |
| 15142 | esac |
| 15143 | ;; |
| 15144 | |
| 15145 | gnu*) |
| 15146 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15147 | need_lib_prefix=no |
| 15148 | need_version=no |
| 15149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15150 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15151 | shlibpath_var=LD_LIBRARY_PATH |
| 15152 | shlibpath_overrides_runpath=no |
| 15153 | hardcode_into_libs=yes |
| 15154 | ;; |
| 15155 | |
| 15156 | haiku*) |
| 15157 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15158 | need_lib_prefix=no |
| 15159 | need_version=no |
| 15160 | dynamic_linker="$host_os runtime_loader" |
| 15161 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15162 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15163 | shlibpath_var=LIBRARY_PATH |
| 15164 | shlibpath_overrides_runpath=yes |
| 15165 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 15166 | hardcode_into_libs=yes |
| 15167 | ;; |
| 15168 | |
| 15169 | hpux9* | hpux10* | hpux11*) |
| 15170 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15171 | # link against other versions. |
| 15172 | version_type=sunos |
| 15173 | need_lib_prefix=no |
| 15174 | need_version=no |
| 15175 | case $host_cpu in |
| 15176 | ia64*) |
| 15177 | shrext_cmds='.so' |
| 15178 | hardcode_into_libs=yes |
| 15179 | dynamic_linker="$host_os dld.so" |
| 15180 | shlibpath_var=LD_LIBRARY_PATH |
| 15181 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15183 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15184 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15185 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15186 | else |
| 15187 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15188 | fi |
| 15189 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15190 | ;; |
| 15191 | hppa*64*) |
| 15192 | shrext_cmds='.sl' |
| 15193 | hardcode_into_libs=yes |
| 15194 | dynamic_linker="$host_os dld.sl" |
| 15195 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15196 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15198 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15199 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15200 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15201 | ;; |
| 15202 | *) |
| 15203 | shrext_cmds='.sl' |
| 15204 | dynamic_linker="$host_os dld.sl" |
| 15205 | shlibpath_var=SHLIB_PATH |
| 15206 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15207 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15208 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15209 | ;; |
| 15210 | esac |
| 15211 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 15212 | postinstall_cmds='chmod 555 $lib' |
| 15213 | # or fails outright, so override atomically: |
| 15214 | install_override_mode=555 |
| 15215 | ;; |
| 15216 | |
| 15217 | interix[3-9]*) |
| 15218 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15219 | need_lib_prefix=no |
| 15220 | need_version=no |
| 15221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15222 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15223 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15224 | shlibpath_var=LD_LIBRARY_PATH |
| 15225 | shlibpath_overrides_runpath=no |
| 15226 | hardcode_into_libs=yes |
| 15227 | ;; |
| 15228 | |
| 15229 | irix5* | irix6* | nonstopux*) |
| 15230 | case $host_os in |
| 15231 | nonstopux*) version_type=nonstopux ;; |
| 15232 | *) |
| 15233 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15234 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15235 | else |
| 15236 | version_type=irix |
| 15237 | fi ;; |
| 15238 | esac |
| 15239 | need_lib_prefix=no |
| 15240 | need_version=no |
| 15241 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15242 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15243 | case $host_os in |
| 15244 | irix5* | nonstopux*) |
| 15245 | libsuff= shlibsuff= |
| 15246 | ;; |
| 15247 | *) |
| 15248 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15249 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15250 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15251 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15252 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15253 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15254 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15255 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15256 | esac |
| 15257 | ;; |
| 15258 | esac |
| 15259 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15260 | shlibpath_overrides_runpath=no |
| 15261 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15262 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15263 | hardcode_into_libs=yes |
| 15264 | ;; |
| 15265 | |
| 15266 | # No shared lib support for Linux oldld, aout, or coff. |
| 15267 | linux*oldld* | linux*aout* | linux*coff*) |
| 15268 | dynamic_linker=no |
| 15269 | ;; |
| 15270 | |
| 15271 | # This must be glibc/ELF. |
| 15272 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 15273 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15274 | need_lib_prefix=no |
| 15275 | need_version=no |
| 15276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15277 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15278 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15279 | shlibpath_var=LD_LIBRARY_PATH |
| 15280 | shlibpath_overrides_runpath=no |
| 15281 | |
| 15282 | # Some binutils ld are patched to set DT_RUNPATH |
| 15283 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 15284 | $as_echo_n "(cached) " >&6 |
| 15285 | else |
| 15286 | lt_cv_shlibpath_overrides_runpath=no |
| 15287 | save_LDFLAGS=$LDFLAGS |
| 15288 | save_libdir=$libdir |
| 15289 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 15290 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 15291 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15292 | /* end confdefs.h. */ |
| 15293 | |
| 15294 | int |
| 15295 | main () |
| 15296 | { |
| 15297 | |
| 15298 | ; |
| 15299 | return 0; |
| 15300 | } |
| 15301 | _ACEOF |
| 15302 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 15303 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 15304 | lt_cv_shlibpath_overrides_runpath=yes |
| 15305 | fi |
| 15306 | fi |
| 15307 | rm -f core conftest.err conftest.$ac_objext \ |
| 15308 | conftest$ac_exeext conftest.$ac_ext |
| 15309 | LDFLAGS=$save_LDFLAGS |
| 15310 | libdir=$save_libdir |
| 15311 | |
| 15312 | fi |
| 15313 | |
| 15314 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 15315 | |
| 15316 | # This implies no fast_install, which is unacceptable. |
| 15317 | # Some rework will be needed to allow for fast_install |
| 15318 | # before this can be enabled. |
| 15319 | hardcode_into_libs=yes |
| 15320 | |
| 15321 | # Append ld.so.conf contents to the search path |
| 15322 | if test -f /etc/ld.so.conf; then |
| 15323 | 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' ' '` |
| 15324 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15325 | fi |
| 15326 | |
| 15327 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15328 | # powerpc, because MkLinux only supported shared libraries with the |
| 15329 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15330 | # most powerpc-linux boxes support dynamic linking these days and |
| 15331 | # people can always --disable-shared, the test was removed, and we |
| 15332 | # assume the GNU/Linux dynamic linker is in use. |
| 15333 | dynamic_linker='GNU/Linux ld.so' |
| 15334 | ;; |
| 15335 | |
| 15336 | netbsd*) |
| 15337 | version_type=sunos |
| 15338 | need_lib_prefix=no |
| 15339 | need_version=no |
| 15340 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15342 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15343 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15344 | else |
| 15345 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15346 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15347 | dynamic_linker='NetBSD ld.elf_so' |
| 15348 | fi |
| 15349 | shlibpath_var=LD_LIBRARY_PATH |
| 15350 | shlibpath_overrides_runpath=yes |
| 15351 | hardcode_into_libs=yes |
| 15352 | ;; |
| 15353 | |
| 15354 | newsos6) |
| 15355 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15357 | shlibpath_var=LD_LIBRARY_PATH |
| 15358 | shlibpath_overrides_runpath=yes |
| 15359 | ;; |
| 15360 | |
| 15361 | *nto* | *qnx*) |
| 15362 | version_type=qnx |
| 15363 | need_lib_prefix=no |
| 15364 | need_version=no |
| 15365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15366 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15367 | shlibpath_var=LD_LIBRARY_PATH |
| 15368 | shlibpath_overrides_runpath=no |
| 15369 | hardcode_into_libs=yes |
| 15370 | dynamic_linker='ldqnx.so' |
| 15371 | ;; |
| 15372 | |
| 15373 | openbsd*) |
| 15374 | version_type=sunos |
| 15375 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 15376 | need_lib_prefix=no |
| 15377 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15378 | case $host_os in |
| 15379 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15380 | *) need_version=no ;; |
| 15381 | esac |
| 15382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15383 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15384 | shlibpath_var=LD_LIBRARY_PATH |
| 15385 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15386 | case $host_os in |
| 15387 | openbsd2.[89] | openbsd2.[89].*) |
| 15388 | shlibpath_overrides_runpath=no |
| 15389 | ;; |
| 15390 | *) |
| 15391 | shlibpath_overrides_runpath=yes |
| 15392 | ;; |
| 15393 | esac |
| 15394 | else |
| 15395 | shlibpath_overrides_runpath=yes |
| 15396 | fi |
| 15397 | ;; |
| 15398 | |
| 15399 | os2*) |
| 15400 | libname_spec='$name' |
| 15401 | shrext_cmds=".dll" |
| 15402 | need_lib_prefix=no |
| 15403 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15404 | dynamic_linker='OS/2 ld.exe' |
| 15405 | shlibpath_var=LIBPATH |
| 15406 | ;; |
| 15407 | |
| 15408 | osf3* | osf4* | osf5*) |
| 15409 | version_type=osf |
| 15410 | need_lib_prefix=no |
| 15411 | need_version=no |
| 15412 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15414 | shlibpath_var=LD_LIBRARY_PATH |
| 15415 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15416 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15417 | ;; |
| 15418 | |
| 15419 | rdos*) |
| 15420 | dynamic_linker=no |
| 15421 | ;; |
| 15422 | |
| 15423 | solaris*) |
| 15424 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15425 | need_lib_prefix=no |
| 15426 | need_version=no |
| 15427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15428 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15429 | shlibpath_var=LD_LIBRARY_PATH |
| 15430 | shlibpath_overrides_runpath=yes |
| 15431 | hardcode_into_libs=yes |
| 15432 | # ldd complains unless libraries are executable |
| 15433 | postinstall_cmds='chmod +x $lib' |
| 15434 | ;; |
| 15435 | |
| 15436 | sunos4*) |
| 15437 | version_type=sunos |
| 15438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15439 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15440 | shlibpath_var=LD_LIBRARY_PATH |
| 15441 | shlibpath_overrides_runpath=yes |
| 15442 | if test "$with_gnu_ld" = yes; then |
| 15443 | need_lib_prefix=no |
| 15444 | fi |
| 15445 | need_version=yes |
| 15446 | ;; |
| 15447 | |
| 15448 | sysv4 | sysv4.3*) |
| 15449 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15450 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15451 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15452 | shlibpath_var=LD_LIBRARY_PATH |
| 15453 | case $host_vendor in |
| 15454 | sni) |
| 15455 | shlibpath_overrides_runpath=no |
| 15456 | need_lib_prefix=no |
| 15457 | runpath_var=LD_RUN_PATH |
| 15458 | ;; |
| 15459 | siemens) |
| 15460 | need_lib_prefix=no |
| 15461 | ;; |
| 15462 | motorola) |
| 15463 | need_lib_prefix=no |
| 15464 | need_version=no |
| 15465 | shlibpath_overrides_runpath=no |
| 15466 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15467 | ;; |
| 15468 | esac |
| 15469 | ;; |
| 15470 | |
| 15471 | sysv4*MP*) |
| 15472 | if test -d /usr/nec ;then |
| 15473 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15474 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15475 | soname_spec='$libname${shared_ext}.$major' |
| 15476 | shlibpath_var=LD_LIBRARY_PATH |
| 15477 | fi |
| 15478 | ;; |
| 15479 | |
| 15480 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15481 | version_type=freebsd-elf |
| 15482 | need_lib_prefix=no |
| 15483 | need_version=no |
| 15484 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15485 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15486 | shlibpath_var=LD_LIBRARY_PATH |
| 15487 | shlibpath_overrides_runpath=yes |
| 15488 | hardcode_into_libs=yes |
| 15489 | if test "$with_gnu_ld" = yes; then |
| 15490 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15491 | else |
| 15492 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15493 | case $host_os in |
| 15494 | sco3.2v5*) |
| 15495 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15496 | ;; |
| 15497 | esac |
| 15498 | fi |
| 15499 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15500 | ;; |
| 15501 | |
| 15502 | tpf*) |
| 15503 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 15504 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15505 | need_lib_prefix=no |
| 15506 | need_version=no |
| 15507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15508 | shlibpath_var=LD_LIBRARY_PATH |
| 15509 | shlibpath_overrides_runpath=no |
| 15510 | hardcode_into_libs=yes |
| 15511 | ;; |
| 15512 | |
| 15513 | uts4*) |
| 15514 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15516 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15517 | shlibpath_var=LD_LIBRARY_PATH |
| 15518 | ;; |
| 15519 | |
| 15520 | *) |
| 15521 | dynamic_linker=no |
| 15522 | ;; |
| 15523 | esac |
| 15524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 15525 | $as_echo "$dynamic_linker" >&6; } |
| 15526 | test "$dynamic_linker" = no && can_build_shared=no |
| 15527 | |
| 15528 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15529 | if test "$GCC" = yes; then |
| 15530 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15531 | fi |
| 15532 | |
| 15533 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 15534 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 15535 | fi |
| 15536 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 15537 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 15538 | fi |
| 15539 | |
| 15540 | |
| 15541 | |
| 15542 | |
| 15543 | |
| 15544 | |
| 15545 | |
| 15546 | |
| 15547 | |
| 15548 | |
| 15549 | |
| 15550 | |
| 15551 | |
| 15552 | |
| 15553 | |
| 15554 | |
| 15555 | |
| 15556 | |
| 15557 | |
| 15558 | |
| 15559 | |
| 15560 | |
| 15561 | |
| 15562 | |
| 15563 | |
| 15564 | |
| 15565 | |
| 15566 | |
| 15567 | |
| 15568 | |
| 15569 | |
| 15570 | |
| 15571 | |
| 15572 | |
| 15573 | |
| 15574 | |
| 15575 | |
| 15576 | |
| 15577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 15578 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 15579 | hardcode_action_CXX= |
| 15580 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 15581 | test -n "$runpath_var_CXX" || |
| 15582 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 15583 | |
| 15584 | # We can hardcode non-existent directories. |
| 15585 | if test "$hardcode_direct_CXX" != no && |
| 15586 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15587 | # have to relink, otherwise we might link with an installed library |
| 15588 | # when we should be linking with a yet-to-be-installed one |
| 15589 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 15590 | test "$hardcode_minus_L_CXX" != no; then |
| 15591 | # Linking always hardcodes the temporary library directory. |
| 15592 | hardcode_action_CXX=relink |
| 15593 | else |
| 15594 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15595 | hardcode_action_CXX=immediate |
| 15596 | fi |
| 15597 | else |
| 15598 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15599 | # directories. |
| 15600 | hardcode_action_CXX=unsupported |
| 15601 | fi |
| 15602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 15603 | $as_echo "$hardcode_action_CXX" >&6; } |
| 15604 | |
| 15605 | if test "$hardcode_action_CXX" = relink || |
| 15606 | test "$inherit_rpath_CXX" = yes; then |
| 15607 | # Fast installation is not supported |
| 15608 | enable_fast_install=no |
| 15609 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15610 | test "$enable_shared" = no; then |
| 15611 | # Fast installation is not necessary |
| 15612 | enable_fast_install=needless |
| 15613 | fi |
| 15614 | |
| 15615 | |
| 15616 | |
| 15617 | |
| 15618 | |
| 15619 | |
| 15620 | |
| 15621 | fi # test -n "$compiler" |
| 15622 | |
| 15623 | CC=$lt_save_CC |
| 15624 | CFLAGS=$lt_save_CFLAGS |
| 15625 | LDCXX=$LD |
| 15626 | LD=$lt_save_LD |
| 15627 | GCC=$lt_save_GCC |
| 15628 | with_gnu_ld=$lt_save_with_gnu_ld |
| 15629 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 15630 | lt_cv_path_LD=$lt_save_path_LD |
| 15631 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 15632 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 15633 | fi # test "$_lt_caught_CXX_error" != yes |
| 15634 | |
| 15635 | ac_ext=c |
| 15636 | ac_cpp='$CPP $CPPFLAGS' |
| 15637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15640 | |
| 15641 | |
Jeff Thompson | 1a1b4c0 | 2013-06-28 22:28:51 -0700 | [diff] [blame] | 15642 | |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 15643 | ac_ext=mm |
| 15644 | ac_cpp='$OBJCXXCPP $CPPFLAGS' |
| 15645 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15646 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15647 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu |
| 15648 | if test -n "$ac_tool_prefix"; then |
| 15649 | for ac_prog in g++ objc++ objcxx c++ CXX |
| 15650 | do |
| 15651 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 15652 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 15653 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15654 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15655 | if ${ac_cv_prog_OBJCXX+:} false; then : |
| 15656 | $as_echo_n "(cached) " >&6 |
| 15657 | else |
| 15658 | if test -n "$OBJCXX"; then |
| 15659 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. |
| 15660 | else |
| 15661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15662 | for as_dir in $PATH |
| 15663 | do |
| 15664 | IFS=$as_save_IFS |
| 15665 | test -z "$as_dir" && as_dir=. |
| 15666 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15667 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15668 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
| 15669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15670 | break 2 |
| 15671 | fi |
| 15672 | done |
| 15673 | done |
| 15674 | IFS=$as_save_IFS |
| 15675 | |
| 15676 | fi |
| 15677 | fi |
| 15678 | OBJCXX=$ac_cv_prog_OBJCXX |
| 15679 | if test -n "$OBJCXX"; then |
| 15680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 |
| 15681 | $as_echo "$OBJCXX" >&6; } |
| 15682 | else |
| 15683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15684 | $as_echo "no" >&6; } |
| 15685 | fi |
| 15686 | |
| 15687 | |
| 15688 | test -n "$OBJCXX" && break |
| 15689 | done |
| 15690 | fi |
| 15691 | if test -z "$OBJCXX"; then |
| 15692 | ac_ct_OBJCXX=$OBJCXX |
| 15693 | for ac_prog in g++ objc++ objcxx c++ CXX |
| 15694 | do |
| 15695 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15696 | set dummy $ac_prog; ac_word=$2 |
| 15697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15698 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15699 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : |
| 15700 | $as_echo_n "(cached) " >&6 |
| 15701 | else |
| 15702 | if test -n "$ac_ct_OBJCXX"; then |
| 15703 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. |
| 15704 | else |
| 15705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15706 | for as_dir in $PATH |
| 15707 | do |
| 15708 | IFS=$as_save_IFS |
| 15709 | test -z "$as_dir" && as_dir=. |
| 15710 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15711 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15712 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
| 15713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15714 | break 2 |
| 15715 | fi |
| 15716 | done |
| 15717 | done |
| 15718 | IFS=$as_save_IFS |
| 15719 | |
| 15720 | fi |
| 15721 | fi |
| 15722 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
| 15723 | if test -n "$ac_ct_OBJCXX"; then |
| 15724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 |
| 15725 | $as_echo "$ac_ct_OBJCXX" >&6; } |
| 15726 | else |
| 15727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15728 | $as_echo "no" >&6; } |
| 15729 | fi |
| 15730 | |
| 15731 | |
| 15732 | test -n "$ac_ct_OBJCXX" && break |
| 15733 | done |
| 15734 | |
| 15735 | if test "x$ac_ct_OBJCXX" = x; then |
| 15736 | OBJCXX="g++" |
| 15737 | else |
| 15738 | case $cross_compiling:$ac_tool_warned in |
| 15739 | yes:) |
| 15740 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15741 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15742 | ac_tool_warned=yes ;; |
| 15743 | esac |
| 15744 | OBJCXX=$ac_ct_OBJCXX |
| 15745 | fi |
| 15746 | fi |
| 15747 | |
| 15748 | # Provide some information about the compiler. |
| 15749 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 |
| 15750 | set X $ac_compile |
| 15751 | ac_compiler=$2 |
| 15752 | for ac_option in --version -v -V -qversion; do |
| 15753 | { { ac_try="$ac_compiler $ac_option >&5" |
| 15754 | case "(($ac_try" in |
| 15755 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15756 | *) ac_try_echo=$ac_try;; |
| 15757 | esac |
| 15758 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 15759 | $as_echo "$ac_try_echo"; } >&5 |
| 15760 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 15761 | ac_status=$? |
| 15762 | if test -s conftest.err; then |
| 15763 | sed '10a\ |
| 15764 | ... rest of stderr output deleted ... |
| 15765 | 10q' conftest.err >conftest.er1 |
| 15766 | cat conftest.er1 >&5 |
| 15767 | fi |
| 15768 | rm -f conftest.er1 conftest.err |
| 15769 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15770 | test $ac_status = 0; } |
| 15771 | done |
| 15772 | |
| 15773 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
| 15774 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } |
| 15775 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : |
| 15776 | $as_echo_n "(cached) " >&6 |
| 15777 | else |
| 15778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15779 | /* end confdefs.h. */ |
| 15780 | |
| 15781 | int |
| 15782 | main () |
| 15783 | { |
| 15784 | #ifndef __GNUC__ |
| 15785 | choke me |
| 15786 | #endif |
| 15787 | |
| 15788 | ; |
| 15789 | return 0; |
| 15790 | } |
| 15791 | _ACEOF |
| 15792 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15793 | ac_compiler_gnu=yes |
| 15794 | else |
| 15795 | ac_compiler_gnu=no |
| 15796 | fi |
| 15797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15798 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu |
| 15799 | |
| 15800 | fi |
| 15801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
| 15802 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } |
| 15803 | if test $ac_compiler_gnu = yes; then |
| 15804 | GOBJCXX=yes |
| 15805 | else |
| 15806 | GOBJCXX= |
| 15807 | fi |
| 15808 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
| 15809 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS |
| 15810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 |
| 15811 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } |
| 15812 | if ${ac_cv_prog_objcxx_g+:} false; then : |
| 15813 | $as_echo_n "(cached) " >&6 |
| 15814 | else |
| 15815 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
| 15816 | ac_objcxx_werror_flag=yes |
| 15817 | ac_cv_prog_objcxx_g=no |
| 15818 | OBJCXXFLAGS="-g" |
| 15819 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15820 | /* end confdefs.h. */ |
| 15821 | |
| 15822 | int |
| 15823 | main () |
| 15824 | { |
| 15825 | |
| 15826 | ; |
| 15827 | return 0; |
| 15828 | } |
| 15829 | _ACEOF |
| 15830 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15831 | ac_cv_prog_objcxx_g=yes |
| 15832 | else |
| 15833 | OBJCXXFLAGS="" |
| 15834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15835 | /* end confdefs.h. */ |
| 15836 | |
| 15837 | int |
| 15838 | main () |
| 15839 | { |
| 15840 | |
| 15841 | ; |
| 15842 | return 0; |
| 15843 | } |
| 15844 | _ACEOF |
| 15845 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15846 | |
| 15847 | else |
| 15848 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
| 15849 | OBJCXXFLAGS="-g" |
| 15850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15851 | /* end confdefs.h. */ |
| 15852 | |
| 15853 | int |
| 15854 | main () |
| 15855 | { |
| 15856 | |
| 15857 | ; |
| 15858 | return 0; |
| 15859 | } |
| 15860 | _ACEOF |
| 15861 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15862 | ac_cv_prog_objcxx_g=yes |
| 15863 | fi |
| 15864 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15865 | fi |
| 15866 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15867 | fi |
| 15868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15869 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag |
| 15870 | fi |
| 15871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
| 15872 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } |
| 15873 | if test "$ac_test_OBJCXXFLAGS" = set; then |
| 15874 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS |
| 15875 | elif test $ac_cv_prog_objcxx_g = yes; then |
| 15876 | if test "$GOBJCXX" = yes; then |
| 15877 | OBJCXXFLAGS="-g -O2" |
| 15878 | else |
| 15879 | OBJCXXFLAGS="-g" |
| 15880 | fi |
| 15881 | else |
| 15882 | if test "$GOBJCXX" = yes; then |
| 15883 | OBJCXXFLAGS="-O2" |
| 15884 | else |
| 15885 | OBJCXXFLAGS= |
| 15886 | fi |
| 15887 | fi |
| 15888 | ac_ext=c |
| 15889 | ac_cpp='$CPP $CPPFLAGS' |
| 15890 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15891 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15892 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15893 | |
| 15894 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
| 15895 | |
| 15896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 15897 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 15898 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : |
| 15899 | $as_echo_n "(cached) " >&6 |
| 15900 | else |
| 15901 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 15902 | # We make a subdir and do the tests there. Otherwise we can end up |
| 15903 | # making bogus files that we don't know about and never remove. For |
| 15904 | # instance it was reported that on HP-UX the gcc test will end up |
| 15905 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 15906 | # in D". |
| 15907 | rm -rf conftest.dir |
| 15908 | mkdir conftest.dir |
| 15909 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 15910 | # using a relative directory. |
| 15911 | cp "$am_depcomp" conftest.dir |
| 15912 | cd conftest.dir |
| 15913 | # We will build objects and dependencies in a subdirectory because |
| 15914 | # it helps to detect inapplicable dependency modes. For instance |
| 15915 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 15916 | # side effect of compilation, but ICC will put the dependencies in |
| 15917 | # the current directory while Tru64 will put them in the object |
| 15918 | # directory. |
| 15919 | mkdir sub |
| 15920 | |
| 15921 | am_cv_OBJCXX_dependencies_compiler_type=none |
| 15922 | if test "$am_compiler_list" = ""; then |
| 15923 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 15924 | fi |
| 15925 | am__universal=false |
| 15926 | |
| 15927 | |
| 15928 | for depmode in $am_compiler_list; do |
| 15929 | # Setup a source with many dependencies, because some compilers |
| 15930 | # like to wrap large dependency lists on column 80 (with \), and |
| 15931 | # we should not choose a depcomp mode which is confused by this. |
| 15932 | # |
| 15933 | # We need to recreate these files for each test, as the compiler may |
| 15934 | # overwrite some of them when testing with obscure command lines. |
| 15935 | # This happens at least with the AIX C compiler. |
| 15936 | : > sub/conftest.c |
| 15937 | for i in 1 2 3 4 5 6; do |
| 15938 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 15939 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 15940 | # Solaris 10 /bin/sh. |
| 15941 | echo '/* dummy */' > sub/conftst$i.h |
| 15942 | done |
| 15943 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 15944 | |
| 15945 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 15946 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 15947 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 15948 | # versions had trouble with output in subdirs. |
| 15949 | am__obj=sub/conftest.${OBJEXT-o} |
| 15950 | am__minus_obj="-o $am__obj" |
| 15951 | case $depmode in |
| 15952 | gcc) |
| 15953 | # This depmode causes a compiler race in universal mode. |
| 15954 | test "$am__universal" = false || continue |
| 15955 | ;; |
| 15956 | nosideeffect) |
| 15957 | # After this tag, mechanisms are not by side-effect, so they'll |
| 15958 | # only be used when explicitly requested. |
| 15959 | if test "x$enable_dependency_tracking" = xyes; then |
| 15960 | continue |
| 15961 | else |
| 15962 | break |
| 15963 | fi |
| 15964 | ;; |
| 15965 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 15966 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 15967 | # not run yet. These depmodes are late enough in the game, and |
| 15968 | # so weak that their functioning should not be impacted. |
| 15969 | am__obj=conftest.${OBJEXT-o} |
| 15970 | am__minus_obj= |
| 15971 | ;; |
| 15972 | none) break ;; |
| 15973 | esac |
| 15974 | if depmode=$depmode \ |
| 15975 | source=sub/conftest.c object=$am__obj \ |
| 15976 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 15977 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 15978 | >/dev/null 2>conftest.err && |
| 15979 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 15980 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 15981 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 15982 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 15983 | # icc doesn't choke on unknown options, it will just issue warnings |
| 15984 | # or remarks (even with -Werror). So we grep stderr for any message |
| 15985 | # that says an option was ignored or not supported. |
| 15986 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 15987 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 15988 | # The diagnosis changed in icc 8.0: |
| 15989 | # icc: Command line remark: option '-MP' not supported |
| 15990 | if (grep 'ignoring option' conftest.err || |
| 15991 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 15992 | am_cv_OBJCXX_dependencies_compiler_type=$depmode |
| 15993 | break |
| 15994 | fi |
| 15995 | fi |
| 15996 | done |
| 15997 | |
| 15998 | cd .. |
| 15999 | rm -rf conftest.dir |
| 16000 | else |
| 16001 | am_cv_OBJCXX_dependencies_compiler_type=none |
| 16002 | fi |
| 16003 | |
| 16004 | fi |
| 16005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
| 16006 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } |
| 16007 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type |
| 16008 | |
| 16009 | if |
| 16010 | test "x$enable_dependency_tracking" != xno \ |
| 16011 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then |
| 16012 | am__fastdepOBJCXX_TRUE= |
| 16013 | am__fastdepOBJCXX_FALSE='#' |
| 16014 | else |
| 16015 | am__fastdepOBJCXX_TRUE='#' |
| 16016 | am__fastdepOBJCXX_FALSE= |
| 16017 | fi |
| 16018 | |
| 16019 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 16020 | ac_ext=cpp |
| 16021 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16022 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16023 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16024 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16025 | |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16026 | ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 16027 | if test "x$ac_cv_type_size_t" = xyes; then : |
| 16028 | |
| 16029 | else |
| 16030 | |
| 16031 | cat >>confdefs.h <<_ACEOF |
| 16032 | #define size_t unsigned int |
| 16033 | _ACEOF |
| 16034 | |
| 16035 | fi |
| 16036 | |
| 16037 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
| 16038 | case $ac_cv_c_int8_t in #( |
| 16039 | no|yes) ;; #( |
| 16040 | *) |
| 16041 | |
| 16042 | cat >>confdefs.h <<_ACEOF |
| 16043 | #define int8_t $ac_cv_c_int8_t |
| 16044 | _ACEOF |
| 16045 | ;; |
| 16046 | esac |
| 16047 | |
| 16048 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
| 16049 | case $ac_cv_c_int16_t in #( |
| 16050 | no|yes) ;; #( |
| 16051 | *) |
| 16052 | |
| 16053 | cat >>confdefs.h <<_ACEOF |
| 16054 | #define int16_t $ac_cv_c_int16_t |
| 16055 | _ACEOF |
| 16056 | ;; |
| 16057 | esac |
| 16058 | |
| 16059 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 16060 | case $ac_cv_c_int32_t in #( |
| 16061 | no|yes) ;; #( |
| 16062 | *) |
| 16063 | |
| 16064 | cat >>confdefs.h <<_ACEOF |
| 16065 | #define int32_t $ac_cv_c_int32_t |
| 16066 | _ACEOF |
| 16067 | ;; |
| 16068 | esac |
| 16069 | |
| 16070 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 16071 | case $ac_cv_c_int64_t in #( |
| 16072 | no|yes) ;; #( |
| 16073 | *) |
| 16074 | |
| 16075 | cat >>confdefs.h <<_ACEOF |
| 16076 | #define int64_t $ac_cv_c_int64_t |
| 16077 | _ACEOF |
| 16078 | ;; |
| 16079 | esac |
| 16080 | |
| 16081 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
| 16082 | case $ac_cv_c_uint8_t in #( |
| 16083 | no|yes) ;; #( |
| 16084 | *) |
| 16085 | |
| 16086 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
| 16087 | |
| 16088 | |
| 16089 | cat >>confdefs.h <<_ACEOF |
| 16090 | #define uint8_t $ac_cv_c_uint8_t |
| 16091 | _ACEOF |
| 16092 | ;; |
| 16093 | esac |
| 16094 | |
| 16095 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
| 16096 | case $ac_cv_c_uint16_t in #( |
| 16097 | no|yes) ;; #( |
| 16098 | *) |
| 16099 | |
| 16100 | |
| 16101 | cat >>confdefs.h <<_ACEOF |
| 16102 | #define uint16_t $ac_cv_c_uint16_t |
| 16103 | _ACEOF |
| 16104 | ;; |
| 16105 | esac |
| 16106 | |
| 16107 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 16108 | case $ac_cv_c_uint32_t in #( |
| 16109 | no|yes) ;; #( |
| 16110 | *) |
| 16111 | |
| 16112 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
| 16113 | |
| 16114 | |
| 16115 | cat >>confdefs.h <<_ACEOF |
| 16116 | #define uint32_t $ac_cv_c_uint32_t |
| 16117 | _ACEOF |
| 16118 | ;; |
| 16119 | esac |
| 16120 | |
| 16121 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 16122 | case $ac_cv_c_uint64_t in #( |
| 16123 | no|yes) ;; #( |
| 16124 | *) |
| 16125 | |
| 16126 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
| 16127 | |
| 16128 | |
| 16129 | cat >>confdefs.h <<_ACEOF |
| 16130 | #define uint64_t $ac_cv_c_uint64_t |
| 16131 | _ACEOF |
| 16132 | ;; |
| 16133 | esac |
| 16134 | |
| 16135 | for ac_func in memcmp |
| 16136 | do : |
| 16137 | ac_fn_cxx_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp" |
| 16138 | if test "x$ac_cv_func_memcmp" = xyes; then : |
| 16139 | cat >>confdefs.h <<_ACEOF |
| 16140 | #define HAVE_MEMCMP 1 |
| 16141 | _ACEOF |
| 16142 | |
| 16143 | fi |
| 16144 | done |
| 16145 | |
| 16146 | for ac_func in memcpy |
| 16147 | do : |
| 16148 | ac_fn_cxx_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" |
| 16149 | if test "x$ac_cv_func_memcpy" = xyes; then : |
| 16150 | cat >>confdefs.h <<_ACEOF |
| 16151 | #define HAVE_MEMCPY 1 |
| 16152 | _ACEOF |
| 16153 | |
| 16154 | fi |
| 16155 | done |
| 16156 | |
| 16157 | for ac_func in memset |
| 16158 | do : |
| 16159 | ac_fn_cxx_check_func "$LINENO" "memset" "ac_cv_func_memset" |
| 16160 | if test "x$ac_cv_func_memset" = xyes; then : |
| 16161 | cat >>confdefs.h <<_ACEOF |
| 16162 | #define HAVE_MEMSET 1 |
| 16163 | _ACEOF |
| 16164 | |
| 16165 | fi |
| 16166 | done |
| 16167 | |
Jeff Thompson | 1b8f4c9 | 2013-06-19 16:18:46 -0700 | [diff] [blame] | 16168 | ax_cxx_compile_cxx11_required=falsednl |
| 16169 | ac_ext=cpp |
| 16170 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16171 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16172 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16173 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16174 | ac_success=no |
| 16175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
| 16176 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } |
| 16177 | if ${ax_cv_cxx_compile_cxx11+:} false; then : |
| 16178 | $as_echo_n "(cached) " >&6 |
| 16179 | else |
| 16180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16181 | /* end confdefs.h. */ |
| 16182 | |
| 16183 | template <typename T> |
| 16184 | struct check |
| 16185 | { |
| 16186 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 16187 | }; |
| 16188 | |
| 16189 | typedef check<check<bool>> right_angle_brackets; |
| 16190 | |
| 16191 | int a; |
| 16192 | decltype(a) b; |
| 16193 | |
| 16194 | typedef check<int> check_type; |
| 16195 | check_type c; |
| 16196 | check_type&& cr = static_cast<check_type&&>(c); |
| 16197 | |
| 16198 | auto d = a; |
| 16199 | |
| 16200 | _ACEOF |
| 16201 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16202 | ax_cv_cxx_compile_cxx11=yes |
| 16203 | else |
| 16204 | ax_cv_cxx_compile_cxx11=no |
| 16205 | fi |
| 16206 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16207 | fi |
| 16208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 |
| 16209 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } |
| 16210 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then |
| 16211 | ac_success=yes |
| 16212 | fi |
| 16213 | |
| 16214 | if test x$ac_success = xno; then |
| 16215 | for switch in -std=gnu++11 -std=gnu++0x; do |
| 16216 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 16217 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 16218 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 16219 | if eval \${$cachevar+:} false; then : |
| 16220 | $as_echo_n "(cached) " >&6 |
| 16221 | else |
| 16222 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 16223 | CXXFLAGS="$CXXFLAGS $switch" |
| 16224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16225 | /* end confdefs.h. */ |
| 16226 | |
| 16227 | template <typename T> |
| 16228 | struct check |
| 16229 | { |
| 16230 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 16231 | }; |
| 16232 | |
| 16233 | typedef check<check<bool>> right_angle_brackets; |
| 16234 | |
| 16235 | int a; |
| 16236 | decltype(a) b; |
| 16237 | |
| 16238 | typedef check<int> check_type; |
| 16239 | check_type c; |
| 16240 | check_type&& cr = static_cast<check_type&&>(c); |
| 16241 | |
| 16242 | auto d = a; |
| 16243 | |
| 16244 | _ACEOF |
| 16245 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16246 | eval $cachevar=yes |
| 16247 | else |
| 16248 | eval $cachevar=no |
| 16249 | fi |
| 16250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16251 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 16252 | fi |
| 16253 | eval ac_res=\$$cachevar |
| 16254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16255 | $as_echo "$ac_res" >&6; } |
| 16256 | if eval test x\$$cachevar = xyes; then |
| 16257 | CXXFLAGS="$CXXFLAGS $switch" |
| 16258 | ac_success=yes |
| 16259 | break |
| 16260 | fi |
| 16261 | done |
| 16262 | fi |
| 16263 | |
| 16264 | if test x$ac_success = xno; then |
| 16265 | for switch in -std=c++11 -std=c++0x; do |
| 16266 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 16267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 16268 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 16269 | if eval \${$cachevar+:} false; then : |
| 16270 | $as_echo_n "(cached) " >&6 |
| 16271 | else |
| 16272 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 16273 | CXXFLAGS="$CXXFLAGS $switch" |
| 16274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16275 | /* end confdefs.h. */ |
| 16276 | |
| 16277 | template <typename T> |
| 16278 | struct check |
| 16279 | { |
| 16280 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 16281 | }; |
| 16282 | |
| 16283 | typedef check<check<bool>> right_angle_brackets; |
| 16284 | |
| 16285 | int a; |
| 16286 | decltype(a) b; |
| 16287 | |
| 16288 | typedef check<int> check_type; |
| 16289 | check_type c; |
| 16290 | check_type&& cr = static_cast<check_type&&>(c); |
| 16291 | |
| 16292 | auto d = a; |
| 16293 | |
| 16294 | _ACEOF |
| 16295 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16296 | eval $cachevar=yes |
| 16297 | else |
| 16298 | eval $cachevar=no |
| 16299 | fi |
| 16300 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16301 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 16302 | fi |
| 16303 | eval ac_res=\$$cachevar |
| 16304 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16305 | $as_echo "$ac_res" >&6; } |
| 16306 | if eval test x\$$cachevar = xyes; then |
| 16307 | CXXFLAGS="$CXXFLAGS $switch" |
| 16308 | ac_success=yes |
| 16309 | break |
| 16310 | fi |
| 16311 | done |
| 16312 | fi |
| 16313 | ac_ext=cpp |
| 16314 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16315 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16316 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16317 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16318 | |
| 16319 | if test x$ax_cxx_compile_cxx11_required = xtrue; then |
| 16320 | if test x$ac_success = xno; then |
| 16321 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 |
| 16322 | fi |
| 16323 | else |
| 16324 | if test x$ac_success = xno; then |
| 16325 | HAVE_CXX11=0 |
| 16326 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 |
| 16327 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} |
| 16328 | else |
| 16329 | HAVE_CXX11=1 |
| 16330 | |
| 16331 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h |
| 16332 | |
| 16333 | fi |
| 16334 | |
| 16335 | |
| 16336 | fi |
| 16337 | |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame^] | 16338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 16339 | $as_echo_n "checking for inline... " >&6; } |
| 16340 | if ${ac_cv_c_inline+:} false; then : |
| 16341 | $as_echo_n "(cached) " >&6 |
| 16342 | else |
| 16343 | ac_cv_c_inline=no |
| 16344 | for ac_kw in inline __inline__ __inline; do |
| 16345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16346 | /* end confdefs.h. */ |
| 16347 | #ifndef __cplusplus |
| 16348 | typedef int foo_t; |
| 16349 | static $ac_kw foo_t static_foo () {return 0; } |
| 16350 | $ac_kw foo_t foo () {return 0; } |
| 16351 | #endif |
| 16352 | |
| 16353 | _ACEOF |
| 16354 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16355 | ac_cv_c_inline=$ac_kw |
| 16356 | fi |
| 16357 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16358 | test "$ac_cv_c_inline" != no && break |
| 16359 | done |
| 16360 | |
| 16361 | fi |
| 16362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 16363 | $as_echo "$ac_cv_c_inline" >&6; } |
| 16364 | |
| 16365 | case $ac_cv_c_inline in |
| 16366 | inline | yes) ;; |
| 16367 | *) |
| 16368 | case $ac_cv_c_inline in |
| 16369 | no) ac_val=;; |
| 16370 | *) ac_val=$ac_cv_c_inline;; |
| 16371 | esac |
| 16372 | cat >>confdefs.h <<_ACEOF |
| 16373 | #ifndef __cplusplus |
| 16374 | #define inline $ac_val |
| 16375 | #endif |
| 16376 | _ACEOF |
| 16377 | ;; |
| 16378 | esac |
| 16379 | |
Jeff Thompson | b3768ae | 2013-08-08 21:22:45 -0700 | [diff] [blame] | 16380 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 16381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5 |
| 16382 | $as_echo_n "checking for std::shared_ptr... " >&6; } |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 16383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16384 | /* end confdefs.h. */ |
| 16385 | #include <memory> |
| 16386 | std::shared_ptr<int> have_shared_ptr; |
| 16387 | int |
| 16388 | main () |
| 16389 | { |
| 16390 | |
| 16391 | ; |
| 16392 | return 0; |
| 16393 | } |
| 16394 | |
| 16395 | _ACEOF |
| 16396 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16397 | |
| 16398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16399 | $as_echo "yes" >&6; } |
| 16400 | |
| 16401 | cat >>confdefs.h <<_ACEOF |
| 16402 | #define HAVE_STD_SHARED_PTR 1 |
| 16403 | _ACEOF |
| 16404 | |
| 16405 | |
| 16406 | else |
| 16407 | |
| 16408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16409 | $as_echo "no" >&6; } |
| 16410 | |
| 16411 | cat >>confdefs.h <<_ACEOF |
| 16412 | #define HAVE_STD_SHARED_PTR 0 |
| 16413 | _ACEOF |
| 16414 | |
| 16415 | |
| 16416 | fi |
| 16417 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jeff Thompson | 9e9ea9f | 2013-06-22 10:31:18 -0700 | [diff] [blame] | 16418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5 |
| 16419 | $as_echo_n "checking for boost::shared_ptr... " >&6; } |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 16420 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16421 | /* end confdefs.h. */ |
| 16422 | #include <boost/shared_ptr.hpp> |
| 16423 | boost::shared_ptr<int> have_shared_ptr; |
| 16424 | int |
| 16425 | main () |
| 16426 | { |
| 16427 | |
| 16428 | ; |
| 16429 | return 0; |
| 16430 | } |
| 16431 | |
| 16432 | _ACEOF |
| 16433 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16434 | |
| 16435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16436 | $as_echo "yes" >&6; } |
| 16437 | |
| 16438 | cat >>confdefs.h <<_ACEOF |
| 16439 | #define HAVE_BOOST_SHARED_PTR 1 |
| 16440 | _ACEOF |
| 16441 | |
| 16442 | |
| 16443 | else |
| 16444 | |
| 16445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16446 | $as_echo "no" >&6; } |
| 16447 | |
| 16448 | cat >>confdefs.h <<_ACEOF |
| 16449 | #define HAVE_BOOST_SHARED_PTR 0 |
| 16450 | _ACEOF |
| 16451 | |
| 16452 | |
| 16453 | fi |
| 16454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16455 | |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 16456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::function" >&5 |
| 16457 | $as_echo_n "checking for std::function... " >&6; } |
| 16458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16459 | /* end confdefs.h. */ |
| 16460 | #include <functional> |
| 16461 | std::function<int> have_function(); |
| 16462 | int |
| 16463 | main () |
| 16464 | { |
| 16465 | |
| 16466 | ; |
| 16467 | return 0; |
| 16468 | } |
| 16469 | |
| 16470 | _ACEOF |
| 16471 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16472 | |
| 16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16474 | $as_echo "yes" >&6; } |
| 16475 | |
| 16476 | cat >>confdefs.h <<_ACEOF |
| 16477 | #define HAVE_STD_FUNCTION 1 |
| 16478 | _ACEOF |
| 16479 | |
| 16480 | |
| 16481 | else |
| 16482 | |
| 16483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16484 | $as_echo "no" >&6; } |
| 16485 | |
| 16486 | cat >>confdefs.h <<_ACEOF |
| 16487 | #define HAVE_STD_FUNCTION 0 |
| 16488 | _ACEOF |
| 16489 | |
| 16490 | |
| 16491 | fi |
| 16492 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::function" >&5 |
| 16494 | $as_echo_n "checking for boost::function... " >&6; } |
| 16495 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16496 | /* end confdefs.h. */ |
| 16497 | #include <boost/function.hpp> |
| 16498 | boost::function<int> have_function(); |
| 16499 | int |
| 16500 | main () |
| 16501 | { |
| 16502 | |
| 16503 | ; |
| 16504 | return 0; |
| 16505 | } |
| 16506 | |
| 16507 | _ACEOF |
| 16508 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16509 | |
| 16510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16511 | $as_echo "yes" >&6; } |
| 16512 | |
| 16513 | cat >>confdefs.h <<_ACEOF |
| 16514 | #define HAVE_BOOST_FUNCTION 1 |
| 16515 | _ACEOF |
| 16516 | |
| 16517 | |
| 16518 | else |
| 16519 | |
| 16520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16521 | $as_echo "no" >&6; } |
| 16522 | |
| 16523 | cat >>confdefs.h <<_ACEOF |
| 16524 | #define HAVE_BOOST_FUNCTION 0 |
| 16525 | _ACEOF |
| 16526 | |
| 16527 | |
| 16528 | fi |
| 16529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16530 | |
Jeff Thompson | d0f62e1 | 2013-10-09 17:41:25 -0700 | [diff] [blame] | 16531 | # Require libcrypto. |
| 16532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5 |
| 16533 | $as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; } |
| 16534 | if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then : |
| 16535 | $as_echo_n "(cached) " >&6 |
| 16536 | else |
| 16537 | ac_check_lib_save_LIBS=$LIBS |
| 16538 | LIBS="-lcrypto $LIBS" |
| 16539 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16540 | /* end confdefs.h. */ |
| 16541 | |
| 16542 | /* Override any GCC internal prototype to avoid an error. |
| 16543 | Use char because int might match the return type of a GCC |
| 16544 | builtin and then its argument prototype would still apply. */ |
| 16545 | #ifdef __cplusplus |
| 16546 | extern "C" |
| 16547 | #endif |
| 16548 | char EVP_EncryptInit (); |
| 16549 | int |
| 16550 | main () |
| 16551 | { |
| 16552 | return EVP_EncryptInit (); |
| 16553 | ; |
| 16554 | return 0; |
| 16555 | } |
| 16556 | _ACEOF |
| 16557 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 16558 | ac_cv_lib_crypto_EVP_EncryptInit=yes |
| 16559 | else |
| 16560 | ac_cv_lib_crypto_EVP_EncryptInit=no |
| 16561 | fi |
| 16562 | rm -f core conftest.err conftest.$ac_objext \ |
| 16563 | conftest$ac_exeext conftest.$ac_ext |
| 16564 | LIBS=$ac_check_lib_save_LIBS |
| 16565 | fi |
| 16566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5 |
| 16567 | $as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; } |
| 16568 | if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then : |
| 16569 | cat >>confdefs.h <<_ACEOF |
| 16570 | #define HAVE_LIBCRYPTO 1 |
| 16571 | _ACEOF |
| 16572 | |
| 16573 | LIBS="-lcrypto $LIBS" |
| 16574 | |
| 16575 | else |
| 16576 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16577 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16578 | as_fn_error $? "can't find openssl crypto lib |
| 16579 | See \`config.log' for more details" "$LINENO" 5; } |
| 16580 | fi |
| 16581 | |
| 16582 | |
Jeff Thompson | bb6b568 | 2013-10-09 18:22:38 -0700 | [diff] [blame] | 16583 | # Conditionally use libsqlite3. AX_LIB_SQLITE3 defines HAVE_SQLITE3 in confdefs.h . |
Jeff Thompson | d0f62e1 | 2013-10-09 17:41:25 -0700 | [diff] [blame] | 16584 | |
| 16585 | |
| 16586 | # Check whether --with-sqlite3 was given. |
| 16587 | if test "${with_sqlite3+set}" = set; then : |
| 16588 | withval=$with_sqlite3; |
| 16589 | if test "$withval" = "no"; then |
| 16590 | WANT_SQLITE3="no" |
| 16591 | elif test "$withval" = "yes"; then |
| 16592 | WANT_SQLITE3="yes" |
| 16593 | ac_sqlite3_path="" |
| 16594 | else |
| 16595 | WANT_SQLITE3="yes" |
| 16596 | ac_sqlite3_path="$withval" |
| 16597 | fi |
| 16598 | |
| 16599 | else |
| 16600 | WANT_SQLITE3="yes" |
| 16601 | |
| 16602 | fi |
| 16603 | |
| 16604 | |
| 16605 | SQLITE3_CFLAGS="" |
| 16606 | SQLITE3_LDFLAGS="" |
| 16607 | SQLITE3_VERSION="" |
| 16608 | |
| 16609 | if test "x$WANT_SQLITE3" = "xyes"; then |
| 16610 | |
| 16611 | ac_sqlite3_header="sqlite3.h" |
| 16612 | |
| 16613 | sqlite3_version_req=3.0.0 |
| 16614 | sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'` |
| 16615 | sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'` |
| 16616 | sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'` |
| 16617 | sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` |
| 16618 | if test "x$sqlite3_version_req_micro" = "x" ; then |
| 16619 | sqlite3_version_req_micro="0" |
| 16620 | fi |
| 16621 | |
| 16622 | sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \ |
| 16623 | \+ $sqlite3_version_req_minor \* 1000 \ |
| 16624 | \+ $sqlite3_version_req_micro` |
| 16625 | |
| 16626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5 |
| 16627 | $as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; } |
| 16628 | |
| 16629 | if test "$ac_sqlite3_path" != ""; then |
| 16630 | ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib" |
| 16631 | ac_sqlite3_cppflags="-I$ac_sqlite3_path/include" |
| 16632 | else |
| 16633 | for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do |
| 16634 | if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \ |
| 16635 | && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then |
| 16636 | ac_sqlite3_path=$ac_sqlite3_path_tmp |
| 16637 | ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include" |
| 16638 | ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib" |
| 16639 | break; |
| 16640 | fi |
| 16641 | done |
| 16642 | fi |
| 16643 | |
| 16644 | ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3" |
| 16645 | |
| 16646 | saved_CPPFLAGS="$CPPFLAGS" |
| 16647 | CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags" |
| 16648 | |
| 16649 | ac_ext=c |
| 16650 | ac_cpp='$CPP $CPPFLAGS' |
| 16651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16654 | |
| 16655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16656 | /* end confdefs.h. */ |
| 16657 | |
| 16658 | #include <sqlite3.h> |
| 16659 | int |
| 16660 | main () |
| 16661 | { |
| 16662 | |
| 16663 | #if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number) |
| 16664 | /* Everything is okay */ |
| 16665 | #else |
| 16666 | # error SQLite version is too old |
| 16667 | #endif |
| 16668 | |
| 16669 | |
| 16670 | ; |
| 16671 | return 0; |
| 16672 | } |
| 16673 | |
| 16674 | _ACEOF |
| 16675 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16676 | |
| 16677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16678 | $as_echo "yes" >&6; } |
| 16679 | success="yes" |
| 16680 | |
| 16681 | else |
| 16682 | |
| 16683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 16684 | $as_echo "not found" >&6; } |
| 16685 | success="no" |
| 16686 | |
| 16687 | |
| 16688 | fi |
| 16689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16690 | ac_ext=cpp |
| 16691 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16692 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16693 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16694 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16695 | |
| 16696 | |
| 16697 | CPPFLAGS="$saved_CPPFLAGS" |
| 16698 | |
| 16699 | if test "$success" = "yes"; then |
| 16700 | |
| 16701 | SQLITE3_CFLAGS="$ac_sqlite3_cppflags" |
| 16702 | SQLITE3_LDFLAGS="$ac_sqlite3_ldflags" |
| 16703 | |
| 16704 | ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header" |
| 16705 | |
| 16706 | if test "x$ac_sqlite3_header_path" != "x"; then |
| 16707 | ac_sqlite3_version=`cat $ac_sqlite3_header_path \ |
| 16708 | | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \ |
| 16709 | | sed -e 's/"//'` |
| 16710 | if test $ac_sqlite3_version != ""; then |
| 16711 | SQLITE3_VERSION=$ac_sqlite3_version |
| 16712 | else |
| 16713 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5 |
| 16714 | $as_echo "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;} |
| 16715 | fi |
| 16716 | fi |
| 16717 | |
| 16718 | |
| 16719 | |
| 16720 | |
| 16721 | |
| 16722 | $as_echo "#define HAVE_SQLITE3 /**/" >>confdefs.h |
| 16723 | |
| 16724 | fi |
| 16725 | fi |
| 16726 | |
Jeff Thompson | bb6b568 | 2013-10-09 18:22:38 -0700 | [diff] [blame] | 16727 | if grep -q "#define HAVE_SQLITE3" confdefs.h ; then |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_open in -lsqlite3" >&5 |
Jeff Thompson | d0f62e1 | 2013-10-09 17:41:25 -0700 | [diff] [blame] | 16729 | $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } |
| 16730 | if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : |
| 16731 | $as_echo_n "(cached) " >&6 |
| 16732 | else |
| 16733 | ac_check_lib_save_LIBS=$LIBS |
| 16734 | LIBS="-lsqlite3 $LIBS" |
| 16735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16736 | /* end confdefs.h. */ |
| 16737 | |
| 16738 | /* Override any GCC internal prototype to avoid an error. |
| 16739 | Use char because int might match the return type of a GCC |
| 16740 | builtin and then its argument prototype would still apply. */ |
| 16741 | #ifdef __cplusplus |
| 16742 | extern "C" |
| 16743 | #endif |
| 16744 | char sqlite3_open (); |
| 16745 | int |
| 16746 | main () |
| 16747 | { |
| 16748 | return sqlite3_open (); |
| 16749 | ; |
| 16750 | return 0; |
| 16751 | } |
| 16752 | _ACEOF |
| 16753 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 16754 | ac_cv_lib_sqlite3_sqlite3_open=yes |
| 16755 | else |
| 16756 | ac_cv_lib_sqlite3_sqlite3_open=no |
| 16757 | fi |
| 16758 | rm -f core conftest.err conftest.$ac_objext \ |
| 16759 | conftest$ac_exeext conftest.$ac_ext |
| 16760 | LIBS=$ac_check_lib_save_LIBS |
| 16761 | fi |
| 16762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 |
| 16763 | $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } |
| 16764 | if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : |
| 16765 | cat >>confdefs.h <<_ACEOF |
| 16766 | #define HAVE_LIBSQLITE3 1 |
| 16767 | _ACEOF |
| 16768 | |
| 16769 | LIBS="-lsqlite3 $LIBS" |
| 16770 | |
| 16771 | else |
| 16772 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16773 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16774 | as_fn_error $? "have sqlite2 headers but no libsqlite3 |
| 16775 | See \`config.log' for more details" "$LINENO" 5; } |
| 16776 | fi |
| 16777 | |
| 16778 | fi |
| 16779 | |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16780 | # Conditionally use the OSX Security framework . |
| 16781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX Security framework" >&5 |
| 16782 | $as_echo_n "checking for OSX Security framework... " >&6; } |
Jeff Thompson | 9cf9dfb | 2013-10-04 16:36:52 -0700 | [diff] [blame] | 16783 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16784 | /* end confdefs.h. */ |
| 16785 | #include <CoreFoundation/CoreFoundation.h> |
| 16786 | #include <Security/Security.h> |
| 16787 | #include <CoreServices/CoreServices.h> |
| 16788 | void test() { SecKeychainRef x; } |
| 16789 | int |
| 16790 | main () |
| 16791 | { |
| 16792 | |
| 16793 | ; |
| 16794 | return 0; |
| 16795 | } |
| 16796 | |
| 16797 | _ACEOF |
| 16798 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16799 | |
| 16800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16801 | $as_echo "yes" >&6; } |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16802 | HAVE_OSX_SECURITY=1 |
Jeff Thompson | 9cf9dfb | 2013-10-04 16:36:52 -0700 | [diff] [blame] | 16803 | |
| 16804 | else |
| 16805 | |
| 16806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16807 | $as_echo "no" >&6; } |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16808 | HAVE_OSX_SECURITY=0 |
Jeff Thompson | 9cf9dfb | 2013-10-04 16:36:52 -0700 | [diff] [blame] | 16809 | |
| 16810 | fi |
| 16811 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16812 | |
Jeff Thompson | bb6b568 | 2013-10-09 18:22:38 -0700 | [diff] [blame] | 16813 | cat >>confdefs.h <<_ACEOF |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16814 | #define HAVE_OSX_SECURITY $HAVE_OSX_SECURITY |
Jeff Thompson | bb6b568 | 2013-10-09 18:22:38 -0700 | [diff] [blame] | 16815 | _ACEOF |
| 16816 | |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16817 | if test "$HAVE_OSX_SECURITY" == "1" ; then |
| 16818 | LIBS="$LIBS -framework Security" |
| 16819 | fi |
Jeff Thompson | bb6b568 | 2013-10-09 18:22:38 -0700 | [diff] [blame] | 16820 | |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 16821 | |
| 16822 | |
| 16823 | |
| 16824 | |
| 16825 | |
| 16826 | |
| 16827 | |
| 16828 | |
| 16829 | |
| 16830 | |
| 16831 | # Files: |
| 16832 | DX_PROJECT=$PACKAGE_NAME |
| 16833 | |
| 16834 | DX_CONFIG=Doxyfile |
| 16835 | |
| 16836 | DX_DOCDIR=doxygen-doc |
| 16837 | |
| 16838 | |
| 16839 | # Environment variables used inside doxygen.cfg: |
| 16840 | DX_ENV="$DX_ENV SRCDIR='$srcdir'" |
| 16841 | |
| 16842 | DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'" |
| 16843 | |
| 16844 | DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'" |
| 16845 | |
| 16846 | DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'" |
| 16847 | |
| 16848 | |
| 16849 | # Doxygen itself: |
| 16850 | |
| 16851 | |
| 16852 | |
| 16853 | # Check whether --enable-doxygen-doc was given. |
| 16854 | if test "${enable_doxygen_doc+set}" = set; then : |
| 16855 | enableval=$enable_doxygen_doc; |
| 16856 | case "$enableval" in |
| 16857 | #( |
| 16858 | y|Y|yes|Yes|YES) |
| 16859 | DX_FLAG_doc=1 |
| 16860 | |
| 16861 | |
| 16862 | ;; #( |
| 16863 | n|N|no|No|NO) |
| 16864 | DX_FLAG_doc=0 |
| 16865 | |
| 16866 | ;; #( |
| 16867 | *) |
| 16868 | as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5 |
| 16869 | ;; |
| 16870 | esac |
| 16871 | |
| 16872 | else |
| 16873 | |
| 16874 | DX_FLAG_doc=1 |
| 16875 | |
| 16876 | |
| 16877 | |
| 16878 | fi |
| 16879 | |
| 16880 | if test "$DX_FLAG_doc" = 1; then |
| 16881 | |
| 16882 | if test -n "$ac_tool_prefix"; then |
| 16883 | # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args. |
| 16884 | set dummy ${ac_tool_prefix}doxygen; ac_word=$2 |
| 16885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16886 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16887 | if ${ac_cv_path_DX_DOXYGEN+:} false; then : |
| 16888 | $as_echo_n "(cached) " >&6 |
| 16889 | else |
| 16890 | case $DX_DOXYGEN in |
| 16891 | [\\/]* | ?:[\\/]*) |
| 16892 | ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path. |
| 16893 | ;; |
| 16894 | *) |
| 16895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16896 | for as_dir in $PATH |
| 16897 | do |
| 16898 | IFS=$as_save_IFS |
| 16899 | test -z "$as_dir" && as_dir=. |
| 16900 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16901 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16902 | ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 16903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16904 | break 2 |
| 16905 | fi |
| 16906 | done |
| 16907 | done |
| 16908 | IFS=$as_save_IFS |
| 16909 | |
| 16910 | ;; |
| 16911 | esac |
| 16912 | fi |
| 16913 | DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN |
| 16914 | if test -n "$DX_DOXYGEN"; then |
| 16915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5 |
| 16916 | $as_echo "$DX_DOXYGEN" >&6; } |
| 16917 | else |
| 16918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16919 | $as_echo "no" >&6; } |
| 16920 | fi |
| 16921 | |
| 16922 | |
| 16923 | fi |
| 16924 | if test -z "$ac_cv_path_DX_DOXYGEN"; then |
| 16925 | ac_pt_DX_DOXYGEN=$DX_DOXYGEN |
| 16926 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 16927 | set dummy doxygen; ac_word=$2 |
| 16928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16929 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16930 | if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then : |
| 16931 | $as_echo_n "(cached) " >&6 |
| 16932 | else |
| 16933 | case $ac_pt_DX_DOXYGEN in |
| 16934 | [\\/]* | ?:[\\/]*) |
| 16935 | ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path. |
| 16936 | ;; |
| 16937 | *) |
| 16938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 16939 | for as_dir in $PATH |
| 16940 | do |
| 16941 | IFS=$as_save_IFS |
| 16942 | test -z "$as_dir" && as_dir=. |
| 16943 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 16944 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 16945 | ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 16946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 16947 | break 2 |
| 16948 | fi |
| 16949 | done |
| 16950 | done |
| 16951 | IFS=$as_save_IFS |
| 16952 | |
| 16953 | ;; |
| 16954 | esac |
| 16955 | fi |
| 16956 | ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN |
| 16957 | if test -n "$ac_pt_DX_DOXYGEN"; then |
| 16958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5 |
| 16959 | $as_echo "$ac_pt_DX_DOXYGEN" >&6; } |
| 16960 | else |
| 16961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16962 | $as_echo "no" >&6; } |
| 16963 | fi |
| 16964 | |
| 16965 | if test "x$ac_pt_DX_DOXYGEN" = x; then |
| 16966 | DX_DOXYGEN="" |
| 16967 | else |
| 16968 | case $cross_compiling:$ac_tool_warned in |
| 16969 | yes:) |
| 16970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 16971 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 16972 | ac_tool_warned=yes ;; |
| 16973 | esac |
| 16974 | DX_DOXYGEN=$ac_pt_DX_DOXYGEN |
| 16975 | fi |
| 16976 | else |
| 16977 | DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN" |
| 16978 | fi |
| 16979 | |
| 16980 | if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then |
| 16981 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5 |
| 16982 | $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;} |
| 16983 | DX_FLAG_doc=0 |
| 16984 | |
| 16985 | fi |
| 16986 | |
| 16987 | |
| 16988 | if test -n "$ac_tool_prefix"; then |
| 16989 | # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args. |
| 16990 | set dummy ${ac_tool_prefix}perl; ac_word=$2 |
| 16991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 16992 | $as_echo_n "checking for $ac_word... " >&6; } |
| 16993 | if ${ac_cv_path_DX_PERL+:} false; then : |
| 16994 | $as_echo_n "(cached) " >&6 |
| 16995 | else |
| 16996 | case $DX_PERL in |
| 16997 | [\\/]* | ?:[\\/]*) |
| 16998 | ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path. |
| 16999 | ;; |
| 17000 | *) |
| 17001 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17002 | for as_dir in $PATH |
| 17003 | do |
| 17004 | IFS=$as_save_IFS |
| 17005 | test -z "$as_dir" && as_dir=. |
| 17006 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17007 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17008 | ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 17009 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17010 | break 2 |
| 17011 | fi |
| 17012 | done |
| 17013 | done |
| 17014 | IFS=$as_save_IFS |
| 17015 | |
| 17016 | ;; |
| 17017 | esac |
| 17018 | fi |
| 17019 | DX_PERL=$ac_cv_path_DX_PERL |
| 17020 | if test -n "$DX_PERL"; then |
| 17021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5 |
| 17022 | $as_echo "$DX_PERL" >&6; } |
| 17023 | else |
| 17024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17025 | $as_echo "no" >&6; } |
| 17026 | fi |
| 17027 | |
| 17028 | |
| 17029 | fi |
| 17030 | if test -z "$ac_cv_path_DX_PERL"; then |
| 17031 | ac_pt_DX_PERL=$DX_PERL |
| 17032 | # Extract the first word of "perl", so it can be a program name with args. |
| 17033 | set dummy perl; ac_word=$2 |
| 17034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17035 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17036 | if ${ac_cv_path_ac_pt_DX_PERL+:} false; then : |
| 17037 | $as_echo_n "(cached) " >&6 |
| 17038 | else |
| 17039 | case $ac_pt_DX_PERL in |
| 17040 | [\\/]* | ?:[\\/]*) |
| 17041 | ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path. |
| 17042 | ;; |
| 17043 | *) |
| 17044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17045 | for as_dir in $PATH |
| 17046 | do |
| 17047 | IFS=$as_save_IFS |
| 17048 | test -z "$as_dir" && as_dir=. |
| 17049 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17050 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17051 | ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 17052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17053 | break 2 |
| 17054 | fi |
| 17055 | done |
| 17056 | done |
| 17057 | IFS=$as_save_IFS |
| 17058 | |
| 17059 | ;; |
| 17060 | esac |
| 17061 | fi |
| 17062 | ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL |
| 17063 | if test -n "$ac_pt_DX_PERL"; then |
| 17064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5 |
| 17065 | $as_echo "$ac_pt_DX_PERL" >&6; } |
| 17066 | else |
| 17067 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17068 | $as_echo "no" >&6; } |
| 17069 | fi |
| 17070 | |
| 17071 | if test "x$ac_pt_DX_PERL" = x; then |
| 17072 | DX_PERL="" |
| 17073 | else |
| 17074 | case $cross_compiling:$ac_tool_warned in |
| 17075 | yes:) |
| 17076 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17077 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17078 | ac_tool_warned=yes ;; |
| 17079 | esac |
| 17080 | DX_PERL=$ac_pt_DX_PERL |
| 17081 | fi |
| 17082 | else |
| 17083 | DX_PERL="$ac_cv_path_DX_PERL" |
| 17084 | fi |
| 17085 | |
| 17086 | if test "$DX_FLAG_doc$DX_PERL" = 1; then |
| 17087 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5 |
| 17088 | $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;} |
| 17089 | DX_FLAG_doc=0 |
| 17090 | |
| 17091 | fi |
| 17092 | |
| 17093 | : |
| 17094 | fi |
| 17095 | if test "$DX_FLAG_doc" = 1; then |
| 17096 | DX_COND_doc_TRUE= |
| 17097 | DX_COND_doc_FALSE='#' |
| 17098 | else |
| 17099 | DX_COND_doc_TRUE='#' |
| 17100 | DX_COND_doc_FALSE= |
| 17101 | fi |
| 17102 | |
| 17103 | if test "$DX_FLAG_doc" = 1; then |
| 17104 | DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'" |
| 17105 | |
| 17106 | : |
| 17107 | else |
| 17108 | |
| 17109 | : |
| 17110 | fi |
| 17111 | |
| 17112 | |
| 17113 | # Dot for graphics: |
| 17114 | |
| 17115 | |
| 17116 | |
| 17117 | # Check whether --enable-doxygen-dot was given. |
| 17118 | if test "${enable_doxygen_dot+set}" = set; then : |
| 17119 | enableval=$enable_doxygen_dot; |
| 17120 | case "$enableval" in |
| 17121 | #( |
| 17122 | y|Y|yes|Yes|YES) |
| 17123 | DX_FLAG_dot=1 |
| 17124 | |
| 17125 | |
| 17126 | test "$DX_FLAG_doc" = "1" \ |
| 17127 | || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5 |
| 17128 | |
| 17129 | ;; #( |
| 17130 | n|N|no|No|NO) |
| 17131 | DX_FLAG_dot=0 |
| 17132 | |
| 17133 | ;; #( |
| 17134 | *) |
| 17135 | as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5 |
| 17136 | ;; |
| 17137 | esac |
| 17138 | |
| 17139 | else |
| 17140 | |
| 17141 | DX_FLAG_dot=0 |
| 17142 | |
| 17143 | |
| 17144 | test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0 |
| 17145 | |
| 17146 | |
| 17147 | |
| 17148 | fi |
| 17149 | |
| 17150 | if test "$DX_FLAG_dot" = 1; then |
| 17151 | |
| 17152 | if test -n "$ac_tool_prefix"; then |
| 17153 | # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args. |
| 17154 | set dummy ${ac_tool_prefix}dot; ac_word=$2 |
| 17155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17156 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17157 | if ${ac_cv_path_DX_DOT+:} false; then : |
| 17158 | $as_echo_n "(cached) " >&6 |
| 17159 | else |
| 17160 | case $DX_DOT in |
| 17161 | [\\/]* | ?:[\\/]*) |
| 17162 | ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path. |
| 17163 | ;; |
| 17164 | *) |
| 17165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17166 | for as_dir in $PATH |
| 17167 | do |
| 17168 | IFS=$as_save_IFS |
| 17169 | test -z "$as_dir" && as_dir=. |
| 17170 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17171 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17172 | ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 17173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17174 | break 2 |
| 17175 | fi |
| 17176 | done |
| 17177 | done |
| 17178 | IFS=$as_save_IFS |
| 17179 | |
| 17180 | ;; |
| 17181 | esac |
| 17182 | fi |
| 17183 | DX_DOT=$ac_cv_path_DX_DOT |
| 17184 | if test -n "$DX_DOT"; then |
| 17185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5 |
| 17186 | $as_echo "$DX_DOT" >&6; } |
| 17187 | else |
| 17188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17189 | $as_echo "no" >&6; } |
| 17190 | fi |
| 17191 | |
| 17192 | |
| 17193 | fi |
| 17194 | if test -z "$ac_cv_path_DX_DOT"; then |
| 17195 | ac_pt_DX_DOT=$DX_DOT |
| 17196 | # Extract the first word of "dot", so it can be a program name with args. |
| 17197 | set dummy dot; ac_word=$2 |
| 17198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17199 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17200 | if ${ac_cv_path_ac_pt_DX_DOT+:} false; then : |
| 17201 | $as_echo_n "(cached) " >&6 |
| 17202 | else |
| 17203 | case $ac_pt_DX_DOT in |
| 17204 | [\\/]* | ?:[\\/]*) |
| 17205 | ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path. |
| 17206 | ;; |
| 17207 | *) |
| 17208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17209 | for as_dir in $PATH |
| 17210 | do |
| 17211 | IFS=$as_save_IFS |
| 17212 | test -z "$as_dir" && as_dir=. |
| 17213 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17214 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17215 | ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 17216 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17217 | break 2 |
| 17218 | fi |
| 17219 | done |
| 17220 | done |
| 17221 | IFS=$as_save_IFS |
| 17222 | |
| 17223 | ;; |
| 17224 | esac |
| 17225 | fi |
| 17226 | ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT |
| 17227 | if test -n "$ac_pt_DX_DOT"; then |
| 17228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5 |
| 17229 | $as_echo "$ac_pt_DX_DOT" >&6; } |
| 17230 | else |
| 17231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17232 | $as_echo "no" >&6; } |
| 17233 | fi |
| 17234 | |
| 17235 | if test "x$ac_pt_DX_DOT" = x; then |
| 17236 | DX_DOT="" |
| 17237 | else |
| 17238 | case $cross_compiling:$ac_tool_warned in |
| 17239 | yes:) |
| 17240 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17241 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17242 | ac_tool_warned=yes ;; |
| 17243 | esac |
| 17244 | DX_DOT=$ac_pt_DX_DOT |
| 17245 | fi |
| 17246 | else |
| 17247 | DX_DOT="$ac_cv_path_DX_DOT" |
| 17248 | fi |
| 17249 | |
| 17250 | if test "$DX_FLAG_dot$DX_DOT" = 1; then |
| 17251 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5 |
| 17252 | $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;} |
| 17253 | DX_FLAG_dot=0 |
| 17254 | |
| 17255 | fi |
| 17256 | |
| 17257 | : |
| 17258 | fi |
| 17259 | if test "$DX_FLAG_dot" = 1; then |
| 17260 | DX_COND_dot_TRUE= |
| 17261 | DX_COND_dot_FALSE='#' |
| 17262 | else |
| 17263 | DX_COND_dot_TRUE='#' |
| 17264 | DX_COND_dot_FALSE= |
| 17265 | fi |
| 17266 | |
| 17267 | if test "$DX_FLAG_dot" = 1; then |
| 17268 | DX_ENV="$DX_ENV HAVE_DOT='YES'" |
| 17269 | |
| 17270 | DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'" |
| 17271 | |
| 17272 | : |
| 17273 | else |
| 17274 | DX_ENV="$DX_ENV HAVE_DOT='NO'" |
| 17275 | |
| 17276 | : |
| 17277 | fi |
| 17278 | |
| 17279 | |
| 17280 | # Man pages generation: |
| 17281 | |
| 17282 | |
| 17283 | |
| 17284 | # Check whether --enable-doxygen-man was given. |
| 17285 | if test "${enable_doxygen_man+set}" = set; then : |
| 17286 | enableval=$enable_doxygen_man; |
| 17287 | case "$enableval" in |
| 17288 | #( |
| 17289 | y|Y|yes|Yes|YES) |
| 17290 | DX_FLAG_man=1 |
| 17291 | |
| 17292 | |
| 17293 | test "$DX_FLAG_doc" = "1" \ |
| 17294 | || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5 |
| 17295 | |
| 17296 | ;; #( |
| 17297 | n|N|no|No|NO) |
| 17298 | DX_FLAG_man=0 |
| 17299 | |
| 17300 | ;; #( |
| 17301 | *) |
| 17302 | as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5 |
| 17303 | ;; |
| 17304 | esac |
| 17305 | |
| 17306 | else |
| 17307 | |
| 17308 | DX_FLAG_man=0 |
| 17309 | |
| 17310 | |
| 17311 | test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0 |
| 17312 | |
| 17313 | |
| 17314 | |
| 17315 | fi |
| 17316 | |
| 17317 | if test "$DX_FLAG_man" = 1; then |
| 17318 | |
| 17319 | : |
| 17320 | fi |
| 17321 | if test "$DX_FLAG_man" = 1; then |
| 17322 | DX_COND_man_TRUE= |
| 17323 | DX_COND_man_FALSE='#' |
| 17324 | else |
| 17325 | DX_COND_man_TRUE='#' |
| 17326 | DX_COND_man_FALSE= |
| 17327 | fi |
| 17328 | |
| 17329 | if test "$DX_FLAG_man" = 1; then |
| 17330 | DX_ENV="$DX_ENV GENERATE_MAN='YES'" |
| 17331 | |
| 17332 | : |
| 17333 | else |
| 17334 | DX_ENV="$DX_ENV GENERATE_MAN='NO'" |
| 17335 | |
| 17336 | : |
| 17337 | fi |
| 17338 | |
| 17339 | |
| 17340 | # RTF file generation: |
| 17341 | |
| 17342 | |
| 17343 | |
| 17344 | # Check whether --enable-doxygen-rtf was given. |
| 17345 | if test "${enable_doxygen_rtf+set}" = set; then : |
| 17346 | enableval=$enable_doxygen_rtf; |
| 17347 | case "$enableval" in |
| 17348 | #( |
| 17349 | y|Y|yes|Yes|YES) |
| 17350 | DX_FLAG_rtf=1 |
| 17351 | |
| 17352 | |
| 17353 | test "$DX_FLAG_doc" = "1" \ |
| 17354 | || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5 |
| 17355 | |
| 17356 | ;; #( |
| 17357 | n|N|no|No|NO) |
| 17358 | DX_FLAG_rtf=0 |
| 17359 | |
| 17360 | ;; #( |
| 17361 | *) |
| 17362 | as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5 |
| 17363 | ;; |
| 17364 | esac |
| 17365 | |
| 17366 | else |
| 17367 | |
| 17368 | DX_FLAG_rtf=0 |
| 17369 | |
| 17370 | |
| 17371 | test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0 |
| 17372 | |
| 17373 | |
| 17374 | |
| 17375 | fi |
| 17376 | |
| 17377 | if test "$DX_FLAG_rtf" = 1; then |
| 17378 | |
| 17379 | : |
| 17380 | fi |
| 17381 | if test "$DX_FLAG_rtf" = 1; then |
| 17382 | DX_COND_rtf_TRUE= |
| 17383 | DX_COND_rtf_FALSE='#' |
| 17384 | else |
| 17385 | DX_COND_rtf_TRUE='#' |
| 17386 | DX_COND_rtf_FALSE= |
| 17387 | fi |
| 17388 | |
| 17389 | if test "$DX_FLAG_rtf" = 1; then |
| 17390 | DX_ENV="$DX_ENV GENERATE_RTF='YES'" |
| 17391 | |
| 17392 | : |
| 17393 | else |
| 17394 | DX_ENV="$DX_ENV GENERATE_RTF='NO'" |
| 17395 | |
| 17396 | : |
| 17397 | fi |
| 17398 | |
| 17399 | |
| 17400 | # XML file generation: |
| 17401 | |
| 17402 | |
| 17403 | |
| 17404 | # Check whether --enable-doxygen-xml was given. |
| 17405 | if test "${enable_doxygen_xml+set}" = set; then : |
| 17406 | enableval=$enable_doxygen_xml; |
| 17407 | case "$enableval" in |
| 17408 | #( |
| 17409 | y|Y|yes|Yes|YES) |
| 17410 | DX_FLAG_xml=1 |
| 17411 | |
| 17412 | |
| 17413 | test "$DX_FLAG_doc" = "1" \ |
| 17414 | || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5 |
| 17415 | |
| 17416 | ;; #( |
| 17417 | n|N|no|No|NO) |
| 17418 | DX_FLAG_xml=0 |
| 17419 | |
| 17420 | ;; #( |
| 17421 | *) |
| 17422 | as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5 |
| 17423 | ;; |
| 17424 | esac |
| 17425 | |
| 17426 | else |
| 17427 | |
| 17428 | DX_FLAG_xml=0 |
| 17429 | |
| 17430 | |
| 17431 | test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0 |
| 17432 | |
| 17433 | |
| 17434 | |
| 17435 | fi |
| 17436 | |
| 17437 | if test "$DX_FLAG_xml" = 1; then |
| 17438 | |
| 17439 | : |
| 17440 | fi |
| 17441 | if test "$DX_FLAG_xml" = 1; then |
| 17442 | DX_COND_xml_TRUE= |
| 17443 | DX_COND_xml_FALSE='#' |
| 17444 | else |
| 17445 | DX_COND_xml_TRUE='#' |
| 17446 | DX_COND_xml_FALSE= |
| 17447 | fi |
| 17448 | |
| 17449 | if test "$DX_FLAG_xml" = 1; then |
| 17450 | DX_ENV="$DX_ENV GENERATE_XML='YES'" |
| 17451 | |
| 17452 | : |
| 17453 | else |
| 17454 | DX_ENV="$DX_ENV GENERATE_XML='NO'" |
| 17455 | |
| 17456 | : |
| 17457 | fi |
| 17458 | |
| 17459 | |
| 17460 | # (Compressed) HTML help generation: |
| 17461 | |
| 17462 | |
| 17463 | |
| 17464 | # Check whether --enable-doxygen-chm was given. |
| 17465 | if test "${enable_doxygen_chm+set}" = set; then : |
| 17466 | enableval=$enable_doxygen_chm; |
| 17467 | case "$enableval" in |
| 17468 | #( |
| 17469 | y|Y|yes|Yes|YES) |
| 17470 | DX_FLAG_chm=1 |
| 17471 | |
| 17472 | |
| 17473 | test "$DX_FLAG_doc" = "1" \ |
| 17474 | || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5 |
| 17475 | |
| 17476 | ;; #( |
| 17477 | n|N|no|No|NO) |
| 17478 | DX_FLAG_chm=0 |
| 17479 | |
| 17480 | ;; #( |
| 17481 | *) |
| 17482 | as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5 |
| 17483 | ;; |
| 17484 | esac |
| 17485 | |
| 17486 | else |
| 17487 | |
| 17488 | DX_FLAG_chm=0 |
| 17489 | |
| 17490 | |
| 17491 | test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0 |
| 17492 | |
| 17493 | |
| 17494 | |
| 17495 | fi |
| 17496 | |
| 17497 | if test "$DX_FLAG_chm" = 1; then |
| 17498 | |
| 17499 | if test -n "$ac_tool_prefix"; then |
| 17500 | # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args. |
| 17501 | set dummy ${ac_tool_prefix}hhc; ac_word=$2 |
| 17502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17503 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17504 | if ${ac_cv_path_DX_HHC+:} false; then : |
| 17505 | $as_echo_n "(cached) " >&6 |
| 17506 | else |
| 17507 | case $DX_HHC in |
| 17508 | [\\/]* | ?:[\\/]*) |
| 17509 | ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path. |
| 17510 | ;; |
| 17511 | *) |
| 17512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17513 | for as_dir in $PATH |
| 17514 | do |
| 17515 | IFS=$as_save_IFS |
| 17516 | test -z "$as_dir" && as_dir=. |
| 17517 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17518 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17519 | ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext" |
| 17520 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17521 | break 2 |
| 17522 | fi |
| 17523 | done |
| 17524 | done |
| 17525 | IFS=$as_save_IFS |
| 17526 | |
| 17527 | ;; |
| 17528 | esac |
| 17529 | fi |
| 17530 | DX_HHC=$ac_cv_path_DX_HHC |
| 17531 | if test -n "$DX_HHC"; then |
| 17532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5 |
| 17533 | $as_echo "$DX_HHC" >&6; } |
| 17534 | else |
| 17535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17536 | $as_echo "no" >&6; } |
| 17537 | fi |
| 17538 | |
| 17539 | |
| 17540 | fi |
| 17541 | if test -z "$ac_cv_path_DX_HHC"; then |
| 17542 | ac_pt_DX_HHC=$DX_HHC |
| 17543 | # Extract the first word of "hhc", so it can be a program name with args. |
| 17544 | set dummy hhc; ac_word=$2 |
| 17545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17546 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17547 | if ${ac_cv_path_ac_pt_DX_HHC+:} false; then : |
| 17548 | $as_echo_n "(cached) " >&6 |
| 17549 | else |
| 17550 | case $ac_pt_DX_HHC in |
| 17551 | [\\/]* | ?:[\\/]*) |
| 17552 | ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path. |
| 17553 | ;; |
| 17554 | *) |
| 17555 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17556 | for as_dir in $PATH |
| 17557 | do |
| 17558 | IFS=$as_save_IFS |
| 17559 | test -z "$as_dir" && as_dir=. |
| 17560 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17561 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17562 | ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext" |
| 17563 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17564 | break 2 |
| 17565 | fi |
| 17566 | done |
| 17567 | done |
| 17568 | IFS=$as_save_IFS |
| 17569 | |
| 17570 | ;; |
| 17571 | esac |
| 17572 | fi |
| 17573 | ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC |
| 17574 | if test -n "$ac_pt_DX_HHC"; then |
| 17575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5 |
| 17576 | $as_echo "$ac_pt_DX_HHC" >&6; } |
| 17577 | else |
| 17578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17579 | $as_echo "no" >&6; } |
| 17580 | fi |
| 17581 | |
| 17582 | if test "x$ac_pt_DX_HHC" = x; then |
| 17583 | DX_HHC="" |
| 17584 | else |
| 17585 | case $cross_compiling:$ac_tool_warned in |
| 17586 | yes:) |
| 17587 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17588 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17589 | ac_tool_warned=yes ;; |
| 17590 | esac |
| 17591 | DX_HHC=$ac_pt_DX_HHC |
| 17592 | fi |
| 17593 | else |
| 17594 | DX_HHC="$ac_cv_path_DX_HHC" |
| 17595 | fi |
| 17596 | |
| 17597 | if test "$DX_FLAG_chm$DX_HHC" = 1; then |
| 17598 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5 |
| 17599 | $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;} |
| 17600 | DX_FLAG_chm=0 |
| 17601 | |
| 17602 | fi |
| 17603 | |
| 17604 | : |
| 17605 | fi |
| 17606 | if test "$DX_FLAG_chm" = 1; then |
| 17607 | DX_COND_chm_TRUE= |
| 17608 | DX_COND_chm_FALSE='#' |
| 17609 | else |
| 17610 | DX_COND_chm_TRUE='#' |
| 17611 | DX_COND_chm_FALSE= |
| 17612 | fi |
| 17613 | |
| 17614 | if test "$DX_FLAG_chm" = 1; then |
| 17615 | DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'" |
| 17616 | |
| 17617 | DX_ENV="$DX_ENV GENERATE_HTML='YES'" |
| 17618 | |
| 17619 | DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'" |
| 17620 | |
| 17621 | : |
| 17622 | else |
| 17623 | DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'" |
| 17624 | |
| 17625 | : |
| 17626 | fi |
| 17627 | |
| 17628 | |
| 17629 | # Seperate CHI file generation. |
| 17630 | |
| 17631 | |
| 17632 | |
| 17633 | # Check whether --enable-doxygen-chi was given. |
| 17634 | if test "${enable_doxygen_chi+set}" = set; then : |
| 17635 | enableval=$enable_doxygen_chi; |
| 17636 | case "$enableval" in |
| 17637 | #( |
| 17638 | y|Y|yes|Yes|YES) |
| 17639 | DX_FLAG_chi=1 |
| 17640 | |
| 17641 | |
| 17642 | test "$DX_FLAG_chm" = "1" \ |
| 17643 | || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5 |
| 17644 | |
| 17645 | ;; #( |
| 17646 | n|N|no|No|NO) |
| 17647 | DX_FLAG_chi=0 |
| 17648 | |
| 17649 | ;; #( |
| 17650 | *) |
| 17651 | as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5 |
| 17652 | ;; |
| 17653 | esac |
| 17654 | |
| 17655 | else |
| 17656 | |
| 17657 | DX_FLAG_chi=0 |
| 17658 | |
| 17659 | |
| 17660 | test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0 |
| 17661 | |
| 17662 | |
| 17663 | |
| 17664 | fi |
| 17665 | |
| 17666 | if test "$DX_FLAG_chi" = 1; then |
| 17667 | |
| 17668 | : |
| 17669 | fi |
| 17670 | if test "$DX_FLAG_chi" = 1; then |
| 17671 | DX_COND_chi_TRUE= |
| 17672 | DX_COND_chi_FALSE='#' |
| 17673 | else |
| 17674 | DX_COND_chi_TRUE='#' |
| 17675 | DX_COND_chi_FALSE= |
| 17676 | fi |
| 17677 | |
| 17678 | if test "$DX_FLAG_chi" = 1; then |
| 17679 | DX_ENV="$DX_ENV GENERATE_CHI='YES'" |
| 17680 | |
| 17681 | : |
| 17682 | else |
| 17683 | DX_ENV="$DX_ENV GENERATE_CHI='NO'" |
| 17684 | |
| 17685 | : |
| 17686 | fi |
| 17687 | |
| 17688 | |
| 17689 | # Plain HTML pages generation: |
| 17690 | |
| 17691 | |
| 17692 | |
| 17693 | # Check whether --enable-doxygen-html was given. |
| 17694 | if test "${enable_doxygen_html+set}" = set; then : |
| 17695 | enableval=$enable_doxygen_html; |
| 17696 | case "$enableval" in |
| 17697 | #( |
| 17698 | y|Y|yes|Yes|YES) |
| 17699 | DX_FLAG_html=1 |
| 17700 | |
| 17701 | |
| 17702 | test "$DX_FLAG_doc" = "1" \ |
| 17703 | || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5 |
| 17704 | |
| 17705 | test "$DX_FLAG_chm" = "0" \ |
| 17706 | || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5 |
| 17707 | |
| 17708 | ;; #( |
| 17709 | n|N|no|No|NO) |
| 17710 | DX_FLAG_html=0 |
| 17711 | |
| 17712 | ;; #( |
| 17713 | *) |
| 17714 | as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5 |
| 17715 | ;; |
| 17716 | esac |
| 17717 | |
| 17718 | else |
| 17719 | |
| 17720 | DX_FLAG_html=1 |
| 17721 | |
| 17722 | |
| 17723 | test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0 |
| 17724 | |
| 17725 | |
| 17726 | test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0 |
| 17727 | |
| 17728 | |
| 17729 | |
| 17730 | fi |
| 17731 | |
| 17732 | if test "$DX_FLAG_html" = 1; then |
| 17733 | |
| 17734 | : |
| 17735 | fi |
| 17736 | if test "$DX_FLAG_html" = 1; then |
| 17737 | DX_COND_html_TRUE= |
| 17738 | DX_COND_html_FALSE='#' |
| 17739 | else |
| 17740 | DX_COND_html_TRUE='#' |
| 17741 | DX_COND_html_FALSE= |
| 17742 | fi |
| 17743 | |
| 17744 | if test "$DX_FLAG_html" = 1; then |
| 17745 | DX_ENV="$DX_ENV GENERATE_HTML='YES'" |
| 17746 | |
| 17747 | : |
| 17748 | else |
| 17749 | test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'" |
| 17750 | |
| 17751 | : |
| 17752 | fi |
| 17753 | |
| 17754 | |
| 17755 | # PostScript file generation: |
| 17756 | |
| 17757 | |
| 17758 | |
| 17759 | # Check whether --enable-doxygen-ps was given. |
| 17760 | if test "${enable_doxygen_ps+set}" = set; then : |
| 17761 | enableval=$enable_doxygen_ps; |
| 17762 | case "$enableval" in |
| 17763 | #( |
| 17764 | y|Y|yes|Yes|YES) |
| 17765 | DX_FLAG_ps=1 |
| 17766 | |
| 17767 | |
| 17768 | test "$DX_FLAG_doc" = "1" \ |
| 17769 | || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5 |
| 17770 | |
| 17771 | ;; #( |
| 17772 | n|N|no|No|NO) |
| 17773 | DX_FLAG_ps=0 |
| 17774 | |
| 17775 | ;; #( |
| 17776 | *) |
| 17777 | as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5 |
| 17778 | ;; |
| 17779 | esac |
| 17780 | |
| 17781 | else |
| 17782 | |
| 17783 | DX_FLAG_ps=0 |
| 17784 | |
| 17785 | |
| 17786 | test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0 |
| 17787 | |
| 17788 | |
| 17789 | |
| 17790 | fi |
| 17791 | |
| 17792 | if test "$DX_FLAG_ps" = 1; then |
| 17793 | |
| 17794 | if test -n "$ac_tool_prefix"; then |
| 17795 | # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args. |
| 17796 | set dummy ${ac_tool_prefix}latex; ac_word=$2 |
| 17797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17798 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17799 | if ${ac_cv_path_DX_LATEX+:} false; then : |
| 17800 | $as_echo_n "(cached) " >&6 |
| 17801 | else |
| 17802 | case $DX_LATEX in |
| 17803 | [\\/]* | ?:[\\/]*) |
| 17804 | ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path. |
| 17805 | ;; |
| 17806 | *) |
| 17807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17808 | for as_dir in $PATH |
| 17809 | do |
| 17810 | IFS=$as_save_IFS |
| 17811 | test -z "$as_dir" && as_dir=. |
| 17812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17813 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17814 | ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" |
| 17815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17816 | break 2 |
| 17817 | fi |
| 17818 | done |
| 17819 | done |
| 17820 | IFS=$as_save_IFS |
| 17821 | |
| 17822 | ;; |
| 17823 | esac |
| 17824 | fi |
| 17825 | DX_LATEX=$ac_cv_path_DX_LATEX |
| 17826 | if test -n "$DX_LATEX"; then |
| 17827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5 |
| 17828 | $as_echo "$DX_LATEX" >&6; } |
| 17829 | else |
| 17830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17831 | $as_echo "no" >&6; } |
| 17832 | fi |
| 17833 | |
| 17834 | |
| 17835 | fi |
| 17836 | if test -z "$ac_cv_path_DX_LATEX"; then |
| 17837 | ac_pt_DX_LATEX=$DX_LATEX |
| 17838 | # Extract the first word of "latex", so it can be a program name with args. |
| 17839 | set dummy latex; ac_word=$2 |
| 17840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17841 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17842 | if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then : |
| 17843 | $as_echo_n "(cached) " >&6 |
| 17844 | else |
| 17845 | case $ac_pt_DX_LATEX in |
| 17846 | [\\/]* | ?:[\\/]*) |
| 17847 | ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path. |
| 17848 | ;; |
| 17849 | *) |
| 17850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17851 | for as_dir in $PATH |
| 17852 | do |
| 17853 | IFS=$as_save_IFS |
| 17854 | test -z "$as_dir" && as_dir=. |
| 17855 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17857 | ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" |
| 17858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17859 | break 2 |
| 17860 | fi |
| 17861 | done |
| 17862 | done |
| 17863 | IFS=$as_save_IFS |
| 17864 | |
| 17865 | ;; |
| 17866 | esac |
| 17867 | fi |
| 17868 | ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX |
| 17869 | if test -n "$ac_pt_DX_LATEX"; then |
| 17870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5 |
| 17871 | $as_echo "$ac_pt_DX_LATEX" >&6; } |
| 17872 | else |
| 17873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17874 | $as_echo "no" >&6; } |
| 17875 | fi |
| 17876 | |
| 17877 | if test "x$ac_pt_DX_LATEX" = x; then |
| 17878 | DX_LATEX="" |
| 17879 | else |
| 17880 | case $cross_compiling:$ac_tool_warned in |
| 17881 | yes:) |
| 17882 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17883 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17884 | ac_tool_warned=yes ;; |
| 17885 | esac |
| 17886 | DX_LATEX=$ac_pt_DX_LATEX |
| 17887 | fi |
| 17888 | else |
| 17889 | DX_LATEX="$ac_cv_path_DX_LATEX" |
| 17890 | fi |
| 17891 | |
| 17892 | if test "$DX_FLAG_ps$DX_LATEX" = 1; then |
| 17893 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5 |
| 17894 | $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;} |
| 17895 | DX_FLAG_ps=0 |
| 17896 | |
| 17897 | fi |
| 17898 | |
| 17899 | |
| 17900 | if test -n "$ac_tool_prefix"; then |
| 17901 | # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. |
| 17902 | set dummy ${ac_tool_prefix}makeindex; ac_word=$2 |
| 17903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17904 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17905 | if ${ac_cv_path_DX_MAKEINDEX+:} false; then : |
| 17906 | $as_echo_n "(cached) " >&6 |
| 17907 | else |
| 17908 | case $DX_MAKEINDEX in |
| 17909 | [\\/]* | ?:[\\/]*) |
| 17910 | ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. |
| 17911 | ;; |
| 17912 | *) |
| 17913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17914 | for as_dir in $PATH |
| 17915 | do |
| 17916 | IFS=$as_save_IFS |
| 17917 | test -z "$as_dir" && as_dir=. |
| 17918 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17919 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17920 | ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 17921 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17922 | break 2 |
| 17923 | fi |
| 17924 | done |
| 17925 | done |
| 17926 | IFS=$as_save_IFS |
| 17927 | |
| 17928 | ;; |
| 17929 | esac |
| 17930 | fi |
| 17931 | DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX |
| 17932 | if test -n "$DX_MAKEINDEX"; then |
| 17933 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 |
| 17934 | $as_echo "$DX_MAKEINDEX" >&6; } |
| 17935 | else |
| 17936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17937 | $as_echo "no" >&6; } |
| 17938 | fi |
| 17939 | |
| 17940 | |
| 17941 | fi |
| 17942 | if test -z "$ac_cv_path_DX_MAKEINDEX"; then |
| 17943 | ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX |
| 17944 | # Extract the first word of "makeindex", so it can be a program name with args. |
| 17945 | set dummy makeindex; ac_word=$2 |
| 17946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17947 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17948 | if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : |
| 17949 | $as_echo_n "(cached) " >&6 |
| 17950 | else |
| 17951 | case $ac_pt_DX_MAKEINDEX in |
| 17952 | [\\/]* | ?:[\\/]*) |
| 17953 | ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. |
| 17954 | ;; |
| 17955 | *) |
| 17956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17957 | for as_dir in $PATH |
| 17958 | do |
| 17959 | IFS=$as_save_IFS |
| 17960 | test -z "$as_dir" && as_dir=. |
| 17961 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17963 | ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 17964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17965 | break 2 |
| 17966 | fi |
| 17967 | done |
| 17968 | done |
| 17969 | IFS=$as_save_IFS |
| 17970 | |
| 17971 | ;; |
| 17972 | esac |
| 17973 | fi |
| 17974 | ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX |
| 17975 | if test -n "$ac_pt_DX_MAKEINDEX"; then |
| 17976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 |
| 17977 | $as_echo "$ac_pt_DX_MAKEINDEX" >&6; } |
| 17978 | else |
| 17979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17980 | $as_echo "no" >&6; } |
| 17981 | fi |
| 17982 | |
| 17983 | if test "x$ac_pt_DX_MAKEINDEX" = x; then |
| 17984 | DX_MAKEINDEX="" |
| 17985 | else |
| 17986 | case $cross_compiling:$ac_tool_warned in |
| 17987 | yes:) |
| 17988 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17989 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17990 | ac_tool_warned=yes ;; |
| 17991 | esac |
| 17992 | DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX |
| 17993 | fi |
| 17994 | else |
| 17995 | DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" |
| 17996 | fi |
| 17997 | |
| 17998 | if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then |
| 17999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5 |
| 18000 | $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;} |
| 18001 | DX_FLAG_ps=0 |
| 18002 | |
| 18003 | fi |
| 18004 | |
| 18005 | |
| 18006 | if test -n "$ac_tool_prefix"; then |
| 18007 | # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args. |
| 18008 | set dummy ${ac_tool_prefix}dvips; ac_word=$2 |
| 18009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18010 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18011 | if ${ac_cv_path_DX_DVIPS+:} false; then : |
| 18012 | $as_echo_n "(cached) " >&6 |
| 18013 | else |
| 18014 | case $DX_DVIPS in |
| 18015 | [\\/]* | ?:[\\/]*) |
| 18016 | ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path. |
| 18017 | ;; |
| 18018 | *) |
| 18019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18020 | for as_dir in $PATH |
| 18021 | do |
| 18022 | IFS=$as_save_IFS |
| 18023 | test -z "$as_dir" && as_dir=. |
| 18024 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18026 | ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" |
| 18027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18028 | break 2 |
| 18029 | fi |
| 18030 | done |
| 18031 | done |
| 18032 | IFS=$as_save_IFS |
| 18033 | |
| 18034 | ;; |
| 18035 | esac |
| 18036 | fi |
| 18037 | DX_DVIPS=$ac_cv_path_DX_DVIPS |
| 18038 | if test -n "$DX_DVIPS"; then |
| 18039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5 |
| 18040 | $as_echo "$DX_DVIPS" >&6; } |
| 18041 | else |
| 18042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18043 | $as_echo "no" >&6; } |
| 18044 | fi |
| 18045 | |
| 18046 | |
| 18047 | fi |
| 18048 | if test -z "$ac_cv_path_DX_DVIPS"; then |
| 18049 | ac_pt_DX_DVIPS=$DX_DVIPS |
| 18050 | # Extract the first word of "dvips", so it can be a program name with args. |
| 18051 | set dummy dvips; ac_word=$2 |
| 18052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18053 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18054 | if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then : |
| 18055 | $as_echo_n "(cached) " >&6 |
| 18056 | else |
| 18057 | case $ac_pt_DX_DVIPS in |
| 18058 | [\\/]* | ?:[\\/]*) |
| 18059 | ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path. |
| 18060 | ;; |
| 18061 | *) |
| 18062 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18063 | for as_dir in $PATH |
| 18064 | do |
| 18065 | IFS=$as_save_IFS |
| 18066 | test -z "$as_dir" && as_dir=. |
| 18067 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18068 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18069 | ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" |
| 18070 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18071 | break 2 |
| 18072 | fi |
| 18073 | done |
| 18074 | done |
| 18075 | IFS=$as_save_IFS |
| 18076 | |
| 18077 | ;; |
| 18078 | esac |
| 18079 | fi |
| 18080 | ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS |
| 18081 | if test -n "$ac_pt_DX_DVIPS"; then |
| 18082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5 |
| 18083 | $as_echo "$ac_pt_DX_DVIPS" >&6; } |
| 18084 | else |
| 18085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18086 | $as_echo "no" >&6; } |
| 18087 | fi |
| 18088 | |
| 18089 | if test "x$ac_pt_DX_DVIPS" = x; then |
| 18090 | DX_DVIPS="" |
| 18091 | else |
| 18092 | case $cross_compiling:$ac_tool_warned in |
| 18093 | yes:) |
| 18094 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18095 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18096 | ac_tool_warned=yes ;; |
| 18097 | esac |
| 18098 | DX_DVIPS=$ac_pt_DX_DVIPS |
| 18099 | fi |
| 18100 | else |
| 18101 | DX_DVIPS="$ac_cv_path_DX_DVIPS" |
| 18102 | fi |
| 18103 | |
| 18104 | if test "$DX_FLAG_ps$DX_DVIPS" = 1; then |
| 18105 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5 |
| 18106 | $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;} |
| 18107 | DX_FLAG_ps=0 |
| 18108 | |
| 18109 | fi |
| 18110 | |
| 18111 | |
| 18112 | if test -n "$ac_tool_prefix"; then |
| 18113 | # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. |
| 18114 | set dummy ${ac_tool_prefix}egrep; ac_word=$2 |
| 18115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18116 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18117 | if ${ac_cv_path_DX_EGREP+:} false; then : |
| 18118 | $as_echo_n "(cached) " >&6 |
| 18119 | else |
| 18120 | case $DX_EGREP in |
| 18121 | [\\/]* | ?:[\\/]*) |
| 18122 | ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. |
| 18123 | ;; |
| 18124 | *) |
| 18125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18126 | for as_dir in $PATH |
| 18127 | do |
| 18128 | IFS=$as_save_IFS |
| 18129 | test -z "$as_dir" && as_dir=. |
| 18130 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18131 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18132 | ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18134 | break 2 |
| 18135 | fi |
| 18136 | done |
| 18137 | done |
| 18138 | IFS=$as_save_IFS |
| 18139 | |
| 18140 | ;; |
| 18141 | esac |
| 18142 | fi |
| 18143 | DX_EGREP=$ac_cv_path_DX_EGREP |
| 18144 | if test -n "$DX_EGREP"; then |
| 18145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 |
| 18146 | $as_echo "$DX_EGREP" >&6; } |
| 18147 | else |
| 18148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18149 | $as_echo "no" >&6; } |
| 18150 | fi |
| 18151 | |
| 18152 | |
| 18153 | fi |
| 18154 | if test -z "$ac_cv_path_DX_EGREP"; then |
| 18155 | ac_pt_DX_EGREP=$DX_EGREP |
| 18156 | # Extract the first word of "egrep", so it can be a program name with args. |
| 18157 | set dummy egrep; ac_word=$2 |
| 18158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18159 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18160 | if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : |
| 18161 | $as_echo_n "(cached) " >&6 |
| 18162 | else |
| 18163 | case $ac_pt_DX_EGREP in |
| 18164 | [\\/]* | ?:[\\/]*) |
| 18165 | ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. |
| 18166 | ;; |
| 18167 | *) |
| 18168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18169 | for as_dir in $PATH |
| 18170 | do |
| 18171 | IFS=$as_save_IFS |
| 18172 | test -z "$as_dir" && as_dir=. |
| 18173 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18174 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18175 | ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18176 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18177 | break 2 |
| 18178 | fi |
| 18179 | done |
| 18180 | done |
| 18181 | IFS=$as_save_IFS |
| 18182 | |
| 18183 | ;; |
| 18184 | esac |
| 18185 | fi |
| 18186 | ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP |
| 18187 | if test -n "$ac_pt_DX_EGREP"; then |
| 18188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 |
| 18189 | $as_echo "$ac_pt_DX_EGREP" >&6; } |
| 18190 | else |
| 18191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18192 | $as_echo "no" >&6; } |
| 18193 | fi |
| 18194 | |
| 18195 | if test "x$ac_pt_DX_EGREP" = x; then |
| 18196 | DX_EGREP="" |
| 18197 | else |
| 18198 | case $cross_compiling:$ac_tool_warned in |
| 18199 | yes:) |
| 18200 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18201 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18202 | ac_tool_warned=yes ;; |
| 18203 | esac |
| 18204 | DX_EGREP=$ac_pt_DX_EGREP |
| 18205 | fi |
| 18206 | else |
| 18207 | DX_EGREP="$ac_cv_path_DX_EGREP" |
| 18208 | fi |
| 18209 | |
| 18210 | if test "$DX_FLAG_ps$DX_EGREP" = 1; then |
| 18211 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5 |
| 18212 | $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;} |
| 18213 | DX_FLAG_ps=0 |
| 18214 | |
| 18215 | fi |
| 18216 | |
| 18217 | : |
| 18218 | fi |
| 18219 | if test "$DX_FLAG_ps" = 1; then |
| 18220 | DX_COND_ps_TRUE= |
| 18221 | DX_COND_ps_FALSE='#' |
| 18222 | else |
| 18223 | DX_COND_ps_TRUE='#' |
| 18224 | DX_COND_ps_FALSE= |
| 18225 | fi |
| 18226 | |
| 18227 | if test "$DX_FLAG_ps" = 1; then |
| 18228 | |
| 18229 | : |
| 18230 | else |
| 18231 | |
| 18232 | : |
| 18233 | fi |
| 18234 | |
| 18235 | |
| 18236 | # PDF file generation: |
| 18237 | |
| 18238 | |
| 18239 | |
| 18240 | # Check whether --enable-doxygen-pdf was given. |
| 18241 | if test "${enable_doxygen_pdf+set}" = set; then : |
| 18242 | enableval=$enable_doxygen_pdf; |
| 18243 | case "$enableval" in |
| 18244 | #( |
| 18245 | y|Y|yes|Yes|YES) |
| 18246 | DX_FLAG_pdf=1 |
| 18247 | |
| 18248 | |
| 18249 | test "$DX_FLAG_doc" = "1" \ |
| 18250 | || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5 |
| 18251 | |
| 18252 | ;; #( |
| 18253 | n|N|no|No|NO) |
| 18254 | DX_FLAG_pdf=0 |
| 18255 | |
| 18256 | ;; #( |
| 18257 | *) |
| 18258 | as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5 |
| 18259 | ;; |
| 18260 | esac |
| 18261 | |
| 18262 | else |
| 18263 | |
| 18264 | DX_FLAG_pdf=0 |
| 18265 | |
| 18266 | |
| 18267 | test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0 |
| 18268 | |
| 18269 | |
| 18270 | |
| 18271 | fi |
| 18272 | |
| 18273 | if test "$DX_FLAG_pdf" = 1; then |
| 18274 | |
| 18275 | if test -n "$ac_tool_prefix"; then |
| 18276 | # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args. |
| 18277 | set dummy ${ac_tool_prefix}pdflatex; ac_word=$2 |
| 18278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18279 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18280 | if ${ac_cv_path_DX_PDFLATEX+:} false; then : |
| 18281 | $as_echo_n "(cached) " >&6 |
| 18282 | else |
| 18283 | case $DX_PDFLATEX in |
| 18284 | [\\/]* | ?:[\\/]*) |
| 18285 | ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path. |
| 18286 | ;; |
| 18287 | *) |
| 18288 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18289 | for as_dir in $PATH |
| 18290 | do |
| 18291 | IFS=$as_save_IFS |
| 18292 | test -z "$as_dir" && as_dir=. |
| 18293 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18294 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18295 | ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 18296 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18297 | break 2 |
| 18298 | fi |
| 18299 | done |
| 18300 | done |
| 18301 | IFS=$as_save_IFS |
| 18302 | |
| 18303 | ;; |
| 18304 | esac |
| 18305 | fi |
| 18306 | DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX |
| 18307 | if test -n "$DX_PDFLATEX"; then |
| 18308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5 |
| 18309 | $as_echo "$DX_PDFLATEX" >&6; } |
| 18310 | else |
| 18311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18312 | $as_echo "no" >&6; } |
| 18313 | fi |
| 18314 | |
| 18315 | |
| 18316 | fi |
| 18317 | if test -z "$ac_cv_path_DX_PDFLATEX"; then |
| 18318 | ac_pt_DX_PDFLATEX=$DX_PDFLATEX |
| 18319 | # Extract the first word of "pdflatex", so it can be a program name with args. |
| 18320 | set dummy pdflatex; ac_word=$2 |
| 18321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18322 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18323 | if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then : |
| 18324 | $as_echo_n "(cached) " >&6 |
| 18325 | else |
| 18326 | case $ac_pt_DX_PDFLATEX in |
| 18327 | [\\/]* | ?:[\\/]*) |
| 18328 | ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path. |
| 18329 | ;; |
| 18330 | *) |
| 18331 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18332 | for as_dir in $PATH |
| 18333 | do |
| 18334 | IFS=$as_save_IFS |
| 18335 | test -z "$as_dir" && as_dir=. |
| 18336 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18337 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18338 | ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 18339 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18340 | break 2 |
| 18341 | fi |
| 18342 | done |
| 18343 | done |
| 18344 | IFS=$as_save_IFS |
| 18345 | |
| 18346 | ;; |
| 18347 | esac |
| 18348 | fi |
| 18349 | ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX |
| 18350 | if test -n "$ac_pt_DX_PDFLATEX"; then |
| 18351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5 |
| 18352 | $as_echo "$ac_pt_DX_PDFLATEX" >&6; } |
| 18353 | else |
| 18354 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18355 | $as_echo "no" >&6; } |
| 18356 | fi |
| 18357 | |
| 18358 | if test "x$ac_pt_DX_PDFLATEX" = x; then |
| 18359 | DX_PDFLATEX="" |
| 18360 | else |
| 18361 | case $cross_compiling:$ac_tool_warned in |
| 18362 | yes:) |
| 18363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18364 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18365 | ac_tool_warned=yes ;; |
| 18366 | esac |
| 18367 | DX_PDFLATEX=$ac_pt_DX_PDFLATEX |
| 18368 | fi |
| 18369 | else |
| 18370 | DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX" |
| 18371 | fi |
| 18372 | |
| 18373 | if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then |
| 18374 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5 |
| 18375 | $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;} |
| 18376 | DX_FLAG_pdf=0 |
| 18377 | |
| 18378 | fi |
| 18379 | |
| 18380 | |
| 18381 | if test -n "$ac_tool_prefix"; then |
| 18382 | # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. |
| 18383 | set dummy ${ac_tool_prefix}makeindex; ac_word=$2 |
| 18384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18385 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18386 | if ${ac_cv_path_DX_MAKEINDEX+:} false; then : |
| 18387 | $as_echo_n "(cached) " >&6 |
| 18388 | else |
| 18389 | case $DX_MAKEINDEX in |
| 18390 | [\\/]* | ?:[\\/]*) |
| 18391 | ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. |
| 18392 | ;; |
| 18393 | *) |
| 18394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18395 | for as_dir in $PATH |
| 18396 | do |
| 18397 | IFS=$as_save_IFS |
| 18398 | test -z "$as_dir" && as_dir=. |
| 18399 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18400 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18401 | ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 18402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18403 | break 2 |
| 18404 | fi |
| 18405 | done |
| 18406 | done |
| 18407 | IFS=$as_save_IFS |
| 18408 | |
| 18409 | ;; |
| 18410 | esac |
| 18411 | fi |
| 18412 | DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX |
| 18413 | if test -n "$DX_MAKEINDEX"; then |
| 18414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 |
| 18415 | $as_echo "$DX_MAKEINDEX" >&6; } |
| 18416 | else |
| 18417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18418 | $as_echo "no" >&6; } |
| 18419 | fi |
| 18420 | |
| 18421 | |
| 18422 | fi |
| 18423 | if test -z "$ac_cv_path_DX_MAKEINDEX"; then |
| 18424 | ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX |
| 18425 | # Extract the first word of "makeindex", so it can be a program name with args. |
| 18426 | set dummy makeindex; ac_word=$2 |
| 18427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18428 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18429 | if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : |
| 18430 | $as_echo_n "(cached) " >&6 |
| 18431 | else |
| 18432 | case $ac_pt_DX_MAKEINDEX in |
| 18433 | [\\/]* | ?:[\\/]*) |
| 18434 | ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. |
| 18435 | ;; |
| 18436 | *) |
| 18437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18438 | for as_dir in $PATH |
| 18439 | do |
| 18440 | IFS=$as_save_IFS |
| 18441 | test -z "$as_dir" && as_dir=. |
| 18442 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18444 | ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 18445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18446 | break 2 |
| 18447 | fi |
| 18448 | done |
| 18449 | done |
| 18450 | IFS=$as_save_IFS |
| 18451 | |
| 18452 | ;; |
| 18453 | esac |
| 18454 | fi |
| 18455 | ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX |
| 18456 | if test -n "$ac_pt_DX_MAKEINDEX"; then |
| 18457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 |
| 18458 | $as_echo "$ac_pt_DX_MAKEINDEX" >&6; } |
| 18459 | else |
| 18460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18461 | $as_echo "no" >&6; } |
| 18462 | fi |
| 18463 | |
| 18464 | if test "x$ac_pt_DX_MAKEINDEX" = x; then |
| 18465 | DX_MAKEINDEX="" |
| 18466 | else |
| 18467 | case $cross_compiling:$ac_tool_warned in |
| 18468 | yes:) |
| 18469 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18470 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18471 | ac_tool_warned=yes ;; |
| 18472 | esac |
| 18473 | DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX |
| 18474 | fi |
| 18475 | else |
| 18476 | DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" |
| 18477 | fi |
| 18478 | |
| 18479 | if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then |
| 18480 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5 |
| 18481 | $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;} |
| 18482 | DX_FLAG_pdf=0 |
| 18483 | |
| 18484 | fi |
| 18485 | |
| 18486 | |
| 18487 | if test -n "$ac_tool_prefix"; then |
| 18488 | # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. |
| 18489 | set dummy ${ac_tool_prefix}egrep; ac_word=$2 |
| 18490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18491 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18492 | if ${ac_cv_path_DX_EGREP+:} false; then : |
| 18493 | $as_echo_n "(cached) " >&6 |
| 18494 | else |
| 18495 | case $DX_EGREP in |
| 18496 | [\\/]* | ?:[\\/]*) |
| 18497 | ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. |
| 18498 | ;; |
| 18499 | *) |
| 18500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18501 | for as_dir in $PATH |
| 18502 | do |
| 18503 | IFS=$as_save_IFS |
| 18504 | test -z "$as_dir" && as_dir=. |
| 18505 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18506 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18507 | ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18508 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18509 | break 2 |
| 18510 | fi |
| 18511 | done |
| 18512 | done |
| 18513 | IFS=$as_save_IFS |
| 18514 | |
| 18515 | ;; |
| 18516 | esac |
| 18517 | fi |
| 18518 | DX_EGREP=$ac_cv_path_DX_EGREP |
| 18519 | if test -n "$DX_EGREP"; then |
| 18520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 |
| 18521 | $as_echo "$DX_EGREP" >&6; } |
| 18522 | else |
| 18523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18524 | $as_echo "no" >&6; } |
| 18525 | fi |
| 18526 | |
| 18527 | |
| 18528 | fi |
| 18529 | if test -z "$ac_cv_path_DX_EGREP"; then |
| 18530 | ac_pt_DX_EGREP=$DX_EGREP |
| 18531 | # Extract the first word of "egrep", so it can be a program name with args. |
| 18532 | set dummy egrep; ac_word=$2 |
| 18533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18534 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18535 | if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : |
| 18536 | $as_echo_n "(cached) " >&6 |
| 18537 | else |
| 18538 | case $ac_pt_DX_EGREP in |
| 18539 | [\\/]* | ?:[\\/]*) |
| 18540 | ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. |
| 18541 | ;; |
| 18542 | *) |
| 18543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18544 | for as_dir in $PATH |
| 18545 | do |
| 18546 | IFS=$as_save_IFS |
| 18547 | test -z "$as_dir" && as_dir=. |
| 18548 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18549 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18550 | ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18551 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18552 | break 2 |
| 18553 | fi |
| 18554 | done |
| 18555 | done |
| 18556 | IFS=$as_save_IFS |
| 18557 | |
| 18558 | ;; |
| 18559 | esac |
| 18560 | fi |
| 18561 | ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP |
| 18562 | if test -n "$ac_pt_DX_EGREP"; then |
| 18563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 |
| 18564 | $as_echo "$ac_pt_DX_EGREP" >&6; } |
| 18565 | else |
| 18566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18567 | $as_echo "no" >&6; } |
| 18568 | fi |
| 18569 | |
| 18570 | if test "x$ac_pt_DX_EGREP" = x; then |
| 18571 | DX_EGREP="" |
| 18572 | else |
| 18573 | case $cross_compiling:$ac_tool_warned in |
| 18574 | yes:) |
| 18575 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18576 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18577 | ac_tool_warned=yes ;; |
| 18578 | esac |
| 18579 | DX_EGREP=$ac_pt_DX_EGREP |
| 18580 | fi |
| 18581 | else |
| 18582 | DX_EGREP="$ac_cv_path_DX_EGREP" |
| 18583 | fi |
| 18584 | |
| 18585 | if test "$DX_FLAG_pdf$DX_EGREP" = 1; then |
| 18586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5 |
| 18587 | $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;} |
| 18588 | DX_FLAG_pdf=0 |
| 18589 | |
| 18590 | fi |
| 18591 | |
| 18592 | : |
| 18593 | fi |
| 18594 | if test "$DX_FLAG_pdf" = 1; then |
| 18595 | DX_COND_pdf_TRUE= |
| 18596 | DX_COND_pdf_FALSE='#' |
| 18597 | else |
| 18598 | DX_COND_pdf_TRUE='#' |
| 18599 | DX_COND_pdf_FALSE= |
| 18600 | fi |
| 18601 | |
| 18602 | if test "$DX_FLAG_pdf" = 1; then |
| 18603 | |
| 18604 | : |
| 18605 | else |
| 18606 | |
| 18607 | : |
| 18608 | fi |
| 18609 | |
| 18610 | |
| 18611 | # LaTeX generation for PS and/or PDF: |
| 18612 | if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then |
| 18613 | DX_COND_latex_TRUE= |
| 18614 | DX_COND_latex_FALSE='#' |
| 18615 | else |
| 18616 | DX_COND_latex_TRUE='#' |
| 18617 | DX_COND_latex_FALSE= |
| 18618 | fi |
| 18619 | |
| 18620 | if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then |
| 18621 | DX_ENV="$DX_ENV GENERATE_LATEX='YES'" |
| 18622 | |
| 18623 | else |
| 18624 | DX_ENV="$DX_ENV GENERATE_LATEX='NO'" |
| 18625 | |
| 18626 | fi |
| 18627 | |
| 18628 | # Paper size for PS and/or PDF: |
| 18629 | |
| 18630 | case "$DOXYGEN_PAPER_SIZE" in |
| 18631 | #( |
| 18632 | "") |
| 18633 | DOXYGEN_PAPER_SIZE="" |
| 18634 | |
| 18635 | ;; #( |
| 18636 | a4wide|a4|letter|legal|executive) |
| 18637 | DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" |
| 18638 | |
| 18639 | ;; #( |
| 18640 | *) |
| 18641 | as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5 |
| 18642 | ;; |
| 18643 | esac |
| 18644 | |
| 18645 | #For debugging: |
| 18646 | #echo DX_FLAG_doc=$DX_FLAG_doc |
| 18647 | #echo DX_FLAG_dot=$DX_FLAG_dot |
| 18648 | #echo DX_FLAG_man=$DX_FLAG_man |
| 18649 | #echo DX_FLAG_html=$DX_FLAG_html |
| 18650 | #echo DX_FLAG_chm=$DX_FLAG_chm |
| 18651 | #echo DX_FLAG_chi=$DX_FLAG_chi |
| 18652 | #echo DX_FLAG_rtf=$DX_FLAG_rtf |
| 18653 | #echo DX_FLAG_xml=$DX_FLAG_xml |
| 18654 | #echo DX_FLAG_pdf=$DX_FLAG_pdf |
| 18655 | #echo DX_FLAG_ps=$DX_FLAG_ps |
| 18656 | #echo DX_ENV=$DX_ENV |
| 18657 | |
| 18658 | |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame^] | 18659 | ac_config_files="$ac_config_files Makefile include/Makefile" |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18660 | |
| 18661 | cat >confcache <<\_ACEOF |
| 18662 | # This file is a shell script that caches the results of configure |
| 18663 | # tests run on this system so they can be shared between configure |
| 18664 | # scripts and configure runs, see configure's option --config-cache. |
| 18665 | # It is not useful on other systems. If it contains results you don't |
| 18666 | # want to keep, you may remove or edit it. |
| 18667 | # |
| 18668 | # config.status only pays attention to the cache file if you give it |
| 18669 | # the --recheck option to rerun configure. |
| 18670 | # |
| 18671 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 18672 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18673 | # following values. |
| 18674 | |
| 18675 | _ACEOF |
| 18676 | |
| 18677 | # The following way of writing the cache mishandles newlines in values, |
| 18678 | # but we know of no workaround that is simple, portable, and efficient. |
| 18679 | # So, we kill variables containing newlines. |
| 18680 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18681 | # and sets the high bit in the cache file unless we assign to the vars. |
| 18682 | ( |
| 18683 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 18684 | eval ac_val=\$$ac_var |
| 18685 | case $ac_val in #( |
| 18686 | *${as_nl}*) |
| 18687 | case $ac_var in #( |
| 18688 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 18689 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 18690 | esac |
| 18691 | case $ac_var in #( |
| 18692 | _ | IFS | as_nl) ;; #( |
| 18693 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 18694 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 18695 | esac ;; |
| 18696 | esac |
| 18697 | done |
| 18698 | |
| 18699 | (set) 2>&1 | |
| 18700 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 18701 | *${as_nl}ac_space=\ *) |
| 18702 | # `set' does not quote correctly, so add quotes: double-quote |
| 18703 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 18704 | sed -n \ |
| 18705 | "s/'/'\\\\''/g; |
| 18706 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18707 | ;; #( |
| 18708 | *) |
| 18709 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18710 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 18711 | ;; |
| 18712 | esac | |
| 18713 | sort |
| 18714 | ) | |
| 18715 | sed ' |
| 18716 | /^ac_cv_env_/b end |
| 18717 | t clear |
| 18718 | :clear |
| 18719 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18720 | t end |
| 18721 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18722 | :end' >>confcache |
| 18723 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 18724 | if test -w "$cache_file"; then |
| 18725 | if test "x$cache_file" != "x/dev/null"; then |
| 18726 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 18727 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 18728 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 18729 | cat confcache >"$cache_file" |
| 18730 | else |
| 18731 | case $cache_file in #( |
| 18732 | */* | ?:*) |
| 18733 | mv -f confcache "$cache_file"$$ && |
| 18734 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 18735 | *) |
| 18736 | mv -f confcache "$cache_file" ;; |
| 18737 | esac |
| 18738 | fi |
| 18739 | fi |
| 18740 | else |
| 18741 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 18742 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 18743 | fi |
| 18744 | fi |
| 18745 | rm -f confcache |
| 18746 | |
| 18747 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18748 | # Let make expand exec_prefix. |
| 18749 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 18750 | |
| 18751 | DEFS=-DHAVE_CONFIG_H |
| 18752 | |
| 18753 | ac_libobjs= |
| 18754 | ac_ltlibobjs= |
| 18755 | U= |
| 18756 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18757 | # 1. Remove the extension, and $U if already installed. |
| 18758 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 18759 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 18760 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 18761 | # will be set to the directory where LIBOBJS objects are built. |
| 18762 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 18763 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 18764 | done |
| 18765 | LIBOBJS=$ac_libobjs |
| 18766 | |
| 18767 | LTLIBOBJS=$ac_ltlibobjs |
| 18768 | |
| 18769 | |
| 18770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 18771 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 18772 | if test -n "$am_sleep_pid"; then |
| 18773 | # Hide warnings about reused PIDs. |
| 18774 | wait $am_sleep_pid 2>/dev/null |
| 18775 | fi |
| 18776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 18777 | $as_echo "done" >&6; } |
| 18778 | if test -n "$EXEEXT"; then |
| 18779 | am__EXEEXT_TRUE= |
| 18780 | am__EXEEXT_FALSE='#' |
| 18781 | else |
| 18782 | am__EXEEXT_TRUE='#' |
| 18783 | am__EXEEXT_FALSE= |
| 18784 | fi |
| 18785 | |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 18786 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 18787 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 18788 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18789 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18790 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 18791 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 18792 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18793 | fi |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 18794 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 18795 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 18796 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18797 | fi |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 18798 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 18799 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 18800 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18801 | fi |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 18802 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then |
| 18803 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. |
| 18804 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18805 | fi |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 18806 | if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then |
| 18807 | as_fn_error $? "conditional \"DX_COND_doc\" was never defined. |
| 18808 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18809 | fi |
| 18810 | if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then |
| 18811 | as_fn_error $? "conditional \"DX_COND_dot\" was never defined. |
| 18812 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18813 | fi |
| 18814 | if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then |
| 18815 | as_fn_error $? "conditional \"DX_COND_man\" was never defined. |
| 18816 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18817 | fi |
| 18818 | if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then |
| 18819 | as_fn_error $? "conditional \"DX_COND_rtf\" was never defined. |
| 18820 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18821 | fi |
| 18822 | if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then |
| 18823 | as_fn_error $? "conditional \"DX_COND_xml\" was never defined. |
| 18824 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18825 | fi |
| 18826 | if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then |
| 18827 | as_fn_error $? "conditional \"DX_COND_chm\" was never defined. |
| 18828 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18829 | fi |
| 18830 | if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then |
| 18831 | as_fn_error $? "conditional \"DX_COND_chi\" was never defined. |
| 18832 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18833 | fi |
| 18834 | if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then |
| 18835 | as_fn_error $? "conditional \"DX_COND_html\" was never defined. |
| 18836 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18837 | fi |
| 18838 | if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then |
| 18839 | as_fn_error $? "conditional \"DX_COND_ps\" was never defined. |
| 18840 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18841 | fi |
| 18842 | if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then |
| 18843 | as_fn_error $? "conditional \"DX_COND_pdf\" was never defined. |
| 18844 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18845 | fi |
| 18846 | if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then |
| 18847 | as_fn_error $? "conditional \"DX_COND_latex\" was never defined. |
| 18848 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18849 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18850 | |
| 18851 | : "${CONFIG_STATUS=./config.status}" |
| 18852 | ac_write_fail=0 |
| 18853 | ac_clean_files_save=$ac_clean_files |
| 18854 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 18855 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 18856 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 18857 | as_write_fail=0 |
| 18858 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 18859 | #! $SHELL |
| 18860 | # Generated by $as_me. |
| 18861 | # Run this file to recreate the current configuration. |
| 18862 | # Compiler output produced by configure, useful for debugging |
| 18863 | # configure, is in config.log if it exists. |
| 18864 | |
| 18865 | debug=false |
| 18866 | ac_cs_recheck=false |
| 18867 | ac_cs_silent=false |
| 18868 | |
| 18869 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 18870 | export SHELL |
| 18871 | _ASEOF |
| 18872 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 18873 | ## -------------------- ## |
| 18874 | ## M4sh Initialization. ## |
| 18875 | ## -------------------- ## |
| 18876 | |
| 18877 | # Be more Bourne compatible |
| 18878 | DUALCASE=1; export DUALCASE # for MKS sh |
| 18879 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 18880 | emulate sh |
| 18881 | NULLCMD=: |
| 18882 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 18883 | # is contrary to our usage. Disable this feature. |
| 18884 | alias -g '${1+"$@"}'='"$@"' |
| 18885 | setopt NO_GLOB_SUBST |
| 18886 | else |
| 18887 | case `(set -o) 2>/dev/null` in #( |
| 18888 | *posix*) : |
| 18889 | set -o posix ;; #( |
| 18890 | *) : |
| 18891 | ;; |
| 18892 | esac |
| 18893 | fi |
| 18894 | |
| 18895 | |
| 18896 | as_nl=' |
| 18897 | ' |
| 18898 | export as_nl |
| 18899 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 18900 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 18901 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 18902 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 18903 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 18904 | # but without wasting forks for bash or zsh. |
| 18905 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 18906 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 18907 | as_echo='print -r --' |
| 18908 | as_echo_n='print -rn --' |
| 18909 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 18910 | as_echo='printf %s\n' |
| 18911 | as_echo_n='printf %s' |
| 18912 | else |
| 18913 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 18914 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 18915 | as_echo_n='/usr/ucb/echo -n' |
| 18916 | else |
| 18917 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 18918 | as_echo_n_body='eval |
| 18919 | arg=$1; |
| 18920 | case $arg in #( |
| 18921 | *"$as_nl"*) |
| 18922 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 18923 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 18924 | esac; |
| 18925 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 18926 | ' |
| 18927 | export as_echo_n_body |
| 18928 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 18929 | fi |
| 18930 | export as_echo_body |
| 18931 | as_echo='sh -c $as_echo_body as_echo' |
| 18932 | fi |
| 18933 | |
| 18934 | # The user is always right. |
| 18935 | if test "${PATH_SEPARATOR+set}" != set; then |
| 18936 | PATH_SEPARATOR=: |
| 18937 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 18938 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 18939 | PATH_SEPARATOR=';' |
| 18940 | } |
| 18941 | fi |
| 18942 | |
| 18943 | |
| 18944 | # IFS |
| 18945 | # We need space, tab and new line, in precisely that order. Quoting is |
| 18946 | # there to prevent editors from complaining about space-tab. |
| 18947 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 18948 | # splitting by setting IFS to empty value.) |
| 18949 | IFS=" "" $as_nl" |
| 18950 | |
| 18951 | # Find who we are. Look in the path if we contain no directory separator. |
| 18952 | as_myself= |
| 18953 | case $0 in #(( |
| 18954 | *[\\/]* ) as_myself=$0 ;; |
| 18955 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18956 | for as_dir in $PATH |
| 18957 | do |
| 18958 | IFS=$as_save_IFS |
| 18959 | test -z "$as_dir" && as_dir=. |
| 18960 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 18961 | done |
| 18962 | IFS=$as_save_IFS |
| 18963 | |
| 18964 | ;; |
| 18965 | esac |
| 18966 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 18967 | # in which case we are not to be found in the path. |
| 18968 | if test "x$as_myself" = x; then |
| 18969 | as_myself=$0 |
| 18970 | fi |
| 18971 | if test ! -f "$as_myself"; then |
| 18972 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 18973 | exit 1 |
| 18974 | fi |
| 18975 | |
| 18976 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 18977 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 18978 | # suppresses any "Segmentation fault" message there. '((' could |
| 18979 | # trigger a bug in pdksh 5.2.14. |
| 18980 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 18981 | do eval test x\${$as_var+set} = xset \ |
| 18982 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 18983 | done |
| 18984 | PS1='$ ' |
| 18985 | PS2='> ' |
| 18986 | PS4='+ ' |
| 18987 | |
| 18988 | # NLS nuisances. |
| 18989 | LC_ALL=C |
| 18990 | export LC_ALL |
| 18991 | LANGUAGE=C |
| 18992 | export LANGUAGE |
| 18993 | |
| 18994 | # CDPATH. |
| 18995 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 18996 | |
| 18997 | |
| 18998 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 18999 | # ---------------------------------------- |
| 19000 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 19001 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 19002 | # script with STATUS, using 1 if that was 0. |
| 19003 | as_fn_error () |
| 19004 | { |
| 19005 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 19006 | if test "$4"; then |
| 19007 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 19008 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 19009 | fi |
| 19010 | $as_echo "$as_me: error: $2" >&2 |
| 19011 | as_fn_exit $as_status |
| 19012 | } # as_fn_error |
| 19013 | |
| 19014 | |
| 19015 | # as_fn_set_status STATUS |
| 19016 | # ----------------------- |
| 19017 | # Set $? to STATUS, without forking. |
| 19018 | as_fn_set_status () |
| 19019 | { |
| 19020 | return $1 |
| 19021 | } # as_fn_set_status |
| 19022 | |
| 19023 | # as_fn_exit STATUS |
| 19024 | # ----------------- |
| 19025 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 19026 | as_fn_exit () |
| 19027 | { |
| 19028 | set +e |
| 19029 | as_fn_set_status $1 |
| 19030 | exit $1 |
| 19031 | } # as_fn_exit |
| 19032 | |
| 19033 | # as_fn_unset VAR |
| 19034 | # --------------- |
| 19035 | # Portably unset VAR. |
| 19036 | as_fn_unset () |
| 19037 | { |
| 19038 | { eval $1=; unset $1;} |
| 19039 | } |
| 19040 | as_unset=as_fn_unset |
| 19041 | # as_fn_append VAR VALUE |
| 19042 | # ---------------------- |
| 19043 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 19044 | # advantage of any shell optimizations that allow amortized linear growth over |
| 19045 | # repeated appends, instead of the typical quadratic growth present in naive |
| 19046 | # implementations. |
| 19047 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 19048 | eval 'as_fn_append () |
| 19049 | { |
| 19050 | eval $1+=\$2 |
| 19051 | }' |
| 19052 | else |
| 19053 | as_fn_append () |
| 19054 | { |
| 19055 | eval $1=\$$1\$2 |
| 19056 | } |
| 19057 | fi # as_fn_append |
| 19058 | |
| 19059 | # as_fn_arith ARG... |
| 19060 | # ------------------ |
| 19061 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 19062 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 19063 | # must be portable across $(()) and expr. |
| 19064 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 19065 | eval 'as_fn_arith () |
| 19066 | { |
| 19067 | as_val=$(( $* )) |
| 19068 | }' |
| 19069 | else |
| 19070 | as_fn_arith () |
| 19071 | { |
| 19072 | as_val=`expr "$@" || test $? -eq 1` |
| 19073 | } |
| 19074 | fi # as_fn_arith |
| 19075 | |
| 19076 | |
| 19077 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 19078 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 19079 | as_expr=expr |
| 19080 | else |
| 19081 | as_expr=false |
| 19082 | fi |
| 19083 | |
| 19084 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 19085 | as_basename=basename |
| 19086 | else |
| 19087 | as_basename=false |
| 19088 | fi |
| 19089 | |
| 19090 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 19091 | as_dirname=dirname |
| 19092 | else |
| 19093 | as_dirname=false |
| 19094 | fi |
| 19095 | |
| 19096 | as_me=`$as_basename -- "$0" || |
| 19097 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 19098 | X"$0" : 'X\(//\)$' \| \ |
| 19099 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 19100 | $as_echo X/"$0" | |
| 19101 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 19102 | s//\1/ |
| 19103 | q |
| 19104 | } |
| 19105 | /^X\/\(\/\/\)$/{ |
| 19106 | s//\1/ |
| 19107 | q |
| 19108 | } |
| 19109 | /^X\/\(\/\).*/{ |
| 19110 | s//\1/ |
| 19111 | q |
| 19112 | } |
| 19113 | s/.*/./; q'` |
| 19114 | |
| 19115 | # Avoid depending upon Character Ranges. |
| 19116 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19117 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19118 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19119 | as_cr_digits='0123456789' |
| 19120 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 19121 | |
| 19122 | ECHO_C= ECHO_N= ECHO_T= |
| 19123 | case `echo -n x` in #((((( |
| 19124 | -n*) |
| 19125 | case `echo 'xy\c'` in |
| 19126 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 19127 | xy) ECHO_C='\c';; |
| 19128 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 19129 | ECHO_T=' ';; |
| 19130 | esac;; |
| 19131 | *) |
| 19132 | ECHO_N='-n';; |
| 19133 | esac |
| 19134 | |
| 19135 | rm -f conf$$ conf$$.exe conf$$.file |
| 19136 | if test -d conf$$.dir; then |
| 19137 | rm -f conf$$.dir/conf$$.file |
| 19138 | else |
| 19139 | rm -f conf$$.dir |
| 19140 | mkdir conf$$.dir 2>/dev/null |
| 19141 | fi |
| 19142 | if (echo >conf$$.file) 2>/dev/null; then |
| 19143 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 19144 | as_ln_s='ln -s' |
| 19145 | # ... but there are two gotchas: |
| 19146 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 19147 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 19148 | # In both cases, we have to default to `cp -pR'. |
| 19149 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 19150 | as_ln_s='cp -pR' |
| 19151 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19152 | as_ln_s=ln |
| 19153 | else |
| 19154 | as_ln_s='cp -pR' |
| 19155 | fi |
| 19156 | else |
| 19157 | as_ln_s='cp -pR' |
| 19158 | fi |
| 19159 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 19160 | rmdir conf$$.dir 2>/dev/null |
| 19161 | |
| 19162 | |
| 19163 | # as_fn_mkdir_p |
| 19164 | # ------------- |
| 19165 | # Create "$as_dir" as a directory, including parents if necessary. |
| 19166 | as_fn_mkdir_p () |
| 19167 | { |
| 19168 | |
| 19169 | case $as_dir in #( |
| 19170 | -*) as_dir=./$as_dir;; |
| 19171 | esac |
| 19172 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 19173 | as_dirs= |
| 19174 | while :; do |
| 19175 | case $as_dir in #( |
| 19176 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 19177 | *) as_qdir=$as_dir;; |
| 19178 | esac |
| 19179 | as_dirs="'$as_qdir' $as_dirs" |
| 19180 | as_dir=`$as_dirname -- "$as_dir" || |
| 19181 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19182 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19183 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19184 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 19185 | $as_echo X"$as_dir" | |
| 19186 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19187 | s//\1/ |
| 19188 | q |
| 19189 | } |
| 19190 | /^X\(\/\/\)[^/].*/{ |
| 19191 | s//\1/ |
| 19192 | q |
| 19193 | } |
| 19194 | /^X\(\/\/\)$/{ |
| 19195 | s//\1/ |
| 19196 | q |
| 19197 | } |
| 19198 | /^X\(\/\).*/{ |
| 19199 | s//\1/ |
| 19200 | q |
| 19201 | } |
| 19202 | s/.*/./; q'` |
| 19203 | test -d "$as_dir" && break |
| 19204 | done |
| 19205 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 19206 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 19207 | |
| 19208 | |
| 19209 | } # as_fn_mkdir_p |
| 19210 | if mkdir -p . 2>/dev/null; then |
| 19211 | as_mkdir_p='mkdir -p "$as_dir"' |
| 19212 | else |
| 19213 | test -d ./-p && rmdir ./-p |
| 19214 | as_mkdir_p=false |
| 19215 | fi |
| 19216 | |
| 19217 | |
| 19218 | # as_fn_executable_p FILE |
| 19219 | # ----------------------- |
| 19220 | # Test if FILE is an executable regular file. |
| 19221 | as_fn_executable_p () |
| 19222 | { |
| 19223 | test -f "$1" && test -x "$1" |
| 19224 | } # as_fn_executable_p |
| 19225 | as_test_x='test -x' |
| 19226 | as_executable_p=as_fn_executable_p |
| 19227 | |
| 19228 | # Sed expression to map a string onto a valid CPP name. |
| 19229 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 19230 | |
| 19231 | # Sed expression to map a string onto a valid variable name. |
| 19232 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 19233 | |
| 19234 | |
| 19235 | exec 6>&1 |
| 19236 | ## ----------------------------------- ## |
| 19237 | ## Main body of $CONFIG_STATUS script. ## |
| 19238 | ## ----------------------------------- ## |
| 19239 | _ASEOF |
| 19240 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 19241 | |
| 19242 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19243 | # Save the log message, to keep $0 and so on meaningful, and to |
| 19244 | # report actual input values of CONFIG_FILES etc. instead of their |
| 19245 | # values after options handling. |
| 19246 | ac_log=" |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 19247 | This file was extended by ndn-cpp $as_me 0.2, which was |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19248 | generated by GNU Autoconf 2.69. Invocation command line was |
| 19249 | |
| 19250 | CONFIG_FILES = $CONFIG_FILES |
| 19251 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 19252 | CONFIG_LINKS = $CONFIG_LINKS |
| 19253 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19254 | $ $0 $@ |
| 19255 | |
| 19256 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 19257 | " |
| 19258 | |
| 19259 | _ACEOF |
| 19260 | |
| 19261 | case $ac_config_files in *" |
| 19262 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 19263 | esac |
| 19264 | |
| 19265 | case $ac_config_headers in *" |
| 19266 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 19267 | esac |
| 19268 | |
| 19269 | |
| 19270 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19271 | # Files that config.status was made for. |
| 19272 | config_files="$ac_config_files" |
| 19273 | config_headers="$ac_config_headers" |
| 19274 | config_commands="$ac_config_commands" |
| 19275 | |
| 19276 | _ACEOF |
| 19277 | |
| 19278 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19279 | ac_cs_usage="\ |
| 19280 | \`$as_me' instantiates files and other configuration actions |
| 19281 | from templates according to the current configuration. Unless the files |
| 19282 | and actions are specified as TAGs, all are instantiated by default. |
| 19283 | |
| 19284 | Usage: $0 [OPTION]... [TAG]... |
| 19285 | |
| 19286 | -h, --help print this help, then exit |
| 19287 | -V, --version print version number and configuration settings, then exit |
| 19288 | --config print configuration, then exit |
| 19289 | -q, --quiet, --silent |
| 19290 | do not print progress messages |
| 19291 | -d, --debug don't remove temporary files |
| 19292 | --recheck update $as_me by reconfiguring in the same conditions |
| 19293 | --file=FILE[:TEMPLATE] |
| 19294 | instantiate the configuration file FILE |
| 19295 | --header=FILE[:TEMPLATE] |
| 19296 | instantiate the configuration header FILE |
| 19297 | |
| 19298 | Configuration files: |
| 19299 | $config_files |
| 19300 | |
| 19301 | Configuration headers: |
| 19302 | $config_headers |
| 19303 | |
| 19304 | Configuration commands: |
| 19305 | $config_commands |
| 19306 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 19307 | Report bugs to <ndn-lib@lists.cs.ucla.edu>. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19308 | ndn-cpp home page: <https://github.com/named-data/ndn-cpp>." |
| 19309 | |
| 19310 | _ACEOF |
| 19311 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19312 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 19313 | ac_cs_version="\\ |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 19314 | ndn-cpp config.status 0.2 |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19315 | configured by $0, generated by GNU Autoconf 2.69, |
| 19316 | with options \\"\$ac_cs_config\\" |
| 19317 | |
| 19318 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 19319 | This config.status script is free software; the Free Software Foundation |
| 19320 | gives unlimited permission to copy, distribute and modify it." |
| 19321 | |
| 19322 | ac_pwd='$ac_pwd' |
| 19323 | srcdir='$srcdir' |
| 19324 | INSTALL='$INSTALL' |
| 19325 | MKDIR_P='$MKDIR_P' |
| 19326 | AWK='$AWK' |
| 19327 | test -n "\$AWK" || AWK=awk |
| 19328 | _ACEOF |
| 19329 | |
| 19330 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19331 | # The default lists apply if the user does not specify any file. |
| 19332 | ac_need_defaults=: |
| 19333 | while test $# != 0 |
| 19334 | do |
| 19335 | case $1 in |
| 19336 | --*=?*) |
| 19337 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19338 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 19339 | ac_shift=: |
| 19340 | ;; |
| 19341 | --*=) |
| 19342 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19343 | ac_optarg= |
| 19344 | ac_shift=: |
| 19345 | ;; |
| 19346 | *) |
| 19347 | ac_option=$1 |
| 19348 | ac_optarg=$2 |
| 19349 | ac_shift=shift |
| 19350 | ;; |
| 19351 | esac |
| 19352 | |
| 19353 | case $ac_option in |
| 19354 | # Handling of the options. |
| 19355 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19356 | ac_cs_recheck=: ;; |
| 19357 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 19358 | $as_echo "$ac_cs_version"; exit ;; |
| 19359 | --config | --confi | --conf | --con | --co | --c ) |
| 19360 | $as_echo "$ac_cs_config"; exit ;; |
| 19361 | --debug | --debu | --deb | --de | --d | -d ) |
| 19362 | debug=: ;; |
| 19363 | --file | --fil | --fi | --f ) |
| 19364 | $ac_shift |
| 19365 | case $ac_optarg in |
| 19366 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 19367 | '') as_fn_error $? "missing file argument" ;; |
| 19368 | esac |
| 19369 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 19370 | ac_need_defaults=false;; |
| 19371 | --header | --heade | --head | --hea ) |
| 19372 | $ac_shift |
| 19373 | case $ac_optarg in |
| 19374 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 19375 | esac |
| 19376 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 19377 | ac_need_defaults=false;; |
| 19378 | --he | --h) |
| 19379 | # Conflict between --help and --header |
| 19380 | as_fn_error $? "ambiguous option: \`$1' |
| 19381 | Try \`$0 --help' for more information.";; |
| 19382 | --help | --hel | -h ) |
| 19383 | $as_echo "$ac_cs_usage"; exit ;; |
| 19384 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19385 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19386 | ac_cs_silent=: ;; |
| 19387 | |
| 19388 | # This is an error. |
| 19389 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 19390 | Try \`$0 --help' for more information." ;; |
| 19391 | |
| 19392 | *) as_fn_append ac_config_targets " $1" |
| 19393 | ac_need_defaults=false ;; |
| 19394 | |
| 19395 | esac |
| 19396 | shift |
| 19397 | done |
| 19398 | |
| 19399 | ac_configure_extra_args= |
| 19400 | |
| 19401 | if $ac_cs_silent; then |
| 19402 | exec 6>/dev/null |
| 19403 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 19404 | fi |
| 19405 | |
| 19406 | _ACEOF |
| 19407 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19408 | if \$ac_cs_recheck; then |
| 19409 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 19410 | shift |
| 19411 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 19412 | CONFIG_SHELL='$SHELL' |
| 19413 | export CONFIG_SHELL |
| 19414 | exec "\$@" |
| 19415 | fi |
| 19416 | |
| 19417 | _ACEOF |
| 19418 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19419 | exec 5>>config.log |
| 19420 | { |
| 19421 | echo |
| 19422 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 19423 | ## Running $as_me. ## |
| 19424 | _ASBOX |
| 19425 | $as_echo "$ac_log" |
| 19426 | } >&5 |
| 19427 | |
| 19428 | _ACEOF |
| 19429 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19430 | # |
| 19431 | # INIT-COMMANDS |
| 19432 | # |
Jeff Thompson | b752300 | 2013-10-09 10:25:00 -0700 | [diff] [blame] | 19433 | PACKAGE="$PACKAGE" |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19434 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 19435 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 19436 | |
| 19437 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 19438 | # if CDPATH is set. |
| 19439 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 19440 | |
| 19441 | sed_quote_subst='$sed_quote_subst' |
| 19442 | double_quote_subst='$double_quote_subst' |
| 19443 | delay_variable_subst='$delay_variable_subst' |
| 19444 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 19445 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 19446 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 19447 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 19448 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 19449 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 19450 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 19451 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 19452 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 19453 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 19454 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 19455 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 19456 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 19457 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 19458 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 19459 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 19460 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 19461 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 19462 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 19463 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 19464 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 19465 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 19466 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 19467 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 19468 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 19469 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 19470 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 19471 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 19472 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 19473 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 19474 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 19475 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 19476 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 19477 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 19478 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 19479 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 19480 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 19481 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 19482 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 19483 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 19484 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 19485 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 19486 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19487 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 19488 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 19489 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19490 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19491 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 19492 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 19493 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 19494 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 19495 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 19496 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 19497 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 19498 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 19499 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 19500 | 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"`' |
| 19501 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19502 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 19503 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 19504 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 19505 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 19506 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 19507 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 19508 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 19509 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 19510 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 19511 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 19512 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 19513 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 19514 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 19515 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 19516 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 19517 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 19518 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 19519 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 19520 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 19521 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 19522 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19523 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19524 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 19525 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 19526 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 19527 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 19528 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 19529 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 19530 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 19531 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 19532 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 19533 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 19534 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19535 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 19536 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 19537 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 19538 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 19539 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 19540 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 19541 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 19542 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 19543 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 19544 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 19545 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 19546 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 19547 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 19548 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 19549 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19550 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 19551 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 19552 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 19553 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 19554 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 19555 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 19556 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 19557 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 19558 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 19559 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 19560 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 19561 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19562 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19563 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 19564 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 19565 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 19566 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 19567 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 19568 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 19569 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 19570 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 19571 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 19572 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 19573 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 19574 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 19575 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 19576 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 19577 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 19578 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 19579 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 19580 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 19581 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19582 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19583 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19584 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 19585 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 19586 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19587 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 19588 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 19589 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 19590 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 19591 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 19592 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 19593 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19594 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19595 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 19596 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19597 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19598 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19599 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19600 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19601 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19602 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 19603 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19604 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19605 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19606 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 19607 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 19608 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 19609 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 19610 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 19611 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 19612 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 19613 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 19614 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 19615 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19616 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 19617 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 19618 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19619 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19620 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19621 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 19622 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 19623 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 19624 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 19625 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 19626 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 19627 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 19628 | |
| 19629 | LTCC='$LTCC' |
| 19630 | LTCFLAGS='$LTCFLAGS' |
| 19631 | compiler='$compiler_DEFAULT' |
| 19632 | |
| 19633 | # A function that is used when there is no print builtin or printf. |
| 19634 | func_fallback_echo () |
| 19635 | { |
| 19636 | eval 'cat <<_LTECHO_EOF |
| 19637 | \$1 |
| 19638 | _LTECHO_EOF' |
| 19639 | } |
| 19640 | |
| 19641 | # Quote evaled strings. |
| 19642 | for var in SHELL \ |
| 19643 | ECHO \ |
| 19644 | PATH_SEPARATOR \ |
| 19645 | SED \ |
| 19646 | GREP \ |
| 19647 | EGREP \ |
| 19648 | FGREP \ |
| 19649 | LD \ |
| 19650 | NM \ |
| 19651 | LN_S \ |
| 19652 | lt_SP2NL \ |
| 19653 | lt_NL2SP \ |
| 19654 | reload_flag \ |
| 19655 | OBJDUMP \ |
| 19656 | deplibs_check_method \ |
| 19657 | file_magic_cmd \ |
| 19658 | file_magic_glob \ |
| 19659 | want_nocaseglob \ |
| 19660 | DLLTOOL \ |
| 19661 | sharedlib_from_linklib_cmd \ |
| 19662 | AR \ |
| 19663 | AR_FLAGS \ |
| 19664 | archiver_list_spec \ |
| 19665 | STRIP \ |
| 19666 | RANLIB \ |
| 19667 | CC \ |
| 19668 | CFLAGS \ |
| 19669 | compiler \ |
| 19670 | lt_cv_sys_global_symbol_pipe \ |
| 19671 | lt_cv_sys_global_symbol_to_cdecl \ |
| 19672 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19673 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 19674 | nm_file_list_spec \ |
| 19675 | lt_prog_compiler_no_builtin_flag \ |
| 19676 | lt_prog_compiler_pic \ |
| 19677 | lt_prog_compiler_wl \ |
| 19678 | lt_prog_compiler_static \ |
| 19679 | lt_cv_prog_compiler_c_o \ |
| 19680 | need_locks \ |
| 19681 | MANIFEST_TOOL \ |
| 19682 | DSYMUTIL \ |
| 19683 | NMEDIT \ |
| 19684 | LIPO \ |
| 19685 | OTOOL \ |
| 19686 | OTOOL64 \ |
| 19687 | shrext_cmds \ |
| 19688 | export_dynamic_flag_spec \ |
| 19689 | whole_archive_flag_spec \ |
| 19690 | compiler_needs_object \ |
| 19691 | with_gnu_ld \ |
| 19692 | allow_undefined_flag \ |
| 19693 | no_undefined_flag \ |
| 19694 | hardcode_libdir_flag_spec \ |
| 19695 | hardcode_libdir_separator \ |
| 19696 | exclude_expsyms \ |
| 19697 | include_expsyms \ |
| 19698 | file_list_spec \ |
| 19699 | variables_saved_for_relink \ |
| 19700 | libname_spec \ |
| 19701 | library_names_spec \ |
| 19702 | soname_spec \ |
| 19703 | install_override_mode \ |
| 19704 | finish_eval \ |
| 19705 | old_striplib \ |
| 19706 | striplib \ |
| 19707 | compiler_lib_search_dirs \ |
| 19708 | predep_objects \ |
| 19709 | postdep_objects \ |
| 19710 | predeps \ |
| 19711 | postdeps \ |
| 19712 | compiler_lib_search_path \ |
| 19713 | LD_CXX \ |
| 19714 | reload_flag_CXX \ |
| 19715 | compiler_CXX \ |
| 19716 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 19717 | lt_prog_compiler_pic_CXX \ |
| 19718 | lt_prog_compiler_wl_CXX \ |
| 19719 | lt_prog_compiler_static_CXX \ |
| 19720 | lt_cv_prog_compiler_c_o_CXX \ |
| 19721 | export_dynamic_flag_spec_CXX \ |
| 19722 | whole_archive_flag_spec_CXX \ |
| 19723 | compiler_needs_object_CXX \ |
| 19724 | with_gnu_ld_CXX \ |
| 19725 | allow_undefined_flag_CXX \ |
| 19726 | no_undefined_flag_CXX \ |
| 19727 | hardcode_libdir_flag_spec_CXX \ |
| 19728 | hardcode_libdir_separator_CXX \ |
| 19729 | exclude_expsyms_CXX \ |
| 19730 | include_expsyms_CXX \ |
| 19731 | file_list_spec_CXX \ |
| 19732 | compiler_lib_search_dirs_CXX \ |
| 19733 | predep_objects_CXX \ |
| 19734 | postdep_objects_CXX \ |
| 19735 | predeps_CXX \ |
| 19736 | postdeps_CXX \ |
| 19737 | compiler_lib_search_path_CXX; do |
| 19738 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 19739 | *[\\\\\\\`\\"\\\$]*) |
| 19740 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 19741 | ;; |
| 19742 | *) |
| 19743 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 19744 | ;; |
| 19745 | esac |
| 19746 | done |
| 19747 | |
| 19748 | # Double-quote double-evaled strings. |
| 19749 | for var in reload_cmds \ |
| 19750 | old_postinstall_cmds \ |
| 19751 | old_postuninstall_cmds \ |
| 19752 | old_archive_cmds \ |
| 19753 | extract_expsyms_cmds \ |
| 19754 | old_archive_from_new_cmds \ |
| 19755 | old_archive_from_expsyms_cmds \ |
| 19756 | archive_cmds \ |
| 19757 | archive_expsym_cmds \ |
| 19758 | module_cmds \ |
| 19759 | module_expsym_cmds \ |
| 19760 | export_symbols_cmds \ |
| 19761 | prelink_cmds \ |
| 19762 | postlink_cmds \ |
| 19763 | postinstall_cmds \ |
| 19764 | postuninstall_cmds \ |
| 19765 | finish_cmds \ |
| 19766 | sys_lib_search_path_spec \ |
| 19767 | sys_lib_dlsearch_path_spec \ |
| 19768 | reload_cmds_CXX \ |
| 19769 | old_archive_cmds_CXX \ |
| 19770 | old_archive_from_new_cmds_CXX \ |
| 19771 | old_archive_from_expsyms_cmds_CXX \ |
| 19772 | archive_cmds_CXX \ |
| 19773 | archive_expsym_cmds_CXX \ |
| 19774 | module_cmds_CXX \ |
| 19775 | module_expsym_cmds_CXX \ |
| 19776 | export_symbols_cmds_CXX \ |
| 19777 | prelink_cmds_CXX \ |
| 19778 | postlink_cmds_CXX; do |
| 19779 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 19780 | *[\\\\\\\`\\"\\\$]*) |
| 19781 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 19782 | ;; |
| 19783 | *) |
| 19784 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 19785 | ;; |
| 19786 | esac |
| 19787 | done |
| 19788 | |
| 19789 | ac_aux_dir='$ac_aux_dir' |
| 19790 | xsi_shell='$xsi_shell' |
| 19791 | lt_shell_append='$lt_shell_append' |
| 19792 | |
| 19793 | # See if we are running on zsh, and set the options which allow our |
| 19794 | # commands through without removal of \ escapes INIT. |
| 19795 | if test -n "\${ZSH_VERSION+set}" ; then |
| 19796 | setopt NO_GLOB_SUBST |
| 19797 | fi |
| 19798 | |
| 19799 | |
| 19800 | PACKAGE='$PACKAGE' |
| 19801 | VERSION='$VERSION' |
| 19802 | TIMESTAMP='$TIMESTAMP' |
| 19803 | RM='$RM' |
| 19804 | ofile='$ofile' |
| 19805 | |
| 19806 | |
| 19807 | |
| 19808 | |
| 19809 | |
| 19810 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19811 | _ACEOF |
| 19812 | |
| 19813 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19814 | |
| 19815 | # Handling of arguments. |
| 19816 | for ac_config_target in $ac_config_targets |
| 19817 | do |
| 19818 | case $ac_config_target in |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame^] | 19819 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
| 19820 | "include/ndn-cpp/ndn-cpp-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/ndn-cpp/ndn-cpp-config.h" ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19821 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 19822 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19823 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame^] | 19824 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19825 | |
| 19826 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 19827 | esac |
| 19828 | done |
| 19829 | |
| 19830 | |
| 19831 | # If the user did not use the arguments to specify the items to instantiate, |
| 19832 | # then the envvar interface is used. Set only those that are not. |
| 19833 | # We use the long form for the default assignment because of an extremely |
| 19834 | # bizarre bug on SunOS 4.1.3. |
| 19835 | if $ac_need_defaults; then |
| 19836 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 19837 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 19838 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 19839 | fi |
| 19840 | |
| 19841 | # Have a temporary directory for convenience. Make it in the build tree |
| 19842 | # simply because there is no reason against having it here, and in addition, |
| 19843 | # creating and moving files from /tmp can sometimes cause problems. |
| 19844 | # Hook for its removal unless debugging. |
| 19845 | # Note that there is a small window in which the directory will not be cleaned: |
| 19846 | # after its creation but before its name has been assigned to `$tmp'. |
| 19847 | $debug || |
| 19848 | { |
| 19849 | tmp= ac_tmp= |
| 19850 | trap 'exit_status=$? |
| 19851 | : "${ac_tmp:=$tmp}" |
| 19852 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 19853 | ' 0 |
| 19854 | trap 'as_fn_exit 1' 1 2 13 15 |
| 19855 | } |
| 19856 | # Create a (secure) tmp directory for tmp files. |
| 19857 | |
| 19858 | { |
| 19859 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 19860 | test -d "$tmp" |
| 19861 | } || |
| 19862 | { |
| 19863 | tmp=./conf$$-$RANDOM |
| 19864 | (umask 077 && mkdir "$tmp") |
| 19865 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 19866 | ac_tmp=$tmp |
| 19867 | |
| 19868 | # Set up the scripts for CONFIG_FILES section. |
| 19869 | # No need to generate them if there are no CONFIG_FILES. |
| 19870 | # This happens for instance with `./config.status config.h'. |
| 19871 | if test -n "$CONFIG_FILES"; then |
| 19872 | |
| 19873 | |
| 19874 | ac_cr=`echo X | tr X '\015'` |
| 19875 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 19876 | # But we know of no other shell where ac_cr would be empty at this |
| 19877 | # point, so we can use a bashism as a fallback. |
| 19878 | if test "x$ac_cr" = x; then |
| 19879 | eval ac_cr=\$\'\\r\' |
| 19880 | fi |
| 19881 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 19882 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 19883 | ac_cs_awk_cr='\\r' |
| 19884 | else |
| 19885 | ac_cs_awk_cr=$ac_cr |
| 19886 | fi |
| 19887 | |
| 19888 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 19889 | _ACEOF |
| 19890 | |
| 19891 | |
| 19892 | { |
| 19893 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 19894 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 19895 | echo "_ACEOF" |
| 19896 | } >conf$$subs.sh || |
| 19897 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19898 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 19899 | ac_delim='%!_!# ' |
| 19900 | for ac_last_try in false false false false false :; do |
| 19901 | . ./conf$$subs.sh || |
| 19902 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19903 | |
| 19904 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 19905 | if test $ac_delim_n = $ac_delim_num; then |
| 19906 | break |
| 19907 | elif $ac_last_try; then |
| 19908 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 19909 | else |
| 19910 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 19911 | fi |
| 19912 | done |
| 19913 | rm -f conf$$subs.sh |
| 19914 | |
| 19915 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19916 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 19917 | _ACEOF |
| 19918 | sed -n ' |
| 19919 | h |
| 19920 | s/^/S["/; s/!.*/"]=/ |
| 19921 | p |
| 19922 | g |
| 19923 | s/^[^!]*!// |
| 19924 | :repl |
| 19925 | t repl |
| 19926 | s/'"$ac_delim"'$// |
| 19927 | t delim |
| 19928 | :nl |
| 19929 | h |
| 19930 | s/\(.\{148\}\)..*/\1/ |
| 19931 | t more1 |
| 19932 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 19933 | p |
| 19934 | n |
| 19935 | b repl |
| 19936 | :more1 |
| 19937 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19938 | p |
| 19939 | g |
| 19940 | s/.\{148\}// |
| 19941 | t nl |
| 19942 | :delim |
| 19943 | h |
| 19944 | s/\(.\{148\}\)..*/\1/ |
| 19945 | t more2 |
| 19946 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 19947 | p |
| 19948 | b |
| 19949 | :more2 |
| 19950 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 19951 | p |
| 19952 | g |
| 19953 | s/.\{148\}// |
| 19954 | t delim |
| 19955 | ' <conf$$subs.awk | sed ' |
| 19956 | /^[^""]/{ |
| 19957 | N |
| 19958 | s/\n// |
| 19959 | } |
| 19960 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 19961 | rm -f conf$$subs.awk |
| 19962 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19963 | _ACAWK |
| 19964 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 19965 | for (key in S) S_is_set[key] = 1 |
| 19966 | FS = "" |
| 19967 | |
| 19968 | } |
| 19969 | { |
| 19970 | line = $ 0 |
| 19971 | nfields = split(line, field, "@") |
| 19972 | substed = 0 |
| 19973 | len = length(field[1]) |
| 19974 | for (i = 2; i < nfields; i++) { |
| 19975 | key = field[i] |
| 19976 | keylen = length(key) |
| 19977 | if (S_is_set[key]) { |
| 19978 | value = S[key] |
| 19979 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 19980 | len += length(value) + length(field[++i]) |
| 19981 | substed = 1 |
| 19982 | } else |
| 19983 | len += 1 + keylen |
| 19984 | } |
| 19985 | |
| 19986 | print line |
| 19987 | } |
| 19988 | |
| 19989 | _ACAWK |
| 19990 | _ACEOF |
| 19991 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19992 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 19993 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 19994 | else |
| 19995 | cat |
| 19996 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 19997 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 19998 | _ACEOF |
| 19999 | |
| 20000 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 20001 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 20002 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20003 | # (actually we leave an empty line to preserve line numbers). |
| 20004 | if test "x$srcdir" = x.; then |
| 20005 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 20006 | h |
| 20007 | s/// |
| 20008 | s/^/:/ |
| 20009 | s/[ ]*$/:/ |
| 20010 | s/:\$(srcdir):/:/g |
| 20011 | s/:\${srcdir}:/:/g |
| 20012 | s/:@srcdir@:/:/g |
| 20013 | s/^:*// |
| 20014 | s/:*$// |
| 20015 | x |
| 20016 | s/\(=[ ]*\).*/\1/ |
| 20017 | G |
| 20018 | s/\n// |
| 20019 | s/^[^=]*=[ ]*$// |
| 20020 | }' |
| 20021 | fi |
| 20022 | |
| 20023 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20024 | fi # test -n "$CONFIG_FILES" |
| 20025 | |
| 20026 | # Set up the scripts for CONFIG_HEADERS section. |
| 20027 | # No need to generate them if there are no CONFIG_HEADERS. |
| 20028 | # This happens for instance with `./config.status Makefile'. |
| 20029 | if test -n "$CONFIG_HEADERS"; then |
| 20030 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 20031 | BEGIN { |
| 20032 | _ACEOF |
| 20033 | |
| 20034 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 20035 | # here-document in config.status, that substitutes the proper values into |
| 20036 | # config.h.in to produce config.h. |
| 20037 | |
| 20038 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 20039 | # handling of long lines. |
| 20040 | ac_delim='%!_!# ' |
| 20041 | for ac_last_try in false false :; do |
| 20042 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 20043 | if test -z "$ac_tt"; then |
| 20044 | break |
| 20045 | elif $ac_last_try; then |
| 20046 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 20047 | else |
| 20048 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20049 | fi |
| 20050 | done |
| 20051 | |
| 20052 | # For the awk script, D is an array of macro values keyed by name, |
| 20053 | # likewise P contains macro parameters if any. Preserve backslash |
| 20054 | # newline sequences. |
| 20055 | |
| 20056 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 20057 | sed -n ' |
| 20058 | s/.\{148\}/&'"$ac_delim"'/g |
| 20059 | t rset |
| 20060 | :rset |
| 20061 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 20062 | t def |
| 20063 | d |
| 20064 | :def |
| 20065 | s/\\$// |
| 20066 | t bsnl |
| 20067 | s/["\\]/\\&/g |
| 20068 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 20069 | D["\1"]=" \3"/p |
| 20070 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 20071 | d |
| 20072 | :bsnl |
| 20073 | s/["\\]/\\&/g |
| 20074 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 20075 | D["\1"]=" \3\\\\\\n"\\/p |
| 20076 | t cont |
| 20077 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 20078 | t cont |
| 20079 | d |
| 20080 | :cont |
| 20081 | n |
| 20082 | s/.\{148\}/&'"$ac_delim"'/g |
| 20083 | t clear |
| 20084 | :clear |
| 20085 | s/\\$// |
| 20086 | t bsnlc |
| 20087 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 20088 | d |
| 20089 | :bsnlc |
| 20090 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 20091 | b cont |
| 20092 | ' <confdefs.h | sed ' |
| 20093 | s/'"$ac_delim"'/"\\\ |
| 20094 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 20095 | |
| 20096 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20097 | for (key in D) D_is_set[key] = 1 |
| 20098 | FS = "" |
| 20099 | } |
| 20100 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 20101 | line = \$ 0 |
| 20102 | split(line, arg, " ") |
| 20103 | if (arg[1] == "#") { |
| 20104 | defundef = arg[2] |
| 20105 | mac1 = arg[3] |
| 20106 | } else { |
| 20107 | defundef = substr(arg[1], 2) |
| 20108 | mac1 = arg[2] |
| 20109 | } |
| 20110 | split(mac1, mac2, "(") #) |
| 20111 | macro = mac2[1] |
| 20112 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 20113 | if (D_is_set[macro]) { |
| 20114 | # Preserve the white space surrounding the "#". |
| 20115 | print prefix "define", macro P[macro] D[macro] |
| 20116 | next |
| 20117 | } else { |
| 20118 | # Replace #undef with comments. This is necessary, for example, |
| 20119 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 20120 | # on some systems where configure will not decide to define it. |
| 20121 | if (defundef == "undef") { |
| 20122 | print "/*", prefix defundef, macro, "*/" |
| 20123 | next |
| 20124 | } |
| 20125 | } |
| 20126 | } |
| 20127 | { print } |
| 20128 | _ACAWK |
| 20129 | _ACEOF |
| 20130 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20131 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 20132 | fi # test -n "$CONFIG_HEADERS" |
| 20133 | |
| 20134 | |
| 20135 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 20136 | shift |
| 20137 | for ac_tag |
| 20138 | do |
| 20139 | case $ac_tag in |
| 20140 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20141 | esac |
| 20142 | case $ac_mode$ac_tag in |
| 20143 | :[FHL]*:*);; |
| 20144 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 20145 | :[FH]-) ac_tag=-:-;; |
| 20146 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20147 | esac |
| 20148 | ac_save_IFS=$IFS |
| 20149 | IFS=: |
| 20150 | set x $ac_tag |
| 20151 | IFS=$ac_save_IFS |
| 20152 | shift |
| 20153 | ac_file=$1 |
| 20154 | shift |
| 20155 | |
| 20156 | case $ac_mode in |
| 20157 | :L) ac_source=$1;; |
| 20158 | :[FH]) |
| 20159 | ac_file_inputs= |
| 20160 | for ac_f |
| 20161 | do |
| 20162 | case $ac_f in |
| 20163 | -) ac_f="$ac_tmp/stdin";; |
| 20164 | *) # Look for the file first in the build tree, then in the source tree |
| 20165 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20166 | # because $ac_f cannot contain `:'. |
| 20167 | test -f "$ac_f" || |
| 20168 | case $ac_f in |
| 20169 | [\\/$]*) false;; |
| 20170 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20171 | esac || |
| 20172 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 20173 | esac |
| 20174 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 20175 | as_fn_append ac_file_inputs " '$ac_f'" |
| 20176 | done |
| 20177 | |
| 20178 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20179 | # use $as_me), people would be surprised to read: |
| 20180 | # /* config.h. Generated by config.status. */ |
| 20181 | configure_input='Generated from '` |
| 20182 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 20183 | `' by configure.' |
| 20184 | if test x"$ac_file" != x-; then |
| 20185 | configure_input="$ac_file. $configure_input" |
| 20186 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 20187 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 20188 | fi |
| 20189 | # Neutralize special characters interpreted by sed in replacement strings. |
| 20190 | case $configure_input in #( |
| 20191 | *\&* | *\|* | *\\* ) |
| 20192 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 20193 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 20194 | *) ac_sed_conf_input=$configure_input;; |
| 20195 | esac |
| 20196 | |
| 20197 | case $ac_tag in |
| 20198 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 20199 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 20200 | esac |
| 20201 | ;; |
| 20202 | esac |
| 20203 | |
| 20204 | ac_dir=`$as_dirname -- "$ac_file" || |
| 20205 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20206 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20207 | X"$ac_file" : 'X\(//\)$' \| \ |
| 20208 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 20209 | $as_echo X"$ac_file" | |
| 20210 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20211 | s//\1/ |
| 20212 | q |
| 20213 | } |
| 20214 | /^X\(\/\/\)[^/].*/{ |
| 20215 | s//\1/ |
| 20216 | q |
| 20217 | } |
| 20218 | /^X\(\/\/\)$/{ |
| 20219 | s//\1/ |
| 20220 | q |
| 20221 | } |
| 20222 | /^X\(\/\).*/{ |
| 20223 | s//\1/ |
| 20224 | q |
| 20225 | } |
| 20226 | s/.*/./; q'` |
| 20227 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 20228 | ac_builddir=. |
| 20229 | |
| 20230 | case "$ac_dir" in |
| 20231 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20232 | *) |
| 20233 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 20234 | # A ".." for each directory in $ac_dir_suffix. |
| 20235 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 20236 | case $ac_top_builddir_sub in |
| 20237 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20238 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 20239 | esac ;; |
| 20240 | esac |
| 20241 | ac_abs_top_builddir=$ac_pwd |
| 20242 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 20243 | # for backward compatibility: |
| 20244 | ac_top_builddir=$ac_top_build_prefix |
| 20245 | |
| 20246 | case $srcdir in |
| 20247 | .) # We are building in place. |
| 20248 | ac_srcdir=. |
| 20249 | ac_top_srcdir=$ac_top_builddir_sub |
| 20250 | ac_abs_top_srcdir=$ac_pwd ;; |
| 20251 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 20252 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 20253 | ac_top_srcdir=$srcdir |
| 20254 | ac_abs_top_srcdir=$srcdir ;; |
| 20255 | *) # Relative name. |
| 20256 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 20257 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 20258 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 20259 | esac |
| 20260 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 20261 | |
| 20262 | |
| 20263 | case $ac_mode in |
| 20264 | :F) |
| 20265 | # |
| 20266 | # CONFIG_FILE |
| 20267 | # |
| 20268 | |
| 20269 | case $INSTALL in |
| 20270 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 20271 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 20272 | esac |
| 20273 | ac_MKDIR_P=$MKDIR_P |
| 20274 | case $MKDIR_P in |
| 20275 | [\\/$]* | ?:[\\/]* ) ;; |
| 20276 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 20277 | esac |
| 20278 | _ACEOF |
| 20279 | |
| 20280 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20281 | # If the template does not know about datarootdir, expand it. |
| 20282 | # FIXME: This hack should be removed a few years after 2.60. |
| 20283 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 20284 | ac_sed_dataroot=' |
| 20285 | /datarootdir/ { |
| 20286 | p |
| 20287 | q |
| 20288 | } |
| 20289 | /@datadir@/p |
| 20290 | /@docdir@/p |
| 20291 | /@infodir@/p |
| 20292 | /@localedir@/p |
| 20293 | /@mandir@/p' |
| 20294 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 20295 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 20296 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 20297 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 20298 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 20299 | _ACEOF |
| 20300 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20301 | ac_datarootdir_hack=' |
| 20302 | s&@datadir@&$datadir&g |
| 20303 | s&@docdir@&$docdir&g |
| 20304 | s&@infodir@&$infodir&g |
| 20305 | s&@localedir@&$localedir&g |
| 20306 | s&@mandir@&$mandir&g |
| 20307 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 20308 | esac |
| 20309 | _ACEOF |
| 20310 | |
| 20311 | # Neutralize VPATH when `$srcdir' = `.'. |
| 20312 | # Shell code in configure.ac might set extrasub. |
| 20313 | # FIXME: do we really want to maintain this feature? |
| 20314 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20315 | ac_sed_extra="$ac_vpsub |
| 20316 | $extrasub |
| 20317 | _ACEOF |
| 20318 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20319 | :t |
| 20320 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 20321 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 20322 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 20323 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 20324 | s&@srcdir@&$ac_srcdir&;t t |
| 20325 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 20326 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 20327 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 20328 | s&@builddir@&$ac_builddir&;t t |
| 20329 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 20330 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 20331 | s&@INSTALL@&$ac_INSTALL&;t t |
| 20332 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 20333 | $ac_datarootdir_hack |
| 20334 | " |
| 20335 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 20336 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20337 | |
| 20338 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 20339 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 20340 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 20341 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 20342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20343 | which seems to be undefined. Please make sure it is defined" >&5 |
| 20344 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20345 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 20346 | |
| 20347 | rm -f "$ac_tmp/stdin" |
| 20348 | case $ac_file in |
| 20349 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 20350 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 20351 | esac \ |
| 20352 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20353 | ;; |
| 20354 | :H) |
| 20355 | # |
| 20356 | # CONFIG_HEADER |
| 20357 | # |
| 20358 | if test x"$ac_file" != x-; then |
| 20359 | { |
| 20360 | $as_echo "/* $configure_input */" \ |
| 20361 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 20362 | } >"$ac_tmp/config.h" \ |
| 20363 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20364 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 20365 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 20366 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 20367 | else |
| 20368 | rm -f "$ac_file" |
| 20369 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 20370 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20371 | fi |
| 20372 | else |
| 20373 | $as_echo "/* $configure_input */" \ |
| 20374 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 20375 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 20376 | fi |
| 20377 | # Compute "$ac_file"'s index in $config_headers. |
| 20378 | _am_arg="$ac_file" |
| 20379 | _am_stamp_count=1 |
| 20380 | for _am_header in $config_headers :; do |
| 20381 | case $_am_header in |
| 20382 | $_am_arg | $_am_arg:* ) |
| 20383 | break ;; |
| 20384 | * ) |
| 20385 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 20386 | esac |
| 20387 | done |
| 20388 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 20389 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20390 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 20391 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 20392 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 20393 | $as_echo X"$_am_arg" | |
| 20394 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20395 | s//\1/ |
| 20396 | q |
| 20397 | } |
| 20398 | /^X\(\/\/\)[^/].*/{ |
| 20399 | s//\1/ |
| 20400 | q |
| 20401 | } |
| 20402 | /^X\(\/\/\)$/{ |
| 20403 | s//\1/ |
| 20404 | q |
| 20405 | } |
| 20406 | /^X\(\/\).*/{ |
| 20407 | s//\1/ |
| 20408 | q |
| 20409 | } |
| 20410 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 20411 | ;; |
| 20412 | |
| 20413 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 20414 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 20415 | ;; |
| 20416 | esac |
| 20417 | |
| 20418 | |
| 20419 | case $ac_file$ac_mode in |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame^] | 20420 | "include/ndn-cpp/ndn-cpp-config.h":C) ac_prefix_conf_OUT=`echo include/ndn-cpp/ndn-cpp-config.h` |
Jeff Thompson | b752300 | 2013-10-09 10:25:00 -0700 | [diff] [blame] | 20421 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` |
| 20422 | ac_prefix_conf_PKG=`echo $PACKAGE` |
| 20423 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` |
| 20424 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` |
| 20425 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` |
| 20426 | if test ".$ac_prefix_conf_INP" = "."; then |
| 20427 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue |
| 20428 | case "$ac_file" in |
| 20429 | *.h) ac_prefix_conf_INP=$ac_file ;; |
| 20430 | *) |
| 20431 | esac |
| 20432 | test ".$ac_prefix_conf_INP" != "." && break |
| 20433 | done |
| 20434 | fi |
| 20435 | if test ".$ac_prefix_conf_INP" = "."; then |
| 20436 | case "$ac_prefix_conf_OUT" in |
| 20437 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` |
| 20438 | ;; |
| 20439 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` |
| 20440 | ;; |
| 20441 | *) ac_prefix_conf_INP=config.h |
| 20442 | ;; |
| 20443 | esac |
| 20444 | fi |
| 20445 | if test -z "$ac_prefix_conf_PKG" ; then |
| 20446 | as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 |
| 20447 | else |
| 20448 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then |
| 20449 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" |
| 20450 | fi fi |
| 20451 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 |
| 20452 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} |
| 20453 | if test -f $ac_prefix_conf_INP ; then |
| 20454 | $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix |
| 20455 | $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix |
| 20456 | $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix |
| 20457 | $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix |
| 20458 | $as_echo "#endif/" >> conftest.prefix |
| 20459 | $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix |
| 20460 | $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix |
| 20461 | $as_echo "#endif/" >> conftest.prefix |
| 20462 | # now executing _script on _DEF input to create _OUT output file |
| 20463 | echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h |
| 20464 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h |
| 20465 | echo ' ' >>$tmp/pconfig.h |
| 20466 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h |
| 20467 | |
| 20468 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h |
| 20469 | echo ' ' >>$tmp/pconfig.h |
| 20470 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h |
| 20471 | echo "#endif" >>$tmp/pconfig.h |
| 20472 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then |
| 20473 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 |
| 20474 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} |
| 20475 | else |
| 20476 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || |
| 20477 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20478 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ |
| 20479 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ |
| 20480 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || |
| 20481 | $as_echo X"$ac_prefix_conf_OUT" | |
| 20482 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20483 | s//\1/ |
| 20484 | q |
| 20485 | } |
| 20486 | /^X\(\/\/\)[^/].*/{ |
| 20487 | s//\1/ |
| 20488 | q |
| 20489 | } |
| 20490 | /^X\(\/\/\)$/{ |
| 20491 | s//\1/ |
| 20492 | q |
| 20493 | } |
| 20494 | /^X\(\/\).*/{ |
| 20495 | s//\1/ |
| 20496 | q |
| 20497 | } |
| 20498 | s/.*/./; q'` |
| 20499 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 20500 | rm -f "$ac_prefix_conf_OUT" |
| 20501 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" |
| 20502 | fi |
| 20503 | cp conftest.prefix _configs.sed |
| 20504 | else |
| 20505 | as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 |
| 20506 | fi |
| 20507 | rm -f conftest.* |
| 20508 | fi |
| 20509 | ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 20510 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 20511 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 20512 | # are listed without --file. Let's play safe and only enable the eval |
| 20513 | # if we detect the quoting. |
| 20514 | case $CONFIG_FILES in |
| 20515 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 20516 | *) set x $CONFIG_FILES ;; |
| 20517 | esac |
| 20518 | shift |
| 20519 | for mf |
| 20520 | do |
| 20521 | # Strip MF so we end up with the name of the file. |
| 20522 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 20523 | # Check whether this is an Automake generated Makefile or not. |
| 20524 | # We used to match only the files named 'Makefile.in', but |
| 20525 | # some people rename them; so instead we look at the file content. |
| 20526 | # Grep'ing the first line is not enough: some people post-process |
| 20527 | # each Makefile.in and add a new line on top of each file to say so. |
| 20528 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 20529 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 20530 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 20531 | dirpart=`$as_dirname -- "$mf" || |
| 20532 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20533 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 20534 | X"$mf" : 'X\(//\)$' \| \ |
| 20535 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 20536 | $as_echo X"$mf" | |
| 20537 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20538 | s//\1/ |
| 20539 | q |
| 20540 | } |
| 20541 | /^X\(\/\/\)[^/].*/{ |
| 20542 | s//\1/ |
| 20543 | q |
| 20544 | } |
| 20545 | /^X\(\/\/\)$/{ |
| 20546 | s//\1/ |
| 20547 | q |
| 20548 | } |
| 20549 | /^X\(\/\).*/{ |
| 20550 | s//\1/ |
| 20551 | q |
| 20552 | } |
| 20553 | s/.*/./; q'` |
| 20554 | else |
| 20555 | continue |
| 20556 | fi |
| 20557 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 20558 | # from the Makefile without running 'make'. |
| 20559 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 20560 | test -z "$DEPDIR" && continue |
| 20561 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 20562 | test -z "$am__include" && continue |
| 20563 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 20564 | # Find all dependency output files, they are included files with |
| 20565 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 20566 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 20567 | # expansion. |
| 20568 | for file in `sed -n " |
| 20569 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 20570 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 20571 | # Make sure the directory exists. |
| 20572 | test -f "$dirpart/$file" && continue |
| 20573 | fdir=`$as_dirname -- "$file" || |
| 20574 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20575 | X"$file" : 'X\(//\)[^/]' \| \ |
| 20576 | X"$file" : 'X\(//\)$' \| \ |
| 20577 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 20578 | $as_echo X"$file" | |
| 20579 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20580 | s//\1/ |
| 20581 | q |
| 20582 | } |
| 20583 | /^X\(\/\/\)[^/].*/{ |
| 20584 | s//\1/ |
| 20585 | q |
| 20586 | } |
| 20587 | /^X\(\/\/\)$/{ |
| 20588 | s//\1/ |
| 20589 | q |
| 20590 | } |
| 20591 | /^X\(\/\).*/{ |
| 20592 | s//\1/ |
| 20593 | q |
| 20594 | } |
| 20595 | s/.*/./; q'` |
| 20596 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 20597 | # echo "creating $dirpart/$file" |
| 20598 | echo '# dummy' > "$dirpart/$file" |
| 20599 | done |
| 20600 | done |
| 20601 | } |
| 20602 | ;; |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 20603 | "libtool":C) |
| 20604 | |
| 20605 | # See if we are running on zsh, and set the options which allow our |
| 20606 | # commands through without removal of \ escapes. |
| 20607 | if test -n "${ZSH_VERSION+set}" ; then |
| 20608 | setopt NO_GLOB_SUBST |
| 20609 | fi |
| 20610 | |
| 20611 | cfgfile="${ofile}T" |
| 20612 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 20613 | $RM "$cfgfile" |
| 20614 | |
| 20615 | cat <<_LT_EOF >> "$cfgfile" |
| 20616 | #! $SHELL |
| 20617 | |
| 20618 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 20619 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 20620 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20621 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 20622 | # |
| 20623 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 20624 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 20625 | # Foundation, Inc. |
| 20626 | # Written by Gordon Matzigkeit, 1996 |
| 20627 | # |
| 20628 | # This file is part of GNU Libtool. |
| 20629 | # |
| 20630 | # GNU Libtool is free software; you can redistribute it and/or |
| 20631 | # modify it under the terms of the GNU General Public License as |
| 20632 | # published by the Free Software Foundation; either version 2 of |
| 20633 | # the License, or (at your option) any later version. |
| 20634 | # |
| 20635 | # As a special exception to the GNU General Public License, |
| 20636 | # if you distribute this file as part of a program or library that |
| 20637 | # is built using GNU Libtool, you may include this file under the |
| 20638 | # same distribution terms that you use for the rest of that program. |
| 20639 | # |
| 20640 | # GNU Libtool is distributed in the hope that it will be useful, |
| 20641 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20642 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20643 | # GNU General Public License for more details. |
| 20644 | # |
| 20645 | # You should have received a copy of the GNU General Public License |
| 20646 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 20647 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 20648 | # obtained by writing to the Free Software Foundation, Inc., |
| 20649 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 20650 | |
| 20651 | |
| 20652 | # The names of the tagged configurations supported by this script. |
| 20653 | available_tags="CXX " |
| 20654 | |
| 20655 | # ### BEGIN LIBTOOL CONFIG |
| 20656 | |
| 20657 | # Which release of libtool.m4 was used? |
| 20658 | macro_version=$macro_version |
| 20659 | macro_revision=$macro_revision |
| 20660 | |
| 20661 | # Whether or not to build shared libraries. |
| 20662 | build_libtool_libs=$enable_shared |
| 20663 | |
| 20664 | # Whether or not to build static libraries. |
| 20665 | build_old_libs=$enable_static |
| 20666 | |
| 20667 | # What type of objects to build. |
| 20668 | pic_mode=$pic_mode |
| 20669 | |
| 20670 | # Whether or not to optimize for fast installation. |
| 20671 | fast_install=$enable_fast_install |
| 20672 | |
| 20673 | # Shell to use when invoking shell scripts. |
| 20674 | SHELL=$lt_SHELL |
| 20675 | |
| 20676 | # An echo program that protects backslashes. |
| 20677 | ECHO=$lt_ECHO |
| 20678 | |
| 20679 | # The PATH separator for the build system. |
| 20680 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 20681 | |
| 20682 | # The host system. |
| 20683 | host_alias=$host_alias |
| 20684 | host=$host |
| 20685 | host_os=$host_os |
| 20686 | |
| 20687 | # The build system. |
| 20688 | build_alias=$build_alias |
| 20689 | build=$build |
| 20690 | build_os=$build_os |
| 20691 | |
| 20692 | # A sed program that does not truncate output. |
| 20693 | SED=$lt_SED |
| 20694 | |
| 20695 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 20696 | Xsed="\$SED -e 1s/^X//" |
| 20697 | |
| 20698 | # A grep program that handles long lines. |
| 20699 | GREP=$lt_GREP |
| 20700 | |
| 20701 | # An ERE matcher. |
| 20702 | EGREP=$lt_EGREP |
| 20703 | |
| 20704 | # A literal string matcher. |
| 20705 | FGREP=$lt_FGREP |
| 20706 | |
| 20707 | # A BSD- or MS-compatible name lister. |
| 20708 | NM=$lt_NM |
| 20709 | |
| 20710 | # Whether we need soft or hard links. |
| 20711 | LN_S=$lt_LN_S |
| 20712 | |
| 20713 | # What is the maximum length of a command? |
| 20714 | max_cmd_len=$max_cmd_len |
| 20715 | |
| 20716 | # Object file suffix (normally "o"). |
| 20717 | objext=$ac_objext |
| 20718 | |
| 20719 | # Executable file suffix (normally ""). |
| 20720 | exeext=$exeext |
| 20721 | |
| 20722 | # whether the shell understands "unset". |
| 20723 | lt_unset=$lt_unset |
| 20724 | |
| 20725 | # turn spaces into newlines. |
| 20726 | SP2NL=$lt_lt_SP2NL |
| 20727 | |
| 20728 | # turn newlines into spaces. |
| 20729 | NL2SP=$lt_lt_NL2SP |
| 20730 | |
| 20731 | # convert \$build file names to \$host format. |
| 20732 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 20733 | |
| 20734 | # convert \$build files to toolchain format. |
| 20735 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 20736 | |
| 20737 | # An object symbol dumper. |
| 20738 | OBJDUMP=$lt_OBJDUMP |
| 20739 | |
| 20740 | # Method to check whether dependent libraries are shared objects. |
| 20741 | deplibs_check_method=$lt_deplibs_check_method |
| 20742 | |
| 20743 | # Command to use when deplibs_check_method = "file_magic". |
| 20744 | file_magic_cmd=$lt_file_magic_cmd |
| 20745 | |
| 20746 | # How to find potential files when deplibs_check_method = "file_magic". |
| 20747 | file_magic_glob=$lt_file_magic_glob |
| 20748 | |
| 20749 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 20750 | want_nocaseglob=$lt_want_nocaseglob |
| 20751 | |
| 20752 | # DLL creation program. |
| 20753 | DLLTOOL=$lt_DLLTOOL |
| 20754 | |
| 20755 | # Command to associate shared and link libraries. |
| 20756 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 20757 | |
| 20758 | # The archiver. |
| 20759 | AR=$lt_AR |
| 20760 | |
| 20761 | # Flags to create an archive. |
| 20762 | AR_FLAGS=$lt_AR_FLAGS |
| 20763 | |
| 20764 | # How to feed a file listing to the archiver. |
| 20765 | archiver_list_spec=$lt_archiver_list_spec |
| 20766 | |
| 20767 | # A symbol stripping program. |
| 20768 | STRIP=$lt_STRIP |
| 20769 | |
| 20770 | # Commands used to install an old-style archive. |
| 20771 | RANLIB=$lt_RANLIB |
| 20772 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20773 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20774 | |
| 20775 | # Whether to use a lock for old archive extraction. |
| 20776 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 20777 | |
| 20778 | # A C compiler. |
| 20779 | LTCC=$lt_CC |
| 20780 | |
| 20781 | # LTCC compiler flags. |
| 20782 | LTCFLAGS=$lt_CFLAGS |
| 20783 | |
| 20784 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20785 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20786 | |
| 20787 | # Transform the output of nm in a proper C declaration. |
| 20788 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20789 | |
| 20790 | # Transform the output of nm in a C name address pair. |
| 20791 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20792 | |
| 20793 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 20794 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 20795 | |
| 20796 | # Specify filename containing input files for \$NM. |
| 20797 | nm_file_list_spec=$lt_nm_file_list_spec |
| 20798 | |
| 20799 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 20800 | lt_sysroot=$lt_sysroot |
| 20801 | |
| 20802 | # The name of the directory that contains temporary libtool files. |
| 20803 | objdir=$objdir |
| 20804 | |
| 20805 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 20806 | MAGIC_CMD=$MAGIC_CMD |
| 20807 | |
| 20808 | # Must we lock files when doing compilation? |
| 20809 | need_locks=$lt_need_locks |
| 20810 | |
| 20811 | # Manifest tool. |
| 20812 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 20813 | |
| 20814 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 20815 | DSYMUTIL=$lt_DSYMUTIL |
| 20816 | |
| 20817 | # Tool to change global to local symbols on Mac OS X. |
| 20818 | NMEDIT=$lt_NMEDIT |
| 20819 | |
| 20820 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 20821 | LIPO=$lt_LIPO |
| 20822 | |
| 20823 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 20824 | OTOOL=$lt_OTOOL |
| 20825 | |
| 20826 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 20827 | OTOOL64=$lt_OTOOL64 |
| 20828 | |
| 20829 | # Old archive suffix (normally "a"). |
| 20830 | libext=$libext |
| 20831 | |
| 20832 | # Shared library suffix (normally ".so"). |
| 20833 | shrext_cmds=$lt_shrext_cmds |
| 20834 | |
| 20835 | # The commands to extract the exported symbol list from a shared archive. |
| 20836 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 20837 | |
| 20838 | # Variables whose values should be saved in libtool wrapper scripts and |
| 20839 | # restored at link time. |
| 20840 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 20841 | |
| 20842 | # Do we need the "lib" prefix for modules? |
| 20843 | need_lib_prefix=$need_lib_prefix |
| 20844 | |
| 20845 | # Do we need a version for libraries? |
| 20846 | need_version=$need_version |
| 20847 | |
| 20848 | # Library versioning type. |
| 20849 | version_type=$version_type |
| 20850 | |
| 20851 | # Shared library runtime path variable. |
| 20852 | runpath_var=$runpath_var |
| 20853 | |
| 20854 | # Shared library path variable. |
| 20855 | shlibpath_var=$shlibpath_var |
| 20856 | |
| 20857 | # Is shlibpath searched before the hard-coded library search path? |
| 20858 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 20859 | |
| 20860 | # Format of library name prefix. |
| 20861 | libname_spec=$lt_libname_spec |
| 20862 | |
| 20863 | # List of archive names. First name is the real one, the rest are links. |
| 20864 | # The last name is the one that the linker finds with -lNAME |
| 20865 | library_names_spec=$lt_library_names_spec |
| 20866 | |
| 20867 | # The coded name of the library, if different from the real name. |
| 20868 | soname_spec=$lt_soname_spec |
| 20869 | |
| 20870 | # Permission mode override for installation of shared libraries. |
| 20871 | install_override_mode=$lt_install_override_mode |
| 20872 | |
| 20873 | # Command to use after installation of a shared archive. |
| 20874 | postinstall_cmds=$lt_postinstall_cmds |
| 20875 | |
| 20876 | # Command to use after uninstallation of a shared archive. |
| 20877 | postuninstall_cmds=$lt_postuninstall_cmds |
| 20878 | |
| 20879 | # Commands used to finish a libtool library installation in a directory. |
| 20880 | finish_cmds=$lt_finish_cmds |
| 20881 | |
| 20882 | # As "finish_cmds", except a single script fragment to be evaled but |
| 20883 | # not shown. |
| 20884 | finish_eval=$lt_finish_eval |
| 20885 | |
| 20886 | # Whether we should hardcode library paths into libraries. |
| 20887 | hardcode_into_libs=$hardcode_into_libs |
| 20888 | |
| 20889 | # Compile-time system search path for libraries. |
| 20890 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 20891 | |
| 20892 | # Run-time system search path for libraries. |
| 20893 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 20894 | |
| 20895 | # Whether dlopen is supported. |
| 20896 | dlopen_support=$enable_dlopen |
| 20897 | |
| 20898 | # Whether dlopen of programs is supported. |
| 20899 | dlopen_self=$enable_dlopen_self |
| 20900 | |
| 20901 | # Whether dlopen of statically linked programs is supported. |
| 20902 | dlopen_self_static=$enable_dlopen_self_static |
| 20903 | |
| 20904 | # Commands to strip libraries. |
| 20905 | old_striplib=$lt_old_striplib |
| 20906 | striplib=$lt_striplib |
| 20907 | |
| 20908 | |
| 20909 | # The linker used to build libraries. |
| 20910 | LD=$lt_LD |
| 20911 | |
| 20912 | # How to create reloadable object files. |
| 20913 | reload_flag=$lt_reload_flag |
| 20914 | reload_cmds=$lt_reload_cmds |
| 20915 | |
| 20916 | # Commands used to build an old-style archive. |
| 20917 | old_archive_cmds=$lt_old_archive_cmds |
| 20918 | |
| 20919 | # A language specific compiler. |
| 20920 | CC=$lt_compiler |
| 20921 | |
| 20922 | # Is the compiler the GNU compiler? |
| 20923 | with_gcc=$GCC |
| 20924 | |
| 20925 | # Compiler flag to turn off builtin functions. |
| 20926 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 20927 | |
| 20928 | # Additional compiler flags for building library objects. |
| 20929 | pic_flag=$lt_lt_prog_compiler_pic |
| 20930 | |
| 20931 | # How to pass a linker flag through the compiler. |
| 20932 | wl=$lt_lt_prog_compiler_wl |
| 20933 | |
| 20934 | # Compiler flag to prevent dynamic linking. |
| 20935 | link_static_flag=$lt_lt_prog_compiler_static |
| 20936 | |
| 20937 | # Does compiler simultaneously support -c and -o options? |
| 20938 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 20939 | |
| 20940 | # Whether or not to add -lc for building shared libraries. |
| 20941 | build_libtool_need_lc=$archive_cmds_need_lc |
| 20942 | |
| 20943 | # Whether or not to disallow shared libs when runtime libs are static. |
| 20944 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 20945 | |
| 20946 | # Compiler flag to allow reflexive dlopens. |
| 20947 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 20948 | |
| 20949 | # Compiler flag to generate shared objects directly from archives. |
| 20950 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 20951 | |
| 20952 | # Whether the compiler copes with passing no objects directly. |
| 20953 | compiler_needs_object=$lt_compiler_needs_object |
| 20954 | |
| 20955 | # Create an old-style archive from a shared archive. |
| 20956 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 20957 | |
| 20958 | # Create a temporary old-style archive to link instead of a shared archive. |
| 20959 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 20960 | |
| 20961 | # Commands used to build a shared archive. |
| 20962 | archive_cmds=$lt_archive_cmds |
| 20963 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 20964 | |
| 20965 | # Commands used to build a loadable module if different from building |
| 20966 | # a shared archive. |
| 20967 | module_cmds=$lt_module_cmds |
| 20968 | module_expsym_cmds=$lt_module_expsym_cmds |
| 20969 | |
| 20970 | # Whether we are building with GNU ld or not. |
| 20971 | with_gnu_ld=$lt_with_gnu_ld |
| 20972 | |
| 20973 | # Flag that allows shared libraries with undefined symbols to be built. |
| 20974 | allow_undefined_flag=$lt_allow_undefined_flag |
| 20975 | |
| 20976 | # Flag that enforces no undefined symbols. |
| 20977 | no_undefined_flag=$lt_no_undefined_flag |
| 20978 | |
| 20979 | # Flag to hardcode \$libdir into a binary during linking. |
| 20980 | # This must work even if \$libdir does not exist |
| 20981 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 20982 | |
| 20983 | # Whether we need a single "-rpath" flag with a separated argument. |
| 20984 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 20985 | |
| 20986 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20987 | # DIR into the resulting binary. |
| 20988 | hardcode_direct=$hardcode_direct |
| 20989 | |
| 20990 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 20991 | # DIR into the resulting binary and the resulting library dependency is |
| 20992 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 20993 | # library is relocated. |
| 20994 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 20995 | |
| 20996 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 20997 | # into the resulting binary. |
| 20998 | hardcode_minus_L=$hardcode_minus_L |
| 20999 | |
| 21000 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 21001 | # into the resulting binary. |
| 21002 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 21003 | |
| 21004 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 21005 | # into the library and all subsequent libraries and executables linked |
| 21006 | # against it. |
| 21007 | hardcode_automatic=$hardcode_automatic |
| 21008 | |
| 21009 | # Set to yes if linker adds runtime paths of dependent libraries |
| 21010 | # to runtime path list. |
| 21011 | inherit_rpath=$inherit_rpath |
| 21012 | |
| 21013 | # Whether libtool must link a program against all its dependency libraries. |
| 21014 | link_all_deplibs=$link_all_deplibs |
| 21015 | |
| 21016 | # Set to "yes" if exported symbols are required. |
| 21017 | always_export_symbols=$always_export_symbols |
| 21018 | |
| 21019 | # The commands to list exported symbols. |
| 21020 | export_symbols_cmds=$lt_export_symbols_cmds |
| 21021 | |
| 21022 | # Symbols that should not be listed in the preloaded symbols. |
| 21023 | exclude_expsyms=$lt_exclude_expsyms |
| 21024 | |
| 21025 | # Symbols that must always be exported. |
| 21026 | include_expsyms=$lt_include_expsyms |
| 21027 | |
| 21028 | # Commands necessary for linking programs (against libraries) with templates. |
| 21029 | prelink_cmds=$lt_prelink_cmds |
| 21030 | |
| 21031 | # Commands necessary for finishing linking programs. |
| 21032 | postlink_cmds=$lt_postlink_cmds |
| 21033 | |
| 21034 | # Specify filename containing input files. |
| 21035 | file_list_spec=$lt_file_list_spec |
| 21036 | |
| 21037 | # How to hardcode a shared library path into an executable. |
| 21038 | hardcode_action=$hardcode_action |
| 21039 | |
| 21040 | # The directories searched by this compiler when creating a shared library. |
| 21041 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 21042 | |
| 21043 | # Dependencies to place before and after the objects being linked to |
| 21044 | # create a shared library. |
| 21045 | predep_objects=$lt_predep_objects |
| 21046 | postdep_objects=$lt_postdep_objects |
| 21047 | predeps=$lt_predeps |
| 21048 | postdeps=$lt_postdeps |
| 21049 | |
| 21050 | # The library search path used internally by the compiler when linking |
| 21051 | # a shared library. |
| 21052 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 21053 | |
| 21054 | # ### END LIBTOOL CONFIG |
| 21055 | |
| 21056 | _LT_EOF |
| 21057 | |
| 21058 | case $host_os in |
| 21059 | aix3*) |
| 21060 | cat <<\_LT_EOF >> "$cfgfile" |
| 21061 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 21062 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 21063 | # vanish in a puff of smoke. |
| 21064 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 21065 | COLLECT_NAMES= |
| 21066 | export COLLECT_NAMES |
| 21067 | fi |
| 21068 | _LT_EOF |
| 21069 | ;; |
| 21070 | esac |
| 21071 | |
| 21072 | |
| 21073 | ltmain="$ac_aux_dir/ltmain.sh" |
| 21074 | |
| 21075 | |
| 21076 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 21077 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 21078 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 21079 | # is reportedly fixed, but why not run on old versions too? |
| 21080 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 21081 | || (rm -f "$cfgfile"; exit 1) |
| 21082 | |
| 21083 | if test x"$xsi_shell" = xyes; then |
| 21084 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 21085 | func_dirname ()\ |
| 21086 | {\ |
| 21087 | \ case ${1} in\ |
| 21088 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 21089 | \ * ) func_dirname_result="${3}" ;;\ |
| 21090 | \ esac\ |
| 21091 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21092 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21093 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21094 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21095 | |
| 21096 | |
| 21097 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 21098 | func_basename ()\ |
| 21099 | {\ |
| 21100 | \ func_basename_result="${1##*/}"\ |
| 21101 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21102 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21103 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21104 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21105 | |
| 21106 | |
| 21107 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 21108 | func_dirname_and_basename ()\ |
| 21109 | {\ |
| 21110 | \ case ${1} in\ |
| 21111 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 21112 | \ * ) func_dirname_result="${3}" ;;\ |
| 21113 | \ esac\ |
| 21114 | \ func_basename_result="${1##*/}"\ |
| 21115 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21116 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21117 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21118 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21119 | |
| 21120 | |
| 21121 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 21122 | func_stripname ()\ |
| 21123 | {\ |
| 21124 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 21125 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 21126 | \ func_stripname_result=${3}\ |
| 21127 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 21128 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 21129 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21130 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21131 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21132 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21133 | |
| 21134 | |
| 21135 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 21136 | func_split_long_opt ()\ |
| 21137 | {\ |
| 21138 | \ func_split_long_opt_name=${1%%=*}\ |
| 21139 | \ func_split_long_opt_arg=${1#*=}\ |
| 21140 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21141 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21142 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21143 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21144 | |
| 21145 | |
| 21146 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 21147 | func_split_short_opt ()\ |
| 21148 | {\ |
| 21149 | \ func_split_short_opt_arg=${1#??}\ |
| 21150 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 21151 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21152 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21153 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21154 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21155 | |
| 21156 | |
| 21157 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 21158 | func_lo2o ()\ |
| 21159 | {\ |
| 21160 | \ case ${1} in\ |
| 21161 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 21162 | \ *) func_lo2o_result=${1} ;;\ |
| 21163 | \ esac\ |
| 21164 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21165 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21166 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21167 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21168 | |
| 21169 | |
| 21170 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 21171 | func_xform ()\ |
| 21172 | {\ |
| 21173 | func_xform_result=${1%.*}.lo\ |
| 21174 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21175 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21176 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21177 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21178 | |
| 21179 | |
| 21180 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 21181 | func_arith ()\ |
| 21182 | {\ |
| 21183 | func_arith_result=$(( $* ))\ |
| 21184 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21185 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21186 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21187 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21188 | |
| 21189 | |
| 21190 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 21191 | func_len ()\ |
| 21192 | {\ |
| 21193 | func_len_result=${#1}\ |
| 21194 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21195 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21196 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21197 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21198 | |
| 21199 | fi |
| 21200 | |
| 21201 | if test x"$lt_shell_append" = xyes; then |
| 21202 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 21203 | func_append ()\ |
| 21204 | {\ |
| 21205 | eval "${1}+=\\${2}"\ |
| 21206 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21207 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21208 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21209 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21210 | |
| 21211 | |
| 21212 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 21213 | func_append_quoted ()\ |
| 21214 | {\ |
| 21215 | \ func_quote_for_eval "${2}"\ |
| 21216 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 21217 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21218 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21219 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21220 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21221 | |
| 21222 | |
| 21223 | # Save a `func_append' function call where possible by direct use of '+=' |
| 21224 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 21225 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21226 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21227 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21228 | else |
| 21229 | # Save a `func_append' function call even when '+=' is not available |
| 21230 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 21231 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21232 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21233 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21234 | fi |
| 21235 | |
| 21236 | if test x"$_lt_function_replace_fail" = x":"; then |
| 21237 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 21238 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 21239 | fi |
| 21240 | |
| 21241 | |
| 21242 | mv -f "$cfgfile" "$ofile" || |
| 21243 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 21244 | chmod +x "$ofile" |
| 21245 | |
| 21246 | |
| 21247 | cat <<_LT_EOF >> "$ofile" |
| 21248 | |
| 21249 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 21250 | |
| 21251 | # The linker used to build libraries. |
| 21252 | LD=$lt_LD_CXX |
| 21253 | |
| 21254 | # How to create reloadable object files. |
| 21255 | reload_flag=$lt_reload_flag_CXX |
| 21256 | reload_cmds=$lt_reload_cmds_CXX |
| 21257 | |
| 21258 | # Commands used to build an old-style archive. |
| 21259 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 21260 | |
| 21261 | # A language specific compiler. |
| 21262 | CC=$lt_compiler_CXX |
| 21263 | |
| 21264 | # Is the compiler the GNU compiler? |
| 21265 | with_gcc=$GCC_CXX |
| 21266 | |
| 21267 | # Compiler flag to turn off builtin functions. |
| 21268 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 21269 | |
| 21270 | # Additional compiler flags for building library objects. |
| 21271 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 21272 | |
| 21273 | # How to pass a linker flag through the compiler. |
| 21274 | wl=$lt_lt_prog_compiler_wl_CXX |
| 21275 | |
| 21276 | # Compiler flag to prevent dynamic linking. |
| 21277 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 21278 | |
| 21279 | # Does compiler simultaneously support -c and -o options? |
| 21280 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 21281 | |
| 21282 | # Whether or not to add -lc for building shared libraries. |
| 21283 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 21284 | |
| 21285 | # Whether or not to disallow shared libs when runtime libs are static. |
| 21286 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 21287 | |
| 21288 | # Compiler flag to allow reflexive dlopens. |
| 21289 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 21290 | |
| 21291 | # Compiler flag to generate shared objects directly from archives. |
| 21292 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 21293 | |
| 21294 | # Whether the compiler copes with passing no objects directly. |
| 21295 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 21296 | |
| 21297 | # Create an old-style archive from a shared archive. |
| 21298 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 21299 | |
| 21300 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21301 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 21302 | |
| 21303 | # Commands used to build a shared archive. |
| 21304 | archive_cmds=$lt_archive_cmds_CXX |
| 21305 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 21306 | |
| 21307 | # Commands used to build a loadable module if different from building |
| 21308 | # a shared archive. |
| 21309 | module_cmds=$lt_module_cmds_CXX |
| 21310 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 21311 | |
| 21312 | # Whether we are building with GNU ld or not. |
| 21313 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 21314 | |
| 21315 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21316 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 21317 | |
| 21318 | # Flag that enforces no undefined symbols. |
| 21319 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 21320 | |
| 21321 | # Flag to hardcode \$libdir into a binary during linking. |
| 21322 | # This must work even if \$libdir does not exist |
| 21323 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21324 | |
| 21325 | # Whether we need a single "-rpath" flag with a separated argument. |
| 21326 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21327 | |
| 21328 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 21329 | # DIR into the resulting binary. |
| 21330 | hardcode_direct=$hardcode_direct_CXX |
| 21331 | |
| 21332 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 21333 | # DIR into the resulting binary and the resulting library dependency is |
| 21334 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 21335 | # library is relocated. |
| 21336 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 21337 | |
| 21338 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 21339 | # into the resulting binary. |
| 21340 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21341 | |
| 21342 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 21343 | # into the resulting binary. |
| 21344 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21345 | |
| 21346 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 21347 | # into the library and all subsequent libraries and executables linked |
| 21348 | # against it. |
| 21349 | hardcode_automatic=$hardcode_automatic_CXX |
| 21350 | |
| 21351 | # Set to yes if linker adds runtime paths of dependent libraries |
| 21352 | # to runtime path list. |
| 21353 | inherit_rpath=$inherit_rpath_CXX |
| 21354 | |
| 21355 | # Whether libtool must link a program against all its dependency libraries. |
| 21356 | link_all_deplibs=$link_all_deplibs_CXX |
| 21357 | |
| 21358 | # Set to "yes" if exported symbols are required. |
| 21359 | always_export_symbols=$always_export_symbols_CXX |
| 21360 | |
| 21361 | # The commands to list exported symbols. |
| 21362 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21363 | |
| 21364 | # Symbols that should not be listed in the preloaded symbols. |
| 21365 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21366 | |
| 21367 | # Symbols that must always be exported. |
| 21368 | include_expsyms=$lt_include_expsyms_CXX |
| 21369 | |
| 21370 | # Commands necessary for linking programs (against libraries) with templates. |
| 21371 | prelink_cmds=$lt_prelink_cmds_CXX |
| 21372 | |
| 21373 | # Commands necessary for finishing linking programs. |
| 21374 | postlink_cmds=$lt_postlink_cmds_CXX |
| 21375 | |
| 21376 | # Specify filename containing input files. |
| 21377 | file_list_spec=$lt_file_list_spec_CXX |
| 21378 | |
| 21379 | # How to hardcode a shared library path into an executable. |
| 21380 | hardcode_action=$hardcode_action_CXX |
| 21381 | |
| 21382 | # The directories searched by this compiler when creating a shared library. |
| 21383 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 21384 | |
| 21385 | # Dependencies to place before and after the objects being linked to |
| 21386 | # create a shared library. |
| 21387 | predep_objects=$lt_predep_objects_CXX |
| 21388 | postdep_objects=$lt_postdep_objects_CXX |
| 21389 | predeps=$lt_predeps_CXX |
| 21390 | postdeps=$lt_postdeps_CXX |
| 21391 | |
| 21392 | # The library search path used internally by the compiler when linking |
| 21393 | # a shared library. |
| 21394 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 21395 | |
| 21396 | # ### END LIBTOOL TAG CONFIG: CXX |
| 21397 | _LT_EOF |
| 21398 | |
| 21399 | ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 21400 | |
| 21401 | esac |
| 21402 | done # for ac_tag |
| 21403 | |
| 21404 | |
| 21405 | as_fn_exit 0 |
| 21406 | _ACEOF |
| 21407 | ac_clean_files=$ac_clean_files_save |
| 21408 | |
| 21409 | test $ac_write_fail = 0 || |
| 21410 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 21411 | |
| 21412 | |
| 21413 | # configure is writing to config.log, and then calls config.status. |
| 21414 | # config.status does its own redirection, appending to config.log. |
| 21415 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21416 | # by configure, so config.status won't be able to write to it; its |
| 21417 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21418 | # effectively closing config.log, so it can be properly (re)opened and |
| 21419 | # appended to by config.status. When coming back to configure, we |
| 21420 | # need to make the FD available again. |
| 21421 | if test "$no_create" != yes; then |
| 21422 | ac_cs_success=: |
| 21423 | ac_config_status_args= |
| 21424 | test "$silent" = yes && |
| 21425 | ac_config_status_args="$ac_config_status_args --quiet" |
| 21426 | exec 5>/dev/null |
| 21427 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 21428 | exec 5>>config.log |
| 21429 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21430 | # would make configure fail if this is the last instruction. |
| 21431 | $ac_cs_success || as_fn_exit 1 |
| 21432 | fi |
| 21433 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 21434 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 21435 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 21436 | fi |
| 21437 | |