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 | 5d16a90 | 2013-10-10 11:15:14 -0700 | [diff] [blame] | 598 | ac_unique_file="configure.ac" |
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 | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 2281 | |
| 2282 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2283 | # --------------------------------------------------------- |
| 2284 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2285 | # the include files in INCLUDES and setting the cache variable VAR |
| 2286 | # accordingly. |
| 2287 | ac_fn_cxx_check_header_mongrel () |
| 2288 | { |
| 2289 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2290 | if eval \${$3+:} false; then : |
| 2291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2292 | $as_echo_n "checking for $2... " >&6; } |
| 2293 | if eval \${$3+:} false; then : |
| 2294 | $as_echo_n "(cached) " >&6 |
| 2295 | fi |
| 2296 | eval ac_res=\$$3 |
| 2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2298 | $as_echo "$ac_res" >&6; } |
| 2299 | else |
| 2300 | # Is the header compilable? |
| 2301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2302 | $as_echo_n "checking $2 usability... " >&6; } |
| 2303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2304 | /* end confdefs.h. */ |
| 2305 | $4 |
| 2306 | #include <$2> |
| 2307 | _ACEOF |
| 2308 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 2309 | ac_header_compiler=yes |
| 2310 | else |
| 2311 | ac_header_compiler=no |
| 2312 | fi |
| 2313 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2315 | $as_echo "$ac_header_compiler" >&6; } |
| 2316 | |
| 2317 | # Is the header present? |
| 2318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2319 | $as_echo_n "checking $2 presence... " >&6; } |
| 2320 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2321 | /* end confdefs.h. */ |
| 2322 | #include <$2> |
| 2323 | _ACEOF |
| 2324 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 2325 | ac_header_preproc=yes |
| 2326 | else |
| 2327 | ac_header_preproc=no |
| 2328 | fi |
| 2329 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 2330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2331 | $as_echo "$ac_header_preproc" >&6; } |
| 2332 | |
| 2333 | # So? What about this header? |
| 2334 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( |
| 2335 | yes:no: ) |
| 2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2337 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2338 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2339 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2340 | ;; |
| 2341 | no:yes:* ) |
| 2342 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2343 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2345 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2346 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2347 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2348 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2349 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2351 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2352 | ( $as_echo "## ---------------------------------------- ## |
| 2353 | ## Report this to ndn-lib@lists.cs.ucla.edu ## |
| 2354 | ## ---------------------------------------- ##" |
| 2355 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
| 2356 | ;; |
| 2357 | esac |
| 2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2359 | $as_echo_n "checking for $2... " >&6; } |
| 2360 | if eval \${$3+:} false; then : |
| 2361 | $as_echo_n "(cached) " >&6 |
| 2362 | else |
| 2363 | eval "$3=\$ac_header_compiler" |
| 2364 | fi |
| 2365 | eval ac_res=\$$3 |
| 2366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2367 | $as_echo "$ac_res" >&6; } |
| 2368 | fi |
| 2369 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2370 | |
| 2371 | } # ac_fn_cxx_check_header_mongrel |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2372 | cat >config.log <<_ACEOF |
| 2373 | This file contains any messages produced by compilers while |
| 2374 | running configure, to aid debugging if configure makes a mistake. |
| 2375 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 2376 | It was created by ndn-cpp $as_me 0.2, which was |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2377 | generated by GNU Autoconf 2.69. Invocation command line was |
| 2378 | |
| 2379 | $ $0 $@ |
| 2380 | |
| 2381 | _ACEOF |
| 2382 | exec 5>>config.log |
| 2383 | { |
| 2384 | cat <<_ASUNAME |
| 2385 | ## --------- ## |
| 2386 | ## Platform. ## |
| 2387 | ## --------- ## |
| 2388 | |
| 2389 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2390 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2391 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2392 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2393 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2394 | |
| 2395 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2396 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2397 | |
| 2398 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2399 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2400 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2401 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2402 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2403 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2404 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2405 | |
| 2406 | _ASUNAME |
| 2407 | |
| 2408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2409 | for as_dir in $PATH |
| 2410 | do |
| 2411 | IFS=$as_save_IFS |
| 2412 | test -z "$as_dir" && as_dir=. |
| 2413 | $as_echo "PATH: $as_dir" |
| 2414 | done |
| 2415 | IFS=$as_save_IFS |
| 2416 | |
| 2417 | } >&5 |
| 2418 | |
| 2419 | cat >&5 <<_ACEOF |
| 2420 | |
| 2421 | |
| 2422 | ## ----------- ## |
| 2423 | ## Core tests. ## |
| 2424 | ## ----------- ## |
| 2425 | |
| 2426 | _ACEOF |
| 2427 | |
| 2428 | |
| 2429 | # Keep a trace of the command line. |
| 2430 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2431 | # Strip out --silent because we don't want to record it for future runs. |
| 2432 | # Also quote any args containing shell meta-characters. |
| 2433 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2434 | ac_configure_args= |
| 2435 | ac_configure_args0= |
| 2436 | ac_configure_args1= |
| 2437 | ac_must_keep_next=false |
| 2438 | for ac_pass in 1 2 |
| 2439 | do |
| 2440 | for ac_arg |
| 2441 | do |
| 2442 | case $ac_arg in |
| 2443 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2444 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2445 | | -silent | --silent | --silen | --sile | --sil) |
| 2446 | continue ;; |
| 2447 | *\'*) |
| 2448 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2449 | esac |
| 2450 | case $ac_pass in |
| 2451 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2452 | 2) |
| 2453 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2454 | if test $ac_must_keep_next = true; then |
| 2455 | ac_must_keep_next=false # Got value, back to normal. |
| 2456 | else |
| 2457 | case $ac_arg in |
| 2458 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2459 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2460 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2461 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2462 | case "$ac_configure_args0 " in |
| 2463 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2464 | esac |
| 2465 | ;; |
| 2466 | -* ) ac_must_keep_next=true ;; |
| 2467 | esac |
| 2468 | fi |
| 2469 | as_fn_append ac_configure_args " '$ac_arg'" |
| 2470 | ;; |
| 2471 | esac |
| 2472 | done |
| 2473 | done |
| 2474 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2475 | { ac_configure_args1=; unset ac_configure_args1;} |
| 2476 | |
| 2477 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2478 | # config.log. We remove comments because anyway the quotes in there |
| 2479 | # would cause problems or look ugly. |
| 2480 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2481 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2482 | trap 'exit_status=$? |
| 2483 | # Save into config.log some information that might help in debugging. |
| 2484 | { |
| 2485 | echo |
| 2486 | |
| 2487 | $as_echo "## ---------------- ## |
| 2488 | ## Cache variables. ## |
| 2489 | ## ---------------- ##" |
| 2490 | echo |
| 2491 | # The following way of writing the cache mishandles newlines in values, |
| 2492 | ( |
| 2493 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2494 | eval ac_val=\$$ac_var |
| 2495 | case $ac_val in #( |
| 2496 | *${as_nl}*) |
| 2497 | case $ac_var in #( |
| 2498 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2499 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2500 | esac |
| 2501 | case $ac_var in #( |
| 2502 | _ | IFS | as_nl) ;; #( |
| 2503 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2504 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2505 | esac ;; |
| 2506 | esac |
| 2507 | done |
| 2508 | (set) 2>&1 | |
| 2509 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2510 | *${as_nl}ac_space=\ *) |
| 2511 | sed -n \ |
| 2512 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2513 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2514 | ;; #( |
| 2515 | *) |
| 2516 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2517 | ;; |
| 2518 | esac | |
| 2519 | sort |
| 2520 | ) |
| 2521 | echo |
| 2522 | |
| 2523 | $as_echo "## ----------------- ## |
| 2524 | ## Output variables. ## |
| 2525 | ## ----------------- ##" |
| 2526 | echo |
| 2527 | for ac_var in $ac_subst_vars |
| 2528 | do |
| 2529 | eval ac_val=\$$ac_var |
| 2530 | case $ac_val in |
| 2531 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2532 | esac |
| 2533 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2534 | done | sort |
| 2535 | echo |
| 2536 | |
| 2537 | if test -n "$ac_subst_files"; then |
| 2538 | $as_echo "## ------------------- ## |
| 2539 | ## File substitutions. ## |
| 2540 | ## ------------------- ##" |
| 2541 | echo |
| 2542 | for ac_var in $ac_subst_files |
| 2543 | do |
| 2544 | eval ac_val=\$$ac_var |
| 2545 | case $ac_val in |
| 2546 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2547 | esac |
| 2548 | $as_echo "$ac_var='\''$ac_val'\''" |
| 2549 | done | sort |
| 2550 | echo |
| 2551 | fi |
| 2552 | |
| 2553 | if test -s confdefs.h; then |
| 2554 | $as_echo "## ----------- ## |
| 2555 | ## confdefs.h. ## |
| 2556 | ## ----------- ##" |
| 2557 | echo |
| 2558 | cat confdefs.h |
| 2559 | echo |
| 2560 | fi |
| 2561 | test "$ac_signal" != 0 && |
| 2562 | $as_echo "$as_me: caught signal $ac_signal" |
| 2563 | $as_echo "$as_me: exit $exit_status" |
| 2564 | } >&5 |
| 2565 | rm -f core *.core core.conftest.* && |
| 2566 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2567 | exit $exit_status |
| 2568 | ' 0 |
| 2569 | for ac_signal in 1 2 13 15; do |
| 2570 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2571 | done |
| 2572 | ac_signal=0 |
| 2573 | |
| 2574 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2575 | rm -f -r conftest* confdefs.h |
| 2576 | |
| 2577 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2578 | |
| 2579 | # Predefined preprocessor variables. |
| 2580 | |
| 2581 | cat >>confdefs.h <<_ACEOF |
| 2582 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2583 | _ACEOF |
| 2584 | |
| 2585 | cat >>confdefs.h <<_ACEOF |
| 2586 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2587 | _ACEOF |
| 2588 | |
| 2589 | cat >>confdefs.h <<_ACEOF |
| 2590 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2591 | _ACEOF |
| 2592 | |
| 2593 | cat >>confdefs.h <<_ACEOF |
| 2594 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2595 | _ACEOF |
| 2596 | |
| 2597 | cat >>confdefs.h <<_ACEOF |
| 2598 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2599 | _ACEOF |
| 2600 | |
| 2601 | cat >>confdefs.h <<_ACEOF |
| 2602 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2603 | _ACEOF |
| 2604 | |
| 2605 | |
| 2606 | # Let the site file select an alternate cache file if it wants to. |
| 2607 | # Prefer an explicitly selected file to automatically selected ones. |
| 2608 | ac_site_file1=NONE |
| 2609 | ac_site_file2=NONE |
| 2610 | if test -n "$CONFIG_SITE"; then |
| 2611 | # We do not want a PATH search for config.site. |
| 2612 | case $CONFIG_SITE in #(( |
| 2613 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 2614 | */*) ac_site_file1=$CONFIG_SITE;; |
| 2615 | *) ac_site_file1=./$CONFIG_SITE;; |
| 2616 | esac |
| 2617 | elif test "x$prefix" != xNONE; then |
| 2618 | ac_site_file1=$prefix/share/config.site |
| 2619 | ac_site_file2=$prefix/etc/config.site |
| 2620 | else |
| 2621 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2622 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 2623 | fi |
| 2624 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 2625 | do |
| 2626 | test "x$ac_site_file" = xNONE && continue |
| 2627 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 2628 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2629 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 2630 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2631 | . "$ac_site_file" \ |
| 2632 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2633 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2634 | as_fn_error $? "failed to load site script $ac_site_file |
| 2635 | See \`config.log' for more details" "$LINENO" 5; } |
| 2636 | fi |
| 2637 | done |
| 2638 | |
| 2639 | if test -r "$cache_file"; then |
| 2640 | # Some versions of bash will fail to source /dev/null (special files |
| 2641 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2642 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2644 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 2645 | case $cache_file in |
| 2646 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2647 | *) . "./$cache_file";; |
| 2648 | esac |
| 2649 | fi |
| 2650 | else |
| 2651 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2652 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 2653 | >$cache_file |
| 2654 | fi |
| 2655 | |
| 2656 | # Check that the precious variables saved in the cache have kept the same |
| 2657 | # value. |
| 2658 | ac_cache_corrupted=false |
| 2659 | for ac_var in $ac_precious_vars; do |
| 2660 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2661 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 2662 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2663 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 2664 | case $ac_old_set,$ac_new_set in |
| 2665 | set,) |
| 2666 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2667 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 2668 | ac_cache_corrupted=: ;; |
| 2669 | ,set) |
| 2670 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2671 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 2672 | ac_cache_corrupted=: ;; |
| 2673 | ,);; |
| 2674 | *) |
| 2675 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2676 | # differences in whitespace do not lead to failure. |
| 2677 | ac_old_val_w=`echo x $ac_old_val` |
| 2678 | ac_new_val_w=`echo x $ac_new_val` |
| 2679 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2681 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2682 | ac_cache_corrupted=: |
| 2683 | else |
| 2684 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2685 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2686 | eval $ac_var=\$ac_old_val |
| 2687 | fi |
| 2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2689 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2691 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 2692 | fi;; |
| 2693 | esac |
| 2694 | # Pass precious variables to config.status. |
| 2695 | if test "$ac_new_set" = set; then |
| 2696 | case $ac_new_val in |
| 2697 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2698 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2699 | esac |
| 2700 | case " $ac_configure_args " in |
| 2701 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2702 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2703 | esac |
| 2704 | fi |
| 2705 | done |
| 2706 | if $ac_cache_corrupted; then |
| 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2709 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2710 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2711 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 2712 | fi |
| 2713 | ## -------------------- ## |
| 2714 | ## Main body of script. ## |
| 2715 | ## -------------------- ## |
| 2716 | |
| 2717 | ac_ext=c |
| 2718 | ac_cpp='$CPP $CPPFLAGS' |
| 2719 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2720 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2721 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2722 | |
| 2723 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 2724 | am__api_version='1.14' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 2725 | |
| 2726 | ac_aux_dir= |
| 2727 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
| 2728 | if test -f "$ac_dir/install-sh"; then |
| 2729 | ac_aux_dir=$ac_dir |
| 2730 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 2731 | break |
| 2732 | elif test -f "$ac_dir/install.sh"; then |
| 2733 | ac_aux_dir=$ac_dir |
| 2734 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 2735 | break |
| 2736 | elif test -f "$ac_dir/shtool"; then |
| 2737 | ac_aux_dir=$ac_dir |
| 2738 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 2739 | break |
| 2740 | fi |
| 2741 | done |
| 2742 | if test -z "$ac_aux_dir"; then |
| 2743 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
| 2744 | fi |
| 2745 | |
| 2746 | # These three variables are undocumented and unsupported, |
| 2747 | # and are intended to be withdrawn in a future Autoconf release. |
| 2748 | # They can cause serious problems if a builder's source tree is in a directory |
| 2749 | # whose full name contains unusual characters. |
| 2750 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2751 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2752 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2753 | |
| 2754 | |
| 2755 | # Find a good install program. We prefer a C program (faster), |
| 2756 | # so one script is as good as another. But avoid the broken or |
| 2757 | # incompatible versions: |
| 2758 | # SysV /etc/install, /usr/sbin/install |
| 2759 | # SunOS /usr/etc/install |
| 2760 | # IRIX /sbin/install |
| 2761 | # AIX /bin/install |
| 2762 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2763 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2764 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2765 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2766 | # OS/2's system install, which has a completely different semantic |
| 2767 | # ./install, which can be erroneously created by make from ./install.sh. |
| 2768 | # Reject install programs that cannot install multiple files. |
| 2769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2770 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 2771 | if test -z "$INSTALL"; then |
| 2772 | if ${ac_cv_path_install+:} false; then : |
| 2773 | $as_echo_n "(cached) " >&6 |
| 2774 | else |
| 2775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2776 | for as_dir in $PATH |
| 2777 | do |
| 2778 | IFS=$as_save_IFS |
| 2779 | test -z "$as_dir" && as_dir=. |
| 2780 | # Account for people who put trailing slashes in PATH elements. |
| 2781 | case $as_dir/ in #(( |
| 2782 | ./ | .// | /[cC]/* | \ |
| 2783 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 2784 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 2785 | /usr/ucb/* ) ;; |
| 2786 | *) |
| 2787 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2788 | # Don't use installbsd from OSF since it installs stuff as root |
| 2789 | # by default. |
| 2790 | for ac_prog in ginstall scoinst install; do |
| 2791 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2792 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 2793 | if test $ac_prog = install && |
| 2794 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2795 | # AIX install. It has an incompatible calling convention. |
| 2796 | : |
| 2797 | elif test $ac_prog = install && |
| 2798 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2799 | # program-specific install script used by HP pwplus--don't use. |
| 2800 | : |
| 2801 | else |
| 2802 | rm -rf conftest.one conftest.two conftest.dir |
| 2803 | echo one > conftest.one |
| 2804 | echo two > conftest.two |
| 2805 | mkdir conftest.dir |
| 2806 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2807 | test -s conftest.one && test -s conftest.two && |
| 2808 | test -s conftest.dir/conftest.one && |
| 2809 | test -s conftest.dir/conftest.two |
| 2810 | then |
| 2811 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2812 | break 3 |
| 2813 | fi |
| 2814 | fi |
| 2815 | fi |
| 2816 | done |
| 2817 | done |
| 2818 | ;; |
| 2819 | esac |
| 2820 | |
| 2821 | done |
| 2822 | IFS=$as_save_IFS |
| 2823 | |
| 2824 | rm -rf conftest.one conftest.two conftest.dir |
| 2825 | |
| 2826 | fi |
| 2827 | if test "${ac_cv_path_install+set}" = set; then |
| 2828 | INSTALL=$ac_cv_path_install |
| 2829 | else |
| 2830 | # As a last resort, use the slow shell script. Don't cache a |
| 2831 | # value for INSTALL within a source directory, because that will |
| 2832 | # break other packages using the cache if that directory is |
| 2833 | # removed, or if the value is a relative name. |
| 2834 | INSTALL=$ac_install_sh |
| 2835 | fi |
| 2836 | fi |
| 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2838 | $as_echo "$INSTALL" >&6; } |
| 2839 | |
| 2840 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2841 | # It thinks the first close brace ends the variable substitution. |
| 2842 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2843 | |
| 2844 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2845 | |
| 2846 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2847 | |
| 2848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2849 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 2850 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2851 | # name. Accept space and tab only in the latter. |
| 2852 | am_lf=' |
| 2853 | ' |
| 2854 | case `pwd` in |
| 2855 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2856 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 2857 | esac |
| 2858 | case $srcdir in |
| 2859 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2860 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 2861 | esac |
| 2862 | |
| 2863 | # Do 'set' in a subshell so we don't clobber the current shell's |
| 2864 | # arguments. Must try -L first in case configure is actually a |
| 2865 | # symlink; some systems play weird games with the mod time of symlinks |
| 2866 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2867 | # directory). |
| 2868 | if ( |
| 2869 | am_has_slept=no |
| 2870 | for am_try in 1 2; do |
| 2871 | echo "timestamp, slept: $am_has_slept" > conftest.file |
| 2872 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 2873 | if test "$*" = "X"; then |
| 2874 | # -L didn't work. |
| 2875 | set X `ls -t "$srcdir/configure" conftest.file` |
| 2876 | fi |
| 2877 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2878 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2879 | |
| 2880 | # If neither matched, then we have a broken ls. This can happen |
| 2881 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2882 | # broken ls alias from the environment. This has actually |
| 2883 | # happened. Such a system could not be considered "sane". |
| 2884 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
| 2885 | alias in your environment" "$LINENO" 5 |
| 2886 | fi |
| 2887 | if test "$2" = conftest.file || test $am_try -eq 2; then |
| 2888 | break |
| 2889 | fi |
| 2890 | # Just in case. |
| 2891 | sleep 1 |
| 2892 | am_has_slept=yes |
| 2893 | done |
| 2894 | test "$2" = conftest.file |
| 2895 | ) |
| 2896 | then |
| 2897 | # Ok. |
| 2898 | : |
| 2899 | else |
| 2900 | as_fn_error $? "newly created file is older than distributed files! |
| 2901 | Check your system clock" "$LINENO" 5 |
| 2902 | fi |
| 2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2904 | $as_echo "yes" >&6; } |
| 2905 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
| 2906 | # generated files are strictly newer. |
| 2907 | am_sleep_pid= |
| 2908 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then |
| 2909 | ( sleep 1 ) & |
| 2910 | am_sleep_pid=$! |
| 2911 | fi |
| 2912 | |
| 2913 | rm -f conftest.file |
| 2914 | |
| 2915 | test "$program_prefix" != NONE && |
| 2916 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 2917 | # Use a double $ so make ignores it. |
| 2918 | test "$program_suffix" != NONE && |
| 2919 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 2920 | # Double any \ or $. |
| 2921 | # By default was `s,x,x', remove it if useless. |
| 2922 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2923 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 2924 | |
| 2925 | # expand $ac_aux_dir to an absolute path |
| 2926 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2927 | |
| 2928 | if test x"${MISSING+set}" != xset; then |
| 2929 | case $am_aux_dir in |
| 2930 | *\ * | *\ *) |
| 2931 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2932 | *) |
| 2933 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2934 | esac |
| 2935 | fi |
| 2936 | # Use eval to expand $SHELL |
| 2937 | if eval "$MISSING --is-lightweight"; then |
| 2938 | am_missing_run="$MISSING " |
| 2939 | else |
| 2940 | am_missing_run= |
| 2941 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 2942 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 2943 | fi |
| 2944 | |
| 2945 | if test x"${install_sh}" != xset; then |
| 2946 | case $am_aux_dir in |
| 2947 | *\ * | *\ *) |
| 2948 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2949 | *) |
| 2950 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2951 | esac |
| 2952 | fi |
| 2953 | |
| 2954 | # Installed binaries are usually stripped using 'strip' when the user |
| 2955 | # run "make install-strip". However 'strip' might not be the right |
| 2956 | # tool to use in cross-compilation environments, therefore Automake |
| 2957 | # will honor the 'STRIP' environment variable to overrule this program. |
| 2958 | if test "$cross_compiling" != no; then |
| 2959 | if test -n "$ac_tool_prefix"; then |
| 2960 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2961 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2963 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2964 | if ${ac_cv_prog_STRIP+:} false; then : |
| 2965 | $as_echo_n "(cached) " >&6 |
| 2966 | else |
| 2967 | if test -n "$STRIP"; then |
| 2968 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2969 | else |
| 2970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2971 | for as_dir in $PATH |
| 2972 | do |
| 2973 | IFS=$as_save_IFS |
| 2974 | test -z "$as_dir" && as_dir=. |
| 2975 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2976 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2977 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2978 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2979 | break 2 |
| 2980 | fi |
| 2981 | done |
| 2982 | done |
| 2983 | IFS=$as_save_IFS |
| 2984 | |
| 2985 | fi |
| 2986 | fi |
| 2987 | STRIP=$ac_cv_prog_STRIP |
| 2988 | if test -n "$STRIP"; then |
| 2989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2990 | $as_echo "$STRIP" >&6; } |
| 2991 | else |
| 2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2993 | $as_echo "no" >&6; } |
| 2994 | fi |
| 2995 | |
| 2996 | |
| 2997 | fi |
| 2998 | if test -z "$ac_cv_prog_STRIP"; then |
| 2999 | ac_ct_STRIP=$STRIP |
| 3000 | # Extract the first word of "strip", so it can be a program name with args. |
| 3001 | set dummy strip; ac_word=$2 |
| 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3003 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3004 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 3005 | $as_echo_n "(cached) " >&6 |
| 3006 | else |
| 3007 | if test -n "$ac_ct_STRIP"; then |
| 3008 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3009 | else |
| 3010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3011 | for as_dir in $PATH |
| 3012 | do |
| 3013 | IFS=$as_save_IFS |
| 3014 | test -z "$as_dir" && as_dir=. |
| 3015 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3016 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3017 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3018 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3019 | break 2 |
| 3020 | fi |
| 3021 | done |
| 3022 | done |
| 3023 | IFS=$as_save_IFS |
| 3024 | |
| 3025 | fi |
| 3026 | fi |
| 3027 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3028 | if test -n "$ac_ct_STRIP"; then |
| 3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3030 | $as_echo "$ac_ct_STRIP" >&6; } |
| 3031 | else |
| 3032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3033 | $as_echo "no" >&6; } |
| 3034 | fi |
| 3035 | |
| 3036 | if test "x$ac_ct_STRIP" = x; then |
| 3037 | STRIP=":" |
| 3038 | else |
| 3039 | case $cross_compiling:$ac_tool_warned in |
| 3040 | yes:) |
| 3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3042 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3043 | ac_tool_warned=yes ;; |
| 3044 | esac |
| 3045 | STRIP=$ac_ct_STRIP |
| 3046 | fi |
| 3047 | else |
| 3048 | STRIP="$ac_cv_prog_STRIP" |
| 3049 | fi |
| 3050 | |
| 3051 | fi |
| 3052 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3053 | |
| 3054 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3055 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3056 | if test -z "$MKDIR_P"; then |
| 3057 | if ${ac_cv_path_mkdir+:} false; then : |
| 3058 | $as_echo_n "(cached) " >&6 |
| 3059 | else |
| 3060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3061 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3062 | do |
| 3063 | IFS=$as_save_IFS |
| 3064 | test -z "$as_dir" && as_dir=. |
| 3065 | for ac_prog in mkdir gmkdir; do |
| 3066 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3067 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
| 3068 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3069 | 'mkdir (GNU coreutils) '* | \ |
| 3070 | 'mkdir (coreutils) '* | \ |
| 3071 | 'mkdir (fileutils) '4.1*) |
| 3072 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3073 | break 3;; |
| 3074 | esac |
| 3075 | done |
| 3076 | done |
| 3077 | done |
| 3078 | IFS=$as_save_IFS |
| 3079 | |
| 3080 | fi |
| 3081 | |
| 3082 | test -d ./--version && rmdir ./--version |
| 3083 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3084 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3085 | else |
| 3086 | # As a last resort, use the slow shell script. Don't cache a |
| 3087 | # value for MKDIR_P within a source directory, because that will |
| 3088 | # break other packages using the cache if that directory is |
| 3089 | # removed, or if the value is a relative name. |
| 3090 | MKDIR_P="$ac_install_sh -d" |
| 3091 | fi |
| 3092 | fi |
| 3093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3094 | $as_echo "$MKDIR_P" >&6; } |
| 3095 | |
| 3096 | for ac_prog in gawk mawk nawk awk |
| 3097 | do |
| 3098 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3099 | set dummy $ac_prog; ac_word=$2 |
| 3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3101 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3102 | if ${ac_cv_prog_AWK+:} false; then : |
| 3103 | $as_echo_n "(cached) " >&6 |
| 3104 | else |
| 3105 | if test -n "$AWK"; then |
| 3106 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3107 | else |
| 3108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3109 | for as_dir in $PATH |
| 3110 | do |
| 3111 | IFS=$as_save_IFS |
| 3112 | test -z "$as_dir" && as_dir=. |
| 3113 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3114 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3115 | ac_cv_prog_AWK="$ac_prog" |
| 3116 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3117 | break 2 |
| 3118 | fi |
| 3119 | done |
| 3120 | done |
| 3121 | IFS=$as_save_IFS |
| 3122 | |
| 3123 | fi |
| 3124 | fi |
| 3125 | AWK=$ac_cv_prog_AWK |
| 3126 | if test -n "$AWK"; then |
| 3127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3128 | $as_echo "$AWK" >&6; } |
| 3129 | else |
| 3130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3131 | $as_echo "no" >&6; } |
| 3132 | fi |
| 3133 | |
| 3134 | |
| 3135 | test -n "$AWK" && break |
| 3136 | done |
| 3137 | |
| 3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3139 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3140 | set x ${MAKE-make} |
| 3141 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3142 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
| 3143 | $as_echo_n "(cached) " >&6 |
| 3144 | else |
| 3145 | cat >conftest.make <<\_ACEOF |
| 3146 | SHELL = /bin/sh |
| 3147 | all: |
| 3148 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3149 | _ACEOF |
| 3150 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 3151 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3152 | *@@@%%%=?*=@@@%%%*) |
| 3153 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3154 | *) |
| 3155 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3156 | esac |
| 3157 | rm -f conftest.make |
| 3158 | fi |
| 3159 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3161 | $as_echo "yes" >&6; } |
| 3162 | SET_MAKE= |
| 3163 | else |
| 3164 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3165 | $as_echo "no" >&6; } |
| 3166 | SET_MAKE="MAKE=${MAKE-make}" |
| 3167 | fi |
| 3168 | |
| 3169 | rm -rf .tst 2>/dev/null |
| 3170 | mkdir .tst 2>/dev/null |
| 3171 | if test -d .tst; then |
| 3172 | am__leading_dot=. |
| 3173 | else |
| 3174 | am__leading_dot=_ |
| 3175 | fi |
| 3176 | rmdir .tst 2>/dev/null |
| 3177 | |
| 3178 | # Check whether --enable-silent-rules was given. |
| 3179 | if test "${enable_silent_rules+set}" = set; then : |
| 3180 | enableval=$enable_silent_rules; |
| 3181 | fi |
| 3182 | |
| 3183 | case $enable_silent_rules in # ((( |
| 3184 | yes) AM_DEFAULT_VERBOSITY=0;; |
| 3185 | no) AM_DEFAULT_VERBOSITY=1;; |
| 3186 | *) AM_DEFAULT_VERBOSITY=1;; |
| 3187 | esac |
| 3188 | am_make=${MAKE-make} |
| 3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 3190 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } |
| 3191 | if ${am_cv_make_support_nested_variables+:} false; then : |
| 3192 | $as_echo_n "(cached) " >&6 |
| 3193 | else |
| 3194 | if $as_echo 'TRUE=$(BAR$(V)) |
| 3195 | BAR0=false |
| 3196 | BAR1=true |
| 3197 | V=1 |
| 3198 | am__doit: |
| 3199 | @$(TRUE) |
| 3200 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 3201 | am_cv_make_support_nested_variables=yes |
| 3202 | else |
| 3203 | am_cv_make_support_nested_variables=no |
| 3204 | fi |
| 3205 | fi |
| 3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 3207 | $as_echo "$am_cv_make_support_nested_variables" >&6; } |
| 3208 | if test $am_cv_make_support_nested_variables = yes; then |
| 3209 | AM_V='$(V)' |
| 3210 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 3211 | else |
| 3212 | AM_V=$AM_DEFAULT_VERBOSITY |
| 3213 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 3214 | fi |
| 3215 | AM_BACKSLASH='\' |
| 3216 | |
| 3217 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3218 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3219 | # is not polluted with repeated "-I." |
| 3220 | am__isrc=' -I$(srcdir)' |
| 3221 | # test to see if srcdir already configured |
| 3222 | if test -f $srcdir/config.status; then |
| 3223 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3224 | fi |
| 3225 | fi |
| 3226 | |
| 3227 | # test whether we have cygpath |
| 3228 | if test -z "$CYGPATH_W"; then |
| 3229 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3230 | CYGPATH_W='cygpath -w' |
| 3231 | else |
| 3232 | CYGPATH_W=echo |
| 3233 | fi |
| 3234 | fi |
| 3235 | |
| 3236 | |
| 3237 | # Define the identity of the package. |
| 3238 | PACKAGE='ndn-cpp' |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 3239 | VERSION='0.2' |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3240 | |
| 3241 | |
| 3242 | # Some tools Automake needs. |
| 3243 | |
| 3244 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3245 | |
| 3246 | |
| 3247 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3248 | |
| 3249 | |
| 3250 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3251 | |
| 3252 | |
| 3253 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3254 | |
| 3255 | |
| 3256 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3257 | |
| 3258 | # For better backward compatibility. To be removed once Automake 1.9.x |
| 3259 | # dies out for good. For more background, see: |
| 3260 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 3261 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 3262 | mkdir_p='$(MKDIR_P)' |
| 3263 | |
| 3264 | # We need awk for the "check" target. The system "awk" is bad on |
| 3265 | # some platforms. |
| 3266 | # Always define AMTAR for backward compatibility. Yes, it's still used |
| 3267 | # in the wild :-( We should find a proper way to deprecate it ... |
| 3268 | AMTAR='$${TAR-tar}' |
| 3269 | |
| 3270 | |
| 3271 | # We'll loop over all known methods to create a tar archive until one works. |
| 3272 | _am_tools='gnutar pax cpio none' |
| 3273 | |
| 3274 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 3275 | |
| 3276 | |
| 3277 | |
| 3278 | |
| 3279 | |
| 3280 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 3281 | # POSIX will say in a future version that running "rm -f" with no argument |
| 3282 | # is OK; and we want to be able to make that assumption in our Makefile |
| 3283 | # recipes. So use an aggressive probe to check that the usage we want is |
| 3284 | # actually supported "in the wild" to an acceptable degree. |
| 3285 | # See automake bug#10828. |
| 3286 | # To make any issue more visible, cause the running configure to be aborted |
| 3287 | # by default if the 'rm' program in use doesn't match our expectations; the |
| 3288 | # user can still override this though. |
| 3289 | if rm -f && rm -fr && rm -rf; then : OK; else |
| 3290 | cat >&2 <<'END' |
| 3291 | Oops! |
| 3292 | |
| 3293 | Your 'rm' program seems unable to run without file operands specified |
| 3294 | on the command line, even when the '-f' option is present. This is contrary |
| 3295 | to the behaviour of most rm programs out there, and not conforming with |
| 3296 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> |
| 3297 | |
| 3298 | Please tell bug-automake@gnu.org about your system, including the value |
| 3299 | of your $PATH and any error possibly output before this message. This |
| 3300 | can help us improve future automake versions. |
| 3301 | |
| 3302 | END |
| 3303 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then |
| 3304 | echo 'Configuration will proceed anyway, since you have set the' >&2 |
| 3305 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 |
| 3306 | echo >&2 |
| 3307 | else |
| 3308 | cat >&2 <<'END' |
| 3309 | Aborting the configuration process, to ensure you take notice of the issue. |
| 3310 | |
| 3311 | You can download and install GNU coreutils to get an 'rm' implementation |
| 3312 | that behaves properly: <http://www.gnu.org/software/coreutils/>. |
| 3313 | |
| 3314 | If you want to complete the configuration process using your problematic |
| 3315 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM |
| 3316 | to "yes", and re-run configure. |
| 3317 | |
| 3318 | END |
| 3319 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 |
| 3320 | fi |
| 3321 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3322 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 3323 | |
Jeff Thompson | 23cb742 | 2013-10-09 16:11:47 -0700 | [diff] [blame] | 3324 | |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame] | 3325 | # Create config.h without prefixes. Put it in the include directory so CFLAGS will have -I./include . |
| 3326 | ac_config_headers="$ac_config_headers include/config.h" |
Jeff Thompson | b752300 | 2013-10-09 10:25:00 -0700 | [diff] [blame] | 3327 | |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame] | 3328 | # 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] | 3329 | |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame] | 3330 | 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] | 3331 | |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 3332 | |
| 3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 3334 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 3335 | # Check whether --enable-maintainer-mode was given. |
| 3336 | if test "${enable_maintainer_mode+set}" = set; then : |
| 3337 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 3338 | else |
| 3339 | USE_MAINTAINER_MODE=no |
| 3340 | fi |
| 3341 | |
| 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 3343 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 3344 | if test $USE_MAINTAINER_MODE = yes; then |
| 3345 | MAINTAINER_MODE_TRUE= |
| 3346 | MAINTAINER_MODE_FALSE='#' |
| 3347 | else |
| 3348 | MAINTAINER_MODE_TRUE='#' |
| 3349 | MAINTAINER_MODE_FALSE= |
| 3350 | fi |
| 3351 | |
| 3352 | MAINT=$MAINTAINER_MODE_TRUE |
| 3353 | |
| 3354 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 3355 | DEPDIR="${am__leading_dot}deps" |
| 3356 | |
| 3357 | ac_config_commands="$ac_config_commands depfiles" |
| 3358 | |
| 3359 | |
| 3360 | am_make=${MAKE-make} |
| 3361 | cat > confinc << 'END' |
| 3362 | am__doit: |
| 3363 | @echo this is the am__doit target |
| 3364 | .PHONY: am__doit |
| 3365 | END |
| 3366 | # If we don't find an include directive, just comment out the code. |
| 3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3368 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 3369 | am__include="#" |
| 3370 | am__quote= |
| 3371 | _am_result=none |
| 3372 | # First try GNU make style include. |
| 3373 | echo "include confinc" > confmf |
| 3374 | # Ignore all kinds of additional output from 'make'. |
| 3375 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3376 | *the\ am__doit\ target*) |
| 3377 | am__include=include |
| 3378 | am__quote= |
| 3379 | _am_result=GNU |
| 3380 | ;; |
| 3381 | esac |
| 3382 | # Now try BSD make style include. |
| 3383 | if test "$am__include" = "#"; then |
| 3384 | echo '.include "confinc"' > confmf |
| 3385 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3386 | *the\ am__doit\ target*) |
| 3387 | am__include=.include |
| 3388 | am__quote="\"" |
| 3389 | _am_result=BSD |
| 3390 | ;; |
| 3391 | esac |
| 3392 | fi |
| 3393 | |
| 3394 | |
| 3395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3396 | $as_echo "$_am_result" >&6; } |
| 3397 | rm -f confinc confmf |
| 3398 | |
| 3399 | # Check whether --enable-dependency-tracking was given. |
| 3400 | if test "${enable_dependency_tracking+set}" = set; then : |
| 3401 | enableval=$enable_dependency_tracking; |
| 3402 | fi |
| 3403 | |
| 3404 | if test "x$enable_dependency_tracking" != xno; then |
| 3405 | am_depcomp="$ac_aux_dir/depcomp" |
| 3406 | AMDEPBACKSLASH='\' |
| 3407 | am__nodep='_no' |
| 3408 | fi |
| 3409 | if test "x$enable_dependency_tracking" != xno; then |
| 3410 | AMDEP_TRUE= |
| 3411 | AMDEP_FALSE='#' |
| 3412 | else |
| 3413 | AMDEP_TRUE='#' |
| 3414 | AMDEP_FALSE= |
| 3415 | fi |
| 3416 | |
| 3417 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3418 | ac_ext=c |
| 3419 | ac_cpp='$CPP $CPPFLAGS' |
| 3420 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3421 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3422 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3423 | if test -n "$ac_tool_prefix"; then |
| 3424 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3425 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3427 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3428 | if ${ac_cv_prog_CC+:} false; then : |
| 3429 | $as_echo_n "(cached) " >&6 |
| 3430 | else |
| 3431 | if test -n "$CC"; then |
| 3432 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3433 | else |
| 3434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3435 | for as_dir in $PATH |
| 3436 | do |
| 3437 | IFS=$as_save_IFS |
| 3438 | test -z "$as_dir" && as_dir=. |
| 3439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3440 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3441 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3442 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3443 | break 2 |
| 3444 | fi |
| 3445 | done |
| 3446 | done |
| 3447 | IFS=$as_save_IFS |
| 3448 | |
| 3449 | fi |
| 3450 | fi |
| 3451 | CC=$ac_cv_prog_CC |
| 3452 | if test -n "$CC"; then |
| 3453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3454 | $as_echo "$CC" >&6; } |
| 3455 | else |
| 3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3457 | $as_echo "no" >&6; } |
| 3458 | fi |
| 3459 | |
| 3460 | |
| 3461 | fi |
| 3462 | if test -z "$ac_cv_prog_CC"; then |
| 3463 | ac_ct_CC=$CC |
| 3464 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3465 | set dummy gcc; ac_word=$2 |
| 3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3467 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3468 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3469 | $as_echo_n "(cached) " >&6 |
| 3470 | else |
| 3471 | if test -n "$ac_ct_CC"; then |
| 3472 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3473 | else |
| 3474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3475 | for as_dir in $PATH |
| 3476 | do |
| 3477 | IFS=$as_save_IFS |
| 3478 | test -z "$as_dir" && as_dir=. |
| 3479 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3480 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3481 | ac_cv_prog_ac_ct_CC="gcc" |
| 3482 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3483 | break 2 |
| 3484 | fi |
| 3485 | done |
| 3486 | done |
| 3487 | IFS=$as_save_IFS |
| 3488 | |
| 3489 | fi |
| 3490 | fi |
| 3491 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3492 | if test -n "$ac_ct_CC"; then |
| 3493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3494 | $as_echo "$ac_ct_CC" >&6; } |
| 3495 | else |
| 3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3497 | $as_echo "no" >&6; } |
| 3498 | fi |
| 3499 | |
| 3500 | if test "x$ac_ct_CC" = x; then |
| 3501 | CC="" |
| 3502 | else |
| 3503 | case $cross_compiling:$ac_tool_warned in |
| 3504 | yes:) |
| 3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3506 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3507 | ac_tool_warned=yes ;; |
| 3508 | esac |
| 3509 | CC=$ac_ct_CC |
| 3510 | fi |
| 3511 | else |
| 3512 | CC="$ac_cv_prog_CC" |
| 3513 | fi |
| 3514 | |
| 3515 | if test -z "$CC"; then |
| 3516 | if test -n "$ac_tool_prefix"; then |
| 3517 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3518 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3520 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3521 | if ${ac_cv_prog_CC+:} false; then : |
| 3522 | $as_echo_n "(cached) " >&6 |
| 3523 | else |
| 3524 | if test -n "$CC"; then |
| 3525 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3526 | else |
| 3527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3528 | for as_dir in $PATH |
| 3529 | do |
| 3530 | IFS=$as_save_IFS |
| 3531 | test -z "$as_dir" && as_dir=. |
| 3532 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3534 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3536 | break 2 |
| 3537 | fi |
| 3538 | done |
| 3539 | done |
| 3540 | IFS=$as_save_IFS |
| 3541 | |
| 3542 | fi |
| 3543 | fi |
| 3544 | CC=$ac_cv_prog_CC |
| 3545 | if test -n "$CC"; then |
| 3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3547 | $as_echo "$CC" >&6; } |
| 3548 | else |
| 3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3550 | $as_echo "no" >&6; } |
| 3551 | fi |
| 3552 | |
| 3553 | |
| 3554 | fi |
| 3555 | fi |
| 3556 | if test -z "$CC"; then |
| 3557 | # Extract the first word of "cc", so it can be a program name with args. |
| 3558 | set dummy cc; ac_word=$2 |
| 3559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3560 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3561 | if ${ac_cv_prog_CC+:} false; then : |
| 3562 | $as_echo_n "(cached) " >&6 |
| 3563 | else |
| 3564 | if test -n "$CC"; then |
| 3565 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3566 | else |
| 3567 | ac_prog_rejected=no |
| 3568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3569 | for as_dir in $PATH |
| 3570 | do |
| 3571 | IFS=$as_save_IFS |
| 3572 | test -z "$as_dir" && as_dir=. |
| 3573 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3574 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3575 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3576 | ac_prog_rejected=yes |
| 3577 | continue |
| 3578 | fi |
| 3579 | ac_cv_prog_CC="cc" |
| 3580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3581 | break 2 |
| 3582 | fi |
| 3583 | done |
| 3584 | done |
| 3585 | IFS=$as_save_IFS |
| 3586 | |
| 3587 | if test $ac_prog_rejected = yes; then |
| 3588 | # We found a bogon in the path, so make sure we never use it. |
| 3589 | set dummy $ac_cv_prog_CC |
| 3590 | shift |
| 3591 | if test $# != 0; then |
| 3592 | # We chose a different compiler from the bogus one. |
| 3593 | # However, it has the same basename, so the bogon will be chosen |
| 3594 | # first if we set CC to just the basename; use the full file name. |
| 3595 | shift |
| 3596 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3597 | fi |
| 3598 | fi |
| 3599 | fi |
| 3600 | fi |
| 3601 | CC=$ac_cv_prog_CC |
| 3602 | if test -n "$CC"; then |
| 3603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3604 | $as_echo "$CC" >&6; } |
| 3605 | else |
| 3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3607 | $as_echo "no" >&6; } |
| 3608 | fi |
| 3609 | |
| 3610 | |
| 3611 | fi |
| 3612 | if test -z "$CC"; then |
| 3613 | if test -n "$ac_tool_prefix"; then |
| 3614 | for ac_prog in cl.exe |
| 3615 | do |
| 3616 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3617 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3619 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3620 | if ${ac_cv_prog_CC+:} false; then : |
| 3621 | $as_echo_n "(cached) " >&6 |
| 3622 | else |
| 3623 | if test -n "$CC"; then |
| 3624 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3625 | else |
| 3626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3627 | for as_dir in $PATH |
| 3628 | do |
| 3629 | IFS=$as_save_IFS |
| 3630 | test -z "$as_dir" && as_dir=. |
| 3631 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3632 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3633 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3634 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3635 | break 2 |
| 3636 | fi |
| 3637 | done |
| 3638 | done |
| 3639 | IFS=$as_save_IFS |
| 3640 | |
| 3641 | fi |
| 3642 | fi |
| 3643 | CC=$ac_cv_prog_CC |
| 3644 | if test -n "$CC"; then |
| 3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3646 | $as_echo "$CC" >&6; } |
| 3647 | else |
| 3648 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3649 | $as_echo "no" >&6; } |
| 3650 | fi |
| 3651 | |
| 3652 | |
| 3653 | test -n "$CC" && break |
| 3654 | done |
| 3655 | fi |
| 3656 | if test -z "$CC"; then |
| 3657 | ac_ct_CC=$CC |
| 3658 | for ac_prog in cl.exe |
| 3659 | do |
| 3660 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3661 | set dummy $ac_prog; ac_word=$2 |
| 3662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3663 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3664 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
| 3665 | $as_echo_n "(cached) " >&6 |
| 3666 | else |
| 3667 | if test -n "$ac_ct_CC"; then |
| 3668 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3669 | else |
| 3670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3671 | for as_dir in $PATH |
| 3672 | do |
| 3673 | IFS=$as_save_IFS |
| 3674 | test -z "$as_dir" && as_dir=. |
| 3675 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3676 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3677 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3678 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3679 | break 2 |
| 3680 | fi |
| 3681 | done |
| 3682 | done |
| 3683 | IFS=$as_save_IFS |
| 3684 | |
| 3685 | fi |
| 3686 | fi |
| 3687 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3688 | if test -n "$ac_ct_CC"; then |
| 3689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3690 | $as_echo "$ac_ct_CC" >&6; } |
| 3691 | else |
| 3692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3693 | $as_echo "no" >&6; } |
| 3694 | fi |
| 3695 | |
| 3696 | |
| 3697 | test -n "$ac_ct_CC" && break |
| 3698 | done |
| 3699 | |
| 3700 | if test "x$ac_ct_CC" = x; then |
| 3701 | CC="" |
| 3702 | else |
| 3703 | case $cross_compiling:$ac_tool_warned in |
| 3704 | yes:) |
| 3705 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3706 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3707 | ac_tool_warned=yes ;; |
| 3708 | esac |
| 3709 | CC=$ac_ct_CC |
| 3710 | fi |
| 3711 | fi |
| 3712 | |
| 3713 | fi |
| 3714 | |
| 3715 | |
| 3716 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3717 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3718 | as_fn_error $? "no acceptable C compiler found in \$PATH |
| 3719 | See \`config.log' for more details" "$LINENO" 5; } |
| 3720 | |
| 3721 | # Provide some information about the compiler. |
| 3722 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3723 | set X $ac_compile |
| 3724 | ac_compiler=$2 |
| 3725 | for ac_option in --version -v -V -qversion; do |
| 3726 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3727 | case "(($ac_try" in |
| 3728 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3729 | *) ac_try_echo=$ac_try;; |
| 3730 | esac |
| 3731 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3732 | $as_echo "$ac_try_echo"; } >&5 |
| 3733 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3734 | ac_status=$? |
| 3735 | if test -s conftest.err; then |
| 3736 | sed '10a\ |
| 3737 | ... rest of stderr output deleted ... |
| 3738 | 10q' conftest.err >conftest.er1 |
| 3739 | cat conftest.er1 >&5 |
| 3740 | fi |
| 3741 | rm -f conftest.er1 conftest.err |
| 3742 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3743 | test $ac_status = 0; } |
| 3744 | done |
| 3745 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 3746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3747 | /* end confdefs.h. */ |
| 3748 | |
| 3749 | int |
| 3750 | main () |
| 3751 | { |
| 3752 | |
| 3753 | ; |
| 3754 | return 0; |
| 3755 | } |
| 3756 | _ACEOF |
| 3757 | ac_clean_files_save=$ac_clean_files |
| 3758 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 3759 | # Try to create an executable without -o first, disregard a.out. |
| 3760 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3761 | # of exeext. |
| 3762 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3763 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 3764 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3765 | |
| 3766 | # The possible output files: |
| 3767 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3768 | |
| 3769 | ac_rmfiles= |
| 3770 | for ac_file in $ac_files |
| 3771 | do |
| 3772 | case $ac_file in |
| 3773 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3774 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3775 | esac |
| 3776 | done |
| 3777 | rm -f $ac_rmfiles |
| 3778 | |
| 3779 | if { { ac_try="$ac_link_default" |
| 3780 | case "(($ac_try" in |
| 3781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3782 | *) ac_try_echo=$ac_try;; |
| 3783 | esac |
| 3784 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3785 | $as_echo "$ac_try_echo"; } >&5 |
| 3786 | (eval "$ac_link_default") 2>&5 |
| 3787 | ac_status=$? |
| 3788 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3789 | test $ac_status = 0; }; then : |
| 3790 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3791 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3792 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3793 | # so that the user can short-circuit this test for compilers unknown to |
| 3794 | # Autoconf. |
| 3795 | for ac_file in $ac_files '' |
| 3796 | do |
| 3797 | test -f "$ac_file" || continue |
| 3798 | case $ac_file in |
| 3799 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 3800 | ;; |
| 3801 | [ab].out ) |
| 3802 | # We found the default executable, but exeext='' is most |
| 3803 | # certainly right. |
| 3804 | break;; |
| 3805 | *.* ) |
| 3806 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 3807 | then :; else |
| 3808 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3809 | fi |
| 3810 | # We set ac_cv_exeext here because the later test for it is not |
| 3811 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3812 | # argument, so we may need to know it at that point already. |
| 3813 | # Even if this section looks crufty: it has the advantage of |
| 3814 | # actually working. |
| 3815 | break;; |
| 3816 | * ) |
| 3817 | break;; |
| 3818 | esac |
| 3819 | done |
| 3820 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3821 | |
| 3822 | else |
| 3823 | ac_file='' |
| 3824 | fi |
| 3825 | if test -z "$ac_file"; then : |
| 3826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3827 | $as_echo "no" >&6; } |
| 3828 | $as_echo "$as_me: failed program was:" >&5 |
| 3829 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3830 | |
| 3831 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3832 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3833 | as_fn_error 77 "C compiler cannot create executables |
| 3834 | See \`config.log' for more details" "$LINENO" 5; } |
| 3835 | else |
| 3836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3837 | $as_echo "yes" >&6; } |
| 3838 | fi |
| 3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3840 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3842 | $as_echo "$ac_file" >&6; } |
| 3843 | ac_exeext=$ac_cv_exeext |
| 3844 | |
| 3845 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 3846 | ac_clean_files=$ac_clean_files_save |
| 3847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3848 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3849 | if { { ac_try="$ac_link" |
| 3850 | case "(($ac_try" in |
| 3851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3852 | *) ac_try_echo=$ac_try;; |
| 3853 | esac |
| 3854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3855 | $as_echo "$ac_try_echo"; } >&5 |
| 3856 | (eval "$ac_link") 2>&5 |
| 3857 | ac_status=$? |
| 3858 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3859 | test $ac_status = 0; }; then : |
| 3860 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3861 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3862 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3863 | # `rm'. |
| 3864 | for ac_file in conftest.exe conftest conftest.*; do |
| 3865 | test -f "$ac_file" || continue |
| 3866 | case $ac_file in |
| 3867 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 3868 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3869 | break;; |
| 3870 | * ) break;; |
| 3871 | esac |
| 3872 | done |
| 3873 | else |
| 3874 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3875 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3876 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 3877 | See \`config.log' for more details" "$LINENO" 5; } |
| 3878 | fi |
| 3879 | rm -f conftest conftest$ac_cv_exeext |
| 3880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3881 | $as_echo "$ac_cv_exeext" >&6; } |
| 3882 | |
| 3883 | rm -f conftest.$ac_ext |
| 3884 | EXEEXT=$ac_cv_exeext |
| 3885 | ac_exeext=$EXEEXT |
| 3886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3887 | /* end confdefs.h. */ |
| 3888 | #include <stdio.h> |
| 3889 | int |
| 3890 | main () |
| 3891 | { |
| 3892 | FILE *f = fopen ("conftest.out", "w"); |
| 3893 | return ferror (f) || fclose (f) != 0; |
| 3894 | |
| 3895 | ; |
| 3896 | return 0; |
| 3897 | } |
| 3898 | _ACEOF |
| 3899 | ac_clean_files="$ac_clean_files conftest.out" |
| 3900 | # Check that the compiler produces executables we can run. If not, either |
| 3901 | # the compiler is broken, or we cross compile. |
| 3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3903 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3904 | if test "$cross_compiling" != yes; then |
| 3905 | { { ac_try="$ac_link" |
| 3906 | case "(($ac_try" in |
| 3907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3908 | *) ac_try_echo=$ac_try;; |
| 3909 | esac |
| 3910 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3911 | $as_echo "$ac_try_echo"; } >&5 |
| 3912 | (eval "$ac_link") 2>&5 |
| 3913 | ac_status=$? |
| 3914 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3915 | test $ac_status = 0; } |
| 3916 | if { ac_try='./conftest$ac_cv_exeext' |
| 3917 | { { case "(($ac_try" in |
| 3918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3919 | *) ac_try_echo=$ac_try;; |
| 3920 | esac |
| 3921 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3922 | $as_echo "$ac_try_echo"; } >&5 |
| 3923 | (eval "$ac_try") 2>&5 |
| 3924 | ac_status=$? |
| 3925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3926 | test $ac_status = 0; }; }; then |
| 3927 | cross_compiling=no |
| 3928 | else |
| 3929 | if test "$cross_compiling" = maybe; then |
| 3930 | cross_compiling=yes |
| 3931 | else |
| 3932 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3933 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3934 | as_fn_error $? "cannot run C compiled programs. |
| 3935 | If you meant to cross compile, use \`--host'. |
| 3936 | See \`config.log' for more details" "$LINENO" 5; } |
| 3937 | fi |
| 3938 | fi |
| 3939 | fi |
| 3940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3941 | $as_echo "$cross_compiling" >&6; } |
| 3942 | |
| 3943 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3944 | ac_clean_files=$ac_clean_files_save |
| 3945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3946 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3947 | if ${ac_cv_objext+:} false; then : |
| 3948 | $as_echo_n "(cached) " >&6 |
| 3949 | else |
| 3950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3951 | /* end confdefs.h. */ |
| 3952 | |
| 3953 | int |
| 3954 | main () |
| 3955 | { |
| 3956 | |
| 3957 | ; |
| 3958 | return 0; |
| 3959 | } |
| 3960 | _ACEOF |
| 3961 | rm -f conftest.o conftest.obj |
| 3962 | if { { ac_try="$ac_compile" |
| 3963 | case "(($ac_try" in |
| 3964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3965 | *) ac_try_echo=$ac_try;; |
| 3966 | esac |
| 3967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3968 | $as_echo "$ac_try_echo"; } >&5 |
| 3969 | (eval "$ac_compile") 2>&5 |
| 3970 | ac_status=$? |
| 3971 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3972 | test $ac_status = 0; }; then : |
| 3973 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3974 | test -f "$ac_file" || continue; |
| 3975 | case $ac_file in |
| 3976 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 3977 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3978 | break;; |
| 3979 | esac |
| 3980 | done |
| 3981 | else |
| 3982 | $as_echo "$as_me: failed program was:" >&5 |
| 3983 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3984 | |
| 3985 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3986 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3987 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 3988 | See \`config.log' for more details" "$LINENO" 5; } |
| 3989 | fi |
| 3990 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3991 | fi |
| 3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3993 | $as_echo "$ac_cv_objext" >&6; } |
| 3994 | OBJEXT=$ac_cv_objext |
| 3995 | ac_objext=$OBJEXT |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3997 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3998 | if ${ac_cv_c_compiler_gnu+:} false; then : |
| 3999 | $as_echo_n "(cached) " >&6 |
| 4000 | else |
| 4001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4002 | /* end confdefs.h. */ |
| 4003 | |
| 4004 | int |
| 4005 | main () |
| 4006 | { |
| 4007 | #ifndef __GNUC__ |
| 4008 | choke me |
| 4009 | #endif |
| 4010 | |
| 4011 | ; |
| 4012 | return 0; |
| 4013 | } |
| 4014 | _ACEOF |
| 4015 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4016 | ac_compiler_gnu=yes |
| 4017 | else |
| 4018 | ac_compiler_gnu=no |
| 4019 | fi |
| 4020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4021 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 4022 | |
| 4023 | fi |
| 4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 4025 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 4026 | if test $ac_compiler_gnu = yes; then |
| 4027 | GCC=yes |
| 4028 | else |
| 4029 | GCC= |
| 4030 | fi |
| 4031 | ac_test_CFLAGS=${CFLAGS+set} |
| 4032 | ac_save_CFLAGS=$CFLAGS |
| 4033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4034 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4035 | if ${ac_cv_prog_cc_g+:} false; then : |
| 4036 | $as_echo_n "(cached) " >&6 |
| 4037 | else |
| 4038 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4039 | ac_c_werror_flag=yes |
| 4040 | ac_cv_prog_cc_g=no |
| 4041 | CFLAGS="-g" |
| 4042 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4043 | /* end confdefs.h. */ |
| 4044 | |
| 4045 | int |
| 4046 | main () |
| 4047 | { |
| 4048 | |
| 4049 | ; |
| 4050 | return 0; |
| 4051 | } |
| 4052 | _ACEOF |
| 4053 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4054 | ac_cv_prog_cc_g=yes |
| 4055 | else |
| 4056 | CFLAGS="" |
| 4057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4058 | /* end confdefs.h. */ |
| 4059 | |
| 4060 | int |
| 4061 | main () |
| 4062 | { |
| 4063 | |
| 4064 | ; |
| 4065 | return 0; |
| 4066 | } |
| 4067 | _ACEOF |
| 4068 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4069 | |
| 4070 | else |
| 4071 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4072 | CFLAGS="-g" |
| 4073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4074 | /* end confdefs.h. */ |
| 4075 | |
| 4076 | int |
| 4077 | main () |
| 4078 | { |
| 4079 | |
| 4080 | ; |
| 4081 | return 0; |
| 4082 | } |
| 4083 | _ACEOF |
| 4084 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4085 | ac_cv_prog_cc_g=yes |
| 4086 | fi |
| 4087 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4088 | fi |
| 4089 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4090 | fi |
| 4091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4092 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4093 | fi |
| 4094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4095 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4096 | if test "$ac_test_CFLAGS" = set; then |
| 4097 | CFLAGS=$ac_save_CFLAGS |
| 4098 | elif test $ac_cv_prog_cc_g = yes; then |
| 4099 | if test "$GCC" = yes; then |
| 4100 | CFLAGS="-g -O2" |
| 4101 | else |
| 4102 | CFLAGS="-g" |
| 4103 | fi |
| 4104 | else |
| 4105 | if test "$GCC" = yes; then |
| 4106 | CFLAGS="-O2" |
| 4107 | else |
| 4108 | CFLAGS= |
| 4109 | fi |
| 4110 | fi |
| 4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4112 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4113 | if ${ac_cv_prog_cc_c89+:} false; then : |
| 4114 | $as_echo_n "(cached) " >&6 |
| 4115 | else |
| 4116 | ac_cv_prog_cc_c89=no |
| 4117 | ac_save_CC=$CC |
| 4118 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4119 | /* end confdefs.h. */ |
| 4120 | #include <stdarg.h> |
| 4121 | #include <stdio.h> |
| 4122 | struct stat; |
| 4123 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4124 | struct buf { int x; }; |
| 4125 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4126 | static char *e (p, i) |
| 4127 | char **p; |
| 4128 | int i; |
| 4129 | { |
| 4130 | return p[i]; |
| 4131 | } |
| 4132 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4133 | { |
| 4134 | char *s; |
| 4135 | va_list v; |
| 4136 | va_start (v,p); |
| 4137 | s = g (p, va_arg (v,int)); |
| 4138 | va_end (v); |
| 4139 | return s; |
| 4140 | } |
| 4141 | |
| 4142 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4143 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4144 | These don't provoke an error unfortunately, instead are silently treated |
| 4145 | as 'x'. The following induces an error, until -std is added to get |
| 4146 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4147 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4148 | that's true only with -std. */ |
| 4149 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4150 | |
| 4151 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4152 | inside strings and character constants. */ |
| 4153 | #define FOO(x) 'x' |
| 4154 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4155 | |
| 4156 | int test (int i, double x); |
| 4157 | struct s1 {int (*f) (int a);}; |
| 4158 | struct s2 {int (*f) (double a);}; |
| 4159 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4160 | int argc; |
| 4161 | char **argv; |
| 4162 | int |
| 4163 | main () |
| 4164 | { |
| 4165 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4166 | ; |
| 4167 | return 0; |
| 4168 | } |
| 4169 | _ACEOF |
| 4170 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4171 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4172 | do |
| 4173 | CC="$ac_save_CC $ac_arg" |
| 4174 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4175 | ac_cv_prog_cc_c89=$ac_arg |
| 4176 | fi |
| 4177 | rm -f core conftest.err conftest.$ac_objext |
| 4178 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4179 | done |
| 4180 | rm -f conftest.$ac_ext |
| 4181 | CC=$ac_save_CC |
| 4182 | |
| 4183 | fi |
| 4184 | # AC_CACHE_VAL |
| 4185 | case "x$ac_cv_prog_cc_c89" in |
| 4186 | x) |
| 4187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4188 | $as_echo "none needed" >&6; } ;; |
| 4189 | xno) |
| 4190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4191 | $as_echo "unsupported" >&6; } ;; |
| 4192 | *) |
| 4193 | CC="$CC $ac_cv_prog_cc_c89" |
| 4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4195 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4196 | esac |
| 4197 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4198 | |
| 4199 | fi |
| 4200 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4201 | ac_ext=c |
| 4202 | ac_cpp='$CPP $CPPFLAGS' |
| 4203 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4204 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4205 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4206 | |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4207 | ac_ext=c |
| 4208 | ac_cpp='$CPP $CPPFLAGS' |
| 4209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 4213 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } |
| 4214 | if ${am_cv_prog_cc_c_o+:} false; then : |
| 4215 | $as_echo_n "(cached) " >&6 |
| 4216 | else |
| 4217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4218 | /* end confdefs.h. */ |
| 4219 | |
| 4220 | int |
| 4221 | main () |
| 4222 | { |
| 4223 | |
| 4224 | ; |
| 4225 | return 0; |
| 4226 | } |
| 4227 | _ACEOF |
| 4228 | # Make sure it works both with $CC and with simple cc. |
| 4229 | # Following AC_PROG_CC_C_O, we do the test twice because some |
| 4230 | # compilers refuse to overwrite an existing .o file with -o, |
| 4231 | # though they will create one. |
| 4232 | am_cv_prog_cc_c_o=yes |
| 4233 | for am_i in 1 2; do |
| 4234 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 4235 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 4236 | ac_status=$? |
| 4237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4238 | (exit $ac_status); } \ |
| 4239 | && test -f conftest2.$ac_objext; then |
| 4240 | : OK |
| 4241 | else |
| 4242 | am_cv_prog_cc_c_o=no |
| 4243 | break |
| 4244 | fi |
| 4245 | done |
| 4246 | rm -f core conftest* |
| 4247 | unset am_i |
| 4248 | fi |
| 4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 4250 | $as_echo "$am_cv_prog_cc_c_o" >&6; } |
| 4251 | if test "$am_cv_prog_cc_c_o" != yes; then |
| 4252 | # Losing compiler, so override with the script. |
| 4253 | # FIXME: It is wrong to rewrite CC. |
| 4254 | # But if we don't then we get into trouble of one sort or another. |
| 4255 | # A longer-term fix would be to have automake use am__CC in this case, |
| 4256 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 4257 | CC="$am_aux_dir/compile $CC" |
| 4258 | fi |
| 4259 | ac_ext=c |
| 4260 | ac_cpp='$CPP $CPPFLAGS' |
| 4261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4264 | |
| 4265 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4266 | depcc="$CC" am_compiler_list= |
| 4267 | |
| 4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4269 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4270 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : |
| 4271 | $as_echo_n "(cached) " >&6 |
| 4272 | else |
| 4273 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4274 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4275 | # making bogus files that we don't know about and never remove. For |
| 4276 | # instance it was reported that on HP-UX the gcc test will end up |
| 4277 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 4278 | # in D". |
| 4279 | rm -rf conftest.dir |
| 4280 | mkdir conftest.dir |
| 4281 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4282 | # using a relative directory. |
| 4283 | cp "$am_depcomp" conftest.dir |
| 4284 | cd conftest.dir |
| 4285 | # We will build objects and dependencies in a subdirectory because |
| 4286 | # it helps to detect inapplicable dependency modes. For instance |
| 4287 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4288 | # side effect of compilation, but ICC will put the dependencies in |
| 4289 | # the current directory while Tru64 will put them in the object |
| 4290 | # directory. |
| 4291 | mkdir sub |
| 4292 | |
| 4293 | am_cv_CC_dependencies_compiler_type=none |
| 4294 | if test "$am_compiler_list" = ""; then |
| 4295 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4296 | fi |
| 4297 | am__universal=false |
| 4298 | case " $depcc " in #( |
| 4299 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4300 | esac |
| 4301 | |
| 4302 | for depmode in $am_compiler_list; do |
| 4303 | # Setup a source with many dependencies, because some compilers |
| 4304 | # like to wrap large dependency lists on column 80 (with \), and |
| 4305 | # we should not choose a depcomp mode which is confused by this. |
| 4306 | # |
| 4307 | # We need to recreate these files for each test, as the compiler may |
| 4308 | # overwrite some of them when testing with obscure command lines. |
| 4309 | # This happens at least with the AIX C compiler. |
| 4310 | : > sub/conftest.c |
| 4311 | for i in 1 2 3 4 5 6; do |
| 4312 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4313 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 4314 | # Solaris 10 /bin/sh. |
| 4315 | echo '/* dummy */' > sub/conftst$i.h |
| 4316 | done |
| 4317 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4318 | |
| 4319 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 4320 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4321 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 4322 | # versions had trouble with output in subdirs. |
| 4323 | am__obj=sub/conftest.${OBJEXT-o} |
| 4324 | am__minus_obj="-o $am__obj" |
| 4325 | case $depmode in |
| 4326 | gcc) |
| 4327 | # This depmode causes a compiler race in universal mode. |
| 4328 | test "$am__universal" = false || continue |
| 4329 | ;; |
| 4330 | nosideeffect) |
| 4331 | # After this tag, mechanisms are not by side-effect, so they'll |
| 4332 | # only be used when explicitly requested. |
| 4333 | if test "x$enable_dependency_tracking" = xyes; then |
| 4334 | continue |
| 4335 | else |
| 4336 | break |
| 4337 | fi |
| 4338 | ;; |
| 4339 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 4340 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 4341 | # not run yet. These depmodes are late enough in the game, and |
| 4342 | # so weak that their functioning should not be impacted. |
| 4343 | am__obj=conftest.${OBJEXT-o} |
| 4344 | am__minus_obj= |
| 4345 | ;; |
| 4346 | none) break ;; |
| 4347 | esac |
| 4348 | if depmode=$depmode \ |
| 4349 | source=sub/conftest.c object=$am__obj \ |
| 4350 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 4351 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 4352 | >/dev/null 2>conftest.err && |
| 4353 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 4354 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 4355 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 4356 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4357 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4358 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4359 | # that says an option was ignored or not supported. |
| 4360 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4361 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4362 | # The diagnosis changed in icc 8.0: |
| 4363 | # icc: Command line remark: option '-MP' not supported |
| 4364 | if (grep 'ignoring option' conftest.err || |
| 4365 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4366 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4367 | break |
| 4368 | fi |
| 4369 | fi |
| 4370 | done |
| 4371 | |
| 4372 | cd .. |
| 4373 | rm -rf conftest.dir |
| 4374 | else |
| 4375 | am_cv_CC_dependencies_compiler_type=none |
| 4376 | fi |
| 4377 | |
| 4378 | fi |
| 4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4380 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 4381 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 4382 | |
| 4383 | if |
| 4384 | test "x$enable_dependency_tracking" != xno \ |
| 4385 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 4386 | am__fastdepCC_TRUE= |
| 4387 | am__fastdepCC_FALSE='#' |
| 4388 | else |
| 4389 | am__fastdepCC_TRUE='#' |
| 4390 | am__fastdepCC_FALSE= |
| 4391 | fi |
| 4392 | |
| 4393 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4394 | |
| 4395 | if test -n "$ac_tool_prefix"; then |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4396 | for ac_prog in ar lib "link -lib" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4397 | do |
| 4398 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4399 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4401 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4402 | if ${ac_cv_prog_AR+:} false; then : |
| 4403 | $as_echo_n "(cached) " >&6 |
| 4404 | else |
| 4405 | if test -n "$AR"; then |
| 4406 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4407 | else |
| 4408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4409 | for as_dir in $PATH |
| 4410 | do |
| 4411 | IFS=$as_save_IFS |
| 4412 | test -z "$as_dir" && as_dir=. |
| 4413 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4414 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4415 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 4416 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4417 | break 2 |
| 4418 | fi |
| 4419 | done |
| 4420 | done |
| 4421 | IFS=$as_save_IFS |
| 4422 | |
| 4423 | fi |
| 4424 | fi |
| 4425 | AR=$ac_cv_prog_AR |
| 4426 | if test -n "$AR"; then |
| 4427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4428 | $as_echo "$AR" >&6; } |
| 4429 | else |
| 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4431 | $as_echo "no" >&6; } |
| 4432 | fi |
| 4433 | |
| 4434 | |
| 4435 | test -n "$AR" && break |
| 4436 | done |
| 4437 | fi |
| 4438 | if test -z "$AR"; then |
| 4439 | ac_ct_AR=$AR |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4440 | for ac_prog in ar lib "link -lib" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4441 | do |
| 4442 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4443 | set dummy $ac_prog; ac_word=$2 |
| 4444 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4445 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4446 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 4447 | $as_echo_n "(cached) " >&6 |
| 4448 | else |
| 4449 | if test -n "$ac_ct_AR"; then |
| 4450 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 4451 | else |
| 4452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4453 | for as_dir in $PATH |
| 4454 | do |
| 4455 | IFS=$as_save_IFS |
| 4456 | test -z "$as_dir" && as_dir=. |
| 4457 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4458 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4459 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 4460 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4461 | break 2 |
| 4462 | fi |
| 4463 | done |
| 4464 | done |
| 4465 | IFS=$as_save_IFS |
| 4466 | |
| 4467 | fi |
| 4468 | fi |
| 4469 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 4470 | if test -n "$ac_ct_AR"; then |
| 4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 4472 | $as_echo "$ac_ct_AR" >&6; } |
| 4473 | else |
| 4474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4475 | $as_echo "no" >&6; } |
| 4476 | fi |
| 4477 | |
| 4478 | |
| 4479 | test -n "$ac_ct_AR" && break |
| 4480 | done |
| 4481 | |
| 4482 | if test "x$ac_ct_AR" = x; then |
| 4483 | AR="false" |
| 4484 | else |
| 4485 | case $cross_compiling:$ac_tool_warned in |
| 4486 | yes:) |
| 4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4488 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4489 | ac_tool_warned=yes ;; |
| 4490 | esac |
| 4491 | AR=$ac_ct_AR |
| 4492 | fi |
| 4493 | fi |
| 4494 | |
| 4495 | : ${AR=ar} |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4496 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 |
| 4498 | $as_echo_n "checking the archiver ($AR) interface... " >&6; } |
| 4499 | if ${am_cv_ar_interface+:} false; then : |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4500 | $as_echo_n "(cached) " >&6 |
| 4501 | else |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4502 | ac_ext=c |
| 4503 | ac_cpp='$CPP $CPPFLAGS' |
| 4504 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4505 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4506 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4507 | |
| 4508 | am_cv_ar_interface=ar |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4509 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4510 | /* end confdefs.h. */ |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4511 | int some_variable = 0; |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4512 | _ACEOF |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4513 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4514 | am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' |
| 4515 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4516 | (eval $am_ar_try) 2>&5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4517 | ac_status=$? |
| 4518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4519 | test $ac_status = 0; } |
| 4520 | if test "$ac_status" -eq 0; then |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4521 | am_cv_ar_interface=ar |
| 4522 | else |
| 4523 | am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' |
| 4524 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 |
| 4525 | (eval $am_ar_try) 2>&5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4526 | ac_status=$? |
| 4527 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4528 | test $ac_status = 0; } |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4529 | if test "$ac_status" -eq 0; then |
| 4530 | am_cv_ar_interface=lib |
| 4531 | else |
| 4532 | am_cv_ar_interface=unknown |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4533 | fi |
| 4534 | fi |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4535 | rm -f conftest.lib libconftest.a |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4536 | |
| 4537 | fi |
| 4538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jeff Thompson | a04f23c | 2013-09-16 17:48:38 -0700 | [diff] [blame] | 4539 | ac_ext=c |
| 4540 | ac_cpp='$CPP $CPPFLAGS' |
| 4541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4544 | |
| 4545 | fi |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 |
| 4547 | $as_echo "$am_cv_ar_interface" >&6; } |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4548 | |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4549 | case $am_cv_ar_interface in |
| 4550 | ar) |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4551 | ;; |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4552 | lib) |
| 4553 | # Microsoft lib, so override with the ar-lib wrapper script. |
| 4554 | # FIXME: It is wrong to rewrite AR. |
| 4555 | # But if we don't then we get into trouble of one sort or another. |
| 4556 | # A longer-term fix would be to have automake use am__AR in this case, |
| 4557 | # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something |
| 4558 | # similar. |
| 4559 | AR="$am_aux_dir/ar-lib $AR" |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4560 | ;; |
Jeff Thompson | 3b3aabf | 2013-06-21 16:50:20 -0700 | [diff] [blame] | 4561 | unknown) |
| 4562 | as_fn_error $? "could not determine $AR interface" "$LINENO" 5 |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 4563 | ;; |
| 4564 | esac |
| 4565 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 4566 | case `pwd` in |
| 4567 | *\ * | *\ *) |
| 4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4569 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4570 | esac |
| 4571 | |
| 4572 | |
| 4573 | |
| 4574 | macro_version='2.4.2' |
| 4575 | macro_revision='1.3337' |
| 4576 | |
| 4577 | |
| 4578 | |
| 4579 | |
| 4580 | |
| 4581 | |
| 4582 | |
| 4583 | |
| 4584 | |
| 4585 | |
| 4586 | |
| 4587 | |
| 4588 | |
| 4589 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4590 | |
| 4591 | # Make sure we can run config.sub. |
| 4592 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4593 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4594 | |
| 4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4596 | $as_echo_n "checking build system type... " >&6; } |
| 4597 | if ${ac_cv_build+:} false; then : |
| 4598 | $as_echo_n "(cached) " >&6 |
| 4599 | else |
| 4600 | ac_build_alias=$build_alias |
| 4601 | test "x$ac_build_alias" = x && |
| 4602 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4603 | test "x$ac_build_alias" = x && |
| 4604 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4605 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4606 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4607 | |
| 4608 | fi |
| 4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4610 | $as_echo "$ac_cv_build" >&6; } |
| 4611 | case $ac_cv_build in |
| 4612 | *-*-*) ;; |
| 4613 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4614 | esac |
| 4615 | build=$ac_cv_build |
| 4616 | ac_save_IFS=$IFS; IFS='-' |
| 4617 | set x $ac_cv_build |
| 4618 | shift |
| 4619 | build_cpu=$1 |
| 4620 | build_vendor=$2 |
| 4621 | shift; shift |
| 4622 | # Remember, the first character of IFS is used to create $*, |
| 4623 | # except with old shells: |
| 4624 | build_os=$* |
| 4625 | IFS=$ac_save_IFS |
| 4626 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4627 | |
| 4628 | |
| 4629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4630 | $as_echo_n "checking host system type... " >&6; } |
| 4631 | if ${ac_cv_host+:} false; then : |
| 4632 | $as_echo_n "(cached) " >&6 |
| 4633 | else |
| 4634 | if test "x$host_alias" = x; then |
| 4635 | ac_cv_host=$ac_cv_build |
| 4636 | else |
| 4637 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4638 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4639 | fi |
| 4640 | |
| 4641 | fi |
| 4642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4643 | $as_echo "$ac_cv_host" >&6; } |
| 4644 | case $ac_cv_host in |
| 4645 | *-*-*) ;; |
| 4646 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4647 | esac |
| 4648 | host=$ac_cv_host |
| 4649 | ac_save_IFS=$IFS; IFS='-' |
| 4650 | set x $ac_cv_host |
| 4651 | shift |
| 4652 | host_cpu=$1 |
| 4653 | host_vendor=$2 |
| 4654 | shift; shift |
| 4655 | # Remember, the first character of IFS is used to create $*, |
| 4656 | # except with old shells: |
| 4657 | host_os=$* |
| 4658 | IFS=$ac_save_IFS |
| 4659 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4660 | |
| 4661 | |
| 4662 | # Backslashify metacharacters that are still active within |
| 4663 | # double-quoted strings. |
| 4664 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 4665 | |
| 4666 | # Same as above, but do not quote variable references. |
| 4667 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 4668 | |
| 4669 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 4670 | # double_quote_subst'ed string. |
| 4671 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 4672 | |
| 4673 | # Sed substitution to delay expansion of an escaped single quote. |
| 4674 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 4675 | |
| 4676 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 4677 | no_glob_subst='s/\*/\\\*/g' |
| 4678 | |
| 4679 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 4680 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4681 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 4682 | |
| 4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 4684 | $as_echo_n "checking how to print strings... " >&6; } |
| 4685 | # Test print first, because it will be a builtin if present. |
| 4686 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 4687 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4688 | ECHO='print -r --' |
| 4689 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 4690 | ECHO='printf %s\n' |
| 4691 | else |
| 4692 | # Use this function as a fallback that always works. |
| 4693 | func_fallback_echo () |
| 4694 | { |
| 4695 | eval 'cat <<_LTECHO_EOF |
| 4696 | $1 |
| 4697 | _LTECHO_EOF' |
| 4698 | } |
| 4699 | ECHO='func_fallback_echo' |
| 4700 | fi |
| 4701 | |
| 4702 | # func_echo_all arg... |
| 4703 | # Invoke $ECHO with all args, space-separated. |
| 4704 | func_echo_all () |
| 4705 | { |
| 4706 | $ECHO "" |
| 4707 | } |
| 4708 | |
| 4709 | case "$ECHO" in |
| 4710 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 4711 | $as_echo "printf" >&6; } ;; |
| 4712 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 4713 | $as_echo "print -r" >&6; } ;; |
| 4714 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 4715 | $as_echo "cat" >&6; } ;; |
| 4716 | esac |
| 4717 | |
| 4718 | |
| 4719 | |
| 4720 | |
| 4721 | |
| 4722 | |
| 4723 | |
| 4724 | |
| 4725 | |
| 4726 | |
| 4727 | |
| 4728 | |
| 4729 | |
| 4730 | |
| 4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4732 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4733 | if ${ac_cv_path_SED+:} false; then : |
| 4734 | $as_echo_n "(cached) " >&6 |
| 4735 | else |
| 4736 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4737 | for ac_i in 1 2 3 4 5 6 7; do |
| 4738 | ac_script="$ac_script$as_nl$ac_script" |
| 4739 | done |
| 4740 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4741 | { ac_script=; unset ac_script;} |
| 4742 | if test -z "$SED"; then |
| 4743 | ac_path_SED_found=false |
| 4744 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4746 | for as_dir in $PATH |
| 4747 | do |
| 4748 | IFS=$as_save_IFS |
| 4749 | test -z "$as_dir" && as_dir=. |
| 4750 | for ac_prog in sed gsed; do |
| 4751 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4752 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4753 | as_fn_executable_p "$ac_path_SED" || continue |
| 4754 | # Check for GNU ac_path_SED and select it if it is found. |
| 4755 | # Check for GNU $ac_path_SED |
| 4756 | case `"$ac_path_SED" --version 2>&1` in |
| 4757 | *GNU*) |
| 4758 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4759 | *) |
| 4760 | ac_count=0 |
| 4761 | $as_echo_n 0123456789 >"conftest.in" |
| 4762 | while : |
| 4763 | do |
| 4764 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4765 | mv "conftest.tmp" "conftest.in" |
| 4766 | cp "conftest.in" "conftest.nl" |
| 4767 | $as_echo '' >> "conftest.nl" |
| 4768 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4769 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4770 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4771 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4772 | # Best one so far, save it but keep looking for a better one |
| 4773 | ac_cv_path_SED="$ac_path_SED" |
| 4774 | ac_path_SED_max=$ac_count |
| 4775 | fi |
| 4776 | # 10*(2^10) chars as input seems more than enough |
| 4777 | test $ac_count -gt 10 && break |
| 4778 | done |
| 4779 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4780 | esac |
| 4781 | |
| 4782 | $ac_path_SED_found && break 3 |
| 4783 | done |
| 4784 | done |
| 4785 | done |
| 4786 | IFS=$as_save_IFS |
| 4787 | if test -z "$ac_cv_path_SED"; then |
| 4788 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4789 | fi |
| 4790 | else |
| 4791 | ac_cv_path_SED=$SED |
| 4792 | fi |
| 4793 | |
| 4794 | fi |
| 4795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4796 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4797 | SED="$ac_cv_path_SED" |
| 4798 | rm -f conftest.sed |
| 4799 | |
| 4800 | test -z "$SED" && SED=sed |
| 4801 | Xsed="$SED -e 1s/^X//" |
| 4802 | |
| 4803 | |
| 4804 | |
| 4805 | |
| 4806 | |
| 4807 | |
| 4808 | |
| 4809 | |
| 4810 | |
| 4811 | |
| 4812 | |
| 4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4814 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4815 | if ${ac_cv_path_GREP+:} false; then : |
| 4816 | $as_echo_n "(cached) " >&6 |
| 4817 | else |
| 4818 | if test -z "$GREP"; then |
| 4819 | ac_path_GREP_found=false |
| 4820 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4821 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4822 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4823 | do |
| 4824 | IFS=$as_save_IFS |
| 4825 | test -z "$as_dir" && as_dir=. |
| 4826 | for ac_prog in grep ggrep; do |
| 4827 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4828 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4829 | as_fn_executable_p "$ac_path_GREP" || continue |
| 4830 | # Check for GNU ac_path_GREP and select it if it is found. |
| 4831 | # Check for GNU $ac_path_GREP |
| 4832 | case `"$ac_path_GREP" --version 2>&1` in |
| 4833 | *GNU*) |
| 4834 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4835 | *) |
| 4836 | ac_count=0 |
| 4837 | $as_echo_n 0123456789 >"conftest.in" |
| 4838 | while : |
| 4839 | do |
| 4840 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4841 | mv "conftest.tmp" "conftest.in" |
| 4842 | cp "conftest.in" "conftest.nl" |
| 4843 | $as_echo 'GREP' >> "conftest.nl" |
| 4844 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4845 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4846 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4847 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4848 | # Best one so far, save it but keep looking for a better one |
| 4849 | ac_cv_path_GREP="$ac_path_GREP" |
| 4850 | ac_path_GREP_max=$ac_count |
| 4851 | fi |
| 4852 | # 10*(2^10) chars as input seems more than enough |
| 4853 | test $ac_count -gt 10 && break |
| 4854 | done |
| 4855 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4856 | esac |
| 4857 | |
| 4858 | $ac_path_GREP_found && break 3 |
| 4859 | done |
| 4860 | done |
| 4861 | done |
| 4862 | IFS=$as_save_IFS |
| 4863 | if test -z "$ac_cv_path_GREP"; then |
| 4864 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4865 | fi |
| 4866 | else |
| 4867 | ac_cv_path_GREP=$GREP |
| 4868 | fi |
| 4869 | |
| 4870 | fi |
| 4871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4872 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 4873 | GREP="$ac_cv_path_GREP" |
| 4874 | |
| 4875 | |
| 4876 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4877 | $as_echo_n "checking for egrep... " >&6; } |
| 4878 | if ${ac_cv_path_EGREP+:} false; then : |
| 4879 | $as_echo_n "(cached) " >&6 |
| 4880 | else |
| 4881 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4882 | then ac_cv_path_EGREP="$GREP -E" |
| 4883 | else |
| 4884 | if test -z "$EGREP"; then |
| 4885 | ac_path_EGREP_found=false |
| 4886 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4888 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4889 | do |
| 4890 | IFS=$as_save_IFS |
| 4891 | test -z "$as_dir" && as_dir=. |
| 4892 | for ac_prog in egrep; do |
| 4893 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4894 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4895 | as_fn_executable_p "$ac_path_EGREP" || continue |
| 4896 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 4897 | # Check for GNU $ac_path_EGREP |
| 4898 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4899 | *GNU*) |
| 4900 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4901 | *) |
| 4902 | ac_count=0 |
| 4903 | $as_echo_n 0123456789 >"conftest.in" |
| 4904 | while : |
| 4905 | do |
| 4906 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4907 | mv "conftest.tmp" "conftest.in" |
| 4908 | cp "conftest.in" "conftest.nl" |
| 4909 | $as_echo 'EGREP' >> "conftest.nl" |
| 4910 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4911 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4912 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4913 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4914 | # Best one so far, save it but keep looking for a better one |
| 4915 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4916 | ac_path_EGREP_max=$ac_count |
| 4917 | fi |
| 4918 | # 10*(2^10) chars as input seems more than enough |
| 4919 | test $ac_count -gt 10 && break |
| 4920 | done |
| 4921 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4922 | esac |
| 4923 | |
| 4924 | $ac_path_EGREP_found && break 3 |
| 4925 | done |
| 4926 | done |
| 4927 | done |
| 4928 | IFS=$as_save_IFS |
| 4929 | if test -z "$ac_cv_path_EGREP"; then |
| 4930 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4931 | fi |
| 4932 | else |
| 4933 | ac_cv_path_EGREP=$EGREP |
| 4934 | fi |
| 4935 | |
| 4936 | fi |
| 4937 | fi |
| 4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4939 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4940 | EGREP="$ac_cv_path_EGREP" |
| 4941 | |
| 4942 | |
| 4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4944 | $as_echo_n "checking for fgrep... " >&6; } |
| 4945 | if ${ac_cv_path_FGREP+:} false; then : |
| 4946 | $as_echo_n "(cached) " >&6 |
| 4947 | else |
| 4948 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4949 | then ac_cv_path_FGREP="$GREP -F" |
| 4950 | else |
| 4951 | if test -z "$FGREP"; then |
| 4952 | ac_path_FGREP_found=false |
| 4953 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4955 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4956 | do |
| 4957 | IFS=$as_save_IFS |
| 4958 | test -z "$as_dir" && as_dir=. |
| 4959 | for ac_prog in fgrep; do |
| 4960 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4961 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4962 | as_fn_executable_p "$ac_path_FGREP" || continue |
| 4963 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4964 | # Check for GNU $ac_path_FGREP |
| 4965 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4966 | *GNU*) |
| 4967 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4968 | *) |
| 4969 | ac_count=0 |
| 4970 | $as_echo_n 0123456789 >"conftest.in" |
| 4971 | while : |
| 4972 | do |
| 4973 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4974 | mv "conftest.tmp" "conftest.in" |
| 4975 | cp "conftest.in" "conftest.nl" |
| 4976 | $as_echo 'FGREP' >> "conftest.nl" |
| 4977 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4978 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4979 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4980 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4981 | # Best one so far, save it but keep looking for a better one |
| 4982 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4983 | ac_path_FGREP_max=$ac_count |
| 4984 | fi |
| 4985 | # 10*(2^10) chars as input seems more than enough |
| 4986 | test $ac_count -gt 10 && break |
| 4987 | done |
| 4988 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4989 | esac |
| 4990 | |
| 4991 | $ac_path_FGREP_found && break 3 |
| 4992 | done |
| 4993 | done |
| 4994 | done |
| 4995 | IFS=$as_save_IFS |
| 4996 | if test -z "$ac_cv_path_FGREP"; then |
| 4997 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4998 | fi |
| 4999 | else |
| 5000 | ac_cv_path_FGREP=$FGREP |
| 5001 | fi |
| 5002 | |
| 5003 | fi |
| 5004 | fi |
| 5005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 5006 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 5007 | FGREP="$ac_cv_path_FGREP" |
| 5008 | |
| 5009 | |
| 5010 | test -z "$GREP" && GREP=grep |
| 5011 | |
| 5012 | |
| 5013 | |
| 5014 | |
| 5015 | |
| 5016 | |
| 5017 | |
| 5018 | |
| 5019 | |
| 5020 | |
| 5021 | |
| 5022 | |
| 5023 | |
| 5024 | |
| 5025 | |
| 5026 | |
| 5027 | |
| 5028 | |
| 5029 | |
| 5030 | # Check whether --with-gnu-ld was given. |
| 5031 | if test "${with_gnu_ld+set}" = set; then : |
| 5032 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 5033 | else |
| 5034 | with_gnu_ld=no |
| 5035 | fi |
| 5036 | |
| 5037 | ac_prog=ld |
| 5038 | if test "$GCC" = yes; then |
| 5039 | # Check if gcc -print-prog-name=ld gives a path. |
| 5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 5041 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 5042 | case $host in |
| 5043 | *-*-mingw*) |
| 5044 | # gcc leaves a trailing carriage return which upsets mingw |
| 5045 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 5046 | *) |
| 5047 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 5048 | esac |
| 5049 | case $ac_prog in |
| 5050 | # Accept absolute paths. |
| 5051 | [\\/]* | ?:[\\/]*) |
| 5052 | re_direlt='/[^/][^/]*/\.\./' |
| 5053 | # Canonicalize the pathname of ld |
| 5054 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 5055 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 5056 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 5057 | done |
| 5058 | test -z "$LD" && LD="$ac_prog" |
| 5059 | ;; |
| 5060 | "") |
| 5061 | # If it fails, then pretend we aren't using GCC. |
| 5062 | ac_prog=ld |
| 5063 | ;; |
| 5064 | *) |
| 5065 | # If it is relative, then search for the first ld in PATH. |
| 5066 | with_gnu_ld=unknown |
| 5067 | ;; |
| 5068 | esac |
| 5069 | elif test "$with_gnu_ld" = yes; then |
| 5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 5071 | $as_echo_n "checking for GNU ld... " >&6; } |
| 5072 | else |
| 5073 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 5074 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 5075 | fi |
| 5076 | if ${lt_cv_path_LD+:} false; then : |
| 5077 | $as_echo_n "(cached) " >&6 |
| 5078 | else |
| 5079 | if test -z "$LD"; then |
| 5080 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5081 | for ac_dir in $PATH; do |
| 5082 | IFS="$lt_save_ifs" |
| 5083 | test -z "$ac_dir" && ac_dir=. |
| 5084 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 5085 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 5086 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 5087 | # but apparently some variants of GNU ld only accept -v. |
| 5088 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 5089 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 5090 | *GNU* | *'with BFD'*) |
| 5091 | test "$with_gnu_ld" != no && break |
| 5092 | ;; |
| 5093 | *) |
| 5094 | test "$with_gnu_ld" != yes && break |
| 5095 | ;; |
| 5096 | esac |
| 5097 | fi |
| 5098 | done |
| 5099 | IFS="$lt_save_ifs" |
| 5100 | else |
| 5101 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5102 | fi |
| 5103 | fi |
| 5104 | |
| 5105 | LD="$lt_cv_path_LD" |
| 5106 | if test -n "$LD"; then |
| 5107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5108 | $as_echo "$LD" >&6; } |
| 5109 | else |
| 5110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5111 | $as_echo "no" >&6; } |
| 5112 | fi |
| 5113 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 5114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 5115 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 5116 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 5117 | $as_echo_n "(cached) " >&6 |
| 5118 | else |
| 5119 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 5120 | case `$LD -v 2>&1 </dev/null` in |
| 5121 | *GNU* | *'with BFD'*) |
| 5122 | lt_cv_prog_gnu_ld=yes |
| 5123 | ;; |
| 5124 | *) |
| 5125 | lt_cv_prog_gnu_ld=no |
| 5126 | ;; |
| 5127 | esac |
| 5128 | fi |
| 5129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 5130 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 5131 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5132 | |
| 5133 | |
| 5134 | |
| 5135 | |
| 5136 | |
| 5137 | |
| 5138 | |
| 5139 | |
| 5140 | |
| 5141 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 5142 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5143 | if ${lt_cv_path_NM+:} false; then : |
| 5144 | $as_echo_n "(cached) " >&6 |
| 5145 | else |
| 5146 | if test -n "$NM"; then |
| 5147 | # Let the user override the test. |
| 5148 | lt_cv_path_NM="$NM" |
| 5149 | else |
| 5150 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5151 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5152 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5153 | fi |
| 5154 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5155 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5156 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5157 | IFS="$lt_save_ifs" |
| 5158 | test -z "$ac_dir" && ac_dir=. |
| 5159 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5160 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5161 | # Check to see if the nm accepts a BSD-compat flag. |
| 5162 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5163 | # nm: unknown option "B" ignored |
| 5164 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5165 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5166 | */dev/null* | *'Invalid file or object type'*) |
| 5167 | lt_cv_path_NM="$tmp_nm -B" |
| 5168 | break |
| 5169 | ;; |
| 5170 | *) |
| 5171 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5172 | */dev/null*) |
| 5173 | lt_cv_path_NM="$tmp_nm -p" |
| 5174 | break |
| 5175 | ;; |
| 5176 | *) |
| 5177 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5178 | continue # so that we can try to find one that supports BSD flags |
| 5179 | ;; |
| 5180 | esac |
| 5181 | ;; |
| 5182 | esac |
| 5183 | fi |
| 5184 | done |
| 5185 | IFS="$lt_save_ifs" |
| 5186 | done |
| 5187 | : ${lt_cv_path_NM=no} |
| 5188 | fi |
| 5189 | fi |
| 5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5191 | $as_echo "$lt_cv_path_NM" >&6; } |
| 5192 | if test "$lt_cv_path_NM" != "no"; then |
| 5193 | NM="$lt_cv_path_NM" |
| 5194 | else |
| 5195 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5196 | if test -n "$DUMPBIN"; then : |
| 5197 | # Let the user override the test. |
| 5198 | else |
| 5199 | if test -n "$ac_tool_prefix"; then |
| 5200 | for ac_prog in dumpbin "link -dump" |
| 5201 | do |
| 5202 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5203 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5205 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5206 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
| 5207 | $as_echo_n "(cached) " >&6 |
| 5208 | else |
| 5209 | if test -n "$DUMPBIN"; then |
| 5210 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5211 | else |
| 5212 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5213 | for as_dir in $PATH |
| 5214 | do |
| 5215 | IFS=$as_save_IFS |
| 5216 | test -z "$as_dir" && as_dir=. |
| 5217 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5218 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5219 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5220 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5221 | break 2 |
| 5222 | fi |
| 5223 | done |
| 5224 | done |
| 5225 | IFS=$as_save_IFS |
| 5226 | |
| 5227 | fi |
| 5228 | fi |
| 5229 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5230 | if test -n "$DUMPBIN"; then |
| 5231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5232 | $as_echo "$DUMPBIN" >&6; } |
| 5233 | else |
| 5234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5235 | $as_echo "no" >&6; } |
| 5236 | fi |
| 5237 | |
| 5238 | |
| 5239 | test -n "$DUMPBIN" && break |
| 5240 | done |
| 5241 | fi |
| 5242 | if test -z "$DUMPBIN"; then |
| 5243 | ac_ct_DUMPBIN=$DUMPBIN |
| 5244 | for ac_prog in dumpbin "link -dump" |
| 5245 | do |
| 5246 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5247 | set dummy $ac_prog; ac_word=$2 |
| 5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5249 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5250 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
| 5251 | $as_echo_n "(cached) " >&6 |
| 5252 | else |
| 5253 | if test -n "$ac_ct_DUMPBIN"; then |
| 5254 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5255 | else |
| 5256 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5257 | for as_dir in $PATH |
| 5258 | do |
| 5259 | IFS=$as_save_IFS |
| 5260 | test -z "$as_dir" && as_dir=. |
| 5261 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5262 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5263 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5264 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5265 | break 2 |
| 5266 | fi |
| 5267 | done |
| 5268 | done |
| 5269 | IFS=$as_save_IFS |
| 5270 | |
| 5271 | fi |
| 5272 | fi |
| 5273 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5274 | if test -n "$ac_ct_DUMPBIN"; then |
| 5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5276 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5277 | else |
| 5278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5279 | $as_echo "no" >&6; } |
| 5280 | fi |
| 5281 | |
| 5282 | |
| 5283 | test -n "$ac_ct_DUMPBIN" && break |
| 5284 | done |
| 5285 | |
| 5286 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5287 | DUMPBIN=":" |
| 5288 | else |
| 5289 | case $cross_compiling:$ac_tool_warned in |
| 5290 | yes:) |
| 5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5292 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5293 | ac_tool_warned=yes ;; |
| 5294 | esac |
| 5295 | DUMPBIN=$ac_ct_DUMPBIN |
| 5296 | fi |
| 5297 | fi |
| 5298 | |
| 5299 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
| 5300 | *COFF*) |
| 5301 | DUMPBIN="$DUMPBIN -symbols" |
| 5302 | ;; |
| 5303 | *) |
| 5304 | DUMPBIN=: |
| 5305 | ;; |
| 5306 | esac |
| 5307 | fi |
| 5308 | |
| 5309 | if test "$DUMPBIN" != ":"; then |
| 5310 | NM="$DUMPBIN" |
| 5311 | fi |
| 5312 | fi |
| 5313 | test -z "$NM" && NM=nm |
| 5314 | |
| 5315 | |
| 5316 | |
| 5317 | |
| 5318 | |
| 5319 | |
| 5320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5321 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5322 | if ${lt_cv_nm_interface+:} false; then : |
| 5323 | $as_echo_n "(cached) " >&6 |
| 5324 | else |
| 5325 | lt_cv_nm_interface="BSD nm" |
| 5326 | echo "int some_variable = 0;" > conftest.$ac_ext |
| 5327 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 5328 | (eval "$ac_compile" 2>conftest.err) |
| 5329 | cat conftest.err >&5 |
| 5330 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 5331 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5332 | cat conftest.err >&5 |
| 5333 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 5334 | cat conftest.out >&5 |
| 5335 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5336 | lt_cv_nm_interface="MS dumpbin" |
| 5337 | fi |
| 5338 | rm -f conftest* |
| 5339 | fi |
| 5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5341 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 5342 | |
| 5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5344 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 5345 | LN_S=$as_ln_s |
| 5346 | if test "$LN_S" = "ln -s"; then |
| 5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5348 | $as_echo "yes" >&6; } |
| 5349 | else |
| 5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5351 | $as_echo "no, using $LN_S" >&6; } |
| 5352 | fi |
| 5353 | |
| 5354 | # find the maximum length of command line arguments |
| 5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5356 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5357 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
| 5358 | $as_echo_n "(cached) " >&6 |
| 5359 | else |
| 5360 | i=0 |
| 5361 | teststring="ABCD" |
| 5362 | |
| 5363 | case $build_os in |
| 5364 | msdosdjgpp*) |
| 5365 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5366 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5367 | # during glob expansion). Even if it were fixed, the result of this |
| 5368 | # check would be larger than it should be. |
| 5369 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5370 | ;; |
| 5371 | |
| 5372 | gnu*) |
| 5373 | # Under GNU Hurd, this test is not required because there is |
| 5374 | # no limit to the length of command line arguments. |
| 5375 | # Libtool will interpret -1 as no limit whatsoever |
| 5376 | lt_cv_sys_max_cmd_len=-1; |
| 5377 | ;; |
| 5378 | |
| 5379 | cygwin* | mingw* | cegcc*) |
| 5380 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5381 | # about 5 minutes as the teststring grows exponentially. |
| 5382 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5383 | # you end up with a "frozen" computer, even though with patience |
| 5384 | # the test eventually succeeds (with a max line length of 256k). |
| 5385 | # Instead, let's just punt: use the minimum linelength reported by |
| 5386 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5387 | lt_cv_sys_max_cmd_len=8192; |
| 5388 | ;; |
| 5389 | |
| 5390 | mint*) |
| 5391 | # On MiNT this can take a long time and run out of memory. |
| 5392 | lt_cv_sys_max_cmd_len=8192; |
| 5393 | ;; |
| 5394 | |
| 5395 | amigaos*) |
| 5396 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5397 | # So we just punt and use a minimum line length of 8192. |
| 5398 | lt_cv_sys_max_cmd_len=8192; |
| 5399 | ;; |
| 5400 | |
| 5401 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5402 | # This has been around since 386BSD, at least. Likely further. |
| 5403 | if test -x /sbin/sysctl; then |
| 5404 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5405 | elif test -x /usr/sbin/sysctl; then |
| 5406 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5407 | else |
| 5408 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5409 | fi |
| 5410 | # And add a safety zone |
| 5411 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5412 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5413 | ;; |
| 5414 | |
| 5415 | interix*) |
| 5416 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5417 | lt_cv_sys_max_cmd_len=196608 |
| 5418 | ;; |
| 5419 | |
| 5420 | os2*) |
| 5421 | # The test takes a long time on OS/2. |
| 5422 | lt_cv_sys_max_cmd_len=8192 |
| 5423 | ;; |
| 5424 | |
| 5425 | osf*) |
| 5426 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5427 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5428 | # nice to cause kernel panics so lets avoid the loop below. |
| 5429 | # First set a reasonable default. |
| 5430 | lt_cv_sys_max_cmd_len=16384 |
| 5431 | # |
| 5432 | if test -x /sbin/sysconfig; then |
| 5433 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5434 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5435 | esac |
| 5436 | fi |
| 5437 | ;; |
| 5438 | sco3.2v5*) |
| 5439 | lt_cv_sys_max_cmd_len=102400 |
| 5440 | ;; |
| 5441 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5442 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5443 | if test -n "$kargmax"; then |
| 5444 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5445 | else |
| 5446 | lt_cv_sys_max_cmd_len=32768 |
| 5447 | fi |
| 5448 | ;; |
| 5449 | *) |
| 5450 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5451 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5452 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5453 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5454 | else |
| 5455 | # Make teststring a little bigger before we do anything with it. |
| 5456 | # a 1K string should be a reasonable start. |
| 5457 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5458 | teststring=$teststring$teststring |
| 5459 | done |
| 5460 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5461 | # If test is not a shell built-in, we'll probably end up computing a |
| 5462 | # maximum length that is only half of the actual maximum length, but |
| 5463 | # we can't tell. |
| 5464 | while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ |
| 5465 | = "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 5466 | test $i != 17 # 1/2 MB should be enough |
| 5467 | do |
| 5468 | i=`expr $i + 1` |
| 5469 | teststring=$teststring$teststring |
| 5470 | done |
| 5471 | # Only check the string length outside the loop. |
| 5472 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5473 | teststring= |
| 5474 | # Add a significant safety factor because C++ compilers can tack on |
| 5475 | # massive amounts of additional arguments before passing them to the |
| 5476 | # linker. It appears as though 1/2 is a usable value. |
| 5477 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5478 | fi |
| 5479 | ;; |
| 5480 | esac |
| 5481 | |
| 5482 | fi |
| 5483 | |
| 5484 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5486 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5487 | else |
| 5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5489 | $as_echo "none" >&6; } |
| 5490 | fi |
| 5491 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5492 | |
| 5493 | |
| 5494 | |
| 5495 | |
| 5496 | |
| 5497 | |
| 5498 | : ${CP="cp -f"} |
| 5499 | : ${MV="mv -f"} |
| 5500 | : ${RM="rm -f"} |
| 5501 | |
| 5502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5503 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5504 | # Try some XSI features |
| 5505 | xsi_shell=no |
| 5506 | ( _lt_dummy="a/b/c" |
| 5507 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ |
| 5508 | = c,a/b,b/c, \ |
| 5509 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5510 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5511 | && xsi_shell=yes |
| 5512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5513 | $as_echo "$xsi_shell" >&6; } |
| 5514 | |
| 5515 | |
| 5516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5517 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5518 | lt_shell_append=no |
| 5519 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5520 | >/dev/null 2>&1 \ |
| 5521 | && lt_shell_append=yes |
| 5522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5523 | $as_echo "$lt_shell_append" >&6; } |
| 5524 | |
| 5525 | |
| 5526 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5527 | lt_unset=unset |
| 5528 | else |
| 5529 | lt_unset=false |
| 5530 | fi |
| 5531 | |
| 5532 | |
| 5533 | |
| 5534 | |
| 5535 | |
| 5536 | # test EBCDIC or ASCII |
| 5537 | case `echo X|tr X '\101'` in |
| 5538 | A) # ASCII based system |
| 5539 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5540 | lt_SP2NL='tr \040 \012' |
| 5541 | lt_NL2SP='tr \015\012 \040\040' |
| 5542 | ;; |
| 5543 | *) # EBCDIC based system |
| 5544 | lt_SP2NL='tr \100 \n' |
| 5545 | lt_NL2SP='tr \r\n \100\100' |
| 5546 | ;; |
| 5547 | esac |
| 5548 | |
| 5549 | |
| 5550 | |
| 5551 | |
| 5552 | |
| 5553 | |
| 5554 | |
| 5555 | |
| 5556 | |
| 5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 5558 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } |
| 5559 | if ${lt_cv_to_host_file_cmd+:} false; then : |
| 5560 | $as_echo_n "(cached) " >&6 |
| 5561 | else |
| 5562 | case $host in |
| 5563 | *-*-mingw* ) |
| 5564 | case $build in |
| 5565 | *-*-mingw* ) # actually msys |
| 5566 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 5567 | ;; |
| 5568 | *-*-cygwin* ) |
| 5569 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 5570 | ;; |
| 5571 | * ) # otherwise, assume *nix |
| 5572 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 5573 | ;; |
| 5574 | esac |
| 5575 | ;; |
| 5576 | *-*-cygwin* ) |
| 5577 | case $build in |
| 5578 | *-*-mingw* ) # actually msys |
| 5579 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 5580 | ;; |
| 5581 | *-*-cygwin* ) |
| 5582 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5583 | ;; |
| 5584 | * ) # otherwise, assume *nix |
| 5585 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 5586 | ;; |
| 5587 | esac |
| 5588 | ;; |
| 5589 | * ) # unhandled hosts (and "normal" native builds) |
| 5590 | lt_cv_to_host_file_cmd=func_convert_file_noop |
| 5591 | ;; |
| 5592 | esac |
| 5593 | |
| 5594 | fi |
| 5595 | |
| 5596 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 5597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 5598 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } |
| 5599 | |
| 5600 | |
| 5601 | |
| 5602 | |
| 5603 | |
| 5604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 5605 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } |
| 5606 | if ${lt_cv_to_tool_file_cmd+:} false; then : |
| 5607 | $as_echo_n "(cached) " >&6 |
| 5608 | else |
| 5609 | #assume ordinary cross tools, or native build. |
| 5610 | lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 5611 | case $host in |
| 5612 | *-*-mingw* ) |
| 5613 | case $build in |
| 5614 | *-*-mingw* ) # actually msys |
| 5615 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 5616 | ;; |
| 5617 | esac |
| 5618 | ;; |
| 5619 | esac |
| 5620 | |
| 5621 | fi |
| 5622 | |
| 5623 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 5624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 5625 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } |
| 5626 | |
| 5627 | |
| 5628 | |
| 5629 | |
| 5630 | |
| 5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5632 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5633 | if ${lt_cv_ld_reload_flag+:} false; then : |
| 5634 | $as_echo_n "(cached) " >&6 |
| 5635 | else |
| 5636 | lt_cv_ld_reload_flag='-r' |
| 5637 | fi |
| 5638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5639 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5640 | reload_flag=$lt_cv_ld_reload_flag |
| 5641 | case $reload_flag in |
| 5642 | "" | " "*) ;; |
| 5643 | *) reload_flag=" $reload_flag" ;; |
| 5644 | esac |
| 5645 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5646 | case $host_os in |
| 5647 | cygwin* | mingw* | pw32* | cegcc*) |
| 5648 | if test "$GCC" != yes; then |
| 5649 | reload_cmds=false |
| 5650 | fi |
| 5651 | ;; |
| 5652 | darwin*) |
| 5653 | if test "$GCC" = yes; then |
| 5654 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5655 | else |
| 5656 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5657 | fi |
| 5658 | ;; |
| 5659 | esac |
| 5660 | |
| 5661 | |
| 5662 | |
| 5663 | |
| 5664 | |
| 5665 | |
| 5666 | |
| 5667 | |
| 5668 | |
| 5669 | if test -n "$ac_tool_prefix"; then |
| 5670 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5671 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5672 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5673 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5674 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
| 5675 | $as_echo_n "(cached) " >&6 |
| 5676 | else |
| 5677 | if test -n "$OBJDUMP"; then |
| 5678 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5679 | else |
| 5680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5681 | for as_dir in $PATH |
| 5682 | do |
| 5683 | IFS=$as_save_IFS |
| 5684 | test -z "$as_dir" && as_dir=. |
| 5685 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5686 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5687 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5688 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5689 | break 2 |
| 5690 | fi |
| 5691 | done |
| 5692 | done |
| 5693 | IFS=$as_save_IFS |
| 5694 | |
| 5695 | fi |
| 5696 | fi |
| 5697 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5698 | if test -n "$OBJDUMP"; then |
| 5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5700 | $as_echo "$OBJDUMP" >&6; } |
| 5701 | else |
| 5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5703 | $as_echo "no" >&6; } |
| 5704 | fi |
| 5705 | |
| 5706 | |
| 5707 | fi |
| 5708 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5709 | ac_ct_OBJDUMP=$OBJDUMP |
| 5710 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5711 | set dummy objdump; ac_word=$2 |
| 5712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5713 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5714 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
| 5715 | $as_echo_n "(cached) " >&6 |
| 5716 | else |
| 5717 | if test -n "$ac_ct_OBJDUMP"; then |
| 5718 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5719 | else |
| 5720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5721 | for as_dir in $PATH |
| 5722 | do |
| 5723 | IFS=$as_save_IFS |
| 5724 | test -z "$as_dir" && as_dir=. |
| 5725 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 5727 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5729 | break 2 |
| 5730 | fi |
| 5731 | done |
| 5732 | done |
| 5733 | IFS=$as_save_IFS |
| 5734 | |
| 5735 | fi |
| 5736 | fi |
| 5737 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5738 | if test -n "$ac_ct_OBJDUMP"; then |
| 5739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5740 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5741 | else |
| 5742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5743 | $as_echo "no" >&6; } |
| 5744 | fi |
| 5745 | |
| 5746 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5747 | OBJDUMP="false" |
| 5748 | else |
| 5749 | case $cross_compiling:$ac_tool_warned in |
| 5750 | yes:) |
| 5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5752 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5753 | ac_tool_warned=yes ;; |
| 5754 | esac |
| 5755 | OBJDUMP=$ac_ct_OBJDUMP |
| 5756 | fi |
| 5757 | else |
| 5758 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5759 | fi |
| 5760 | |
| 5761 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5762 | |
| 5763 | |
| 5764 | |
| 5765 | |
| 5766 | |
| 5767 | |
| 5768 | |
| 5769 | |
| 5770 | |
| 5771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5772 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5773 | if ${lt_cv_deplibs_check_method+:} false; then : |
| 5774 | $as_echo_n "(cached) " >&6 |
| 5775 | else |
| 5776 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5777 | lt_cv_file_magic_test_file= |
| 5778 | lt_cv_deplibs_check_method='unknown' |
| 5779 | # Need to set the preceding variable on all platforms that support |
| 5780 | # interlibrary dependencies. |
| 5781 | # 'none' -- dependencies not supported. |
| 5782 | # `unknown' -- same as none, but documents that we really don't know. |
| 5783 | # 'pass_all' -- all dependencies passed with no checks. |
| 5784 | # 'test_compile' -- check by making test program. |
| 5785 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5786 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5787 | # If you have `file' or equivalent on your system and you're not sure |
| 5788 | # whether `pass_all' will *always* work, you probably want this one. |
| 5789 | |
| 5790 | case $host_os in |
| 5791 | aix[4-9]*) |
| 5792 | lt_cv_deplibs_check_method=pass_all |
| 5793 | ;; |
| 5794 | |
| 5795 | beos*) |
| 5796 | lt_cv_deplibs_check_method=pass_all |
| 5797 | ;; |
| 5798 | |
| 5799 | bsdi[45]*) |
| 5800 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5801 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5802 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5803 | ;; |
| 5804 | |
| 5805 | cygwin*) |
| 5806 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5807 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5808 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5809 | ;; |
| 5810 | |
| 5811 | mingw* | pw32*) |
| 5812 | # Base MSYS/MinGW do not provide the 'file' command needed by |
| 5813 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5814 | # unless we find 'file', for example because we are cross-compiling. |
| 5815 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
| 5816 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then |
| 5817 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5818 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5819 | else |
| 5820 | # Keep this pattern in sync with the one in func_win32_libid. |
| 5821 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' |
| 5822 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5823 | fi |
| 5824 | ;; |
| 5825 | |
| 5826 | cegcc*) |
| 5827 | # use the weaker test based on 'objdump'. See mingw*. |
| 5828 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5829 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5830 | ;; |
| 5831 | |
| 5832 | darwin* | rhapsody*) |
| 5833 | lt_cv_deplibs_check_method=pass_all |
| 5834 | ;; |
| 5835 | |
| 5836 | freebsd* | dragonfly*) |
| 5837 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5838 | case $host_cpu in |
| 5839 | i*86 ) |
| 5840 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5841 | # Let's accept both of them until this is cleared up. |
| 5842 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 5843 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5844 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5845 | ;; |
| 5846 | esac |
| 5847 | else |
| 5848 | lt_cv_deplibs_check_method=pass_all |
| 5849 | fi |
| 5850 | ;; |
| 5851 | |
| 5852 | gnu*) |
| 5853 | lt_cv_deplibs_check_method=pass_all |
| 5854 | ;; |
| 5855 | |
| 5856 | haiku*) |
| 5857 | lt_cv_deplibs_check_method=pass_all |
| 5858 | ;; |
| 5859 | |
| 5860 | hpux10.20* | hpux11*) |
| 5861 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5862 | case $host_cpu in |
| 5863 | ia64*) |
| 5864 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5865 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5866 | ;; |
| 5867 | hppa*64*) |
| 5868 | 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]' |
| 5869 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5870 | ;; |
| 5871 | *) |
| 5872 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 5873 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5874 | ;; |
| 5875 | esac |
| 5876 | ;; |
| 5877 | |
| 5878 | interix[3-9]*) |
| 5879 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5880 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5881 | ;; |
| 5882 | |
| 5883 | irix5* | irix6* | nonstopux*) |
| 5884 | case $LD in |
| 5885 | *-32|*"-32 ") libmagic=32-bit;; |
| 5886 | *-n32|*"-n32 ") libmagic=N32;; |
| 5887 | *-64|*"-64 ") libmagic=64-bit;; |
| 5888 | *) libmagic=never-match;; |
| 5889 | esac |
| 5890 | lt_cv_deplibs_check_method=pass_all |
| 5891 | ;; |
| 5892 | |
| 5893 | # This must be glibc/ELF. |
| 5894 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 5895 | lt_cv_deplibs_check_method=pass_all |
| 5896 | ;; |
| 5897 | |
| 5898 | netbsd*) |
| 5899 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 5900 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5901 | else |
| 5902 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5903 | fi |
| 5904 | ;; |
| 5905 | |
| 5906 | newos6*) |
| 5907 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5908 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5909 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5910 | ;; |
| 5911 | |
| 5912 | *nto* | *qnx*) |
| 5913 | lt_cv_deplibs_check_method=pass_all |
| 5914 | ;; |
| 5915 | |
| 5916 | openbsd*) |
| 5917 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 5918 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 5919 | else |
| 5920 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5921 | fi |
| 5922 | ;; |
| 5923 | |
| 5924 | osf3* | osf4* | osf5*) |
| 5925 | lt_cv_deplibs_check_method=pass_all |
| 5926 | ;; |
| 5927 | |
| 5928 | rdos*) |
| 5929 | lt_cv_deplibs_check_method=pass_all |
| 5930 | ;; |
| 5931 | |
| 5932 | solaris*) |
| 5933 | lt_cv_deplibs_check_method=pass_all |
| 5934 | ;; |
| 5935 | |
| 5936 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5937 | lt_cv_deplibs_check_method=pass_all |
| 5938 | ;; |
| 5939 | |
| 5940 | sysv4 | sysv4.3*) |
| 5941 | case $host_vendor in |
| 5942 | motorola) |
| 5943 | 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]' |
| 5944 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5945 | ;; |
| 5946 | ncr) |
| 5947 | lt_cv_deplibs_check_method=pass_all |
| 5948 | ;; |
| 5949 | sequent) |
| 5950 | lt_cv_file_magic_cmd='/bin/file' |
| 5951 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5952 | ;; |
| 5953 | sni) |
| 5954 | lt_cv_file_magic_cmd='/bin/file' |
| 5955 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5956 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5957 | ;; |
| 5958 | siemens) |
| 5959 | lt_cv_deplibs_check_method=pass_all |
| 5960 | ;; |
| 5961 | pc) |
| 5962 | lt_cv_deplibs_check_method=pass_all |
| 5963 | ;; |
| 5964 | esac |
| 5965 | ;; |
| 5966 | |
| 5967 | tpf*) |
| 5968 | lt_cv_deplibs_check_method=pass_all |
| 5969 | ;; |
| 5970 | esac |
| 5971 | |
| 5972 | fi |
| 5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5974 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
| 5975 | |
| 5976 | file_magic_glob= |
| 5977 | want_nocaseglob=no |
| 5978 | if test "$build" = "$host"; then |
| 5979 | case $host_os in |
| 5980 | mingw* | pw32*) |
| 5981 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 5982 | want_nocaseglob=yes |
| 5983 | else |
| 5984 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 5985 | fi |
| 5986 | ;; |
| 5987 | esac |
| 5988 | fi |
| 5989 | |
| 5990 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5991 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5992 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5993 | |
| 5994 | |
| 5995 | |
| 5996 | |
| 5997 | |
| 5998 | |
| 5999 | |
| 6000 | |
| 6001 | |
| 6002 | |
| 6003 | |
| 6004 | |
| 6005 | |
| 6006 | |
| 6007 | |
| 6008 | |
| 6009 | |
| 6010 | |
| 6011 | |
| 6012 | |
| 6013 | |
| 6014 | |
| 6015 | if test -n "$ac_tool_prefix"; then |
| 6016 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 6017 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 6018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6019 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6020 | if ${ac_cv_prog_DLLTOOL+:} false; then : |
| 6021 | $as_echo_n "(cached) " >&6 |
| 6022 | else |
| 6023 | if test -n "$DLLTOOL"; then |
| 6024 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 6025 | else |
| 6026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6027 | for as_dir in $PATH |
| 6028 | do |
| 6029 | IFS=$as_save_IFS |
| 6030 | test -z "$as_dir" && as_dir=. |
| 6031 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6033 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 6034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6035 | break 2 |
| 6036 | fi |
| 6037 | done |
| 6038 | done |
| 6039 | IFS=$as_save_IFS |
| 6040 | |
| 6041 | fi |
| 6042 | fi |
| 6043 | DLLTOOL=$ac_cv_prog_DLLTOOL |
| 6044 | if test -n "$DLLTOOL"; then |
| 6045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 6046 | $as_echo "$DLLTOOL" >&6; } |
| 6047 | else |
| 6048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6049 | $as_echo "no" >&6; } |
| 6050 | fi |
| 6051 | |
| 6052 | |
| 6053 | fi |
| 6054 | if test -z "$ac_cv_prog_DLLTOOL"; then |
| 6055 | ac_ct_DLLTOOL=$DLLTOOL |
| 6056 | # Extract the first word of "dlltool", so it can be a program name with args. |
| 6057 | set dummy dlltool; ac_word=$2 |
| 6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6059 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6060 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : |
| 6061 | $as_echo_n "(cached) " >&6 |
| 6062 | else |
| 6063 | if test -n "$ac_ct_DLLTOOL"; then |
| 6064 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 6065 | else |
| 6066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6067 | for as_dir in $PATH |
| 6068 | do |
| 6069 | IFS=$as_save_IFS |
| 6070 | test -z "$as_dir" && as_dir=. |
| 6071 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6072 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6073 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 6074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6075 | break 2 |
| 6076 | fi |
| 6077 | done |
| 6078 | done |
| 6079 | IFS=$as_save_IFS |
| 6080 | |
| 6081 | fi |
| 6082 | fi |
| 6083 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 6084 | if test -n "$ac_ct_DLLTOOL"; then |
| 6085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 6086 | $as_echo "$ac_ct_DLLTOOL" >&6; } |
| 6087 | else |
| 6088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6089 | $as_echo "no" >&6; } |
| 6090 | fi |
| 6091 | |
| 6092 | if test "x$ac_ct_DLLTOOL" = x; then |
| 6093 | DLLTOOL="false" |
| 6094 | else |
| 6095 | case $cross_compiling:$ac_tool_warned in |
| 6096 | yes:) |
| 6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6098 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6099 | ac_tool_warned=yes ;; |
| 6100 | esac |
| 6101 | DLLTOOL=$ac_ct_DLLTOOL |
| 6102 | fi |
| 6103 | else |
| 6104 | DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 6105 | fi |
| 6106 | |
| 6107 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 6108 | |
| 6109 | |
| 6110 | |
| 6111 | |
| 6112 | |
| 6113 | |
| 6114 | |
| 6115 | |
| 6116 | |
| 6117 | |
| 6118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 6119 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } |
| 6120 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : |
| 6121 | $as_echo_n "(cached) " >&6 |
| 6122 | else |
| 6123 | lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 6124 | |
| 6125 | case $host_os in |
| 6126 | cygwin* | mingw* | pw32* | cegcc*) |
| 6127 | # two different shell functions defined in ltmain.sh |
| 6128 | # decide which to use based on capabilities of $DLLTOOL |
| 6129 | case `$DLLTOOL --help 2>&1` in |
| 6130 | *--identify-strict*) |
| 6131 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 6132 | ;; |
| 6133 | *) |
| 6134 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 6135 | ;; |
| 6136 | esac |
| 6137 | ;; |
| 6138 | *) |
| 6139 | # fallback: assume linklib IS sharedlib |
| 6140 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" |
| 6141 | ;; |
| 6142 | esac |
| 6143 | |
| 6144 | fi |
| 6145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 6146 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 6147 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 6148 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 6149 | |
| 6150 | |
| 6151 | |
| 6152 | |
| 6153 | |
| 6154 | |
| 6155 | |
| 6156 | if test -n "$ac_tool_prefix"; then |
| 6157 | for ac_prog in ar |
| 6158 | do |
| 6159 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6160 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6161 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6162 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6163 | if ${ac_cv_prog_AR+:} false; then : |
| 6164 | $as_echo_n "(cached) " >&6 |
| 6165 | else |
| 6166 | if test -n "$AR"; then |
| 6167 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6168 | else |
| 6169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6170 | for as_dir in $PATH |
| 6171 | do |
| 6172 | IFS=$as_save_IFS |
| 6173 | test -z "$as_dir" && as_dir=. |
| 6174 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6175 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6176 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 6177 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6178 | break 2 |
| 6179 | fi |
| 6180 | done |
| 6181 | done |
| 6182 | IFS=$as_save_IFS |
| 6183 | |
| 6184 | fi |
| 6185 | fi |
| 6186 | AR=$ac_cv_prog_AR |
| 6187 | if test -n "$AR"; then |
| 6188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6189 | $as_echo "$AR" >&6; } |
| 6190 | else |
| 6191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6192 | $as_echo "no" >&6; } |
| 6193 | fi |
| 6194 | |
| 6195 | |
| 6196 | test -n "$AR" && break |
| 6197 | done |
| 6198 | fi |
| 6199 | if test -z "$AR"; then |
| 6200 | ac_ct_AR=$AR |
| 6201 | for ac_prog in ar |
| 6202 | do |
| 6203 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6204 | set dummy $ac_prog; ac_word=$2 |
| 6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6206 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6207 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
| 6208 | $as_echo_n "(cached) " >&6 |
| 6209 | else |
| 6210 | if test -n "$ac_ct_AR"; then |
| 6211 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6212 | else |
| 6213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6214 | for as_dir in $PATH |
| 6215 | do |
| 6216 | IFS=$as_save_IFS |
| 6217 | test -z "$as_dir" && as_dir=. |
| 6218 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6219 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6220 | ac_cv_prog_ac_ct_AR="$ac_prog" |
| 6221 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6222 | break 2 |
| 6223 | fi |
| 6224 | done |
| 6225 | done |
| 6226 | IFS=$as_save_IFS |
| 6227 | |
| 6228 | fi |
| 6229 | fi |
| 6230 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6231 | if test -n "$ac_ct_AR"; then |
| 6232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6233 | $as_echo "$ac_ct_AR" >&6; } |
| 6234 | else |
| 6235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6236 | $as_echo "no" >&6; } |
| 6237 | fi |
| 6238 | |
| 6239 | |
| 6240 | test -n "$ac_ct_AR" && break |
| 6241 | done |
| 6242 | |
| 6243 | if test "x$ac_ct_AR" = x; then |
| 6244 | AR="false" |
| 6245 | else |
| 6246 | case $cross_compiling:$ac_tool_warned in |
| 6247 | yes:) |
| 6248 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6249 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6250 | ac_tool_warned=yes ;; |
| 6251 | esac |
| 6252 | AR=$ac_ct_AR |
| 6253 | fi |
| 6254 | fi |
| 6255 | |
| 6256 | : ${AR=ar} |
| 6257 | : ${AR_FLAGS=cru} |
| 6258 | |
| 6259 | |
| 6260 | |
| 6261 | |
| 6262 | |
| 6263 | |
| 6264 | |
| 6265 | |
| 6266 | |
| 6267 | |
| 6268 | |
| 6269 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 6270 | $as_echo_n "checking for archiver @FILE support... " >&6; } |
| 6271 | if ${lt_cv_ar_at_file+:} false; then : |
| 6272 | $as_echo_n "(cached) " >&6 |
| 6273 | else |
| 6274 | lt_cv_ar_at_file=no |
| 6275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6276 | /* end confdefs.h. */ |
| 6277 | |
| 6278 | int |
| 6279 | main () |
| 6280 | { |
| 6281 | |
| 6282 | ; |
| 6283 | return 0; |
| 6284 | } |
| 6285 | _ACEOF |
| 6286 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6287 | echo conftest.$ac_objext > conftest.lst |
| 6288 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 6289 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6290 | (eval $lt_ar_try) 2>&5 |
| 6291 | ac_status=$? |
| 6292 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6293 | test $ac_status = 0; } |
| 6294 | if test "$ac_status" -eq 0; then |
| 6295 | # Ensure the archiver fails upon bogus file names. |
| 6296 | rm -f conftest.$ac_objext libconftest.a |
| 6297 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 6298 | (eval $lt_ar_try) 2>&5 |
| 6299 | ac_status=$? |
| 6300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6301 | test $ac_status = 0; } |
| 6302 | if test "$ac_status" -ne 0; then |
| 6303 | lt_cv_ar_at_file=@ |
| 6304 | fi |
| 6305 | fi |
| 6306 | rm -f conftest.* libconftest.a |
| 6307 | |
| 6308 | fi |
| 6309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6310 | |
| 6311 | fi |
| 6312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 6313 | $as_echo "$lt_cv_ar_at_file" >&6; } |
| 6314 | |
| 6315 | if test "x$lt_cv_ar_at_file" = xno; then |
| 6316 | archiver_list_spec= |
| 6317 | else |
| 6318 | archiver_list_spec=$lt_cv_ar_at_file |
| 6319 | fi |
| 6320 | |
| 6321 | |
| 6322 | |
| 6323 | |
| 6324 | |
| 6325 | |
| 6326 | |
| 6327 | if test -n "$ac_tool_prefix"; then |
| 6328 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 6329 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 6330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6331 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6332 | if ${ac_cv_prog_STRIP+:} false; then : |
| 6333 | $as_echo_n "(cached) " >&6 |
| 6334 | else |
| 6335 | if test -n "$STRIP"; then |
| 6336 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 6337 | else |
| 6338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6339 | for as_dir in $PATH |
| 6340 | do |
| 6341 | IFS=$as_save_IFS |
| 6342 | test -z "$as_dir" && as_dir=. |
| 6343 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6344 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6345 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 6346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6347 | break 2 |
| 6348 | fi |
| 6349 | done |
| 6350 | done |
| 6351 | IFS=$as_save_IFS |
| 6352 | |
| 6353 | fi |
| 6354 | fi |
| 6355 | STRIP=$ac_cv_prog_STRIP |
| 6356 | if test -n "$STRIP"; then |
| 6357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 6358 | $as_echo "$STRIP" >&6; } |
| 6359 | else |
| 6360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6361 | $as_echo "no" >&6; } |
| 6362 | fi |
| 6363 | |
| 6364 | |
| 6365 | fi |
| 6366 | if test -z "$ac_cv_prog_STRIP"; then |
| 6367 | ac_ct_STRIP=$STRIP |
| 6368 | # Extract the first word of "strip", so it can be a program name with args. |
| 6369 | set dummy strip; ac_word=$2 |
| 6370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6371 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6372 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
| 6373 | $as_echo_n "(cached) " >&6 |
| 6374 | else |
| 6375 | if test -n "$ac_ct_STRIP"; then |
| 6376 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 6377 | else |
| 6378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6379 | for as_dir in $PATH |
| 6380 | do |
| 6381 | IFS=$as_save_IFS |
| 6382 | test -z "$as_dir" && as_dir=. |
| 6383 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6384 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6385 | ac_cv_prog_ac_ct_STRIP="strip" |
| 6386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6387 | break 2 |
| 6388 | fi |
| 6389 | done |
| 6390 | done |
| 6391 | IFS=$as_save_IFS |
| 6392 | |
| 6393 | fi |
| 6394 | fi |
| 6395 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 6396 | if test -n "$ac_ct_STRIP"; then |
| 6397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 6398 | $as_echo "$ac_ct_STRIP" >&6; } |
| 6399 | else |
| 6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6401 | $as_echo "no" >&6; } |
| 6402 | fi |
| 6403 | |
| 6404 | if test "x$ac_ct_STRIP" = x; then |
| 6405 | STRIP=":" |
| 6406 | else |
| 6407 | case $cross_compiling:$ac_tool_warned in |
| 6408 | yes:) |
| 6409 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6410 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6411 | ac_tool_warned=yes ;; |
| 6412 | esac |
| 6413 | STRIP=$ac_ct_STRIP |
| 6414 | fi |
| 6415 | else |
| 6416 | STRIP="$ac_cv_prog_STRIP" |
| 6417 | fi |
| 6418 | |
| 6419 | test -z "$STRIP" && STRIP=: |
| 6420 | |
| 6421 | |
| 6422 | |
| 6423 | |
| 6424 | |
| 6425 | |
| 6426 | if test -n "$ac_tool_prefix"; then |
| 6427 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6428 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6430 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6431 | if ${ac_cv_prog_RANLIB+:} false; then : |
| 6432 | $as_echo_n "(cached) " >&6 |
| 6433 | else |
| 6434 | if test -n "$RANLIB"; then |
| 6435 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6436 | else |
| 6437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6438 | for as_dir in $PATH |
| 6439 | do |
| 6440 | IFS=$as_save_IFS |
| 6441 | test -z "$as_dir" && as_dir=. |
| 6442 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6443 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6444 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6446 | break 2 |
| 6447 | fi |
| 6448 | done |
| 6449 | done |
| 6450 | IFS=$as_save_IFS |
| 6451 | |
| 6452 | fi |
| 6453 | fi |
| 6454 | RANLIB=$ac_cv_prog_RANLIB |
| 6455 | if test -n "$RANLIB"; then |
| 6456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6457 | $as_echo "$RANLIB" >&6; } |
| 6458 | else |
| 6459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6460 | $as_echo "no" >&6; } |
| 6461 | fi |
| 6462 | |
| 6463 | |
| 6464 | fi |
| 6465 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6466 | ac_ct_RANLIB=$RANLIB |
| 6467 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6468 | set dummy ranlib; ac_word=$2 |
| 6469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6470 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6471 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
| 6472 | $as_echo_n "(cached) " >&6 |
| 6473 | else |
| 6474 | if test -n "$ac_ct_RANLIB"; then |
| 6475 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6476 | else |
| 6477 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6478 | for as_dir in $PATH |
| 6479 | do |
| 6480 | IFS=$as_save_IFS |
| 6481 | test -z "$as_dir" && as_dir=. |
| 6482 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6483 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 6484 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6485 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6486 | break 2 |
| 6487 | fi |
| 6488 | done |
| 6489 | done |
| 6490 | IFS=$as_save_IFS |
| 6491 | |
| 6492 | fi |
| 6493 | fi |
| 6494 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6495 | if test -n "$ac_ct_RANLIB"; then |
| 6496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6497 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6498 | else |
| 6499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6500 | $as_echo "no" >&6; } |
| 6501 | fi |
| 6502 | |
| 6503 | if test "x$ac_ct_RANLIB" = x; then |
| 6504 | RANLIB=":" |
| 6505 | else |
| 6506 | case $cross_compiling:$ac_tool_warned in |
| 6507 | yes:) |
| 6508 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6509 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6510 | ac_tool_warned=yes ;; |
| 6511 | esac |
| 6512 | RANLIB=$ac_ct_RANLIB |
| 6513 | fi |
| 6514 | else |
| 6515 | RANLIB="$ac_cv_prog_RANLIB" |
| 6516 | fi |
| 6517 | |
| 6518 | test -z "$RANLIB" && RANLIB=: |
| 6519 | |
| 6520 | |
| 6521 | |
| 6522 | |
| 6523 | |
| 6524 | |
| 6525 | # Determine commands to create old-style static archives. |
| 6526 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6527 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6528 | old_postuninstall_cmds= |
| 6529 | |
| 6530 | if test -n "$RANLIB"; then |
| 6531 | case $host_os in |
| 6532 | openbsd*) |
| 6533 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" |
| 6534 | ;; |
| 6535 | *) |
| 6536 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 6537 | ;; |
| 6538 | esac |
| 6539 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 6540 | fi |
| 6541 | |
| 6542 | case $host_os in |
| 6543 | darwin*) |
| 6544 | lock_old_archive_extraction=yes ;; |
| 6545 | *) |
| 6546 | lock_old_archive_extraction=no ;; |
| 6547 | esac |
| 6548 | |
| 6549 | |
| 6550 | |
| 6551 | |
| 6552 | |
| 6553 | |
| 6554 | |
| 6555 | |
| 6556 | |
| 6557 | |
| 6558 | |
| 6559 | |
| 6560 | |
| 6561 | |
| 6562 | |
| 6563 | |
| 6564 | |
| 6565 | |
| 6566 | |
| 6567 | |
| 6568 | |
| 6569 | |
| 6570 | |
| 6571 | |
| 6572 | |
| 6573 | |
| 6574 | |
| 6575 | |
| 6576 | |
| 6577 | |
| 6578 | |
| 6579 | |
| 6580 | |
| 6581 | |
| 6582 | |
| 6583 | |
| 6584 | |
| 6585 | |
| 6586 | |
| 6587 | # If no C compiler was specified, use CC. |
| 6588 | LTCC=${LTCC-"$CC"} |
| 6589 | |
| 6590 | # If no C compiler flags were specified, use CFLAGS. |
| 6591 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6592 | |
| 6593 | # Allow CC to be a program name with arguments. |
| 6594 | compiler=$CC |
| 6595 | |
| 6596 | |
| 6597 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
| 6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6599 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6600 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
| 6601 | $as_echo_n "(cached) " >&6 |
| 6602 | else |
| 6603 | |
| 6604 | # These are sane defaults that work on at least a few old systems. |
| 6605 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6606 | |
| 6607 | # Character class describing NM global symbol codes. |
| 6608 | symcode='[BCDEGRST]' |
| 6609 | |
| 6610 | # Regexp to match symbols that can be accessed directly from C. |
| 6611 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6612 | |
| 6613 | # Define system-specific variables. |
| 6614 | case $host_os in |
| 6615 | aix*) |
| 6616 | symcode='[BCDT]' |
| 6617 | ;; |
| 6618 | cygwin* | mingw* | pw32* | cegcc*) |
| 6619 | symcode='[ABCDGISTW]' |
| 6620 | ;; |
| 6621 | hpux*) |
| 6622 | if test "$host_cpu" = ia64; then |
| 6623 | symcode='[ABCDEGRST]' |
| 6624 | fi |
| 6625 | ;; |
| 6626 | irix* | nonstopux*) |
| 6627 | symcode='[BCDEGRST]' |
| 6628 | ;; |
| 6629 | osf*) |
| 6630 | symcode='[BCDEGQRST]' |
| 6631 | ;; |
| 6632 | solaris*) |
| 6633 | symcode='[BDRT]' |
| 6634 | ;; |
| 6635 | sco3.2v5*) |
| 6636 | symcode='[DT]' |
| 6637 | ;; |
| 6638 | sysv4.2uw2*) |
| 6639 | symcode='[DT]' |
| 6640 | ;; |
| 6641 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6642 | symcode='[ABDT]' |
| 6643 | ;; |
| 6644 | sysv4) |
| 6645 | symcode='[DFNSTU]' |
| 6646 | ;; |
| 6647 | esac |
| 6648 | |
| 6649 | # If we're using GNU nm, then use its standard symbol codes. |
| 6650 | case `$NM -V 2>&1` in |
| 6651 | *GNU* | *'with BFD'*) |
| 6652 | symcode='[ABCDGIRSTW]' ;; |
| 6653 | esac |
| 6654 | |
| 6655 | # Transform an extracted symbol line into a proper C declaration. |
| 6656 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6657 | # so use this general approach. |
| 6658 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6659 | |
| 6660 | # Transform an extracted symbol line into symbol name and symbol address |
| 6661 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6662 | 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'" |
| 6663 | |
| 6664 | # Handle CRLF in mingw tool chain |
| 6665 | opt_cr= |
| 6666 | case $build_os in |
| 6667 | mingw*) |
| 6668 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6669 | ;; |
| 6670 | esac |
| 6671 | |
| 6672 | # Try without a prefix underscore, then with it. |
| 6673 | for ac_symprfx in "" "_"; do |
| 6674 | |
| 6675 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6676 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6677 | |
| 6678 | # Write the raw and C identifiers. |
| 6679 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6680 | # Fake it for dumpbin and say T for any non-static function |
| 6681 | # and D for any global variable. |
| 6682 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6683 | # which start with @ or ?. |
| 6684 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6685 | " {last_section=section; section=\$ 3};"\ |
| 6686 | " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 6687 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6688 | " \$ 0!~/External *\|/{next};"\ |
| 6689 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6690 | " {if(hide[section]) next};"\ |
| 6691 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6692 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6693 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6694 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6695 | " ' prfx=^$ac_symprfx" |
| 6696 | else |
| 6697 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6698 | fi |
| 6699 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" |
| 6700 | |
| 6701 | # Check to see that the pipe works correctly. |
| 6702 | pipe_works=no |
| 6703 | |
| 6704 | rm -f conftest* |
| 6705 | cat > conftest.$ac_ext <<_LT_EOF |
| 6706 | #ifdef __cplusplus |
| 6707 | extern "C" { |
| 6708 | #endif |
| 6709 | char nm_test_var; |
| 6710 | void nm_test_func(void); |
| 6711 | void nm_test_func(void){} |
| 6712 | #ifdef __cplusplus |
| 6713 | } |
| 6714 | #endif |
| 6715 | int main(){nm_test_var='a';nm_test_func();return(0);} |
| 6716 | _LT_EOF |
| 6717 | |
| 6718 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6719 | (eval $ac_compile) 2>&5 |
| 6720 | ac_status=$? |
| 6721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6722 | test $ac_status = 0; }; then |
| 6723 | # Now try to grab the symbols. |
| 6724 | nlist=conftest.nm |
| 6725 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
| 6726 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 |
| 6727 | ac_status=$? |
| 6728 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6729 | test $ac_status = 0; } && test -s "$nlist"; then |
| 6730 | # Try sorting and uniquifying the output. |
| 6731 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6732 | mv -f "$nlist"T "$nlist" |
| 6733 | else |
| 6734 | rm -f "$nlist"T |
| 6735 | fi |
| 6736 | |
| 6737 | # Make sure that we snagged all the symbols we need. |
| 6738 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6739 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6740 | cat <<_LT_EOF > conftest.$ac_ext |
| 6741 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 6742 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) |
| 6743 | /* DATA imports from DLLs on WIN32 con't be const, because runtime |
| 6744 | relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 6745 | # define LT_DLSYM_CONST |
| 6746 | #elif defined(__osf__) |
| 6747 | /* This system does not cope well with relocations in const data. */ |
| 6748 | # define LT_DLSYM_CONST |
| 6749 | #else |
| 6750 | # define LT_DLSYM_CONST const |
| 6751 | #endif |
| 6752 | |
| 6753 | #ifdef __cplusplus |
| 6754 | extern "C" { |
| 6755 | #endif |
| 6756 | |
| 6757 | _LT_EOF |
| 6758 | # Now generate the symbol file. |
| 6759 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 6760 | |
| 6761 | cat <<_LT_EOF >> conftest.$ac_ext |
| 6762 | |
| 6763 | /* The mapping between symbol names and symbols. */ |
| 6764 | LT_DLSYM_CONST struct { |
| 6765 | const char *name; |
| 6766 | void *address; |
| 6767 | } |
| 6768 | lt__PROGRAM__LTX_preloaded_symbols[] = |
| 6769 | { |
| 6770 | { "@PROGRAM@", (void *) 0 }, |
| 6771 | _LT_EOF |
| 6772 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6773 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6774 | {0, (void *) 0} |
| 6775 | }; |
| 6776 | |
| 6777 | /* This works around a problem in FreeBSD linker */ |
| 6778 | #ifdef FREEBSD_WORKAROUND |
| 6779 | static const void *lt_preloaded_setup() { |
| 6780 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6781 | } |
| 6782 | #endif |
| 6783 | |
| 6784 | #ifdef __cplusplus |
| 6785 | } |
| 6786 | #endif |
| 6787 | _LT_EOF |
| 6788 | # Now try linking the two files. |
| 6789 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6790 | lt_globsym_save_LIBS=$LIBS |
| 6791 | lt_globsym_save_CFLAGS=$CFLAGS |
| 6792 | LIBS="conftstm.$ac_objext" |
| 6793 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 6794 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 6795 | (eval $ac_link) 2>&5 |
| 6796 | ac_status=$? |
| 6797 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6798 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
| 6799 | pipe_works=yes |
| 6800 | fi |
| 6801 | LIBS=$lt_globsym_save_LIBS |
| 6802 | CFLAGS=$lt_globsym_save_CFLAGS |
| 6803 | else |
| 6804 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6805 | fi |
| 6806 | else |
| 6807 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6808 | fi |
| 6809 | else |
| 6810 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6811 | fi |
| 6812 | else |
| 6813 | echo "$progname: failed program was:" >&5 |
| 6814 | cat conftest.$ac_ext >&5 |
| 6815 | fi |
| 6816 | rm -rf conftest* conftst* |
| 6817 | |
| 6818 | # Do not use the global_symbol_pipe unless it works. |
| 6819 | if test "$pipe_works" = yes; then |
| 6820 | break |
| 6821 | else |
| 6822 | lt_cv_sys_global_symbol_pipe= |
| 6823 | fi |
| 6824 | done |
| 6825 | |
| 6826 | fi |
| 6827 | |
| 6828 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6829 | lt_cv_sys_global_symbol_to_cdecl= |
| 6830 | fi |
| 6831 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 6832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6833 | $as_echo "failed" >&6; } |
| 6834 | else |
| 6835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6836 | $as_echo "ok" >&6; } |
| 6837 | fi |
| 6838 | |
| 6839 | # Response file support. |
| 6840 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6841 | nm_file_list_spec='@' |
| 6842 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 6843 | nm_file_list_spec='@' |
| 6844 | fi |
| 6845 | |
| 6846 | |
| 6847 | |
| 6848 | |
| 6849 | |
| 6850 | |
| 6851 | |
| 6852 | |
| 6853 | |
| 6854 | |
| 6855 | |
| 6856 | |
| 6857 | |
| 6858 | |
| 6859 | |
| 6860 | |
| 6861 | |
| 6862 | |
| 6863 | |
| 6864 | |
| 6865 | |
| 6866 | |
| 6867 | |
| 6868 | |
| 6869 | |
| 6870 | |
| 6871 | |
| 6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 6873 | $as_echo_n "checking for sysroot... " >&6; } |
| 6874 | |
| 6875 | # Check whether --with-sysroot was given. |
| 6876 | if test "${with_sysroot+set}" = set; then : |
| 6877 | withval=$with_sysroot; |
| 6878 | else |
| 6879 | with_sysroot=no |
| 6880 | fi |
| 6881 | |
| 6882 | |
| 6883 | lt_sysroot= |
| 6884 | case ${with_sysroot} in #( |
| 6885 | yes) |
| 6886 | if test "$GCC" = yes; then |
| 6887 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` |
| 6888 | fi |
| 6889 | ;; #( |
| 6890 | /*) |
| 6891 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` |
| 6892 | ;; #( |
| 6893 | no|'') |
| 6894 | ;; #( |
| 6895 | *) |
| 6896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 |
| 6897 | $as_echo "${with_sysroot}" >&6; } |
| 6898 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 6899 | ;; |
| 6900 | esac |
| 6901 | |
| 6902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 6903 | $as_echo "${lt_sysroot:-no}" >&6; } |
| 6904 | |
| 6905 | |
| 6906 | |
| 6907 | |
| 6908 | |
| 6909 | # Check whether --enable-libtool-lock was given. |
| 6910 | if test "${enable_libtool_lock+set}" = set; then : |
| 6911 | enableval=$enable_libtool_lock; |
| 6912 | fi |
| 6913 | |
| 6914 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6915 | |
| 6916 | # Some flags need to be propagated to the compiler or linker for good |
| 6917 | # libtool support. |
| 6918 | case $host in |
| 6919 | ia64-*-hpux*) |
| 6920 | # Find out which ABI we are using. |
| 6921 | echo 'int i;' > conftest.$ac_ext |
| 6922 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6923 | (eval $ac_compile) 2>&5 |
| 6924 | ac_status=$? |
| 6925 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6926 | test $ac_status = 0; }; then |
| 6927 | case `/usr/bin/file conftest.$ac_objext` in |
| 6928 | *ELF-32*) |
| 6929 | HPUX_IA64_MODE="32" |
| 6930 | ;; |
| 6931 | *ELF-64*) |
| 6932 | HPUX_IA64_MODE="64" |
| 6933 | ;; |
| 6934 | esac |
| 6935 | fi |
| 6936 | rm -rf conftest* |
| 6937 | ;; |
| 6938 | *-*-irix6*) |
| 6939 | # Find out which ABI we are using. |
| 6940 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 6941 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6942 | (eval $ac_compile) 2>&5 |
| 6943 | ac_status=$? |
| 6944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6945 | test $ac_status = 0; }; then |
| 6946 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6947 | case `/usr/bin/file conftest.$ac_objext` in |
| 6948 | *32-bit*) |
| 6949 | LD="${LD-ld} -melf32bsmip" |
| 6950 | ;; |
| 6951 | *N32*) |
| 6952 | LD="${LD-ld} -melf32bmipn32" |
| 6953 | ;; |
| 6954 | *64-bit*) |
| 6955 | LD="${LD-ld} -melf64bmip" |
| 6956 | ;; |
| 6957 | esac |
| 6958 | else |
| 6959 | case `/usr/bin/file conftest.$ac_objext` in |
| 6960 | *32-bit*) |
| 6961 | LD="${LD-ld} -32" |
| 6962 | ;; |
| 6963 | *N32*) |
| 6964 | LD="${LD-ld} -n32" |
| 6965 | ;; |
| 6966 | *64-bit*) |
| 6967 | LD="${LD-ld} -64" |
| 6968 | ;; |
| 6969 | esac |
| 6970 | fi |
| 6971 | fi |
| 6972 | rm -rf conftest* |
| 6973 | ;; |
| 6974 | |
| 6975 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6976 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6977 | # Find out which ABI we are using. |
| 6978 | echo 'int i;' > conftest.$ac_ext |
| 6979 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6980 | (eval $ac_compile) 2>&5 |
| 6981 | ac_status=$? |
| 6982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6983 | test $ac_status = 0; }; then |
| 6984 | case `/usr/bin/file conftest.o` in |
| 6985 | *32-bit*) |
| 6986 | case $host in |
| 6987 | x86_64-*kfreebsd*-gnu) |
| 6988 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6989 | ;; |
| 6990 | x86_64-*linux*) |
| 6991 | LD="${LD-ld} -m elf_i386" |
| 6992 | ;; |
| 6993 | ppc64-*linux*|powerpc64-*linux*) |
| 6994 | LD="${LD-ld} -m elf32ppclinux" |
| 6995 | ;; |
| 6996 | s390x-*linux*) |
| 6997 | LD="${LD-ld} -m elf_s390" |
| 6998 | ;; |
| 6999 | sparc64-*linux*) |
| 7000 | LD="${LD-ld} -m elf32_sparc" |
| 7001 | ;; |
| 7002 | esac |
| 7003 | ;; |
| 7004 | *64-bit*) |
| 7005 | case $host in |
| 7006 | x86_64-*kfreebsd*-gnu) |
| 7007 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 7008 | ;; |
| 7009 | x86_64-*linux*) |
| 7010 | LD="${LD-ld} -m elf_x86_64" |
| 7011 | ;; |
| 7012 | ppc*-*linux*|powerpc*-*linux*) |
| 7013 | LD="${LD-ld} -m elf64ppc" |
| 7014 | ;; |
| 7015 | s390*-*linux*|s390*-*tpf*) |
| 7016 | LD="${LD-ld} -m elf64_s390" |
| 7017 | ;; |
| 7018 | sparc*-*linux*) |
| 7019 | LD="${LD-ld} -m elf64_sparc" |
| 7020 | ;; |
| 7021 | esac |
| 7022 | ;; |
| 7023 | esac |
| 7024 | fi |
| 7025 | rm -rf conftest* |
| 7026 | ;; |
| 7027 | |
| 7028 | *-*-sco3.2v5*) |
| 7029 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 7030 | SAVE_CFLAGS="$CFLAGS" |
| 7031 | CFLAGS="$CFLAGS -belf" |
| 7032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 7033 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 7034 | if ${lt_cv_cc_needs_belf+:} false; then : |
| 7035 | $as_echo_n "(cached) " >&6 |
| 7036 | else |
| 7037 | ac_ext=c |
| 7038 | ac_cpp='$CPP $CPPFLAGS' |
| 7039 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7040 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7041 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7042 | |
| 7043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7044 | /* end confdefs.h. */ |
| 7045 | |
| 7046 | int |
| 7047 | main () |
| 7048 | { |
| 7049 | |
| 7050 | ; |
| 7051 | return 0; |
| 7052 | } |
| 7053 | _ACEOF |
| 7054 | if ac_fn_c_try_link "$LINENO"; then : |
| 7055 | lt_cv_cc_needs_belf=yes |
| 7056 | else |
| 7057 | lt_cv_cc_needs_belf=no |
| 7058 | fi |
| 7059 | rm -f core conftest.err conftest.$ac_objext \ |
| 7060 | conftest$ac_exeext conftest.$ac_ext |
| 7061 | ac_ext=c |
| 7062 | ac_cpp='$CPP $CPPFLAGS' |
| 7063 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7064 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7065 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7066 | |
| 7067 | fi |
| 7068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 7069 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 7070 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 7071 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 7072 | CFLAGS="$SAVE_CFLAGS" |
| 7073 | fi |
| 7074 | ;; |
| 7075 | *-*solaris*) |
| 7076 | # Find out which ABI we are using. |
| 7077 | echo 'int i;' > conftest.$ac_ext |
| 7078 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 7079 | (eval $ac_compile) 2>&5 |
| 7080 | ac_status=$? |
| 7081 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7082 | test $ac_status = 0; }; then |
| 7083 | case `/usr/bin/file conftest.o` in |
| 7084 | *64-bit*) |
| 7085 | case $lt_cv_prog_gnu_ld in |
| 7086 | yes*) |
| 7087 | case $host in |
| 7088 | i?86-*-solaris*) |
| 7089 | LD="${LD-ld} -m elf_x86_64" |
| 7090 | ;; |
| 7091 | sparc*-*-solaris*) |
| 7092 | LD="${LD-ld} -m elf64_sparc" |
| 7093 | ;; |
| 7094 | esac |
| 7095 | # GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 7096 | if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 7097 | LD="${LD-ld}_sol2" |
| 7098 | fi |
| 7099 | ;; |
| 7100 | *) |
| 7101 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 7102 | LD="${LD-ld} -64" |
| 7103 | fi |
| 7104 | ;; |
| 7105 | esac |
| 7106 | ;; |
| 7107 | esac |
| 7108 | fi |
| 7109 | rm -rf conftest* |
| 7110 | ;; |
| 7111 | esac |
| 7112 | |
| 7113 | need_locks="$enable_libtool_lock" |
| 7114 | |
| 7115 | if test -n "$ac_tool_prefix"; then |
| 7116 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 7117 | set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7119 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7120 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : |
| 7121 | $as_echo_n "(cached) " >&6 |
| 7122 | else |
| 7123 | if test -n "$MANIFEST_TOOL"; then |
| 7124 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 7125 | else |
| 7126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7127 | for as_dir in $PATH |
| 7128 | do |
| 7129 | IFS=$as_save_IFS |
| 7130 | test -z "$as_dir" && as_dir=. |
| 7131 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7133 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 7134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7135 | break 2 |
| 7136 | fi |
| 7137 | done |
| 7138 | done |
| 7139 | IFS=$as_save_IFS |
| 7140 | |
| 7141 | fi |
| 7142 | fi |
| 7143 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 7144 | if test -n "$MANIFEST_TOOL"; then |
| 7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 7146 | $as_echo "$MANIFEST_TOOL" >&6; } |
| 7147 | else |
| 7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7149 | $as_echo "no" >&6; } |
| 7150 | fi |
| 7151 | |
| 7152 | |
| 7153 | fi |
| 7154 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 7155 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 7156 | # Extract the first word of "mt", so it can be a program name with args. |
| 7157 | set dummy mt; ac_word=$2 |
| 7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7159 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7160 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : |
| 7161 | $as_echo_n "(cached) " >&6 |
| 7162 | else |
| 7163 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 7164 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 7165 | else |
| 7166 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7167 | for as_dir in $PATH |
| 7168 | do |
| 7169 | IFS=$as_save_IFS |
| 7170 | test -z "$as_dir" && as_dir=. |
| 7171 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7172 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7173 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 7174 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7175 | break 2 |
| 7176 | fi |
| 7177 | done |
| 7178 | done |
| 7179 | IFS=$as_save_IFS |
| 7180 | |
| 7181 | fi |
| 7182 | fi |
| 7183 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 7184 | if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 7185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 7186 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } |
| 7187 | else |
| 7188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7189 | $as_echo "no" >&6; } |
| 7190 | fi |
| 7191 | |
| 7192 | if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 7193 | MANIFEST_TOOL=":" |
| 7194 | else |
| 7195 | case $cross_compiling:$ac_tool_warned in |
| 7196 | yes:) |
| 7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7198 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7199 | ac_tool_warned=yes ;; |
| 7200 | esac |
| 7201 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 7202 | fi |
| 7203 | else |
| 7204 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 7205 | fi |
| 7206 | |
| 7207 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 7209 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 7210 | if ${lt_cv_path_mainfest_tool+:} false; then : |
| 7211 | $as_echo_n "(cached) " >&6 |
| 7212 | else |
| 7213 | lt_cv_path_mainfest_tool=no |
| 7214 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 7215 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 7216 | cat conftest.err >&5 |
| 7217 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 7218 | lt_cv_path_mainfest_tool=yes |
| 7219 | fi |
| 7220 | rm -f conftest* |
| 7221 | fi |
| 7222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 |
| 7223 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } |
| 7224 | if test "x$lt_cv_path_mainfest_tool" != xyes; then |
| 7225 | MANIFEST_TOOL=: |
| 7226 | fi |
| 7227 | |
| 7228 | |
| 7229 | |
| 7230 | |
| 7231 | |
| 7232 | |
| 7233 | case $host_os in |
| 7234 | rhapsody* | darwin*) |
| 7235 | if test -n "$ac_tool_prefix"; then |
| 7236 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 7237 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 7238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7239 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7240 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
| 7241 | $as_echo_n "(cached) " >&6 |
| 7242 | else |
| 7243 | if test -n "$DSYMUTIL"; then |
| 7244 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 7245 | else |
| 7246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7247 | for as_dir in $PATH |
| 7248 | do |
| 7249 | IFS=$as_save_IFS |
| 7250 | test -z "$as_dir" && as_dir=. |
| 7251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7252 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7253 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 7254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7255 | break 2 |
| 7256 | fi |
| 7257 | done |
| 7258 | done |
| 7259 | IFS=$as_save_IFS |
| 7260 | |
| 7261 | fi |
| 7262 | fi |
| 7263 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 7264 | if test -n "$DSYMUTIL"; then |
| 7265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 7266 | $as_echo "$DSYMUTIL" >&6; } |
| 7267 | else |
| 7268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7269 | $as_echo "no" >&6; } |
| 7270 | fi |
| 7271 | |
| 7272 | |
| 7273 | fi |
| 7274 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 7275 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 7276 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 7277 | set dummy dsymutil; ac_word=$2 |
| 7278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7279 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7280 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
| 7281 | $as_echo_n "(cached) " >&6 |
| 7282 | else |
| 7283 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7284 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 7285 | else |
| 7286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7287 | for as_dir in $PATH |
| 7288 | do |
| 7289 | IFS=$as_save_IFS |
| 7290 | test -z "$as_dir" && as_dir=. |
| 7291 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7292 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7293 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 7294 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7295 | break 2 |
| 7296 | fi |
| 7297 | done |
| 7298 | done |
| 7299 | IFS=$as_save_IFS |
| 7300 | |
| 7301 | fi |
| 7302 | fi |
| 7303 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 7304 | if test -n "$ac_ct_DSYMUTIL"; then |
| 7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 7306 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 7307 | else |
| 7308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7309 | $as_echo "no" >&6; } |
| 7310 | fi |
| 7311 | |
| 7312 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 7313 | DSYMUTIL=":" |
| 7314 | else |
| 7315 | case $cross_compiling:$ac_tool_warned in |
| 7316 | yes:) |
| 7317 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7318 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7319 | ac_tool_warned=yes ;; |
| 7320 | esac |
| 7321 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 7322 | fi |
| 7323 | else |
| 7324 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 7325 | fi |
| 7326 | |
| 7327 | if test -n "$ac_tool_prefix"; then |
| 7328 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 7329 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 7330 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7331 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7332 | if ${ac_cv_prog_NMEDIT+:} false; then : |
| 7333 | $as_echo_n "(cached) " >&6 |
| 7334 | else |
| 7335 | if test -n "$NMEDIT"; then |
| 7336 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 7337 | else |
| 7338 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7339 | for as_dir in $PATH |
| 7340 | do |
| 7341 | IFS=$as_save_IFS |
| 7342 | test -z "$as_dir" && as_dir=. |
| 7343 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7344 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7345 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 7346 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7347 | break 2 |
| 7348 | fi |
| 7349 | done |
| 7350 | done |
| 7351 | IFS=$as_save_IFS |
| 7352 | |
| 7353 | fi |
| 7354 | fi |
| 7355 | NMEDIT=$ac_cv_prog_NMEDIT |
| 7356 | if test -n "$NMEDIT"; then |
| 7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 7358 | $as_echo "$NMEDIT" >&6; } |
| 7359 | else |
| 7360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7361 | $as_echo "no" >&6; } |
| 7362 | fi |
| 7363 | |
| 7364 | |
| 7365 | fi |
| 7366 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 7367 | ac_ct_NMEDIT=$NMEDIT |
| 7368 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 7369 | set dummy nmedit; ac_word=$2 |
| 7370 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7371 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7372 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
| 7373 | $as_echo_n "(cached) " >&6 |
| 7374 | else |
| 7375 | if test -n "$ac_ct_NMEDIT"; then |
| 7376 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 7377 | else |
| 7378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7379 | for as_dir in $PATH |
| 7380 | do |
| 7381 | IFS=$as_save_IFS |
| 7382 | test -z "$as_dir" && as_dir=. |
| 7383 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7384 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7385 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 7386 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7387 | break 2 |
| 7388 | fi |
| 7389 | done |
| 7390 | done |
| 7391 | IFS=$as_save_IFS |
| 7392 | |
| 7393 | fi |
| 7394 | fi |
| 7395 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 7396 | if test -n "$ac_ct_NMEDIT"; then |
| 7397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 7398 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 7399 | else |
| 7400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7401 | $as_echo "no" >&6; } |
| 7402 | fi |
| 7403 | |
| 7404 | if test "x$ac_ct_NMEDIT" = x; then |
| 7405 | NMEDIT=":" |
| 7406 | else |
| 7407 | case $cross_compiling:$ac_tool_warned in |
| 7408 | yes:) |
| 7409 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7410 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7411 | ac_tool_warned=yes ;; |
| 7412 | esac |
| 7413 | NMEDIT=$ac_ct_NMEDIT |
| 7414 | fi |
| 7415 | else |
| 7416 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 7417 | fi |
| 7418 | |
| 7419 | if test -n "$ac_tool_prefix"; then |
| 7420 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 7421 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 7422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7423 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7424 | if ${ac_cv_prog_LIPO+:} false; then : |
| 7425 | $as_echo_n "(cached) " >&6 |
| 7426 | else |
| 7427 | if test -n "$LIPO"; then |
| 7428 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 7429 | else |
| 7430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7431 | for as_dir in $PATH |
| 7432 | do |
| 7433 | IFS=$as_save_IFS |
| 7434 | test -z "$as_dir" && as_dir=. |
| 7435 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7436 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7437 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 7438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7439 | break 2 |
| 7440 | fi |
| 7441 | done |
| 7442 | done |
| 7443 | IFS=$as_save_IFS |
| 7444 | |
| 7445 | fi |
| 7446 | fi |
| 7447 | LIPO=$ac_cv_prog_LIPO |
| 7448 | if test -n "$LIPO"; then |
| 7449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 7450 | $as_echo "$LIPO" >&6; } |
| 7451 | else |
| 7452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7453 | $as_echo "no" >&6; } |
| 7454 | fi |
| 7455 | |
| 7456 | |
| 7457 | fi |
| 7458 | if test -z "$ac_cv_prog_LIPO"; then |
| 7459 | ac_ct_LIPO=$LIPO |
| 7460 | # Extract the first word of "lipo", so it can be a program name with args. |
| 7461 | set dummy lipo; ac_word=$2 |
| 7462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7463 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7464 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
| 7465 | $as_echo_n "(cached) " >&6 |
| 7466 | else |
| 7467 | if test -n "$ac_ct_LIPO"; then |
| 7468 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 7469 | else |
| 7470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7471 | for as_dir in $PATH |
| 7472 | do |
| 7473 | IFS=$as_save_IFS |
| 7474 | test -z "$as_dir" && as_dir=. |
| 7475 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7476 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7477 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 7478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7479 | break 2 |
| 7480 | fi |
| 7481 | done |
| 7482 | done |
| 7483 | IFS=$as_save_IFS |
| 7484 | |
| 7485 | fi |
| 7486 | fi |
| 7487 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 7488 | if test -n "$ac_ct_LIPO"; then |
| 7489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 7490 | $as_echo "$ac_ct_LIPO" >&6; } |
| 7491 | else |
| 7492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7493 | $as_echo "no" >&6; } |
| 7494 | fi |
| 7495 | |
| 7496 | if test "x$ac_ct_LIPO" = x; then |
| 7497 | LIPO=":" |
| 7498 | else |
| 7499 | case $cross_compiling:$ac_tool_warned in |
| 7500 | yes:) |
| 7501 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7502 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7503 | ac_tool_warned=yes ;; |
| 7504 | esac |
| 7505 | LIPO=$ac_ct_LIPO |
| 7506 | fi |
| 7507 | else |
| 7508 | LIPO="$ac_cv_prog_LIPO" |
| 7509 | fi |
| 7510 | |
| 7511 | if test -n "$ac_tool_prefix"; then |
| 7512 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 7513 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 7514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7515 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7516 | if ${ac_cv_prog_OTOOL+:} false; then : |
| 7517 | $as_echo_n "(cached) " >&6 |
| 7518 | else |
| 7519 | if test -n "$OTOOL"; then |
| 7520 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 7521 | else |
| 7522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7523 | for as_dir in $PATH |
| 7524 | do |
| 7525 | IFS=$as_save_IFS |
| 7526 | test -z "$as_dir" && as_dir=. |
| 7527 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7528 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7529 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 7530 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7531 | break 2 |
| 7532 | fi |
| 7533 | done |
| 7534 | done |
| 7535 | IFS=$as_save_IFS |
| 7536 | |
| 7537 | fi |
| 7538 | fi |
| 7539 | OTOOL=$ac_cv_prog_OTOOL |
| 7540 | if test -n "$OTOOL"; then |
| 7541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 7542 | $as_echo "$OTOOL" >&6; } |
| 7543 | else |
| 7544 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7545 | $as_echo "no" >&6; } |
| 7546 | fi |
| 7547 | |
| 7548 | |
| 7549 | fi |
| 7550 | if test -z "$ac_cv_prog_OTOOL"; then |
| 7551 | ac_ct_OTOOL=$OTOOL |
| 7552 | # Extract the first word of "otool", so it can be a program name with args. |
| 7553 | set dummy otool; ac_word=$2 |
| 7554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7555 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7556 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
| 7557 | $as_echo_n "(cached) " >&6 |
| 7558 | else |
| 7559 | if test -n "$ac_ct_OTOOL"; then |
| 7560 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 7561 | else |
| 7562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7563 | for as_dir in $PATH |
| 7564 | do |
| 7565 | IFS=$as_save_IFS |
| 7566 | test -z "$as_dir" && as_dir=. |
| 7567 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7568 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7569 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 7570 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7571 | break 2 |
| 7572 | fi |
| 7573 | done |
| 7574 | done |
| 7575 | IFS=$as_save_IFS |
| 7576 | |
| 7577 | fi |
| 7578 | fi |
| 7579 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 7580 | if test -n "$ac_ct_OTOOL"; then |
| 7581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 7582 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 7583 | else |
| 7584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7585 | $as_echo "no" >&6; } |
| 7586 | fi |
| 7587 | |
| 7588 | if test "x$ac_ct_OTOOL" = x; then |
| 7589 | OTOOL=":" |
| 7590 | else |
| 7591 | case $cross_compiling:$ac_tool_warned in |
| 7592 | yes:) |
| 7593 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7594 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7595 | ac_tool_warned=yes ;; |
| 7596 | esac |
| 7597 | OTOOL=$ac_ct_OTOOL |
| 7598 | fi |
| 7599 | else |
| 7600 | OTOOL="$ac_cv_prog_OTOOL" |
| 7601 | fi |
| 7602 | |
| 7603 | if test -n "$ac_tool_prefix"; then |
| 7604 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 7605 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 7606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7607 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7608 | if ${ac_cv_prog_OTOOL64+:} false; then : |
| 7609 | $as_echo_n "(cached) " >&6 |
| 7610 | else |
| 7611 | if test -n "$OTOOL64"; then |
| 7612 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 7613 | else |
| 7614 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7615 | for as_dir in $PATH |
| 7616 | do |
| 7617 | IFS=$as_save_IFS |
| 7618 | test -z "$as_dir" && as_dir=. |
| 7619 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7620 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7621 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 7622 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7623 | break 2 |
| 7624 | fi |
| 7625 | done |
| 7626 | done |
| 7627 | IFS=$as_save_IFS |
| 7628 | |
| 7629 | fi |
| 7630 | fi |
| 7631 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 7632 | if test -n "$OTOOL64"; then |
| 7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 7634 | $as_echo "$OTOOL64" >&6; } |
| 7635 | else |
| 7636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7637 | $as_echo "no" >&6; } |
| 7638 | fi |
| 7639 | |
| 7640 | |
| 7641 | fi |
| 7642 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 7643 | ac_ct_OTOOL64=$OTOOL64 |
| 7644 | # Extract the first word of "otool64", so it can be a program name with args. |
| 7645 | set dummy otool64; ac_word=$2 |
| 7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7647 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7648 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
| 7649 | $as_echo_n "(cached) " >&6 |
| 7650 | else |
| 7651 | if test -n "$ac_ct_OTOOL64"; then |
| 7652 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 7653 | else |
| 7654 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7655 | for as_dir in $PATH |
| 7656 | do |
| 7657 | IFS=$as_save_IFS |
| 7658 | test -z "$as_dir" && as_dir=. |
| 7659 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7660 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 7661 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 7662 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7663 | break 2 |
| 7664 | fi |
| 7665 | done |
| 7666 | done |
| 7667 | IFS=$as_save_IFS |
| 7668 | |
| 7669 | fi |
| 7670 | fi |
| 7671 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 7672 | if test -n "$ac_ct_OTOOL64"; then |
| 7673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 7674 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7675 | else |
| 7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7677 | $as_echo "no" >&6; } |
| 7678 | fi |
| 7679 | |
| 7680 | if test "x$ac_ct_OTOOL64" = x; then |
| 7681 | OTOOL64=":" |
| 7682 | else |
| 7683 | case $cross_compiling:$ac_tool_warned in |
| 7684 | yes:) |
| 7685 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7686 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7687 | ac_tool_warned=yes ;; |
| 7688 | esac |
| 7689 | OTOOL64=$ac_ct_OTOOL64 |
| 7690 | fi |
| 7691 | else |
| 7692 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7693 | fi |
| 7694 | |
| 7695 | |
| 7696 | |
| 7697 | |
| 7698 | |
| 7699 | |
| 7700 | |
| 7701 | |
| 7702 | |
| 7703 | |
| 7704 | |
| 7705 | |
| 7706 | |
| 7707 | |
| 7708 | |
| 7709 | |
| 7710 | |
| 7711 | |
| 7712 | |
| 7713 | |
| 7714 | |
| 7715 | |
| 7716 | |
| 7717 | |
| 7718 | |
| 7719 | |
| 7720 | |
| 7721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7722 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7723 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
| 7724 | $as_echo_n "(cached) " >&6 |
| 7725 | else |
| 7726 | lt_cv_apple_cc_single_mod=no |
| 7727 | if test -z "${LT_MULTI_MODULE}"; then |
| 7728 | # By default we will add the -single_module flag. You can override |
| 7729 | # by either setting the environment variable LT_MULTI_MODULE |
| 7730 | # non-empty at configure time, or by adding -multi_module to the |
| 7731 | # link flags. |
| 7732 | rm -rf libconftest.dylib* |
| 7733 | echo "int foo(void){return 1;}" > conftest.c |
| 7734 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7735 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7736 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7737 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7738 | _lt_result=$? |
| 7739 | # If there is a non-empty error log, and "single_module" |
| 7740 | # appears in it, assume the flag caused a linker warning |
| 7741 | if test -s conftest.err && $GREP single_module conftest.err; then |
| 7742 | cat conftest.err >&5 |
| 7743 | # Otherwise, if the output was created with a 0 exit code from |
| 7744 | # the compiler, it worked. |
| 7745 | elif test -f libconftest.dylib && test $_lt_result -eq 0; then |
| 7746 | lt_cv_apple_cc_single_mod=yes |
| 7747 | else |
| 7748 | cat conftest.err >&5 |
| 7749 | fi |
| 7750 | rm -rf libconftest.dylib* |
| 7751 | rm -f conftest.* |
| 7752 | fi |
| 7753 | fi |
| 7754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7755 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7756 | |
| 7757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7758 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7759 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
| 7760 | $as_echo_n "(cached) " >&6 |
| 7761 | else |
| 7762 | lt_cv_ld_exported_symbols_list=no |
| 7763 | save_LDFLAGS=$LDFLAGS |
| 7764 | echo "_main" > conftest.sym |
| 7765 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7767 | /* end confdefs.h. */ |
| 7768 | |
| 7769 | int |
| 7770 | main () |
| 7771 | { |
| 7772 | |
| 7773 | ; |
| 7774 | return 0; |
| 7775 | } |
| 7776 | _ACEOF |
| 7777 | if ac_fn_c_try_link "$LINENO"; then : |
| 7778 | lt_cv_ld_exported_symbols_list=yes |
| 7779 | else |
| 7780 | lt_cv_ld_exported_symbols_list=no |
| 7781 | fi |
| 7782 | rm -f core conftest.err conftest.$ac_objext \ |
| 7783 | conftest$ac_exeext conftest.$ac_ext |
| 7784 | LDFLAGS="$save_LDFLAGS" |
| 7785 | |
| 7786 | fi |
| 7787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7788 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7789 | |
| 7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 7791 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
| 7792 | if ${lt_cv_ld_force_load+:} false; then : |
| 7793 | $as_echo_n "(cached) " >&6 |
| 7794 | else |
| 7795 | lt_cv_ld_force_load=no |
| 7796 | cat > conftest.c << _LT_EOF |
| 7797 | int forced_loaded() { return 2;} |
| 7798 | _LT_EOF |
| 7799 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 7800 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 7801 | echo "$AR cru libconftest.a conftest.o" >&5 |
| 7802 | $AR cru libconftest.a conftest.o 2>&5 |
| 7803 | echo "$RANLIB libconftest.a" >&5 |
| 7804 | $RANLIB libconftest.a 2>&5 |
| 7805 | cat > conftest.c << _LT_EOF |
| 7806 | int main() { return 0;} |
| 7807 | _LT_EOF |
| 7808 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 7809 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 7810 | _lt_result=$? |
| 7811 | if test -s conftest.err && $GREP force_load conftest.err; then |
| 7812 | cat conftest.err >&5 |
| 7813 | elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then |
| 7814 | lt_cv_ld_force_load=yes |
| 7815 | else |
| 7816 | cat conftest.err >&5 |
| 7817 | fi |
| 7818 | rm -f conftest.err libconftest.a conftest conftest.c |
| 7819 | rm -rf conftest.dSYM |
| 7820 | |
| 7821 | fi |
| 7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 7823 | $as_echo "$lt_cv_ld_force_load" >&6; } |
| 7824 | case $host_os in |
| 7825 | rhapsody* | darwin1.[012]) |
| 7826 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7827 | darwin1.*) |
| 7828 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7829 | darwin*) # darwin 5.x on |
| 7830 | # if running on 10.5 or later, the deployment target defaults |
| 7831 | # to the OS version, if on x86, and 10.4, the deployment |
| 7832 | # target defaults to 10.4. Don't you love it? |
| 7833 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7834 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7835 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7836 | 10.[012]*) |
| 7837 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7838 | 10.*) |
| 7839 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7840 | esac |
| 7841 | ;; |
| 7842 | esac |
| 7843 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7844 | _lt_dar_single_mod='$single_module' |
| 7845 | fi |
| 7846 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7847 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7848 | else |
| 7849 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7850 | fi |
| 7851 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
| 7852 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7853 | else |
| 7854 | _lt_dsymutil= |
| 7855 | fi |
| 7856 | ;; |
| 7857 | esac |
| 7858 | |
| 7859 | ac_ext=c |
| 7860 | ac_cpp='$CPP $CPPFLAGS' |
| 7861 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7862 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7863 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 7865 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 7866 | # On Suns, sometimes $CPP names a directory. |
| 7867 | if test -n "$CPP" && test -d "$CPP"; then |
| 7868 | CPP= |
| 7869 | fi |
| 7870 | if test -z "$CPP"; then |
| 7871 | if ${ac_cv_prog_CPP+:} false; then : |
| 7872 | $as_echo_n "(cached) " >&6 |
| 7873 | else |
| 7874 | # Double quotes because CPP needs to be expanded |
| 7875 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 7876 | do |
| 7877 | ac_preproc_ok=false |
| 7878 | for ac_c_preproc_warn_flag in '' yes |
| 7879 | do |
| 7880 | # Use a header file that comes with gcc, so configuring glibc |
| 7881 | # with a fresh cross-compiler works. |
| 7882 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7883 | # <limits.h> exists even on freestanding compilers. |
| 7884 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7885 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7887 | /* end confdefs.h. */ |
| 7888 | #ifdef __STDC__ |
| 7889 | # include <limits.h> |
| 7890 | #else |
| 7891 | # include <assert.h> |
| 7892 | #endif |
| 7893 | Syntax error |
| 7894 | _ACEOF |
| 7895 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7896 | |
| 7897 | else |
| 7898 | # Broken: fails on valid input. |
| 7899 | continue |
| 7900 | fi |
| 7901 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7902 | |
| 7903 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7904 | # can be detected and how. |
| 7905 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7906 | /* end confdefs.h. */ |
| 7907 | #include <ac_nonexistent.h> |
| 7908 | _ACEOF |
| 7909 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7910 | # Broken: success on invalid input. |
| 7911 | continue |
| 7912 | else |
| 7913 | # Passes both tests. |
| 7914 | ac_preproc_ok=: |
| 7915 | break |
| 7916 | fi |
| 7917 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7918 | |
| 7919 | done |
| 7920 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7921 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7922 | if $ac_preproc_ok; then : |
| 7923 | break |
| 7924 | fi |
| 7925 | |
| 7926 | done |
| 7927 | ac_cv_prog_CPP=$CPP |
| 7928 | |
| 7929 | fi |
| 7930 | CPP=$ac_cv_prog_CPP |
| 7931 | else |
| 7932 | ac_cv_prog_CPP=$CPP |
| 7933 | fi |
| 7934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 7935 | $as_echo "$CPP" >&6; } |
| 7936 | ac_preproc_ok=false |
| 7937 | for ac_c_preproc_warn_flag in '' yes |
| 7938 | do |
| 7939 | # Use a header file that comes with gcc, so configuring glibc |
| 7940 | # with a fresh cross-compiler works. |
| 7941 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7942 | # <limits.h> exists even on freestanding compilers. |
| 7943 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7944 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7946 | /* end confdefs.h. */ |
| 7947 | #ifdef __STDC__ |
| 7948 | # include <limits.h> |
| 7949 | #else |
| 7950 | # include <assert.h> |
| 7951 | #endif |
| 7952 | Syntax error |
| 7953 | _ACEOF |
| 7954 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7955 | |
| 7956 | else |
| 7957 | # Broken: fails on valid input. |
| 7958 | continue |
| 7959 | fi |
| 7960 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7961 | |
| 7962 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7963 | # can be detected and how. |
| 7964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7965 | /* end confdefs.h. */ |
| 7966 | #include <ac_nonexistent.h> |
| 7967 | _ACEOF |
| 7968 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7969 | # Broken: success on invalid input. |
| 7970 | continue |
| 7971 | else |
| 7972 | # Passes both tests. |
| 7973 | ac_preproc_ok=: |
| 7974 | break |
| 7975 | fi |
| 7976 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 7977 | |
| 7978 | done |
| 7979 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7980 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 7981 | if $ac_preproc_ok; then : |
| 7982 | |
| 7983 | else |
| 7984 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7985 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7986 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7987 | See \`config.log' for more details" "$LINENO" 5; } |
| 7988 | fi |
| 7989 | |
| 7990 | ac_ext=c |
| 7991 | ac_cpp='$CPP $CPPFLAGS' |
| 7992 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7993 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7994 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7995 | |
| 7996 | |
| 7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7998 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7999 | if ${ac_cv_header_stdc+:} false; then : |
| 8000 | $as_echo_n "(cached) " >&6 |
| 8001 | else |
| 8002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8003 | /* end confdefs.h. */ |
| 8004 | #include <stdlib.h> |
| 8005 | #include <stdarg.h> |
| 8006 | #include <string.h> |
| 8007 | #include <float.h> |
| 8008 | |
| 8009 | int |
| 8010 | main () |
| 8011 | { |
| 8012 | |
| 8013 | ; |
| 8014 | return 0; |
| 8015 | } |
| 8016 | _ACEOF |
| 8017 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8018 | ac_cv_header_stdc=yes |
| 8019 | else |
| 8020 | ac_cv_header_stdc=no |
| 8021 | fi |
| 8022 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8023 | |
| 8024 | if test $ac_cv_header_stdc = yes; then |
| 8025 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 8026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8027 | /* end confdefs.h. */ |
| 8028 | #include <string.h> |
| 8029 | |
| 8030 | _ACEOF |
| 8031 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8032 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 8033 | |
| 8034 | else |
| 8035 | ac_cv_header_stdc=no |
| 8036 | fi |
| 8037 | rm -f conftest* |
| 8038 | |
| 8039 | fi |
| 8040 | |
| 8041 | if test $ac_cv_header_stdc = yes; then |
| 8042 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 8043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8044 | /* end confdefs.h. */ |
| 8045 | #include <stdlib.h> |
| 8046 | |
| 8047 | _ACEOF |
| 8048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 8049 | $EGREP "free" >/dev/null 2>&1; then : |
| 8050 | |
| 8051 | else |
| 8052 | ac_cv_header_stdc=no |
| 8053 | fi |
| 8054 | rm -f conftest* |
| 8055 | |
| 8056 | fi |
| 8057 | |
| 8058 | if test $ac_cv_header_stdc = yes; then |
| 8059 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 8060 | if test "$cross_compiling" = yes; then : |
| 8061 | : |
| 8062 | else |
| 8063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8064 | /* end confdefs.h. */ |
| 8065 | #include <ctype.h> |
| 8066 | #include <stdlib.h> |
| 8067 | #if ((' ' & 0x0FF) == 0x020) |
| 8068 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 8069 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 8070 | #else |
| 8071 | # define ISLOWER(c) \ |
| 8072 | (('a' <= (c) && (c) <= 'i') \ |
| 8073 | || ('j' <= (c) && (c) <= 'r') \ |
| 8074 | || ('s' <= (c) && (c) <= 'z')) |
| 8075 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 8076 | #endif |
| 8077 | |
| 8078 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 8079 | int |
| 8080 | main () |
| 8081 | { |
| 8082 | int i; |
| 8083 | for (i = 0; i < 256; i++) |
| 8084 | if (XOR (islower (i), ISLOWER (i)) |
| 8085 | || toupper (i) != TOUPPER (i)) |
| 8086 | return 2; |
| 8087 | return 0; |
| 8088 | } |
| 8089 | _ACEOF |
| 8090 | if ac_fn_c_try_run "$LINENO"; then : |
| 8091 | |
| 8092 | else |
| 8093 | ac_cv_header_stdc=no |
| 8094 | fi |
| 8095 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 8096 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8097 | fi |
| 8098 | |
| 8099 | fi |
| 8100 | fi |
| 8101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 8102 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 8103 | if test $ac_cv_header_stdc = yes; then |
| 8104 | |
| 8105 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 8106 | |
| 8107 | fi |
| 8108 | |
| 8109 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 8110 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 8111 | inttypes.h stdint.h unistd.h |
| 8112 | do : |
| 8113 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8114 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 8115 | " |
| 8116 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
| 8117 | cat >>confdefs.h <<_ACEOF |
| 8118 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8119 | _ACEOF |
| 8120 | |
| 8121 | fi |
| 8122 | |
| 8123 | done |
| 8124 | |
| 8125 | |
| 8126 | for ac_header in dlfcn.h |
| 8127 | do : |
| 8128 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 8129 | " |
| 8130 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
| 8131 | cat >>confdefs.h <<_ACEOF |
| 8132 | #define HAVE_DLFCN_H 1 |
| 8133 | _ACEOF |
| 8134 | |
| 8135 | fi |
| 8136 | |
| 8137 | done |
| 8138 | |
| 8139 | |
| 8140 | |
| 8141 | |
| 8142 | |
| 8143 | # Set options |
| 8144 | |
| 8145 | |
| 8146 | |
| 8147 | enable_dlopen=no |
| 8148 | |
| 8149 | |
| 8150 | enable_win32_dll=no |
| 8151 | |
| 8152 | |
| 8153 | # Check whether --enable-shared was given. |
| 8154 | if test "${enable_shared+set}" = set; then : |
| 8155 | enableval=$enable_shared; p=${PACKAGE-default} |
| 8156 | case $enableval in |
| 8157 | yes) enable_shared=yes ;; |
| 8158 | no) enable_shared=no ;; |
| 8159 | *) |
| 8160 | enable_shared=no |
| 8161 | # Look at the argument we got. We use all the common list separators. |
| 8162 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8163 | for pkg in $enableval; do |
| 8164 | IFS="$lt_save_ifs" |
| 8165 | if test "X$pkg" = "X$p"; then |
| 8166 | enable_shared=yes |
| 8167 | fi |
| 8168 | done |
| 8169 | IFS="$lt_save_ifs" |
| 8170 | ;; |
| 8171 | esac |
| 8172 | else |
| 8173 | enable_shared=yes |
| 8174 | fi |
| 8175 | |
| 8176 | |
| 8177 | |
| 8178 | |
| 8179 | |
| 8180 | |
| 8181 | |
| 8182 | |
| 8183 | |
| 8184 | # Check whether --enable-static was given. |
| 8185 | if test "${enable_static+set}" = set; then : |
| 8186 | enableval=$enable_static; p=${PACKAGE-default} |
| 8187 | case $enableval in |
| 8188 | yes) enable_static=yes ;; |
| 8189 | no) enable_static=no ;; |
| 8190 | *) |
| 8191 | enable_static=no |
| 8192 | # Look at the argument we got. We use all the common list separators. |
| 8193 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8194 | for pkg in $enableval; do |
| 8195 | IFS="$lt_save_ifs" |
| 8196 | if test "X$pkg" = "X$p"; then |
| 8197 | enable_static=yes |
| 8198 | fi |
| 8199 | done |
| 8200 | IFS="$lt_save_ifs" |
| 8201 | ;; |
| 8202 | esac |
| 8203 | else |
| 8204 | enable_static=yes |
| 8205 | fi |
| 8206 | |
| 8207 | |
| 8208 | |
| 8209 | |
| 8210 | |
| 8211 | |
| 8212 | |
| 8213 | |
| 8214 | |
| 8215 | |
| 8216 | # Check whether --with-pic was given. |
| 8217 | if test "${with_pic+set}" = set; then : |
| 8218 | withval=$with_pic; lt_p=${PACKAGE-default} |
| 8219 | case $withval in |
| 8220 | yes|no) pic_mode=$withval ;; |
| 8221 | *) |
| 8222 | pic_mode=default |
| 8223 | # Look at the argument we got. We use all the common list separators. |
| 8224 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8225 | for lt_pkg in $withval; do |
| 8226 | IFS="$lt_save_ifs" |
| 8227 | if test "X$lt_pkg" = "X$lt_p"; then |
| 8228 | pic_mode=yes |
| 8229 | fi |
| 8230 | done |
| 8231 | IFS="$lt_save_ifs" |
| 8232 | ;; |
| 8233 | esac |
| 8234 | else |
| 8235 | pic_mode=default |
| 8236 | fi |
| 8237 | |
| 8238 | |
| 8239 | test -z "$pic_mode" && pic_mode=default |
| 8240 | |
| 8241 | |
| 8242 | |
| 8243 | |
| 8244 | |
| 8245 | |
| 8246 | |
| 8247 | # Check whether --enable-fast-install was given. |
| 8248 | if test "${enable_fast_install+set}" = set; then : |
| 8249 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 8250 | case $enableval in |
| 8251 | yes) enable_fast_install=yes ;; |
| 8252 | no) enable_fast_install=no ;; |
| 8253 | *) |
| 8254 | enable_fast_install=no |
| 8255 | # Look at the argument we got. We use all the common list separators. |
| 8256 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 8257 | for pkg in $enableval; do |
| 8258 | IFS="$lt_save_ifs" |
| 8259 | if test "X$pkg" = "X$p"; then |
| 8260 | enable_fast_install=yes |
| 8261 | fi |
| 8262 | done |
| 8263 | IFS="$lt_save_ifs" |
| 8264 | ;; |
| 8265 | esac |
| 8266 | else |
| 8267 | enable_fast_install=yes |
| 8268 | fi |
| 8269 | |
| 8270 | |
| 8271 | |
| 8272 | |
| 8273 | |
| 8274 | |
| 8275 | |
| 8276 | |
| 8277 | |
| 8278 | |
| 8279 | |
| 8280 | # This can be used to rebuild libtool when needed |
| 8281 | LIBTOOL_DEPS="$ltmain" |
| 8282 | |
| 8283 | # Always use our own libtool. |
| 8284 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 8285 | |
| 8286 | |
| 8287 | |
| 8288 | |
| 8289 | |
| 8290 | |
| 8291 | |
| 8292 | |
| 8293 | |
| 8294 | |
| 8295 | |
| 8296 | |
| 8297 | |
| 8298 | |
| 8299 | |
| 8300 | |
| 8301 | |
| 8302 | |
| 8303 | |
| 8304 | |
| 8305 | |
| 8306 | |
| 8307 | |
| 8308 | |
| 8309 | |
| 8310 | |
| 8311 | |
| 8312 | |
| 8313 | |
| 8314 | |
| 8315 | test -z "$LN_S" && LN_S="ln -s" |
| 8316 | |
| 8317 | |
| 8318 | |
| 8319 | |
| 8320 | |
| 8321 | |
| 8322 | |
| 8323 | |
| 8324 | |
| 8325 | |
| 8326 | |
| 8327 | |
| 8328 | |
| 8329 | |
| 8330 | if test -n "${ZSH_VERSION+set}" ; then |
| 8331 | setopt NO_GLOB_SUBST |
| 8332 | fi |
| 8333 | |
| 8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 8335 | $as_echo_n "checking for objdir... " >&6; } |
| 8336 | if ${lt_cv_objdir+:} false; then : |
| 8337 | $as_echo_n "(cached) " >&6 |
| 8338 | else |
| 8339 | rm -f .libs 2>/dev/null |
| 8340 | mkdir .libs 2>/dev/null |
| 8341 | if test -d .libs; then |
| 8342 | lt_cv_objdir=.libs |
| 8343 | else |
| 8344 | # MS-DOS does not allow filenames that begin with a dot. |
| 8345 | lt_cv_objdir=_libs |
| 8346 | fi |
| 8347 | rmdir .libs 2>/dev/null |
| 8348 | fi |
| 8349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8350 | $as_echo "$lt_cv_objdir" >&6; } |
| 8351 | objdir=$lt_cv_objdir |
| 8352 | |
| 8353 | |
| 8354 | |
| 8355 | |
| 8356 | |
| 8357 | cat >>confdefs.h <<_ACEOF |
| 8358 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8359 | _ACEOF |
| 8360 | |
| 8361 | |
| 8362 | |
| 8363 | |
| 8364 | case $host_os in |
| 8365 | aix3*) |
| 8366 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8367 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8368 | # vanish in a puff of smoke. |
| 8369 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8370 | COLLECT_NAMES= |
| 8371 | export COLLECT_NAMES |
| 8372 | fi |
| 8373 | ;; |
| 8374 | esac |
| 8375 | |
| 8376 | # Global variables: |
| 8377 | ofile=libtool |
| 8378 | can_build_shared=yes |
| 8379 | |
| 8380 | # All known linkers require a `.a' archive for static linking (except MSVC, |
| 8381 | # which needs '.lib'). |
| 8382 | libext=a |
| 8383 | |
| 8384 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8385 | |
| 8386 | old_CC="$CC" |
| 8387 | old_CFLAGS="$CFLAGS" |
| 8388 | |
| 8389 | # Set sane defaults for various variables |
| 8390 | test -z "$CC" && CC=cc |
| 8391 | test -z "$LTCC" && LTCC=$CC |
| 8392 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 8393 | test -z "$LD" && LD=ld |
| 8394 | test -z "$ac_objext" && ac_objext=o |
| 8395 | |
| 8396 | for cc_temp in $compiler""; do |
| 8397 | case $cc_temp in |
| 8398 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8399 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8400 | \-*) ;; |
| 8401 | *) break;; |
| 8402 | esac |
| 8403 | done |
| 8404 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 8405 | |
| 8406 | |
| 8407 | # Only perform the check for file, if the check method requires it |
| 8408 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 8409 | case $deplibs_check_method in |
| 8410 | file_magic*) |
| 8411 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 8412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8413 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8414 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8415 | $as_echo_n "(cached) " >&6 |
| 8416 | else |
| 8417 | case $MAGIC_CMD in |
| 8418 | [\\/*] | ?:[\\/]*) |
| 8419 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8420 | ;; |
| 8421 | *) |
| 8422 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8423 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8424 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8425 | for ac_dir in $ac_dummy; do |
| 8426 | IFS="$lt_save_ifs" |
| 8427 | test -z "$ac_dir" && ac_dir=. |
| 8428 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8429 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8430 | if test -n "$file_magic_test_file"; then |
| 8431 | case $deplibs_check_method in |
| 8432 | "file_magic "*) |
| 8433 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8434 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8435 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8436 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8437 | : |
| 8438 | else |
| 8439 | cat <<_LT_EOF 1>&2 |
| 8440 | |
| 8441 | *** Warning: the command libtool uses to detect shared libraries, |
| 8442 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8443 | *** The result is that libtool may fail to recognize shared libraries |
| 8444 | *** as such. This will affect the creation of libtool libraries that |
| 8445 | *** depend on shared libraries, but programs linked with such libtool |
| 8446 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8447 | *** may want to report the problem to your system manager and/or to |
| 8448 | *** bug-libtool@gnu.org |
| 8449 | |
| 8450 | _LT_EOF |
| 8451 | fi ;; |
| 8452 | esac |
| 8453 | fi |
| 8454 | break |
| 8455 | fi |
| 8456 | done |
| 8457 | IFS="$lt_save_ifs" |
| 8458 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8459 | ;; |
| 8460 | esac |
| 8461 | fi |
| 8462 | |
| 8463 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8464 | if test -n "$MAGIC_CMD"; then |
| 8465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8466 | $as_echo "$MAGIC_CMD" >&6; } |
| 8467 | else |
| 8468 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8469 | $as_echo "no" >&6; } |
| 8470 | fi |
| 8471 | |
| 8472 | |
| 8473 | |
| 8474 | |
| 8475 | |
| 8476 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8477 | if test -n "$ac_tool_prefix"; then |
| 8478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8479 | $as_echo_n "checking for file... " >&6; } |
| 8480 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
| 8481 | $as_echo_n "(cached) " >&6 |
| 8482 | else |
| 8483 | case $MAGIC_CMD in |
| 8484 | [\\/*] | ?:[\\/]*) |
| 8485 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8486 | ;; |
| 8487 | *) |
| 8488 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8489 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8490 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8491 | for ac_dir in $ac_dummy; do |
| 8492 | IFS="$lt_save_ifs" |
| 8493 | test -z "$ac_dir" && ac_dir=. |
| 8494 | if test -f $ac_dir/file; then |
| 8495 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8496 | if test -n "$file_magic_test_file"; then |
| 8497 | case $deplibs_check_method in |
| 8498 | "file_magic "*) |
| 8499 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 8500 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8501 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8502 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8503 | : |
| 8504 | else |
| 8505 | cat <<_LT_EOF 1>&2 |
| 8506 | |
| 8507 | *** Warning: the command libtool uses to detect shared libraries, |
| 8508 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8509 | *** The result is that libtool may fail to recognize shared libraries |
| 8510 | *** as such. This will affect the creation of libtool libraries that |
| 8511 | *** depend on shared libraries, but programs linked with such libtool |
| 8512 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8513 | *** may want to report the problem to your system manager and/or to |
| 8514 | *** bug-libtool@gnu.org |
| 8515 | |
| 8516 | _LT_EOF |
| 8517 | fi ;; |
| 8518 | esac |
| 8519 | fi |
| 8520 | break |
| 8521 | fi |
| 8522 | done |
| 8523 | IFS="$lt_save_ifs" |
| 8524 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8525 | ;; |
| 8526 | esac |
| 8527 | fi |
| 8528 | |
| 8529 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8530 | if test -n "$MAGIC_CMD"; then |
| 8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8532 | $as_echo "$MAGIC_CMD" >&6; } |
| 8533 | else |
| 8534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8535 | $as_echo "no" >&6; } |
| 8536 | fi |
| 8537 | |
| 8538 | |
| 8539 | else |
| 8540 | MAGIC_CMD=: |
| 8541 | fi |
| 8542 | fi |
| 8543 | |
| 8544 | fi |
| 8545 | ;; |
| 8546 | esac |
| 8547 | |
| 8548 | # Use C for the default configuration in the libtool script |
| 8549 | |
| 8550 | lt_save_CC="$CC" |
| 8551 | ac_ext=c |
| 8552 | ac_cpp='$CPP $CPPFLAGS' |
| 8553 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8554 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8555 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8556 | |
| 8557 | |
| 8558 | # Source file extension for C test sources. |
| 8559 | ac_ext=c |
| 8560 | |
| 8561 | # Object file extension for compiled C test sources. |
| 8562 | objext=o |
| 8563 | objext=$objext |
| 8564 | |
| 8565 | # Code to be used in simple compile tests |
| 8566 | lt_simple_compile_test_code="int some_variable = 0;" |
| 8567 | |
| 8568 | # Code to be used in simple link tests |
| 8569 | lt_simple_link_test_code='int main(){return(0);}' |
| 8570 | |
| 8571 | |
| 8572 | |
| 8573 | |
| 8574 | |
| 8575 | |
| 8576 | |
| 8577 | # If no C compiler was specified, use CC. |
| 8578 | LTCC=${LTCC-"$CC"} |
| 8579 | |
| 8580 | # If no C compiler flags were specified, use CFLAGS. |
| 8581 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8582 | |
| 8583 | # Allow CC to be a program name with arguments. |
| 8584 | compiler=$CC |
| 8585 | |
| 8586 | # Save the default compiler, since it gets overwritten when the other |
| 8587 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8588 | compiler_DEFAULT=$CC |
| 8589 | |
| 8590 | # save warnings/boilerplate of simple test code |
| 8591 | ac_outfile=conftest.$ac_objext |
| 8592 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 8593 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8594 | _lt_compiler_boilerplate=`cat conftest.err` |
| 8595 | $RM conftest* |
| 8596 | |
| 8597 | ac_outfile=conftest.$ac_objext |
| 8598 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 8599 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8600 | _lt_linker_boilerplate=`cat conftest.err` |
| 8601 | $RM -r conftest* |
| 8602 | |
| 8603 | |
Jeff Thompson | 23cb742 | 2013-10-09 16:11:47 -0700 | [diff] [blame] | 8604 | ## CAVEAT EMPTOR: |
| 8605 | ## There is no encapsulation within the following macros, do not change |
| 8606 | ## the running order or otherwise move them around unless you know exactly |
| 8607 | ## what you are doing... |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 8608 | if test -n "$compiler"; then |
| 8609 | |
| 8610 | lt_prog_compiler_no_builtin_flag= |
| 8611 | |
| 8612 | if test "$GCC" = yes; then |
| 8613 | case $cc_basename in |
| 8614 | nvcc*) |
| 8615 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 8616 | *) |
| 8617 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 8618 | esac |
| 8619 | |
| 8620 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8621 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8622 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
| 8623 | $as_echo_n "(cached) " >&6 |
| 8624 | else |
| 8625 | lt_cv_prog_compiler_rtti_exceptions=no |
| 8626 | ac_outfile=conftest.$ac_objext |
| 8627 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8628 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8629 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8630 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8631 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8632 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8633 | # The option is referenced via a variable to avoid confusing sed. |
| 8634 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8635 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8636 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8637 | -e 's:$: $lt_compiler_flag:'` |
| 8638 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 8639 | (eval "$lt_compile" 2>conftest.err) |
| 8640 | ac_status=$? |
| 8641 | cat conftest.err >&5 |
| 8642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 8643 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8644 | # The compiler can only warn and ignore the option if not recognized |
| 8645 | # So say no if there are warnings other than the usual output. |
| 8646 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 8647 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8648 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 8649 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8650 | fi |
| 8651 | fi |
| 8652 | $RM conftest* |
| 8653 | |
| 8654 | fi |
| 8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8656 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 8657 | |
| 8658 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8659 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8660 | else |
| 8661 | : |
| 8662 | fi |
| 8663 | |
| 8664 | fi |
| 8665 | |
| 8666 | |
| 8667 | |
| 8668 | |
| 8669 | |
| 8670 | |
| 8671 | lt_prog_compiler_wl= |
| 8672 | lt_prog_compiler_pic= |
| 8673 | lt_prog_compiler_static= |
| 8674 | |
| 8675 | |
| 8676 | if test "$GCC" = yes; then |
| 8677 | lt_prog_compiler_wl='-Wl,' |
| 8678 | lt_prog_compiler_static='-static' |
| 8679 | |
| 8680 | case $host_os in |
| 8681 | aix*) |
| 8682 | # All AIX code is PIC. |
| 8683 | if test "$host_cpu" = ia64; then |
| 8684 | # AIX 5 now supports IA64 processor |
| 8685 | lt_prog_compiler_static='-Bstatic' |
| 8686 | fi |
| 8687 | ;; |
| 8688 | |
| 8689 | amigaos*) |
| 8690 | case $host_cpu in |
| 8691 | powerpc) |
| 8692 | # see comment about AmigaOS4 .so support |
| 8693 | lt_prog_compiler_pic='-fPIC' |
| 8694 | ;; |
| 8695 | m68k) |
| 8696 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8697 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8698 | # like `-m68040'. |
| 8699 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8700 | ;; |
| 8701 | esac |
| 8702 | ;; |
| 8703 | |
| 8704 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 8705 | # PIC is the default for these OSes. |
| 8706 | ;; |
| 8707 | |
| 8708 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8709 | # This hack is so that the source file can tell whether it is being |
| 8710 | # built for inclusion in a dll (and should export symbols for example). |
| 8711 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8712 | # (--disable-auto-import) libraries |
| 8713 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8714 | ;; |
| 8715 | |
| 8716 | darwin* | rhapsody*) |
| 8717 | # PIC is the default on this platform |
| 8718 | # Common symbols not allowed in MH_DYLIB files |
| 8719 | lt_prog_compiler_pic='-fno-common' |
| 8720 | ;; |
| 8721 | |
| 8722 | haiku*) |
| 8723 | # PIC is the default for Haiku. |
| 8724 | # The "-static" flag exists, but is broken. |
| 8725 | lt_prog_compiler_static= |
| 8726 | ;; |
| 8727 | |
| 8728 | hpux*) |
| 8729 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8730 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8731 | # sets the default TLS model and affects inlining. |
| 8732 | case $host_cpu in |
| 8733 | hppa*64*) |
| 8734 | # +Z the default |
| 8735 | ;; |
| 8736 | *) |
| 8737 | lt_prog_compiler_pic='-fPIC' |
| 8738 | ;; |
| 8739 | esac |
| 8740 | ;; |
| 8741 | |
| 8742 | interix[3-9]*) |
| 8743 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8744 | # Instead, we relocate shared libraries at runtime. |
| 8745 | ;; |
| 8746 | |
| 8747 | msdosdjgpp*) |
| 8748 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8749 | # on systems that don't support them. |
| 8750 | lt_prog_compiler_can_build_shared=no |
| 8751 | enable_shared=no |
| 8752 | ;; |
| 8753 | |
| 8754 | *nto* | *qnx*) |
| 8755 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8756 | # it will coredump. |
| 8757 | lt_prog_compiler_pic='-fPIC -shared' |
| 8758 | ;; |
| 8759 | |
| 8760 | sysv4*MP*) |
| 8761 | if test -d /usr/nec; then |
| 8762 | lt_prog_compiler_pic=-Kconform_pic |
| 8763 | fi |
| 8764 | ;; |
| 8765 | |
| 8766 | *) |
| 8767 | lt_prog_compiler_pic='-fPIC' |
| 8768 | ;; |
| 8769 | esac |
| 8770 | |
| 8771 | case $cc_basename in |
| 8772 | nvcc*) # Cuda Compiler Driver 2.2 |
| 8773 | lt_prog_compiler_wl='-Xlinker ' |
| 8774 | if test -n "$lt_prog_compiler_pic"; then |
| 8775 | lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 8776 | fi |
| 8777 | ;; |
| 8778 | esac |
| 8779 | else |
| 8780 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8781 | case $host_os in |
| 8782 | aix*) |
| 8783 | lt_prog_compiler_wl='-Wl,' |
| 8784 | if test "$host_cpu" = ia64; then |
| 8785 | # AIX 5 now supports IA64 processor |
| 8786 | lt_prog_compiler_static='-Bstatic' |
| 8787 | else |
| 8788 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8789 | fi |
| 8790 | ;; |
| 8791 | |
| 8792 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
| 8793 | # This hack is so that the source file can tell whether it is being |
| 8794 | # built for inclusion in a dll (and should export symbols for example). |
| 8795 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8796 | ;; |
| 8797 | |
| 8798 | hpux9* | hpux10* | hpux11*) |
| 8799 | lt_prog_compiler_wl='-Wl,' |
| 8800 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8801 | # not for PA HP-UX. |
| 8802 | case $host_cpu in |
| 8803 | hppa*64*|ia64*) |
| 8804 | # +Z the default |
| 8805 | ;; |
| 8806 | *) |
| 8807 | lt_prog_compiler_pic='+Z' |
| 8808 | ;; |
| 8809 | esac |
| 8810 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8811 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8812 | ;; |
| 8813 | |
| 8814 | irix5* | irix6* | nonstopux*) |
| 8815 | lt_prog_compiler_wl='-Wl,' |
| 8816 | # PIC (with -KPIC) is the default. |
| 8817 | lt_prog_compiler_static='-non_shared' |
| 8818 | ;; |
| 8819 | |
| 8820 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 8821 | case $cc_basename in |
| 8822 | # old Intel for x86_64 which still supported -KPIC. |
| 8823 | ecc*) |
| 8824 | lt_prog_compiler_wl='-Wl,' |
| 8825 | lt_prog_compiler_pic='-KPIC' |
| 8826 | lt_prog_compiler_static='-static' |
| 8827 | ;; |
| 8828 | # icc used to be incompatible with GCC. |
| 8829 | # ICC 10 doesn't accept -KPIC any more. |
| 8830 | icc* | ifort*) |
| 8831 | lt_prog_compiler_wl='-Wl,' |
| 8832 | lt_prog_compiler_pic='-fPIC' |
| 8833 | lt_prog_compiler_static='-static' |
| 8834 | ;; |
| 8835 | # Lahey Fortran 8.1. |
| 8836 | lf95*) |
| 8837 | lt_prog_compiler_wl='-Wl,' |
| 8838 | lt_prog_compiler_pic='--shared' |
| 8839 | lt_prog_compiler_static='--static' |
| 8840 | ;; |
| 8841 | nagfor*) |
| 8842 | # NAG Fortran compiler |
| 8843 | lt_prog_compiler_wl='-Wl,-Wl,,' |
| 8844 | lt_prog_compiler_pic='-PIC' |
| 8845 | lt_prog_compiler_static='-Bstatic' |
| 8846 | ;; |
| 8847 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 8848 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8849 | # which looks to be a dead project) |
| 8850 | lt_prog_compiler_wl='-Wl,' |
| 8851 | lt_prog_compiler_pic='-fpic' |
| 8852 | lt_prog_compiler_static='-Bstatic' |
| 8853 | ;; |
| 8854 | ccc*) |
| 8855 | lt_prog_compiler_wl='-Wl,' |
| 8856 | # All Alpha code is PIC. |
| 8857 | lt_prog_compiler_static='-non_shared' |
| 8858 | ;; |
| 8859 | xl* | bgxl* | bgf* | mpixl*) |
| 8860 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 8861 | lt_prog_compiler_wl='-Wl,' |
| 8862 | lt_prog_compiler_pic='-qpic' |
| 8863 | lt_prog_compiler_static='-qstaticlink' |
| 8864 | ;; |
| 8865 | *) |
| 8866 | case `$CC -V 2>&1 | sed 5q` in |
| 8867 | *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 8868 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8869 | lt_prog_compiler_pic='-KPIC' |
| 8870 | lt_prog_compiler_static='-Bstatic' |
| 8871 | lt_prog_compiler_wl='' |
| 8872 | ;; |
| 8873 | *Sun\ F* | *Sun*Fortran*) |
| 8874 | lt_prog_compiler_pic='-KPIC' |
| 8875 | lt_prog_compiler_static='-Bstatic' |
| 8876 | lt_prog_compiler_wl='-Qoption ld ' |
| 8877 | ;; |
| 8878 | *Sun\ C*) |
| 8879 | # Sun C 5.9 |
| 8880 | lt_prog_compiler_pic='-KPIC' |
| 8881 | lt_prog_compiler_static='-Bstatic' |
| 8882 | lt_prog_compiler_wl='-Wl,' |
| 8883 | ;; |
| 8884 | *Intel*\ [CF]*Compiler*) |
| 8885 | lt_prog_compiler_wl='-Wl,' |
| 8886 | lt_prog_compiler_pic='-fPIC' |
| 8887 | lt_prog_compiler_static='-static' |
| 8888 | ;; |
| 8889 | *Portland\ Group*) |
| 8890 | lt_prog_compiler_wl='-Wl,' |
| 8891 | lt_prog_compiler_pic='-fpic' |
| 8892 | lt_prog_compiler_static='-Bstatic' |
| 8893 | ;; |
| 8894 | esac |
| 8895 | ;; |
| 8896 | esac |
| 8897 | ;; |
| 8898 | |
| 8899 | newsos6) |
| 8900 | lt_prog_compiler_pic='-KPIC' |
| 8901 | lt_prog_compiler_static='-Bstatic' |
| 8902 | ;; |
| 8903 | |
| 8904 | *nto* | *qnx*) |
| 8905 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8906 | # it will coredump. |
| 8907 | lt_prog_compiler_pic='-fPIC -shared' |
| 8908 | ;; |
| 8909 | |
| 8910 | osf3* | osf4* | osf5*) |
| 8911 | lt_prog_compiler_wl='-Wl,' |
| 8912 | # All OSF/1 code is PIC. |
| 8913 | lt_prog_compiler_static='-non_shared' |
| 8914 | ;; |
| 8915 | |
| 8916 | rdos*) |
| 8917 | lt_prog_compiler_static='-non_shared' |
| 8918 | ;; |
| 8919 | |
| 8920 | solaris*) |
| 8921 | lt_prog_compiler_pic='-KPIC' |
| 8922 | lt_prog_compiler_static='-Bstatic' |
| 8923 | case $cc_basename in |
| 8924 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 8925 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8926 | *) |
| 8927 | lt_prog_compiler_wl='-Wl,';; |
| 8928 | esac |
| 8929 | ;; |
| 8930 | |
| 8931 | sunos4*) |
| 8932 | lt_prog_compiler_wl='-Qoption ld ' |
| 8933 | lt_prog_compiler_pic='-PIC' |
| 8934 | lt_prog_compiler_static='-Bstatic' |
| 8935 | ;; |
| 8936 | |
| 8937 | sysv4 | sysv4.2uw2* | sysv4.3*) |
| 8938 | lt_prog_compiler_wl='-Wl,' |
| 8939 | lt_prog_compiler_pic='-KPIC' |
| 8940 | lt_prog_compiler_static='-Bstatic' |
| 8941 | ;; |
| 8942 | |
| 8943 | sysv4*MP*) |
| 8944 | if test -d /usr/nec ;then |
| 8945 | lt_prog_compiler_pic='-Kconform_pic' |
| 8946 | lt_prog_compiler_static='-Bstatic' |
| 8947 | fi |
| 8948 | ;; |
| 8949 | |
| 8950 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8951 | lt_prog_compiler_wl='-Wl,' |
| 8952 | lt_prog_compiler_pic='-KPIC' |
| 8953 | lt_prog_compiler_static='-Bstatic' |
| 8954 | ;; |
| 8955 | |
| 8956 | unicos*) |
| 8957 | lt_prog_compiler_wl='-Wl,' |
| 8958 | lt_prog_compiler_can_build_shared=no |
| 8959 | ;; |
| 8960 | |
| 8961 | uts4*) |
| 8962 | lt_prog_compiler_pic='-pic' |
| 8963 | lt_prog_compiler_static='-Bstatic' |
| 8964 | ;; |
| 8965 | |
| 8966 | *) |
| 8967 | lt_prog_compiler_can_build_shared=no |
| 8968 | ;; |
| 8969 | esac |
| 8970 | fi |
| 8971 | |
| 8972 | case $host_os in |
| 8973 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8974 | *djgpp*) |
| 8975 | lt_prog_compiler_pic= |
| 8976 | ;; |
| 8977 | *) |
| 8978 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8979 | ;; |
| 8980 | esac |
| 8981 | |
| 8982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8983 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 8984 | if ${lt_cv_prog_compiler_pic+:} false; then : |
| 8985 | $as_echo_n "(cached) " >&6 |
| 8986 | else |
| 8987 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic |
| 8988 | fi |
| 8989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 8990 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } |
| 8991 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 8992 | |
| 8993 | # |
| 8994 | # Check to make sure the PIC flag actually works. |
| 8995 | # |
| 8996 | if test -n "$lt_prog_compiler_pic"; then |
| 8997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8998 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8999 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
| 9000 | $as_echo_n "(cached) " >&6 |
| 9001 | else |
| 9002 | lt_cv_prog_compiler_pic_works=no |
| 9003 | ac_outfile=conftest.$ac_objext |
| 9004 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9005 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 9006 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9007 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9008 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9009 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9010 | # The option is referenced via a variable to avoid confusing sed. |
| 9011 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9012 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9013 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9014 | -e 's:$: $lt_compiler_flag:'` |
| 9015 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9016 | (eval "$lt_compile" 2>conftest.err) |
| 9017 | ac_status=$? |
| 9018 | cat conftest.err >&5 |
| 9019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9020 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 9021 | # The compiler can only warn and ignore the option if not recognized |
| 9022 | # So say no if there are warnings other than the usual output. |
| 9023 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 9024 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9025 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 9026 | lt_cv_prog_compiler_pic_works=yes |
| 9027 | fi |
| 9028 | fi |
| 9029 | $RM conftest* |
| 9030 | |
| 9031 | fi |
| 9032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 9033 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
| 9034 | |
| 9035 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
| 9036 | case $lt_prog_compiler_pic in |
| 9037 | "" | " "*) ;; |
| 9038 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 9039 | esac |
| 9040 | else |
| 9041 | lt_prog_compiler_pic= |
| 9042 | lt_prog_compiler_can_build_shared=no |
| 9043 | fi |
| 9044 | |
| 9045 | fi |
| 9046 | |
| 9047 | |
| 9048 | |
| 9049 | |
| 9050 | |
| 9051 | |
| 9052 | |
| 9053 | |
| 9054 | |
| 9055 | |
| 9056 | |
| 9057 | # |
| 9058 | # Check to make sure the static flag actually works. |
| 9059 | # |
| 9060 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 9061 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 9062 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 9063 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
| 9064 | $as_echo_n "(cached) " >&6 |
| 9065 | else |
| 9066 | lt_cv_prog_compiler_static_works=no |
| 9067 | save_LDFLAGS="$LDFLAGS" |
| 9068 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 9069 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 9070 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 9071 | # The linker can only warn and ignore the option if not recognized |
| 9072 | # So say no if there are warnings |
| 9073 | if test -s conftest.err; then |
| 9074 | # Append any errors to the config.log. |
| 9075 | cat conftest.err 1>&5 |
| 9076 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 9077 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 9078 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 9079 | lt_cv_prog_compiler_static_works=yes |
| 9080 | fi |
| 9081 | else |
| 9082 | lt_cv_prog_compiler_static_works=yes |
| 9083 | fi |
| 9084 | fi |
| 9085 | $RM -r conftest* |
| 9086 | LDFLAGS="$save_LDFLAGS" |
| 9087 | |
| 9088 | fi |
| 9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 9090 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
| 9091 | |
| 9092 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
| 9093 | : |
| 9094 | else |
| 9095 | lt_prog_compiler_static= |
| 9096 | fi |
| 9097 | |
| 9098 | |
| 9099 | |
| 9100 | |
| 9101 | |
| 9102 | |
| 9103 | |
| 9104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9105 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9106 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9107 | $as_echo_n "(cached) " >&6 |
| 9108 | else |
| 9109 | lt_cv_prog_compiler_c_o=no |
| 9110 | $RM -r conftest 2>/dev/null |
| 9111 | mkdir conftest |
| 9112 | cd conftest |
| 9113 | mkdir out |
| 9114 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9115 | |
| 9116 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9117 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9118 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9119 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9120 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9121 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9122 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9123 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9124 | -e 's:$: $lt_compiler_flag:'` |
| 9125 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9126 | (eval "$lt_compile" 2>out/conftest.err) |
| 9127 | ac_status=$? |
| 9128 | cat out/conftest.err >&5 |
| 9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9130 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9131 | then |
| 9132 | # The compiler can only warn and ignore the option if not recognized |
| 9133 | # So say no if there are warnings |
| 9134 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9135 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9136 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9137 | lt_cv_prog_compiler_c_o=yes |
| 9138 | fi |
| 9139 | fi |
| 9140 | chmod u+w . 2>&5 |
| 9141 | $RM conftest* |
| 9142 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9143 | # template instantiation |
| 9144 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9145 | $RM out/* && rmdir out |
| 9146 | cd .. |
| 9147 | $RM -r conftest |
| 9148 | $RM conftest* |
| 9149 | |
| 9150 | fi |
| 9151 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9152 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9153 | |
| 9154 | |
| 9155 | |
| 9156 | |
| 9157 | |
| 9158 | |
| 9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 9160 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 9161 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
| 9162 | $as_echo_n "(cached) " >&6 |
| 9163 | else |
| 9164 | lt_cv_prog_compiler_c_o=no |
| 9165 | $RM -r conftest 2>/dev/null |
| 9166 | mkdir conftest |
| 9167 | cd conftest |
| 9168 | mkdir out |
| 9169 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 9170 | |
| 9171 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 9172 | # Insert the option either (1) after the last *FLAGS variable, or |
| 9173 | # (2) before a word containing "conftest.", or (3) at the end. |
| 9174 | # Note that $ac_compile itself does not contain backslashes and begins |
| 9175 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 9176 | lt_compile=`echo "$ac_compile" | $SED \ |
| 9177 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 9178 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 9179 | -e 's:$: $lt_compiler_flag:'` |
| 9180 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 9181 | (eval "$lt_compile" 2>out/conftest.err) |
| 9182 | ac_status=$? |
| 9183 | cat out/conftest.err >&5 |
| 9184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 9185 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 9186 | then |
| 9187 | # The compiler can only warn and ignore the option if not recognized |
| 9188 | # So say no if there are warnings |
| 9189 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 9190 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 9191 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 9192 | lt_cv_prog_compiler_c_o=yes |
| 9193 | fi |
| 9194 | fi |
| 9195 | chmod u+w . 2>&5 |
| 9196 | $RM conftest* |
| 9197 | # SGI C++ compiler will create directory out/ii_files/ for |
| 9198 | # template instantiation |
| 9199 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 9200 | $RM out/* && rmdir out |
| 9201 | cd .. |
| 9202 | $RM -r conftest |
| 9203 | $RM conftest* |
| 9204 | |
| 9205 | fi |
| 9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 9207 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 9208 | |
| 9209 | |
| 9210 | |
| 9211 | |
| 9212 | hard_links="nottested" |
| 9213 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 9214 | # do not overwrite the value of need_locks provided by the user |
| 9215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 9216 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 9217 | hard_links=yes |
| 9218 | $RM conftest* |
| 9219 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9220 | touch conftest.a |
| 9221 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 9222 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 9223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 9224 | $as_echo "$hard_links" >&6; } |
| 9225 | if test "$hard_links" = no; then |
| 9226 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 9227 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 9228 | need_locks=warn |
| 9229 | fi |
| 9230 | else |
| 9231 | need_locks=no |
| 9232 | fi |
| 9233 | |
| 9234 | |
| 9235 | |
| 9236 | |
| 9237 | |
| 9238 | |
| 9239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 9240 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 9241 | |
| 9242 | runpath_var= |
| 9243 | allow_undefined_flag= |
| 9244 | always_export_symbols=no |
| 9245 | archive_cmds= |
| 9246 | archive_expsym_cmds= |
| 9247 | compiler_needs_object=no |
| 9248 | enable_shared_with_static_runtimes=no |
| 9249 | export_dynamic_flag_spec= |
| 9250 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 9251 | hardcode_automatic=no |
| 9252 | hardcode_direct=no |
| 9253 | hardcode_direct_absolute=no |
| 9254 | hardcode_libdir_flag_spec= |
| 9255 | hardcode_libdir_separator= |
| 9256 | hardcode_minus_L=no |
| 9257 | hardcode_shlibpath_var=unsupported |
| 9258 | inherit_rpath=no |
| 9259 | link_all_deplibs=unknown |
| 9260 | module_cmds= |
| 9261 | module_expsym_cmds= |
| 9262 | old_archive_from_new_cmds= |
| 9263 | old_archive_from_expsyms_cmds= |
| 9264 | thread_safe_flag_spec= |
| 9265 | whole_archive_flag_spec= |
| 9266 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 9267 | # included in the symbol list |
| 9268 | include_expsyms= |
| 9269 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 9270 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 9271 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 9272 | # as well as any symbol that contains `d'. |
| 9273 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 9274 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 9275 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 9276 | # the symbol is explicitly referenced. Since portable code cannot |
| 9277 | # rely on this symbol name, it's probably fine to never include it in |
| 9278 | # preloaded symbol tables. |
| 9279 | # Exclude shared library initialization/finalization symbols. |
| 9280 | extract_expsyms_cmds= |
| 9281 | |
| 9282 | case $host_os in |
| 9283 | cygwin* | mingw* | pw32* | cegcc*) |
| 9284 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 9285 | # When not using gcc, we currently assume that we are using |
| 9286 | # Microsoft Visual C++. |
| 9287 | if test "$GCC" != yes; then |
| 9288 | with_gnu_ld=no |
| 9289 | fi |
| 9290 | ;; |
| 9291 | interix*) |
| 9292 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 9293 | with_gnu_ld=yes |
| 9294 | ;; |
| 9295 | openbsd*) |
| 9296 | with_gnu_ld=no |
| 9297 | ;; |
| 9298 | esac |
| 9299 | |
| 9300 | ld_shlibs=yes |
| 9301 | |
| 9302 | # On some targets, GNU ld is compatible enough with the native linker |
| 9303 | # that we're better off using the native interface for both. |
| 9304 | lt_use_gnu_ld_interface=no |
| 9305 | if test "$with_gnu_ld" = yes; then |
| 9306 | case $host_os in |
| 9307 | aix*) |
| 9308 | # The AIX port of GNU ld has always aspired to compatibility |
| 9309 | # with the native linker. However, as the warning in the GNU ld |
| 9310 | # block says, versions before 2.19.5* couldn't really create working |
| 9311 | # shared libraries, regardless of the interface used. |
| 9312 | case `$LD -v 2>&1` in |
| 9313 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 9314 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 9315 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 9316 | *) |
| 9317 | lt_use_gnu_ld_interface=yes |
| 9318 | ;; |
| 9319 | esac |
| 9320 | ;; |
| 9321 | *) |
| 9322 | lt_use_gnu_ld_interface=yes |
| 9323 | ;; |
| 9324 | esac |
| 9325 | fi |
| 9326 | |
| 9327 | if test "$lt_use_gnu_ld_interface" = yes; then |
| 9328 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 9329 | wlarc='${wl}' |
| 9330 | |
| 9331 | # Set some defaults for GNU ld with shared library support. These |
| 9332 | # are reset later if shared libraries are not supported. Putting them |
| 9333 | # here allows them to be overridden if necessary. |
| 9334 | runpath_var=LD_RUN_PATH |
| 9335 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9336 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 9337 | # ancient GNU ld didn't support --whole-archive et. al. |
| 9338 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 9339 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 9340 | else |
| 9341 | whole_archive_flag_spec= |
| 9342 | fi |
| 9343 | supports_anon_versioning=no |
| 9344 | case `$LD -v 2>&1` in |
| 9345 | *GNU\ gold*) supports_anon_versioning=yes ;; |
| 9346 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 9347 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 9348 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 9349 | *\ 2.11.*) ;; # other 2.11 versions |
| 9350 | *) supports_anon_versioning=yes ;; |
| 9351 | esac |
| 9352 | |
| 9353 | # See if GNU ld supports shared libraries. |
| 9354 | case $host_os in |
| 9355 | aix[3-9]*) |
| 9356 | # On AIX/PPC, the GNU linker is very broken |
| 9357 | if test "$host_cpu" != ia64; then |
| 9358 | ld_shlibs=no |
| 9359 | cat <<_LT_EOF 1>&2 |
| 9360 | |
| 9361 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
| 9362 | *** to be unable to reliably create shared libraries on AIX. |
| 9363 | *** Therefore, libtool is disabling shared libraries support. If you |
| 9364 | *** really care for shared libraries, you may want to install binutils |
| 9365 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 9366 | *** You will then need to restart the configuration process. |
| 9367 | |
| 9368 | _LT_EOF |
| 9369 | fi |
| 9370 | ;; |
| 9371 | |
| 9372 | amigaos*) |
| 9373 | case $host_cpu in |
| 9374 | powerpc) |
| 9375 | # see comment about AmigaOS4 .so support |
| 9376 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9377 | archive_expsym_cmds='' |
| 9378 | ;; |
| 9379 | m68k) |
| 9380 | 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)' |
| 9381 | hardcode_libdir_flag_spec='-L$libdir' |
| 9382 | hardcode_minus_L=yes |
| 9383 | ;; |
| 9384 | esac |
| 9385 | ;; |
| 9386 | |
| 9387 | beos*) |
| 9388 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9389 | allow_undefined_flag=unsupported |
| 9390 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 9391 | # support --undefined. This deserves some investigation. FIXME |
| 9392 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9393 | else |
| 9394 | ld_shlibs=no |
| 9395 | fi |
| 9396 | ;; |
| 9397 | |
| 9398 | cygwin* | mingw* | pw32* | cegcc*) |
| 9399 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 9400 | # as there is no search path for DLLs. |
| 9401 | hardcode_libdir_flag_spec='-L$libdir' |
| 9402 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
| 9403 | allow_undefined_flag=unsupported |
| 9404 | always_export_symbols=no |
| 9405 | enable_shared_with_static_runtimes=yes |
| 9406 | 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' |
| 9407 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 9408 | |
| 9409 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 9410 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9411 | # If the export-symbols file already is a .def file (1st line |
| 9412 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9413 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9414 | cp $export_symbols $output_objdir/$soname.def; |
| 9415 | else |
| 9416 | echo EXPORTS > $output_objdir/$soname.def; |
| 9417 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9418 | fi~ |
| 9419 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 9420 | else |
| 9421 | ld_shlibs=no |
| 9422 | fi |
| 9423 | ;; |
| 9424 | |
| 9425 | haiku*) |
| 9426 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9427 | link_all_deplibs=yes |
| 9428 | ;; |
| 9429 | |
| 9430 | interix[3-9]*) |
| 9431 | hardcode_direct=no |
| 9432 | hardcode_shlibpath_var=no |
| 9433 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9434 | export_dynamic_flag_spec='${wl}-E' |
| 9435 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9436 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9437 | # default) and relocated if they conflict, which is a slow very memory |
| 9438 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9439 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9440 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9441 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9442 | 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' |
| 9443 | ;; |
| 9444 | |
| 9445 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 9446 | tmp_diet=no |
| 9447 | if test "$host_os" = linux-dietlibc; then |
| 9448 | case $cc_basename in |
| 9449 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9450 | esac |
| 9451 | fi |
| 9452 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9453 | && test "$tmp_diet" = no |
| 9454 | then |
| 9455 | tmp_addflag=' $pic_flag' |
| 9456 | tmp_sharedflag='-shared' |
| 9457 | case $cc_basename,$host_cpu in |
| 9458 | pgcc*) # Portland Group C compiler |
| 9459 | 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' |
| 9460 | tmp_addflag=' $pic_flag' |
| 9461 | ;; |
| 9462 | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 9463 | # Portland Group f77 and f90 compilers |
| 9464 | 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' |
| 9465 | tmp_addflag=' $pic_flag -Mnomain' ;; |
| 9466 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 9467 | tmp_addflag=' -i_dynamic' ;; |
| 9468 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9469 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9470 | ifc* | ifort*) # Intel Fortran compiler |
| 9471 | tmp_addflag=' -nofor_main' ;; |
| 9472 | lf95*) # Lahey Fortran 8.1 |
| 9473 | whole_archive_flag_spec= |
| 9474 | tmp_sharedflag='--shared' ;; |
| 9475 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9476 | tmp_sharedflag='-qmkshrobj' |
| 9477 | tmp_addflag= ;; |
| 9478 | nvcc*) # Cuda Compiler Driver 2.2 |
| 9479 | 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' |
| 9480 | compiler_needs_object=yes |
| 9481 | ;; |
| 9482 | esac |
| 9483 | case `$CC -V 2>&1 | sed 5q` in |
| 9484 | *Sun\ C*) # Sun C 5.9 |
| 9485 | 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' |
| 9486 | compiler_needs_object=yes |
| 9487 | tmp_sharedflag='-G' ;; |
| 9488 | *Sun\ F*) # Sun Fortran 8.3 |
| 9489 | tmp_sharedflag='-G' ;; |
| 9490 | esac |
| 9491 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9492 | |
| 9493 | if test "x$supports_anon_versioning" = xyes; then |
| 9494 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9495 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9496 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9497 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9498 | fi |
| 9499 | |
| 9500 | case $cc_basename in |
| 9501 | xlf* | bgf* | bgxlf* | mpixlf*) |
| 9502 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9503 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9504 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9505 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 9506 | if test "x$supports_anon_versioning" = xyes; then |
| 9507 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9508 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9509 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9510 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9511 | fi |
| 9512 | ;; |
| 9513 | esac |
| 9514 | else |
| 9515 | ld_shlibs=no |
| 9516 | fi |
| 9517 | ;; |
| 9518 | |
| 9519 | netbsd*) |
| 9520 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 9521 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9522 | wlarc= |
| 9523 | else |
| 9524 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9525 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9526 | fi |
| 9527 | ;; |
| 9528 | |
| 9529 | solaris*) |
| 9530 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 9531 | ld_shlibs=no |
| 9532 | cat <<_LT_EOF 1>&2 |
| 9533 | |
| 9534 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9535 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9536 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9537 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9538 | *** your PATH or compiler configuration so that the native linker is |
| 9539 | *** used, and then restart. |
| 9540 | |
| 9541 | _LT_EOF |
| 9542 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9543 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9544 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9545 | else |
| 9546 | ld_shlibs=no |
| 9547 | fi |
| 9548 | ;; |
| 9549 | |
| 9550 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9551 | case `$LD -v 2>&1` in |
| 9552 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9553 | ld_shlibs=no |
| 9554 | cat <<_LT_EOF 1>&2 |
| 9555 | |
| 9556 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9557 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9558 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9559 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9560 | *** your PATH or compiler configuration so that the native linker is |
| 9561 | *** used, and then restart. |
| 9562 | |
| 9563 | _LT_EOF |
| 9564 | ;; |
| 9565 | *) |
| 9566 | # For security reasons, it is highly recommended that you always |
| 9567 | # use absolute paths for naming shared libraries, and exclude the |
| 9568 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9569 | # requires that you compile everything twice, which is a pain. |
| 9570 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9571 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9572 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9573 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9574 | else |
| 9575 | ld_shlibs=no |
| 9576 | fi |
| 9577 | ;; |
| 9578 | esac |
| 9579 | ;; |
| 9580 | |
| 9581 | sunos4*) |
| 9582 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9583 | wlarc= |
| 9584 | hardcode_direct=yes |
| 9585 | hardcode_shlibpath_var=no |
| 9586 | ;; |
| 9587 | |
| 9588 | *) |
| 9589 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9590 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9591 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9592 | else |
| 9593 | ld_shlibs=no |
| 9594 | fi |
| 9595 | ;; |
| 9596 | esac |
| 9597 | |
| 9598 | if test "$ld_shlibs" = no; then |
| 9599 | runpath_var= |
| 9600 | hardcode_libdir_flag_spec= |
| 9601 | export_dynamic_flag_spec= |
| 9602 | whole_archive_flag_spec= |
| 9603 | fi |
| 9604 | else |
| 9605 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9606 | case $host_os in |
| 9607 | aix3*) |
| 9608 | allow_undefined_flag=unsupported |
| 9609 | always_export_symbols=yes |
| 9610 | 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' |
| 9611 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9612 | # are no directories specified by -L. |
| 9613 | hardcode_minus_L=yes |
| 9614 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
| 9615 | # Neither direct hardcoding nor static linking is supported with a |
| 9616 | # broken collect2. |
| 9617 | hardcode_direct=unsupported |
| 9618 | fi |
| 9619 | ;; |
| 9620 | |
| 9621 | aix[4-9]*) |
| 9622 | if test "$host_cpu" = ia64; then |
| 9623 | # On IA64, the linker does run time linking by default, so we don't |
| 9624 | # have to do anything special. |
| 9625 | aix_use_runtimelinking=no |
| 9626 | exp_sym_flag='-Bexport' |
| 9627 | no_entry_flag="" |
| 9628 | else |
| 9629 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9630 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 9631 | # Also, AIX nm treats weak defined symbols like other global |
| 9632 | # defined symbols, whereas GNU nm marks them as "W". |
| 9633 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9634 | 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' |
| 9635 | else |
| 9636 | 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' |
| 9637 | fi |
| 9638 | aix_use_runtimelinking=no |
| 9639 | |
| 9640 | # Test if we are trying to use run time linking or normal |
| 9641 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9642 | # need to do runtime linking. |
| 9643 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 9644 | for ld_flag in $LDFLAGS; do |
| 9645 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9646 | aix_use_runtimelinking=yes |
| 9647 | break |
| 9648 | fi |
| 9649 | done |
| 9650 | ;; |
| 9651 | esac |
| 9652 | |
| 9653 | exp_sym_flag='-bexport' |
| 9654 | no_entry_flag='-bnoentry' |
| 9655 | fi |
| 9656 | |
| 9657 | # When large executables or shared objects are built, AIX ld can |
| 9658 | # have problems creating the table of contents. If linking a library |
| 9659 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9660 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9661 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9662 | |
| 9663 | archive_cmds='' |
| 9664 | hardcode_direct=yes |
| 9665 | hardcode_direct_absolute=yes |
| 9666 | hardcode_libdir_separator=':' |
| 9667 | link_all_deplibs=yes |
| 9668 | file_list_spec='${wl}-f,' |
| 9669 | |
| 9670 | if test "$GCC" = yes; then |
| 9671 | case $host_os in aix4.[012]|aix4.[012].*) |
| 9672 | # We only want to do this on AIX 4.2 and lower, the check |
| 9673 | # below for broken collect2 doesn't work under 4.3+ |
| 9674 | collect2name=`${CC} -print-prog-name=collect2` |
| 9675 | if test -f "$collect2name" && |
| 9676 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 9677 | then |
| 9678 | # We have reworked collect2 |
| 9679 | : |
| 9680 | else |
| 9681 | # We have old collect2 |
| 9682 | hardcode_direct=unsupported |
| 9683 | # It fails to find uninstalled libraries when the uninstalled |
| 9684 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9685 | # to unsupported forces relinking |
| 9686 | hardcode_minus_L=yes |
| 9687 | hardcode_libdir_flag_spec='-L$libdir' |
| 9688 | hardcode_libdir_separator= |
| 9689 | fi |
| 9690 | ;; |
| 9691 | esac |
| 9692 | shared_flag='-shared' |
| 9693 | if test "$aix_use_runtimelinking" = yes; then |
| 9694 | shared_flag="$shared_flag "'${wl}-G' |
| 9695 | fi |
| 9696 | else |
| 9697 | # not using gcc |
| 9698 | if test "$host_cpu" = ia64; then |
| 9699 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9700 | # chokes on -Wl,-G. The following line is correct: |
| 9701 | shared_flag='-G' |
| 9702 | else |
| 9703 | if test "$aix_use_runtimelinking" = yes; then |
| 9704 | shared_flag='${wl}-G' |
| 9705 | else |
| 9706 | shared_flag='${wl}-bM:SRE' |
| 9707 | fi |
| 9708 | fi |
| 9709 | fi |
| 9710 | |
| 9711 | export_dynamic_flag_spec='${wl}-bexpall' |
| 9712 | # It seems that -bexpall does not export symbols beginning with |
| 9713 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9714 | always_export_symbols=yes |
| 9715 | if test "$aix_use_runtimelinking" = yes; then |
| 9716 | # Warning - without using the other runtime loading flags (-brtl), |
| 9717 | # -berok will link without error, but may produce a broken library. |
| 9718 | allow_undefined_flag='-berok' |
| 9719 | # Determine the default libpath from the value encoded in an |
| 9720 | # empty executable. |
| 9721 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9722 | aix_libpath=$lt_cv_aix_libpath |
| 9723 | else |
| 9724 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9725 | $as_echo_n "(cached) " >&6 |
| 9726 | else |
| 9727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9728 | /* end confdefs.h. */ |
| 9729 | |
| 9730 | int |
| 9731 | main () |
| 9732 | { |
| 9733 | |
| 9734 | ; |
| 9735 | return 0; |
| 9736 | } |
| 9737 | _ACEOF |
| 9738 | if ac_fn_c_try_link "$LINENO"; then : |
| 9739 | |
| 9740 | lt_aix_libpath_sed=' |
| 9741 | /Import File Strings/,/^$/ { |
| 9742 | /^0/ { |
| 9743 | s/^0 *\([^ ]*\) *$/\1/ |
| 9744 | p |
| 9745 | } |
| 9746 | }' |
| 9747 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9748 | # Check for a 64-bit object if we didn't find anything. |
| 9749 | if test -z "$lt_cv_aix_libpath_"; then |
| 9750 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9751 | fi |
| 9752 | fi |
| 9753 | rm -f core conftest.err conftest.$ac_objext \ |
| 9754 | conftest$ac_exeext conftest.$ac_ext |
| 9755 | if test -z "$lt_cv_aix_libpath_"; then |
| 9756 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9757 | fi |
| 9758 | |
| 9759 | fi |
| 9760 | |
| 9761 | aix_libpath=$lt_cv_aix_libpath_ |
| 9762 | fi |
| 9763 | |
| 9764 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9765 | 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" |
| 9766 | else |
| 9767 | if test "$host_cpu" = ia64; then |
| 9768 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9769 | allow_undefined_flag="-z nodefs" |
| 9770 | 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" |
| 9771 | else |
| 9772 | # Determine the default libpath from the value encoded in an |
| 9773 | # empty executable. |
| 9774 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 9775 | aix_libpath=$lt_cv_aix_libpath |
| 9776 | else |
| 9777 | if ${lt_cv_aix_libpath_+:} false; then : |
| 9778 | $as_echo_n "(cached) " >&6 |
| 9779 | else |
| 9780 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9781 | /* end confdefs.h. */ |
| 9782 | |
| 9783 | int |
| 9784 | main () |
| 9785 | { |
| 9786 | |
| 9787 | ; |
| 9788 | return 0; |
| 9789 | } |
| 9790 | _ACEOF |
| 9791 | if ac_fn_c_try_link "$LINENO"; then : |
| 9792 | |
| 9793 | lt_aix_libpath_sed=' |
| 9794 | /Import File Strings/,/^$/ { |
| 9795 | /^0/ { |
| 9796 | s/^0 *\([^ ]*\) *$/\1/ |
| 9797 | p |
| 9798 | } |
| 9799 | }' |
| 9800 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9801 | # Check for a 64-bit object if we didn't find anything. |
| 9802 | if test -z "$lt_cv_aix_libpath_"; then |
| 9803 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9804 | fi |
| 9805 | fi |
| 9806 | rm -f core conftest.err conftest.$ac_objext \ |
| 9807 | conftest$ac_exeext conftest.$ac_ext |
| 9808 | if test -z "$lt_cv_aix_libpath_"; then |
| 9809 | lt_cv_aix_libpath_="/usr/lib:/lib" |
| 9810 | fi |
| 9811 | |
| 9812 | fi |
| 9813 | |
| 9814 | aix_libpath=$lt_cv_aix_libpath_ |
| 9815 | fi |
| 9816 | |
| 9817 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9818 | # Warning - without using the other run time loading flags, |
| 9819 | # -berok will link without error, but may produce a broken library. |
| 9820 | no_undefined_flag=' ${wl}-bernotok' |
| 9821 | allow_undefined_flag=' ${wl}-berok' |
| 9822 | if test "$with_gnu_ld" = yes; then |
| 9823 | # We only use this code for GNU lds that support --whole-archive. |
| 9824 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 9825 | else |
| 9826 | # Exported symbols can be pulled into shared objects from archives |
| 9827 | whole_archive_flag_spec='$convenience' |
| 9828 | fi |
| 9829 | archive_cmds_need_lc=yes |
| 9830 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9831 | 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' |
| 9832 | fi |
| 9833 | fi |
| 9834 | ;; |
| 9835 | |
| 9836 | amigaos*) |
| 9837 | case $host_cpu in |
| 9838 | powerpc) |
| 9839 | # see comment about AmigaOS4 .so support |
| 9840 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9841 | archive_expsym_cmds='' |
| 9842 | ;; |
| 9843 | m68k) |
| 9844 | 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)' |
| 9845 | hardcode_libdir_flag_spec='-L$libdir' |
| 9846 | hardcode_minus_L=yes |
| 9847 | ;; |
| 9848 | esac |
| 9849 | ;; |
| 9850 | |
| 9851 | bsdi[45]*) |
| 9852 | export_dynamic_flag_spec=-rdynamic |
| 9853 | ;; |
| 9854 | |
| 9855 | cygwin* | mingw* | pw32* | cegcc*) |
| 9856 | # When not using gcc, we currently assume that we are using |
| 9857 | # Microsoft Visual C++. |
| 9858 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9859 | # no search path for DLLs. |
| 9860 | case $cc_basename in |
| 9861 | cl*) |
| 9862 | # Native MSVC |
| 9863 | hardcode_libdir_flag_spec=' ' |
| 9864 | allow_undefined_flag=unsupported |
| 9865 | always_export_symbols=yes |
| 9866 | file_list_spec='@' |
| 9867 | # Tell ltmain to make .lib files, not .a files. |
| 9868 | libext=lib |
| 9869 | # Tell ltmain to make .dll files, not .so files. |
| 9870 | shrext_cmds=".dll" |
| 9871 | # FIXME: Setting linknames here is a bad hack. |
| 9872 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 9873 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9874 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 9875 | else |
| 9876 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 9877 | fi~ |
| 9878 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 9879 | linknames=' |
| 9880 | # The linker will not automatically build a static lib if we build a DLL. |
| 9881 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 9882 | enable_shared_with_static_runtimes=yes |
| 9883 | exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 9884 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 9885 | # Don't use ranlib |
| 9886 | old_postinstall_cmds='chmod 644 $oldlib' |
| 9887 | postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 9888 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 9889 | case $lt_outputfile in |
| 9890 | *.exe|*.EXE) ;; |
| 9891 | *) |
| 9892 | lt_outputfile="$lt_outputfile.exe" |
| 9893 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 9894 | ;; |
| 9895 | esac~ |
| 9896 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 9897 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 9898 | $RM "$lt_outputfile.manifest"; |
| 9899 | fi' |
| 9900 | ;; |
| 9901 | *) |
| 9902 | # Assume MSVC wrapper |
| 9903 | hardcode_libdir_flag_spec=' ' |
| 9904 | allow_undefined_flag=unsupported |
| 9905 | # Tell ltmain to make .lib files, not .a files. |
| 9906 | libext=lib |
| 9907 | # Tell ltmain to make .dll files, not .so files. |
| 9908 | shrext_cmds=".dll" |
| 9909 | # FIXME: Setting linknames here is a bad hack. |
| 9910 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 9911 | # The linker will automatically build a .lib file if we build a DLL. |
| 9912 | old_archive_from_new_cmds='true' |
| 9913 | # FIXME: Should let the user specify the lib program. |
| 9914 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 9915 | enable_shared_with_static_runtimes=yes |
| 9916 | ;; |
| 9917 | esac |
| 9918 | ;; |
| 9919 | |
| 9920 | darwin* | rhapsody*) |
| 9921 | |
| 9922 | |
| 9923 | archive_cmds_need_lc=no |
| 9924 | hardcode_direct=no |
| 9925 | hardcode_automatic=yes |
| 9926 | hardcode_shlibpath_var=unsupported |
| 9927 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 9928 | 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\"`' |
| 9929 | |
| 9930 | else |
| 9931 | whole_archive_flag_spec='' |
| 9932 | fi |
| 9933 | link_all_deplibs=yes |
| 9934 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9935 | case $cc_basename in |
| 9936 | ifort*) _lt_dar_can_shared=yes ;; |
| 9937 | *) _lt_dar_can_shared=$GCC ;; |
| 9938 | esac |
| 9939 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9940 | output_verbose_link_cmd=func_echo_all |
| 9941 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9942 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9943 | 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}" |
| 9944 | 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}" |
| 9945 | |
| 9946 | else |
| 9947 | ld_shlibs=no |
| 9948 | fi |
| 9949 | |
| 9950 | ;; |
| 9951 | |
| 9952 | dgux*) |
| 9953 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9954 | hardcode_libdir_flag_spec='-L$libdir' |
| 9955 | hardcode_shlibpath_var=no |
| 9956 | ;; |
| 9957 | |
| 9958 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9959 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9960 | # does not break anything, and helps significantly (at the cost of a little |
| 9961 | # extra space). |
| 9962 | freebsd2.2*) |
| 9963 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9964 | hardcode_libdir_flag_spec='-R$libdir' |
| 9965 | hardcode_direct=yes |
| 9966 | hardcode_shlibpath_var=no |
| 9967 | ;; |
| 9968 | |
| 9969 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9970 | freebsd2.*) |
| 9971 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9972 | hardcode_direct=yes |
| 9973 | hardcode_minus_L=yes |
| 9974 | hardcode_shlibpath_var=no |
| 9975 | ;; |
| 9976 | |
| 9977 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 9978 | freebsd* | dragonfly*) |
| 9979 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9980 | hardcode_libdir_flag_spec='-R$libdir' |
| 9981 | hardcode_direct=yes |
| 9982 | hardcode_shlibpath_var=no |
| 9983 | ;; |
| 9984 | |
| 9985 | hpux9*) |
| 9986 | if test "$GCC" = yes; then |
| 9987 | 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' |
| 9988 | else |
| 9989 | 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' |
| 9990 | fi |
| 9991 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9992 | hardcode_libdir_separator=: |
| 9993 | hardcode_direct=yes |
| 9994 | |
| 9995 | # hardcode_minus_L: Not really in the search PATH, |
| 9996 | # but as the default location of the library. |
| 9997 | hardcode_minus_L=yes |
| 9998 | export_dynamic_flag_spec='${wl}-E' |
| 9999 | ;; |
| 10000 | |
| 10001 | hpux10*) |
| 10002 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 10003 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10004 | else |
| 10005 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10006 | fi |
| 10007 | if test "$with_gnu_ld" = no; then |
| 10008 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10009 | hardcode_libdir_separator=: |
| 10010 | hardcode_direct=yes |
| 10011 | hardcode_direct_absolute=yes |
| 10012 | export_dynamic_flag_spec='${wl}-E' |
| 10013 | # hardcode_minus_L: Not really in the search PATH, |
| 10014 | # but as the default location of the library. |
| 10015 | hardcode_minus_L=yes |
| 10016 | fi |
| 10017 | ;; |
| 10018 | |
| 10019 | hpux11*) |
| 10020 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
| 10021 | case $host_cpu in |
| 10022 | hppa*64*) |
| 10023 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10024 | ;; |
| 10025 | ia64*) |
| 10026 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10027 | ;; |
| 10028 | *) |
| 10029 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10030 | ;; |
| 10031 | esac |
| 10032 | else |
| 10033 | case $host_cpu in |
| 10034 | hppa*64*) |
| 10035 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10036 | ;; |
| 10037 | ia64*) |
| 10038 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 10039 | ;; |
| 10040 | *) |
| 10041 | |
| 10042 | # Older versions of the 11.00 compiler do not understand -b yet |
| 10043 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 10044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 10045 | $as_echo_n "checking if $CC understands -b... " >&6; } |
| 10046 | if ${lt_cv_prog_compiler__b+:} false; then : |
| 10047 | $as_echo_n "(cached) " >&6 |
| 10048 | else |
| 10049 | lt_cv_prog_compiler__b=no |
| 10050 | save_LDFLAGS="$LDFLAGS" |
| 10051 | LDFLAGS="$LDFLAGS -b" |
| 10052 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 10053 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 10054 | # The linker can only warn and ignore the option if not recognized |
| 10055 | # So say no if there are warnings |
| 10056 | if test -s conftest.err; then |
| 10057 | # Append any errors to the config.log. |
| 10058 | cat conftest.err 1>&5 |
| 10059 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 10060 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 10061 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 10062 | lt_cv_prog_compiler__b=yes |
| 10063 | fi |
| 10064 | else |
| 10065 | lt_cv_prog_compiler__b=yes |
| 10066 | fi |
| 10067 | fi |
| 10068 | $RM -r conftest* |
| 10069 | LDFLAGS="$save_LDFLAGS" |
| 10070 | |
| 10071 | fi |
| 10072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 10073 | $as_echo "$lt_cv_prog_compiler__b" >&6; } |
| 10074 | |
| 10075 | if test x"$lt_cv_prog_compiler__b" = xyes; then |
| 10076 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 10077 | else |
| 10078 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 10079 | fi |
| 10080 | |
| 10081 | ;; |
| 10082 | esac |
| 10083 | fi |
| 10084 | if test "$with_gnu_ld" = no; then |
| 10085 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 10086 | hardcode_libdir_separator=: |
| 10087 | |
| 10088 | case $host_cpu in |
| 10089 | hppa*64*|ia64*) |
| 10090 | hardcode_direct=no |
| 10091 | hardcode_shlibpath_var=no |
| 10092 | ;; |
| 10093 | *) |
| 10094 | hardcode_direct=yes |
| 10095 | hardcode_direct_absolute=yes |
| 10096 | export_dynamic_flag_spec='${wl}-E' |
| 10097 | |
| 10098 | # hardcode_minus_L: Not really in the search PATH, |
| 10099 | # but as the default location of the library. |
| 10100 | hardcode_minus_L=yes |
| 10101 | ;; |
| 10102 | esac |
| 10103 | fi |
| 10104 | ;; |
| 10105 | |
| 10106 | irix5* | irix6* | nonstopux*) |
| 10107 | if test "$GCC" = yes; then |
| 10108 | 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' |
| 10109 | # Try to use the -exported_symbol ld option, if it does not |
| 10110 | # work, assume that -exports_file does not work either and |
| 10111 | # implicitly export all symbols. |
| 10112 | # This should be the same for all languages, so no per-tag cache variable. |
| 10113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 10114 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 10115 | if ${lt_cv_irix_exported_symbol+:} false; then : |
| 10116 | $as_echo_n "(cached) " >&6 |
| 10117 | else |
| 10118 | save_LDFLAGS="$LDFLAGS" |
| 10119 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 10120 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10121 | /* end confdefs.h. */ |
| 10122 | int foo (void) { return 0; } |
| 10123 | _ACEOF |
| 10124 | if ac_fn_c_try_link "$LINENO"; then : |
| 10125 | lt_cv_irix_exported_symbol=yes |
| 10126 | else |
| 10127 | lt_cv_irix_exported_symbol=no |
| 10128 | fi |
| 10129 | rm -f core conftest.err conftest.$ac_objext \ |
| 10130 | conftest$ac_exeext conftest.$ac_ext |
| 10131 | LDFLAGS="$save_LDFLAGS" |
| 10132 | fi |
| 10133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 10134 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } |
| 10135 | if test "$lt_cv_irix_exported_symbol" = yes; then |
| 10136 | 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' |
| 10137 | fi |
| 10138 | else |
| 10139 | 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' |
| 10140 | 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' |
| 10141 | fi |
| 10142 | archive_cmds_need_lc='no' |
| 10143 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10144 | hardcode_libdir_separator=: |
| 10145 | inherit_rpath=yes |
| 10146 | link_all_deplibs=yes |
| 10147 | ;; |
| 10148 | |
| 10149 | netbsd*) |
| 10150 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 10151 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 10152 | else |
| 10153 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 10154 | fi |
| 10155 | hardcode_libdir_flag_spec='-R$libdir' |
| 10156 | hardcode_direct=yes |
| 10157 | hardcode_shlibpath_var=no |
| 10158 | ;; |
| 10159 | |
| 10160 | newsos6) |
| 10161 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10162 | hardcode_direct=yes |
| 10163 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10164 | hardcode_libdir_separator=: |
| 10165 | hardcode_shlibpath_var=no |
| 10166 | ;; |
| 10167 | |
| 10168 | *nto* | *qnx*) |
| 10169 | ;; |
| 10170 | |
| 10171 | openbsd*) |
| 10172 | if test -f /usr/libexec/ld.so; then |
| 10173 | hardcode_direct=yes |
| 10174 | hardcode_shlibpath_var=no |
| 10175 | hardcode_direct_absolute=yes |
| 10176 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 10177 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10178 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 10179 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10180 | export_dynamic_flag_spec='${wl}-E' |
| 10181 | else |
| 10182 | case $host_os in |
| 10183 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 10184 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 10185 | hardcode_libdir_flag_spec='-R$libdir' |
| 10186 | ;; |
| 10187 | *) |
| 10188 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 10189 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 10190 | ;; |
| 10191 | esac |
| 10192 | fi |
| 10193 | else |
| 10194 | ld_shlibs=no |
| 10195 | fi |
| 10196 | ;; |
| 10197 | |
| 10198 | os2*) |
| 10199 | hardcode_libdir_flag_spec='-L$libdir' |
| 10200 | hardcode_minus_L=yes |
| 10201 | allow_undefined_flag=unsupported |
| 10202 | 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' |
| 10203 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
| 10204 | ;; |
| 10205 | |
| 10206 | osf3*) |
| 10207 | if test "$GCC" = yes; then |
| 10208 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10209 | 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' |
| 10210 | else |
| 10211 | allow_undefined_flag=' -expect_unresolved \*' |
| 10212 | 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' |
| 10213 | fi |
| 10214 | archive_cmds_need_lc='no' |
| 10215 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10216 | hardcode_libdir_separator=: |
| 10217 | ;; |
| 10218 | |
| 10219 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 10220 | if test "$GCC" = yes; then |
| 10221 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
| 10222 | 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' |
| 10223 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 10224 | else |
| 10225 | allow_undefined_flag=' -expect_unresolved \*' |
| 10226 | 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' |
| 10227 | 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~ |
| 10228 | $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' |
| 10229 | |
| 10230 | # Both c and cxx compiler support -rpath directly |
| 10231 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 10232 | fi |
| 10233 | archive_cmds_need_lc='no' |
| 10234 | hardcode_libdir_separator=: |
| 10235 | ;; |
| 10236 | |
| 10237 | solaris*) |
| 10238 | no_undefined_flag=' -z defs' |
| 10239 | if test "$GCC" = yes; then |
| 10240 | wlarc='${wl}' |
| 10241 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10242 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10243 | $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' |
| 10244 | else |
| 10245 | case `$CC -V 2>&1` in |
| 10246 | *"Compilers 5.0"*) |
| 10247 | wlarc='' |
| 10248 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10249 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10250 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 10251 | ;; |
| 10252 | *) |
| 10253 | wlarc='${wl}' |
| 10254 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10255 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 10256 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 10257 | ;; |
| 10258 | esac |
| 10259 | fi |
| 10260 | hardcode_libdir_flag_spec='-R$libdir' |
| 10261 | hardcode_shlibpath_var=no |
| 10262 | case $host_os in |
| 10263 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 10264 | *) |
| 10265 | # The compiler driver will combine and reorder linker options, |
| 10266 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 10267 | # but is careful enough not to reorder. |
| 10268 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 10269 | if test "$GCC" = yes; then |
| 10270 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 10271 | else |
| 10272 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 10273 | fi |
| 10274 | ;; |
| 10275 | esac |
| 10276 | link_all_deplibs=yes |
| 10277 | ;; |
| 10278 | |
| 10279 | sunos4*) |
| 10280 | if test "x$host_vendor" = xsequent; then |
| 10281 | # Use $CC to link under sequent, because it throws in some extra .o |
| 10282 | # files that make .init and .fini sections work. |
| 10283 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10284 | else |
| 10285 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 10286 | fi |
| 10287 | hardcode_libdir_flag_spec='-L$libdir' |
| 10288 | hardcode_direct=yes |
| 10289 | hardcode_minus_L=yes |
| 10290 | hardcode_shlibpath_var=no |
| 10291 | ;; |
| 10292 | |
| 10293 | sysv4) |
| 10294 | case $host_vendor in |
| 10295 | sni) |
| 10296 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10297 | hardcode_direct=yes # is this really true??? |
| 10298 | ;; |
| 10299 | siemens) |
| 10300 | ## LD is ld it makes a PLAMLIB |
| 10301 | ## CC just makes a GrossModule. |
| 10302 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 10303 | reload_cmds='$CC -r -o $output$reload_objs' |
| 10304 | hardcode_direct=no |
| 10305 | ;; |
| 10306 | motorola) |
| 10307 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10308 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 10309 | ;; |
| 10310 | esac |
| 10311 | runpath_var='LD_RUN_PATH' |
| 10312 | hardcode_shlibpath_var=no |
| 10313 | ;; |
| 10314 | |
| 10315 | sysv4.3*) |
| 10316 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10317 | hardcode_shlibpath_var=no |
| 10318 | export_dynamic_flag_spec='-Bexport' |
| 10319 | ;; |
| 10320 | |
| 10321 | sysv4*MP*) |
| 10322 | if test -d /usr/nec; then |
| 10323 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10324 | hardcode_shlibpath_var=no |
| 10325 | runpath_var=LD_RUN_PATH |
| 10326 | hardcode_runpath_var=yes |
| 10327 | ld_shlibs=yes |
| 10328 | fi |
| 10329 | ;; |
| 10330 | |
| 10331 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 10332 | no_undefined_flag='${wl}-z,text' |
| 10333 | archive_cmds_need_lc=no |
| 10334 | hardcode_shlibpath_var=no |
| 10335 | runpath_var='LD_RUN_PATH' |
| 10336 | |
| 10337 | if test "$GCC" = yes; then |
| 10338 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10339 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10340 | else |
| 10341 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10342 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10343 | fi |
| 10344 | ;; |
| 10345 | |
| 10346 | sysv5* | sco3.2v5* | sco5v6*) |
| 10347 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 10348 | # link with -lc, and that would cause any symbols used from libc to |
| 10349 | # always be unresolved, which means just about no library would |
| 10350 | # ever link correctly. If we're not using GNU ld we use -z text |
| 10351 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 10352 | # as -z defs. |
| 10353 | no_undefined_flag='${wl}-z,text' |
| 10354 | allow_undefined_flag='${wl}-z,nodefs' |
| 10355 | archive_cmds_need_lc=no |
| 10356 | hardcode_shlibpath_var=no |
| 10357 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
| 10358 | hardcode_libdir_separator=':' |
| 10359 | link_all_deplibs=yes |
| 10360 | export_dynamic_flag_spec='${wl}-Bexport' |
| 10361 | runpath_var='LD_RUN_PATH' |
| 10362 | |
| 10363 | if test "$GCC" = yes; then |
| 10364 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10365 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10366 | else |
| 10367 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10368 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 10369 | fi |
| 10370 | ;; |
| 10371 | |
| 10372 | uts4*) |
| 10373 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 10374 | hardcode_libdir_flag_spec='-L$libdir' |
| 10375 | hardcode_shlibpath_var=no |
| 10376 | ;; |
| 10377 | |
| 10378 | *) |
| 10379 | ld_shlibs=no |
| 10380 | ;; |
| 10381 | esac |
| 10382 | |
| 10383 | if test x$host_vendor = xsni; then |
| 10384 | case $host in |
| 10385 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 10386 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 10387 | ;; |
| 10388 | esac |
| 10389 | fi |
| 10390 | fi |
| 10391 | |
| 10392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 10393 | $as_echo "$ld_shlibs" >&6; } |
| 10394 | test "$ld_shlibs" = no && can_build_shared=no |
| 10395 | |
| 10396 | with_gnu_ld=$with_gnu_ld |
| 10397 | |
| 10398 | |
| 10399 | |
| 10400 | |
| 10401 | |
| 10402 | |
| 10403 | |
| 10404 | |
| 10405 | |
| 10406 | |
| 10407 | |
| 10408 | |
| 10409 | |
| 10410 | |
| 10411 | |
| 10412 | # |
| 10413 | # Do we need to explicitly link libc? |
| 10414 | # |
| 10415 | case "x$archive_cmds_need_lc" in |
| 10416 | x|xyes) |
| 10417 | # Assume -lc should be added |
| 10418 | archive_cmds_need_lc=yes |
| 10419 | |
| 10420 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 10421 | case $archive_cmds in |
| 10422 | *'~'*) |
| 10423 | # FIXME: we may have to deal with multi-command sequences. |
| 10424 | ;; |
| 10425 | '$CC '*) |
| 10426 | # Test whether the compiler implicitly links with -lc since on some |
| 10427 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 10428 | # to ld, don't add -lc before -lgcc. |
| 10429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 10430 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 10431 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
| 10432 | $as_echo_n "(cached) " >&6 |
| 10433 | else |
| 10434 | $RM conftest* |
| 10435 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 10436 | |
| 10437 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 10438 | (eval $ac_compile) 2>&5 |
| 10439 | ac_status=$? |
| 10440 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10441 | test $ac_status = 0; } 2>conftest.err; then |
| 10442 | soname=conftest |
| 10443 | lib=conftest |
| 10444 | libobjs=conftest.$ac_objext |
| 10445 | deplibs= |
| 10446 | wl=$lt_prog_compiler_wl |
| 10447 | pic_flag=$lt_prog_compiler_pic |
| 10448 | compiler_flags=-v |
| 10449 | linker_flags=-v |
| 10450 | verstring= |
| 10451 | output_objdir=. |
| 10452 | libname=conftest |
| 10453 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 10454 | allow_undefined_flag= |
| 10455 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 10456 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 10457 | ac_status=$? |
| 10458 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 10459 | test $ac_status = 0; } |
| 10460 | then |
| 10461 | lt_cv_archive_cmds_need_lc=no |
| 10462 | else |
| 10463 | lt_cv_archive_cmds_need_lc=yes |
| 10464 | fi |
| 10465 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 10466 | else |
| 10467 | cat conftest.err 1>&5 |
| 10468 | fi |
| 10469 | $RM conftest* |
| 10470 | |
| 10471 | fi |
| 10472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 10473 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } |
| 10474 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 10475 | ;; |
| 10476 | esac |
| 10477 | fi |
| 10478 | ;; |
| 10479 | esac |
| 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 | |
| 10542 | |
| 10543 | |
| 10544 | |
| 10545 | |
| 10546 | |
| 10547 | |
| 10548 | |
| 10549 | |
| 10550 | |
| 10551 | |
| 10552 | |
| 10553 | |
| 10554 | |
| 10555 | |
| 10556 | |
| 10557 | |
| 10558 | |
| 10559 | |
| 10560 | |
| 10561 | |
| 10562 | |
| 10563 | |
| 10564 | |
| 10565 | |
| 10566 | |
| 10567 | |
| 10568 | |
| 10569 | |
| 10570 | |
| 10571 | |
| 10572 | |
| 10573 | |
| 10574 | |
| 10575 | |
| 10576 | |
| 10577 | |
| 10578 | |
| 10579 | |
| 10580 | |
| 10581 | |
| 10582 | |
| 10583 | |
| 10584 | |
| 10585 | |
| 10586 | |
| 10587 | |
| 10588 | |
| 10589 | |
| 10590 | |
| 10591 | |
| 10592 | |
| 10593 | |
| 10594 | |
| 10595 | |
| 10596 | |
| 10597 | |
| 10598 | |
| 10599 | |
| 10600 | |
| 10601 | |
| 10602 | |
| 10603 | |
| 10604 | |
| 10605 | |
| 10606 | |
| 10607 | |
| 10608 | |
| 10609 | |
| 10610 | |
| 10611 | |
| 10612 | |
| 10613 | |
| 10614 | |
| 10615 | |
| 10616 | |
| 10617 | |
| 10618 | |
| 10619 | |
| 10620 | |
| 10621 | |
| 10622 | |
| 10623 | |
| 10624 | |
| 10625 | |
| 10626 | |
| 10627 | |
| 10628 | |
| 10629 | |
| 10630 | |
| 10631 | |
| 10632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10633 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 10634 | |
| 10635 | if test "$GCC" = yes; then |
| 10636 | case $host_os in |
| 10637 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10638 | *) lt_awk_arg="/^libraries:/" ;; |
| 10639 | esac |
| 10640 | case $host_os in |
| 10641 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; |
| 10642 | *) lt_sed_strip_eq="s,=/,/,g" ;; |
| 10643 | esac |
| 10644 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 10645 | case $lt_search_path_spec in |
| 10646 | *\;*) |
| 10647 | # if the path contains ";" then we assume it to be the separator |
| 10648 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10649 | # assumed that no part of a normal pathname contains ";" but that should |
| 10650 | # okay in the real world where ";" in dirpaths is itself problematic. |
| 10651 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 10652 | ;; |
| 10653 | *) |
| 10654 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 10655 | ;; |
| 10656 | esac |
| 10657 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10658 | # and add multilib dir if necessary. |
| 10659 | lt_tmp_lt_search_path_spec= |
| 10660 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10661 | for lt_sys_path in $lt_search_path_spec; do |
| 10662 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10663 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10664 | else |
| 10665 | test -d "$lt_sys_path" && \ |
| 10666 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10667 | fi |
| 10668 | done |
| 10669 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 10670 | BEGIN {RS=" "; FS="/|\n";} { |
| 10671 | lt_foo=""; |
| 10672 | lt_count=0; |
| 10673 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10674 | if ($lt_i != "" && $lt_i != ".") { |
| 10675 | if ($lt_i == "..") { |
| 10676 | lt_count++; |
| 10677 | } else { |
| 10678 | if (lt_count == 0) { |
| 10679 | lt_foo="/" $lt_i lt_foo; |
| 10680 | } else { |
| 10681 | lt_count--; |
| 10682 | } |
| 10683 | } |
| 10684 | } |
| 10685 | } |
| 10686 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10687 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10688 | }'` |
| 10689 | # AWK program above erroneously prepends '/' to C:/dos/paths |
| 10690 | # for these hosts. |
| 10691 | case $host_os in |
| 10692 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 10693 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; |
| 10694 | esac |
| 10695 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 10696 | else |
| 10697 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10698 | fi |
| 10699 | library_names_spec= |
| 10700 | libname_spec='lib$name' |
| 10701 | soname_spec= |
| 10702 | shrext_cmds=".so" |
| 10703 | postinstall_cmds= |
| 10704 | postuninstall_cmds= |
| 10705 | finish_cmds= |
| 10706 | finish_eval= |
| 10707 | shlibpath_var= |
| 10708 | shlibpath_overrides_runpath=unknown |
| 10709 | version_type=none |
| 10710 | dynamic_linker="$host_os ld.so" |
| 10711 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 10712 | need_lib_prefix=unknown |
| 10713 | hardcode_into_libs=no |
| 10714 | |
| 10715 | # when you set need_version to no, make sure it does not cause -set_version |
| 10716 | # flags to be left without arguments |
| 10717 | need_version=unknown |
| 10718 | |
| 10719 | case $host_os in |
| 10720 | aix3*) |
| 10721 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10722 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10723 | shlibpath_var=LIBPATH |
| 10724 | |
| 10725 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10726 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10727 | ;; |
| 10728 | |
| 10729 | aix[4-9]*) |
| 10730 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10731 | need_lib_prefix=no |
| 10732 | need_version=no |
| 10733 | hardcode_into_libs=yes |
| 10734 | if test "$host_cpu" = ia64; then |
| 10735 | # AIX 5 supports IA64 |
| 10736 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10737 | shlibpath_var=LD_LIBRARY_PATH |
| 10738 | else |
| 10739 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10740 | # for dependence libraries. The import file would start with |
| 10741 | # the line `#! .'. This would cause the generated library to |
| 10742 | # depend on `.', always an invalid library. This was fixed in |
| 10743 | # development snapshots of GCC prior to 3.0. |
| 10744 | case $host_os in |
| 10745 | aix4 | aix4.[01] | aix4.[01].*) |
| 10746 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10747 | echo ' yes ' |
| 10748 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 10749 | : |
| 10750 | else |
| 10751 | can_build_shared=no |
| 10752 | fi |
| 10753 | ;; |
| 10754 | esac |
| 10755 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10756 | # soname into executable. Probably we can add versioning support to |
| 10757 | # collect2, so additional links can be useful in future. |
| 10758 | if test "$aix_use_runtimelinking" = yes; then |
| 10759 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10760 | # instead of lib<name>.a to let people know that these are not |
| 10761 | # typical AIX shared libraries. |
| 10762 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10763 | else |
| 10764 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10765 | # and later when we are not doing run time linking. |
| 10766 | library_names_spec='${libname}${release}.a $libname.a' |
| 10767 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10768 | fi |
| 10769 | shlibpath_var=LIBPATH |
| 10770 | fi |
| 10771 | ;; |
| 10772 | |
| 10773 | amigaos*) |
| 10774 | case $host_cpu in |
| 10775 | powerpc) |
| 10776 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10777 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10778 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10779 | ;; |
| 10780 | m68k) |
| 10781 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10782 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10783 | 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' |
| 10784 | ;; |
| 10785 | esac |
| 10786 | ;; |
| 10787 | |
| 10788 | beos*) |
| 10789 | library_names_spec='${libname}${shared_ext}' |
| 10790 | dynamic_linker="$host_os ld.so" |
| 10791 | shlibpath_var=LIBRARY_PATH |
| 10792 | ;; |
| 10793 | |
| 10794 | bsdi[45]*) |
| 10795 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10796 | need_version=no |
| 10797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10798 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10799 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10800 | shlibpath_var=LD_LIBRARY_PATH |
| 10801 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10802 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10803 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10804 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10805 | # libtool to hard-code these into programs |
| 10806 | ;; |
| 10807 | |
| 10808 | cygwin* | mingw* | pw32* | cegcc*) |
| 10809 | version_type=windows |
| 10810 | shrext_cmds=".dll" |
| 10811 | need_version=no |
| 10812 | need_lib_prefix=no |
| 10813 | |
| 10814 | case $GCC,$cc_basename in |
| 10815 | yes,*) |
| 10816 | # gcc |
| 10817 | library_names_spec='$libname.dll.a' |
| 10818 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10819 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10820 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10821 | dldir=$destdir/`dirname \$dlpath`~ |
| 10822 | test -d \$dldir || mkdir -p \$dldir~ |
| 10823 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 10824 | chmod a+x \$dldir/$dlname~ |
| 10825 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10826 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10827 | fi' |
| 10828 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10829 | dlpath=$dir/\$dldll~ |
| 10830 | $RM \$dlpath' |
| 10831 | shlibpath_overrides_runpath=yes |
| 10832 | |
| 10833 | case $host_os in |
| 10834 | cygwin*) |
| 10835 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10836 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10837 | |
| 10838 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 10839 | ;; |
| 10840 | mingw* | cegcc*) |
| 10841 | # MinGW DLLs use traditional 'lib' prefix |
| 10842 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10843 | ;; |
| 10844 | pw32*) |
| 10845 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 10846 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10847 | ;; |
| 10848 | esac |
| 10849 | dynamic_linker='Win32 ld.exe' |
| 10850 | ;; |
| 10851 | |
| 10852 | *,cl*) |
| 10853 | # Native MSVC |
| 10854 | libname_spec='$name' |
| 10855 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10856 | library_names_spec='${libname}.dll.lib' |
| 10857 | |
| 10858 | case $build_os in |
| 10859 | mingw*) |
| 10860 | sys_lib_search_path_spec= |
| 10861 | lt_save_ifs=$IFS |
| 10862 | IFS=';' |
| 10863 | for lt_path in $LIB |
| 10864 | do |
| 10865 | IFS=$lt_save_ifs |
| 10866 | # Let DOS variable expansion print the short 8.3 style file name. |
| 10867 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 10868 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 10869 | done |
| 10870 | IFS=$lt_save_ifs |
| 10871 | # Convert to MSYS style. |
| 10872 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 10873 | ;; |
| 10874 | cygwin*) |
| 10875 | # Convert to unix form, then to dos form, then back to unix form |
| 10876 | # but this time dos style (no spaces!) so that the unix form looks |
| 10877 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 10878 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 10879 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 10880 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10881 | ;; |
| 10882 | *) |
| 10883 | sys_lib_search_path_spec="$LIB" |
| 10884 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 10885 | # It is most probably a Windows format PATH. |
| 10886 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 10887 | else |
| 10888 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 10889 | fi |
| 10890 | # FIXME: find the short name or the path components, as spaces are |
| 10891 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 10892 | ;; |
| 10893 | esac |
| 10894 | |
| 10895 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10896 | postinstall_cmds='base_file=`basename \${file}`~ |
| 10897 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 10898 | dldir=$destdir/`dirname \$dlpath`~ |
| 10899 | test -d \$dldir || mkdir -p \$dldir~ |
| 10900 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 10901 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10902 | dlpath=$dir/\$dldll~ |
| 10903 | $RM \$dlpath' |
| 10904 | shlibpath_overrides_runpath=yes |
| 10905 | dynamic_linker='Win32 link.exe' |
| 10906 | ;; |
| 10907 | |
| 10908 | *) |
| 10909 | # Assume MSVC wrapper |
| 10910 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10911 | dynamic_linker='Win32 ld.exe' |
| 10912 | ;; |
| 10913 | esac |
| 10914 | # FIXME: first we should search . and the directory the executable is in |
| 10915 | shlibpath_var=PATH |
| 10916 | ;; |
| 10917 | |
| 10918 | darwin* | rhapsody*) |
| 10919 | dynamic_linker="$host_os dyld" |
| 10920 | version_type=darwin |
| 10921 | need_lib_prefix=no |
| 10922 | need_version=no |
| 10923 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 10924 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10925 | shlibpath_overrides_runpath=yes |
| 10926 | shlibpath_var=DYLD_LIBRARY_PATH |
| 10927 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 10928 | |
| 10929 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 10930 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10931 | ;; |
| 10932 | |
| 10933 | dgux*) |
| 10934 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10935 | need_lib_prefix=no |
| 10936 | need_version=no |
| 10937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10938 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10939 | shlibpath_var=LD_LIBRARY_PATH |
| 10940 | ;; |
| 10941 | |
| 10942 | freebsd* | dragonfly*) |
| 10943 | # DragonFly does not have aout. When/if they implement a new |
| 10944 | # versioning mechanism, adjust this. |
| 10945 | if test -x /usr/bin/objformat; then |
| 10946 | objformat=`/usr/bin/objformat` |
| 10947 | else |
| 10948 | case $host_os in |
| 10949 | freebsd[23].*) objformat=aout ;; |
| 10950 | *) objformat=elf ;; |
| 10951 | esac |
| 10952 | fi |
| 10953 | version_type=freebsd-$objformat |
| 10954 | case $version_type in |
| 10955 | freebsd-elf*) |
| 10956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10957 | need_version=no |
| 10958 | need_lib_prefix=no |
| 10959 | ;; |
| 10960 | freebsd-*) |
| 10961 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10962 | need_version=yes |
| 10963 | ;; |
| 10964 | esac |
| 10965 | shlibpath_var=LD_LIBRARY_PATH |
| 10966 | case $host_os in |
| 10967 | freebsd2.*) |
| 10968 | shlibpath_overrides_runpath=yes |
| 10969 | ;; |
| 10970 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 10971 | shlibpath_overrides_runpath=yes |
| 10972 | hardcode_into_libs=yes |
| 10973 | ;; |
| 10974 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10975 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 10976 | shlibpath_overrides_runpath=no |
| 10977 | hardcode_into_libs=yes |
| 10978 | ;; |
| 10979 | *) # from 4.6 on, and DragonFly |
| 10980 | shlibpath_overrides_runpath=yes |
| 10981 | hardcode_into_libs=yes |
| 10982 | ;; |
| 10983 | esac |
| 10984 | ;; |
| 10985 | |
| 10986 | gnu*) |
| 10987 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10988 | need_lib_prefix=no |
| 10989 | need_version=no |
| 10990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10991 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10992 | shlibpath_var=LD_LIBRARY_PATH |
| 10993 | shlibpath_overrides_runpath=no |
| 10994 | hardcode_into_libs=yes |
| 10995 | ;; |
| 10996 | |
| 10997 | haiku*) |
| 10998 | version_type=linux # correct to gnu/linux during the next big refactor |
| 10999 | need_lib_prefix=no |
| 11000 | need_version=no |
| 11001 | dynamic_linker="$host_os runtime_loader" |
| 11002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 11003 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11004 | shlibpath_var=LIBRARY_PATH |
| 11005 | shlibpath_overrides_runpath=yes |
| 11006 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 11007 | hardcode_into_libs=yes |
| 11008 | ;; |
| 11009 | |
| 11010 | hpux9* | hpux10* | hpux11*) |
| 11011 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 11012 | # link against other versions. |
| 11013 | version_type=sunos |
| 11014 | need_lib_prefix=no |
| 11015 | need_version=no |
| 11016 | case $host_cpu in |
| 11017 | ia64*) |
| 11018 | shrext_cmds='.so' |
| 11019 | hardcode_into_libs=yes |
| 11020 | dynamic_linker="$host_os dld.so" |
| 11021 | shlibpath_var=LD_LIBRARY_PATH |
| 11022 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11023 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11024 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11025 | if test "X$HPUX_IA64_MODE" = X32; then |
| 11026 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 11027 | else |
| 11028 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 11029 | fi |
| 11030 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11031 | ;; |
| 11032 | hppa*64*) |
| 11033 | shrext_cmds='.sl' |
| 11034 | hardcode_into_libs=yes |
| 11035 | dynamic_linker="$host_os dld.sl" |
| 11036 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 11037 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 11038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11039 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11040 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 11041 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 11042 | ;; |
| 11043 | *) |
| 11044 | shrext_cmds='.sl' |
| 11045 | dynamic_linker="$host_os dld.sl" |
| 11046 | shlibpath_var=SHLIB_PATH |
| 11047 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 11048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11049 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11050 | ;; |
| 11051 | esac |
| 11052 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 11053 | postinstall_cmds='chmod 555 $lib' |
| 11054 | # or fails outright, so override atomically: |
| 11055 | install_override_mode=555 |
| 11056 | ;; |
| 11057 | |
| 11058 | interix[3-9]*) |
| 11059 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11060 | need_lib_prefix=no |
| 11061 | need_version=no |
| 11062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11063 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11064 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 11065 | shlibpath_var=LD_LIBRARY_PATH |
| 11066 | shlibpath_overrides_runpath=no |
| 11067 | hardcode_into_libs=yes |
| 11068 | ;; |
| 11069 | |
| 11070 | irix5* | irix6* | nonstopux*) |
| 11071 | case $host_os in |
| 11072 | nonstopux*) version_type=nonstopux ;; |
| 11073 | *) |
| 11074 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 11075 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11076 | else |
| 11077 | version_type=irix |
| 11078 | fi ;; |
| 11079 | esac |
| 11080 | need_lib_prefix=no |
| 11081 | need_version=no |
| 11082 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11084 | case $host_os in |
| 11085 | irix5* | nonstopux*) |
| 11086 | libsuff= shlibsuff= |
| 11087 | ;; |
| 11088 | *) |
| 11089 | case $LD in # libtool.m4 will add one of these switches to LD |
| 11090 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 11091 | libsuff= shlibsuff= libmagic=32-bit;; |
| 11092 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 11093 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 11094 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 11095 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 11096 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 11097 | esac |
| 11098 | ;; |
| 11099 | esac |
| 11100 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 11101 | shlibpath_overrides_runpath=no |
| 11102 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 11103 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 11104 | hardcode_into_libs=yes |
| 11105 | ;; |
| 11106 | |
| 11107 | # No shared lib support for Linux oldld, aout, or coff. |
| 11108 | linux*oldld* | linux*aout* | linux*coff*) |
| 11109 | dynamic_linker=no |
| 11110 | ;; |
| 11111 | |
| 11112 | # This must be glibc/ELF. |
| 11113 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 11114 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11115 | need_lib_prefix=no |
| 11116 | need_version=no |
| 11117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11118 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11119 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 11120 | shlibpath_var=LD_LIBRARY_PATH |
| 11121 | shlibpath_overrides_runpath=no |
| 11122 | |
| 11123 | # Some binutils ld are patched to set DT_RUNPATH |
| 11124 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 11125 | $as_echo_n "(cached) " >&6 |
| 11126 | else |
| 11127 | lt_cv_shlibpath_overrides_runpath=no |
| 11128 | save_LDFLAGS=$LDFLAGS |
| 11129 | save_libdir=$libdir |
| 11130 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 11131 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 11132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11133 | /* end confdefs.h. */ |
| 11134 | |
| 11135 | int |
| 11136 | main () |
| 11137 | { |
| 11138 | |
| 11139 | ; |
| 11140 | return 0; |
| 11141 | } |
| 11142 | _ACEOF |
| 11143 | if ac_fn_c_try_link "$LINENO"; then : |
| 11144 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 11145 | lt_cv_shlibpath_overrides_runpath=yes |
| 11146 | fi |
| 11147 | fi |
| 11148 | rm -f core conftest.err conftest.$ac_objext \ |
| 11149 | conftest$ac_exeext conftest.$ac_ext |
| 11150 | LDFLAGS=$save_LDFLAGS |
| 11151 | libdir=$save_libdir |
| 11152 | |
| 11153 | fi |
| 11154 | |
| 11155 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 11156 | |
| 11157 | # This implies no fast_install, which is unacceptable. |
| 11158 | # Some rework will be needed to allow for fast_install |
| 11159 | # before this can be enabled. |
| 11160 | hardcode_into_libs=yes |
| 11161 | |
| 11162 | # Append ld.so.conf contents to the search path |
| 11163 | if test -f /etc/ld.so.conf; then |
| 11164 | 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' ' '` |
| 11165 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 11166 | fi |
| 11167 | |
| 11168 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 11169 | # powerpc, because MkLinux only supported shared libraries with the |
| 11170 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 11171 | # most powerpc-linux boxes support dynamic linking these days and |
| 11172 | # people can always --disable-shared, the test was removed, and we |
| 11173 | # assume the GNU/Linux dynamic linker is in use. |
| 11174 | dynamic_linker='GNU/Linux ld.so' |
| 11175 | ;; |
| 11176 | |
| 11177 | netbsd*) |
| 11178 | version_type=sunos |
| 11179 | need_lib_prefix=no |
| 11180 | need_version=no |
| 11181 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 11182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11183 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11184 | dynamic_linker='NetBSD (a.out) ld.so' |
| 11185 | else |
| 11186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 11187 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11188 | dynamic_linker='NetBSD ld.elf_so' |
| 11189 | fi |
| 11190 | shlibpath_var=LD_LIBRARY_PATH |
| 11191 | shlibpath_overrides_runpath=yes |
| 11192 | hardcode_into_libs=yes |
| 11193 | ;; |
| 11194 | |
| 11195 | newsos6) |
| 11196 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11198 | shlibpath_var=LD_LIBRARY_PATH |
| 11199 | shlibpath_overrides_runpath=yes |
| 11200 | ;; |
| 11201 | |
| 11202 | *nto* | *qnx*) |
| 11203 | version_type=qnx |
| 11204 | need_lib_prefix=no |
| 11205 | need_version=no |
| 11206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11207 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11208 | shlibpath_var=LD_LIBRARY_PATH |
| 11209 | shlibpath_overrides_runpath=no |
| 11210 | hardcode_into_libs=yes |
| 11211 | dynamic_linker='ldqnx.so' |
| 11212 | ;; |
| 11213 | |
| 11214 | openbsd*) |
| 11215 | version_type=sunos |
| 11216 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 11217 | need_lib_prefix=no |
| 11218 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 11219 | case $host_os in |
| 11220 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 11221 | *) need_version=no ;; |
| 11222 | esac |
| 11223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11224 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 11225 | shlibpath_var=LD_LIBRARY_PATH |
| 11226 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 11227 | case $host_os in |
| 11228 | openbsd2.[89] | openbsd2.[89].*) |
| 11229 | shlibpath_overrides_runpath=no |
| 11230 | ;; |
| 11231 | *) |
| 11232 | shlibpath_overrides_runpath=yes |
| 11233 | ;; |
| 11234 | esac |
| 11235 | else |
| 11236 | shlibpath_overrides_runpath=yes |
| 11237 | fi |
| 11238 | ;; |
| 11239 | |
| 11240 | os2*) |
| 11241 | libname_spec='$name' |
| 11242 | shrext_cmds=".dll" |
| 11243 | need_lib_prefix=no |
| 11244 | library_names_spec='$libname${shared_ext} $libname.a' |
| 11245 | dynamic_linker='OS/2 ld.exe' |
| 11246 | shlibpath_var=LIBPATH |
| 11247 | ;; |
| 11248 | |
| 11249 | osf3* | osf4* | osf5*) |
| 11250 | version_type=osf |
| 11251 | need_lib_prefix=no |
| 11252 | need_version=no |
| 11253 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11254 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11255 | shlibpath_var=LD_LIBRARY_PATH |
| 11256 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 11257 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 11258 | ;; |
| 11259 | |
| 11260 | rdos*) |
| 11261 | dynamic_linker=no |
| 11262 | ;; |
| 11263 | |
| 11264 | solaris*) |
| 11265 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11266 | need_lib_prefix=no |
| 11267 | need_version=no |
| 11268 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11269 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11270 | shlibpath_var=LD_LIBRARY_PATH |
| 11271 | shlibpath_overrides_runpath=yes |
| 11272 | hardcode_into_libs=yes |
| 11273 | # ldd complains unless libraries are executable |
| 11274 | postinstall_cmds='chmod +x $lib' |
| 11275 | ;; |
| 11276 | |
| 11277 | sunos4*) |
| 11278 | version_type=sunos |
| 11279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 11280 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 11281 | shlibpath_var=LD_LIBRARY_PATH |
| 11282 | shlibpath_overrides_runpath=yes |
| 11283 | if test "$with_gnu_ld" = yes; then |
| 11284 | need_lib_prefix=no |
| 11285 | fi |
| 11286 | need_version=yes |
| 11287 | ;; |
| 11288 | |
| 11289 | sysv4 | sysv4.3*) |
| 11290 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11292 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11293 | shlibpath_var=LD_LIBRARY_PATH |
| 11294 | case $host_vendor in |
| 11295 | sni) |
| 11296 | shlibpath_overrides_runpath=no |
| 11297 | need_lib_prefix=no |
| 11298 | runpath_var=LD_RUN_PATH |
| 11299 | ;; |
| 11300 | siemens) |
| 11301 | need_lib_prefix=no |
| 11302 | ;; |
| 11303 | motorola) |
| 11304 | need_lib_prefix=no |
| 11305 | need_version=no |
| 11306 | shlibpath_overrides_runpath=no |
| 11307 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 11308 | ;; |
| 11309 | esac |
| 11310 | ;; |
| 11311 | |
| 11312 | sysv4*MP*) |
| 11313 | if test -d /usr/nec ;then |
| 11314 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11315 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 11316 | soname_spec='$libname${shared_ext}.$major' |
| 11317 | shlibpath_var=LD_LIBRARY_PATH |
| 11318 | fi |
| 11319 | ;; |
| 11320 | |
| 11321 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11322 | version_type=freebsd-elf |
| 11323 | need_lib_prefix=no |
| 11324 | need_version=no |
| 11325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 11326 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11327 | shlibpath_var=LD_LIBRARY_PATH |
| 11328 | shlibpath_overrides_runpath=yes |
| 11329 | hardcode_into_libs=yes |
| 11330 | if test "$with_gnu_ld" = yes; then |
| 11331 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 11332 | else |
| 11333 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 11334 | case $host_os in |
| 11335 | sco3.2v5*) |
| 11336 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 11337 | ;; |
| 11338 | esac |
| 11339 | fi |
| 11340 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 11341 | ;; |
| 11342 | |
| 11343 | tpf*) |
| 11344 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 11345 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11346 | need_lib_prefix=no |
| 11347 | need_version=no |
| 11348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11349 | shlibpath_var=LD_LIBRARY_PATH |
| 11350 | shlibpath_overrides_runpath=no |
| 11351 | hardcode_into_libs=yes |
| 11352 | ;; |
| 11353 | |
| 11354 | uts4*) |
| 11355 | version_type=linux # correct to gnu/linux during the next big refactor |
| 11356 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 11357 | soname_spec='${libname}${release}${shared_ext}$major' |
| 11358 | shlibpath_var=LD_LIBRARY_PATH |
| 11359 | ;; |
| 11360 | |
| 11361 | *) |
| 11362 | dynamic_linker=no |
| 11363 | ;; |
| 11364 | esac |
| 11365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 11366 | $as_echo "$dynamic_linker" >&6; } |
| 11367 | test "$dynamic_linker" = no && can_build_shared=no |
| 11368 | |
| 11369 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 11370 | if test "$GCC" = yes; then |
| 11371 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 11372 | fi |
| 11373 | |
| 11374 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 11375 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 11376 | fi |
| 11377 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 11378 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 11379 | fi |
| 11380 | |
| 11381 | |
| 11382 | |
| 11383 | |
| 11384 | |
| 11385 | |
| 11386 | |
| 11387 | |
| 11388 | |
| 11389 | |
| 11390 | |
| 11391 | |
| 11392 | |
| 11393 | |
| 11394 | |
| 11395 | |
| 11396 | |
| 11397 | |
| 11398 | |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | |
| 11408 | |
| 11409 | |
| 11410 | |
| 11411 | |
| 11412 | |
| 11413 | |
| 11414 | |
| 11415 | |
| 11416 | |
| 11417 | |
| 11418 | |
| 11419 | |
| 11420 | |
| 11421 | |
| 11422 | |
| 11423 | |
| 11424 | |
| 11425 | |
| 11426 | |
| 11427 | |
| 11428 | |
| 11429 | |
| 11430 | |
| 11431 | |
| 11432 | |
| 11433 | |
| 11434 | |
| 11435 | |
| 11436 | |
| 11437 | |
| 11438 | |
| 11439 | |
| 11440 | |
| 11441 | |
| 11442 | |
| 11443 | |
| 11444 | |
| 11445 | |
| 11446 | |
| 11447 | |
| 11448 | |
| 11449 | |
| 11450 | |
| 11451 | |
| 11452 | |
| 11453 | |
| 11454 | |
| 11455 | |
| 11456 | |
| 11457 | |
| 11458 | |
| 11459 | |
| 11460 | |
| 11461 | |
| 11462 | |
| 11463 | |
| 11464 | |
| 11465 | |
| 11466 | |
| 11467 | |
| 11468 | |
| 11469 | |
| 11470 | |
| 11471 | |
| 11472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 11473 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 11474 | hardcode_action= |
| 11475 | if test -n "$hardcode_libdir_flag_spec" || |
| 11476 | test -n "$runpath_var" || |
| 11477 | test "X$hardcode_automatic" = "Xyes" ; then |
| 11478 | |
| 11479 | # We can hardcode non-existent directories. |
| 11480 | if test "$hardcode_direct" != no && |
| 11481 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 11482 | # have to relink, otherwise we might link with an installed library |
| 11483 | # when we should be linking with a yet-to-be-installed one |
| 11484 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
| 11485 | test "$hardcode_minus_L" != no; then |
| 11486 | # Linking always hardcodes the temporary library directory. |
| 11487 | hardcode_action=relink |
| 11488 | else |
| 11489 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 11490 | hardcode_action=immediate |
| 11491 | fi |
| 11492 | else |
| 11493 | # We cannot hardcode anything, or else we can only hardcode existing |
| 11494 | # directories. |
| 11495 | hardcode_action=unsupported |
| 11496 | fi |
| 11497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 11498 | $as_echo "$hardcode_action" >&6; } |
| 11499 | |
| 11500 | if test "$hardcode_action" = relink || |
| 11501 | test "$inherit_rpath" = yes; then |
| 11502 | # Fast installation is not supported |
| 11503 | enable_fast_install=no |
| 11504 | elif test "$shlibpath_overrides_runpath" = yes || |
| 11505 | test "$enable_shared" = no; then |
| 11506 | # Fast installation is not necessary |
| 11507 | enable_fast_install=needless |
| 11508 | fi |
| 11509 | |
| 11510 | |
| 11511 | |
| 11512 | |
| 11513 | |
| 11514 | |
| 11515 | if test "x$enable_dlopen" != xyes; then |
| 11516 | enable_dlopen=unknown |
| 11517 | enable_dlopen_self=unknown |
| 11518 | enable_dlopen_self_static=unknown |
| 11519 | else |
| 11520 | lt_cv_dlopen=no |
| 11521 | lt_cv_dlopen_libs= |
| 11522 | |
| 11523 | case $host_os in |
| 11524 | beos*) |
| 11525 | lt_cv_dlopen="load_add_on" |
| 11526 | lt_cv_dlopen_libs= |
| 11527 | lt_cv_dlopen_self=yes |
| 11528 | ;; |
| 11529 | |
| 11530 | mingw* | pw32* | cegcc*) |
| 11531 | lt_cv_dlopen="LoadLibrary" |
| 11532 | lt_cv_dlopen_libs= |
| 11533 | ;; |
| 11534 | |
| 11535 | cygwin*) |
| 11536 | lt_cv_dlopen="dlopen" |
| 11537 | lt_cv_dlopen_libs= |
| 11538 | ;; |
| 11539 | |
| 11540 | darwin*) |
| 11541 | # if libdl is installed we need to link against it |
| 11542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11543 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11544 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11545 | $as_echo_n "(cached) " >&6 |
| 11546 | else |
| 11547 | ac_check_lib_save_LIBS=$LIBS |
| 11548 | LIBS="-ldl $LIBS" |
| 11549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11550 | /* end confdefs.h. */ |
| 11551 | |
| 11552 | /* Override any GCC internal prototype to avoid an error. |
| 11553 | Use char because int might match the return type of a GCC |
| 11554 | builtin and then its argument prototype would still apply. */ |
| 11555 | #ifdef __cplusplus |
| 11556 | extern "C" |
| 11557 | #endif |
| 11558 | char dlopen (); |
| 11559 | int |
| 11560 | main () |
| 11561 | { |
| 11562 | return dlopen (); |
| 11563 | ; |
| 11564 | return 0; |
| 11565 | } |
| 11566 | _ACEOF |
| 11567 | if ac_fn_c_try_link "$LINENO"; then : |
| 11568 | ac_cv_lib_dl_dlopen=yes |
| 11569 | else |
| 11570 | ac_cv_lib_dl_dlopen=no |
| 11571 | fi |
| 11572 | rm -f core conftest.err conftest.$ac_objext \ |
| 11573 | conftest$ac_exeext conftest.$ac_ext |
| 11574 | LIBS=$ac_check_lib_save_LIBS |
| 11575 | fi |
| 11576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11577 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11578 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11579 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11580 | else |
| 11581 | |
| 11582 | lt_cv_dlopen="dyld" |
| 11583 | lt_cv_dlopen_libs= |
| 11584 | lt_cv_dlopen_self=yes |
| 11585 | |
| 11586 | fi |
| 11587 | |
| 11588 | ;; |
| 11589 | |
| 11590 | *) |
| 11591 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 11592 | if test "x$ac_cv_func_shl_load" = xyes; then : |
| 11593 | lt_cv_dlopen="shl_load" |
| 11594 | else |
| 11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 11596 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 11597 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
| 11598 | $as_echo_n "(cached) " >&6 |
| 11599 | else |
| 11600 | ac_check_lib_save_LIBS=$LIBS |
| 11601 | LIBS="-ldld $LIBS" |
| 11602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11603 | /* end confdefs.h. */ |
| 11604 | |
| 11605 | /* Override any GCC internal prototype to avoid an error. |
| 11606 | Use char because int might match the return type of a GCC |
| 11607 | builtin and then its argument prototype would still apply. */ |
| 11608 | #ifdef __cplusplus |
| 11609 | extern "C" |
| 11610 | #endif |
| 11611 | char shl_load (); |
| 11612 | int |
| 11613 | main () |
| 11614 | { |
| 11615 | return shl_load (); |
| 11616 | ; |
| 11617 | return 0; |
| 11618 | } |
| 11619 | _ACEOF |
| 11620 | if ac_fn_c_try_link "$LINENO"; then : |
| 11621 | ac_cv_lib_dld_shl_load=yes |
| 11622 | else |
| 11623 | ac_cv_lib_dld_shl_load=no |
| 11624 | fi |
| 11625 | rm -f core conftest.err conftest.$ac_objext \ |
| 11626 | conftest$ac_exeext conftest.$ac_ext |
| 11627 | LIBS=$ac_check_lib_save_LIBS |
| 11628 | fi |
| 11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11630 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 11631 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
| 11632 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
| 11633 | else |
| 11634 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11635 | if test "x$ac_cv_func_dlopen" = xyes; then : |
| 11636 | lt_cv_dlopen="dlopen" |
| 11637 | else |
| 11638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11639 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11640 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
| 11641 | $as_echo_n "(cached) " >&6 |
| 11642 | else |
| 11643 | ac_check_lib_save_LIBS=$LIBS |
| 11644 | LIBS="-ldl $LIBS" |
| 11645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11646 | /* end confdefs.h. */ |
| 11647 | |
| 11648 | /* Override any GCC internal prototype to avoid an error. |
| 11649 | Use char because int might match the return type of a GCC |
| 11650 | builtin and then its argument prototype would still apply. */ |
| 11651 | #ifdef __cplusplus |
| 11652 | extern "C" |
| 11653 | #endif |
| 11654 | char dlopen (); |
| 11655 | int |
| 11656 | main () |
| 11657 | { |
| 11658 | return dlopen (); |
| 11659 | ; |
| 11660 | return 0; |
| 11661 | } |
| 11662 | _ACEOF |
| 11663 | if ac_fn_c_try_link "$LINENO"; then : |
| 11664 | ac_cv_lib_dl_dlopen=yes |
| 11665 | else |
| 11666 | ac_cv_lib_dl_dlopen=no |
| 11667 | fi |
| 11668 | rm -f core conftest.err conftest.$ac_objext \ |
| 11669 | conftest$ac_exeext conftest.$ac_ext |
| 11670 | LIBS=$ac_check_lib_save_LIBS |
| 11671 | fi |
| 11672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11673 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11674 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
| 11675 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11676 | else |
| 11677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 11678 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 11679 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
| 11680 | $as_echo_n "(cached) " >&6 |
| 11681 | else |
| 11682 | ac_check_lib_save_LIBS=$LIBS |
| 11683 | LIBS="-lsvld $LIBS" |
| 11684 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11685 | /* end confdefs.h. */ |
| 11686 | |
| 11687 | /* Override any GCC internal prototype to avoid an error. |
| 11688 | Use char because int might match the return type of a GCC |
| 11689 | builtin and then its argument prototype would still apply. */ |
| 11690 | #ifdef __cplusplus |
| 11691 | extern "C" |
| 11692 | #endif |
| 11693 | char dlopen (); |
| 11694 | int |
| 11695 | main () |
| 11696 | { |
| 11697 | return dlopen (); |
| 11698 | ; |
| 11699 | return 0; |
| 11700 | } |
| 11701 | _ACEOF |
| 11702 | if ac_fn_c_try_link "$LINENO"; then : |
| 11703 | ac_cv_lib_svld_dlopen=yes |
| 11704 | else |
| 11705 | ac_cv_lib_svld_dlopen=no |
| 11706 | fi |
| 11707 | rm -f core conftest.err conftest.$ac_objext \ |
| 11708 | conftest$ac_exeext conftest.$ac_ext |
| 11709 | LIBS=$ac_check_lib_save_LIBS |
| 11710 | fi |
| 11711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11712 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11713 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
| 11714 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11715 | else |
| 11716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11717 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11718 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
| 11719 | $as_echo_n "(cached) " >&6 |
| 11720 | else |
| 11721 | ac_check_lib_save_LIBS=$LIBS |
| 11722 | LIBS="-ldld $LIBS" |
| 11723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11724 | /* end confdefs.h. */ |
| 11725 | |
| 11726 | /* Override any GCC internal prototype to avoid an error. |
| 11727 | Use char because int might match the return type of a GCC |
| 11728 | builtin and then its argument prototype would still apply. */ |
| 11729 | #ifdef __cplusplus |
| 11730 | extern "C" |
| 11731 | #endif |
| 11732 | char dld_link (); |
| 11733 | int |
| 11734 | main () |
| 11735 | { |
| 11736 | return dld_link (); |
| 11737 | ; |
| 11738 | return 0; |
| 11739 | } |
| 11740 | _ACEOF |
| 11741 | if ac_fn_c_try_link "$LINENO"; then : |
| 11742 | ac_cv_lib_dld_dld_link=yes |
| 11743 | else |
| 11744 | ac_cv_lib_dld_dld_link=no |
| 11745 | fi |
| 11746 | rm -f core conftest.err conftest.$ac_objext \ |
| 11747 | conftest$ac_exeext conftest.$ac_ext |
| 11748 | LIBS=$ac_check_lib_save_LIBS |
| 11749 | fi |
| 11750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11751 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11752 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
| 11753 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
| 11754 | fi |
| 11755 | |
| 11756 | |
| 11757 | fi |
| 11758 | |
| 11759 | |
| 11760 | fi |
| 11761 | |
| 11762 | |
| 11763 | fi |
| 11764 | |
| 11765 | |
| 11766 | fi |
| 11767 | |
| 11768 | |
| 11769 | fi |
| 11770 | |
| 11771 | ;; |
| 11772 | esac |
| 11773 | |
| 11774 | if test "x$lt_cv_dlopen" != xno; then |
| 11775 | enable_dlopen=yes |
| 11776 | else |
| 11777 | enable_dlopen=no |
| 11778 | fi |
| 11779 | |
| 11780 | case $lt_cv_dlopen in |
| 11781 | dlopen) |
| 11782 | save_CPPFLAGS="$CPPFLAGS" |
| 11783 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11784 | |
| 11785 | save_LDFLAGS="$LDFLAGS" |
| 11786 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 11787 | |
| 11788 | save_LIBS="$LIBS" |
| 11789 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11790 | |
| 11791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11792 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11793 | if ${lt_cv_dlopen_self+:} false; then : |
| 11794 | $as_echo_n "(cached) " >&6 |
| 11795 | else |
| 11796 | if test "$cross_compiling" = yes; then : |
| 11797 | lt_cv_dlopen_self=cross |
| 11798 | else |
| 11799 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11800 | lt_status=$lt_dlunknown |
| 11801 | cat > conftest.$ac_ext <<_LT_EOF |
| 11802 | #line $LINENO "configure" |
| 11803 | #include "confdefs.h" |
| 11804 | |
| 11805 | #if HAVE_DLFCN_H |
| 11806 | #include <dlfcn.h> |
| 11807 | #endif |
| 11808 | |
| 11809 | #include <stdio.h> |
| 11810 | |
| 11811 | #ifdef RTLD_GLOBAL |
| 11812 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11813 | #else |
| 11814 | # ifdef DL_GLOBAL |
| 11815 | # define LT_DLGLOBAL DL_GLOBAL |
| 11816 | # else |
| 11817 | # define LT_DLGLOBAL 0 |
| 11818 | # endif |
| 11819 | #endif |
| 11820 | |
| 11821 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11822 | find out it does not work in some platform. */ |
| 11823 | #ifndef LT_DLLAZY_OR_NOW |
| 11824 | # ifdef RTLD_LAZY |
| 11825 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11826 | # else |
| 11827 | # ifdef DL_LAZY |
| 11828 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11829 | # else |
| 11830 | # ifdef RTLD_NOW |
| 11831 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11832 | # else |
| 11833 | # ifdef DL_NOW |
| 11834 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11835 | # else |
| 11836 | # define LT_DLLAZY_OR_NOW 0 |
| 11837 | # endif |
| 11838 | # endif |
| 11839 | # endif |
| 11840 | # endif |
| 11841 | #endif |
| 11842 | |
| 11843 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11844 | correspondingly for the symbols needed. */ |
| 11845 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11846 | int fnord () __attribute__((visibility("default"))); |
| 11847 | #endif |
| 11848 | |
| 11849 | int fnord () { return 42; } |
| 11850 | int main () |
| 11851 | { |
| 11852 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11853 | int status = $lt_dlunknown; |
| 11854 | |
| 11855 | if (self) |
| 11856 | { |
| 11857 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11858 | else |
| 11859 | { |
| 11860 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11861 | else puts (dlerror ()); |
| 11862 | } |
| 11863 | /* dlclose (self); */ |
| 11864 | } |
| 11865 | else |
| 11866 | puts (dlerror ()); |
| 11867 | |
| 11868 | return status; |
| 11869 | } |
| 11870 | _LT_EOF |
| 11871 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11872 | (eval $ac_link) 2>&5 |
| 11873 | ac_status=$? |
| 11874 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11875 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11876 | (./conftest; exit; ) >&5 2>/dev/null |
| 11877 | lt_status=$? |
| 11878 | case x$lt_status in |
| 11879 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11880 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 11881 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 11882 | esac |
| 11883 | else : |
| 11884 | # compilation failed |
| 11885 | lt_cv_dlopen_self=no |
| 11886 | fi |
| 11887 | fi |
| 11888 | rm -fr conftest* |
| 11889 | |
| 11890 | |
| 11891 | fi |
| 11892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11893 | $as_echo "$lt_cv_dlopen_self" >&6; } |
| 11894 | |
| 11895 | if test "x$lt_cv_dlopen_self" = xyes; then |
| 11896 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 11897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11898 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11899 | if ${lt_cv_dlopen_self_static+:} false; then : |
| 11900 | $as_echo_n "(cached) " >&6 |
| 11901 | else |
| 11902 | if test "$cross_compiling" = yes; then : |
| 11903 | lt_cv_dlopen_self_static=cross |
| 11904 | else |
| 11905 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11906 | lt_status=$lt_dlunknown |
| 11907 | cat > conftest.$ac_ext <<_LT_EOF |
| 11908 | #line $LINENO "configure" |
| 11909 | #include "confdefs.h" |
| 11910 | |
| 11911 | #if HAVE_DLFCN_H |
| 11912 | #include <dlfcn.h> |
| 11913 | #endif |
| 11914 | |
| 11915 | #include <stdio.h> |
| 11916 | |
| 11917 | #ifdef RTLD_GLOBAL |
| 11918 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11919 | #else |
| 11920 | # ifdef DL_GLOBAL |
| 11921 | # define LT_DLGLOBAL DL_GLOBAL |
| 11922 | # else |
| 11923 | # define LT_DLGLOBAL 0 |
| 11924 | # endif |
| 11925 | #endif |
| 11926 | |
| 11927 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11928 | find out it does not work in some platform. */ |
| 11929 | #ifndef LT_DLLAZY_OR_NOW |
| 11930 | # ifdef RTLD_LAZY |
| 11931 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11932 | # else |
| 11933 | # ifdef DL_LAZY |
| 11934 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11935 | # else |
| 11936 | # ifdef RTLD_NOW |
| 11937 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11938 | # else |
| 11939 | # ifdef DL_NOW |
| 11940 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11941 | # else |
| 11942 | # define LT_DLLAZY_OR_NOW 0 |
| 11943 | # endif |
| 11944 | # endif |
| 11945 | # endif |
| 11946 | # endif |
| 11947 | #endif |
| 11948 | |
| 11949 | /* When -fvisbility=hidden is used, assume the code has been annotated |
| 11950 | correspondingly for the symbols needed. */ |
| 11951 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 11952 | int fnord () __attribute__((visibility("default"))); |
| 11953 | #endif |
| 11954 | |
| 11955 | int fnord () { return 42; } |
| 11956 | int main () |
| 11957 | { |
| 11958 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11959 | int status = $lt_dlunknown; |
| 11960 | |
| 11961 | if (self) |
| 11962 | { |
| 11963 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11964 | else |
| 11965 | { |
| 11966 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11967 | else puts (dlerror ()); |
| 11968 | } |
| 11969 | /* dlclose (self); */ |
| 11970 | } |
| 11971 | else |
| 11972 | puts (dlerror ()); |
| 11973 | |
| 11974 | return status; |
| 11975 | } |
| 11976 | _LT_EOF |
| 11977 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 11978 | (eval $ac_link) 2>&5 |
| 11979 | ac_status=$? |
| 11980 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11981 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
| 11982 | (./conftest; exit; ) >&5 2>/dev/null |
| 11983 | lt_status=$? |
| 11984 | case x$lt_status in |
| 11985 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11986 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11987 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 11988 | esac |
| 11989 | else : |
| 11990 | # compilation failed |
| 11991 | lt_cv_dlopen_self_static=no |
| 11992 | fi |
| 11993 | fi |
| 11994 | rm -fr conftest* |
| 11995 | |
| 11996 | |
| 11997 | fi |
| 11998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11999 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
| 12000 | fi |
| 12001 | |
| 12002 | CPPFLAGS="$save_CPPFLAGS" |
| 12003 | LDFLAGS="$save_LDFLAGS" |
| 12004 | LIBS="$save_LIBS" |
| 12005 | ;; |
| 12006 | esac |
| 12007 | |
| 12008 | case $lt_cv_dlopen_self in |
| 12009 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 12010 | *) enable_dlopen_self=unknown ;; |
| 12011 | esac |
| 12012 | |
| 12013 | case $lt_cv_dlopen_self_static in |
| 12014 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 12015 | *) enable_dlopen_self_static=unknown ;; |
| 12016 | esac |
| 12017 | fi |
| 12018 | |
| 12019 | |
| 12020 | |
| 12021 | |
| 12022 | |
| 12023 | |
| 12024 | |
| 12025 | |
| 12026 | |
| 12027 | |
| 12028 | |
| 12029 | |
| 12030 | |
| 12031 | |
| 12032 | |
| 12033 | |
| 12034 | |
| 12035 | striplib= |
| 12036 | old_striplib= |
| 12037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 12038 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 12039 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 12040 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 12041 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 12042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12043 | $as_echo "yes" >&6; } |
| 12044 | else |
| 12045 | # FIXME - insert some real tests, host_os isn't really good enough |
| 12046 | case $host_os in |
| 12047 | darwin*) |
| 12048 | if test -n "$STRIP" ; then |
| 12049 | striplib="$STRIP -x" |
| 12050 | old_striplib="$STRIP -S" |
| 12051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12052 | $as_echo "yes" >&6; } |
| 12053 | else |
| 12054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12055 | $as_echo "no" >&6; } |
| 12056 | fi |
| 12057 | ;; |
| 12058 | *) |
| 12059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12060 | $as_echo "no" >&6; } |
| 12061 | ;; |
| 12062 | esac |
| 12063 | fi |
| 12064 | |
| 12065 | |
| 12066 | |
| 12067 | |
| 12068 | |
| 12069 | |
| 12070 | |
| 12071 | |
| 12072 | |
| 12073 | |
| 12074 | |
| 12075 | |
| 12076 | # Report which library types will actually be built |
| 12077 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 12078 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 12079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 12080 | $as_echo "$can_build_shared" >&6; } |
| 12081 | |
| 12082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 12083 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 12084 | test "$can_build_shared" = "no" && enable_shared=no |
| 12085 | |
| 12086 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 12087 | # are all built from PIC. |
| 12088 | case $host_os in |
| 12089 | aix3*) |
| 12090 | test "$enable_shared" = yes && enable_static=no |
| 12091 | if test -n "$RANLIB"; then |
| 12092 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 12093 | postinstall_cmds='$RANLIB $lib' |
| 12094 | fi |
| 12095 | ;; |
| 12096 | |
| 12097 | aix[4-9]*) |
| 12098 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 12099 | test "$enable_shared" = yes && enable_static=no |
| 12100 | fi |
| 12101 | ;; |
| 12102 | esac |
| 12103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 12104 | $as_echo "$enable_shared" >&6; } |
| 12105 | |
| 12106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 12107 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 12108 | # Make sure either enable_shared or enable_static is yes. |
| 12109 | test "$enable_shared" = yes || enable_static=yes |
| 12110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 12111 | $as_echo "$enable_static" >&6; } |
| 12112 | |
| 12113 | |
| 12114 | |
| 12115 | |
| 12116 | fi |
| 12117 | ac_ext=c |
| 12118 | ac_cpp='$CPP $CPPFLAGS' |
| 12119 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12120 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12121 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12122 | |
| 12123 | CC="$lt_save_CC" |
| 12124 | |
| 12125 | |
| 12126 | |
| 12127 | |
| 12128 | |
| 12129 | |
| 12130 | |
| 12131 | |
| 12132 | |
| 12133 | |
| 12134 | |
| 12135 | |
| 12136 | |
| 12137 | |
| 12138 | |
| 12139 | ac_config_commands="$ac_config_commands libtool" |
| 12140 | |
| 12141 | |
| 12142 | |
| 12143 | |
| 12144 | # Only expand once: |
| 12145 | |
| 12146 | |
Jeff Thompson | 23cb742 | 2013-10-09 16:11:47 -0700 | [diff] [blame] | 12147 | |
| 12148 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 12149 | ac_ext=cpp |
| 12150 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12151 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12152 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12153 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12154 | if test -z "$CXX"; then |
| 12155 | if test -n "$CCC"; then |
| 12156 | CXX=$CCC |
| 12157 | else |
| 12158 | if test -n "$ac_tool_prefix"; then |
| 12159 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 12160 | do |
| 12161 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 12162 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 12163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12164 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12165 | if ${ac_cv_prog_CXX+:} false; then : |
| 12166 | $as_echo_n "(cached) " >&6 |
| 12167 | else |
| 12168 | if test -n "$CXX"; then |
| 12169 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 12170 | else |
| 12171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12172 | for as_dir in $PATH |
| 12173 | do |
| 12174 | IFS=$as_save_IFS |
| 12175 | test -z "$as_dir" && as_dir=. |
| 12176 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12177 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12178 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 12179 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12180 | break 2 |
| 12181 | fi |
| 12182 | done |
| 12183 | done |
| 12184 | IFS=$as_save_IFS |
| 12185 | |
| 12186 | fi |
| 12187 | fi |
| 12188 | CXX=$ac_cv_prog_CXX |
| 12189 | if test -n "$CXX"; then |
| 12190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 12191 | $as_echo "$CXX" >&6; } |
| 12192 | else |
| 12193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12194 | $as_echo "no" >&6; } |
| 12195 | fi |
| 12196 | |
| 12197 | |
| 12198 | test -n "$CXX" && break |
| 12199 | done |
| 12200 | fi |
| 12201 | if test -z "$CXX"; then |
| 12202 | ac_ct_CXX=$CXX |
| 12203 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 12204 | do |
| 12205 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12206 | set dummy $ac_prog; ac_word=$2 |
| 12207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12208 | $as_echo_n "checking for $ac_word... " >&6; } |
| 12209 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
| 12210 | $as_echo_n "(cached) " >&6 |
| 12211 | else |
| 12212 | if test -n "$ac_ct_CXX"; then |
| 12213 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 12214 | else |
| 12215 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12216 | for as_dir in $PATH |
| 12217 | do |
| 12218 | IFS=$as_save_IFS |
| 12219 | test -z "$as_dir" && as_dir=. |
| 12220 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 12221 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 12222 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 12223 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 12224 | break 2 |
| 12225 | fi |
| 12226 | done |
| 12227 | done |
| 12228 | IFS=$as_save_IFS |
| 12229 | |
| 12230 | fi |
| 12231 | fi |
| 12232 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 12233 | if test -n "$ac_ct_CXX"; then |
| 12234 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 12235 | $as_echo "$ac_ct_CXX" >&6; } |
| 12236 | else |
| 12237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12238 | $as_echo "no" >&6; } |
| 12239 | fi |
| 12240 | |
| 12241 | |
| 12242 | test -n "$ac_ct_CXX" && break |
| 12243 | done |
| 12244 | |
| 12245 | if test "x$ac_ct_CXX" = x; then |
| 12246 | CXX="g++" |
| 12247 | else |
| 12248 | case $cross_compiling:$ac_tool_warned in |
| 12249 | yes:) |
| 12250 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12251 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12252 | ac_tool_warned=yes ;; |
| 12253 | esac |
| 12254 | CXX=$ac_ct_CXX |
| 12255 | fi |
| 12256 | fi |
| 12257 | |
| 12258 | fi |
| 12259 | fi |
| 12260 | # Provide some information about the compiler. |
| 12261 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 12262 | set X $ac_compile |
| 12263 | ac_compiler=$2 |
| 12264 | for ac_option in --version -v -V -qversion; do |
| 12265 | { { ac_try="$ac_compiler $ac_option >&5" |
| 12266 | case "(($ac_try" in |
| 12267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 12268 | *) ac_try_echo=$ac_try;; |
| 12269 | esac |
| 12270 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 12271 | $as_echo "$ac_try_echo"; } >&5 |
| 12272 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 12273 | ac_status=$? |
| 12274 | if test -s conftest.err; then |
| 12275 | sed '10a\ |
| 12276 | ... rest of stderr output deleted ... |
| 12277 | 10q' conftest.err >conftest.er1 |
| 12278 | cat conftest.er1 >&5 |
| 12279 | fi |
| 12280 | rm -f conftest.er1 conftest.err |
| 12281 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12282 | test $ac_status = 0; } |
| 12283 | done |
| 12284 | |
| 12285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 12286 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 12287 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
| 12288 | $as_echo_n "(cached) " >&6 |
| 12289 | else |
| 12290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12291 | /* end confdefs.h. */ |
| 12292 | |
| 12293 | int |
| 12294 | main () |
| 12295 | { |
| 12296 | #ifndef __GNUC__ |
| 12297 | choke me |
| 12298 | #endif |
| 12299 | |
| 12300 | ; |
| 12301 | return 0; |
| 12302 | } |
| 12303 | _ACEOF |
| 12304 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12305 | ac_compiler_gnu=yes |
| 12306 | else |
| 12307 | ac_compiler_gnu=no |
| 12308 | fi |
| 12309 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12310 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 12311 | |
| 12312 | fi |
| 12313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 12314 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 12315 | if test $ac_compiler_gnu = yes; then |
| 12316 | GXX=yes |
| 12317 | else |
| 12318 | GXX= |
| 12319 | fi |
| 12320 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 12321 | ac_save_CXXFLAGS=$CXXFLAGS |
| 12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 12323 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 12324 | if ${ac_cv_prog_cxx_g+:} false; then : |
| 12325 | $as_echo_n "(cached) " >&6 |
| 12326 | else |
| 12327 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 12328 | ac_cxx_werror_flag=yes |
| 12329 | ac_cv_prog_cxx_g=no |
| 12330 | CXXFLAGS="-g" |
| 12331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12332 | /* end confdefs.h. */ |
| 12333 | |
| 12334 | int |
| 12335 | main () |
| 12336 | { |
| 12337 | |
| 12338 | ; |
| 12339 | return 0; |
| 12340 | } |
| 12341 | _ACEOF |
| 12342 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12343 | ac_cv_prog_cxx_g=yes |
| 12344 | else |
| 12345 | CXXFLAGS="" |
| 12346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12347 | /* end confdefs.h. */ |
| 12348 | |
| 12349 | int |
| 12350 | main () |
| 12351 | { |
| 12352 | |
| 12353 | ; |
| 12354 | return 0; |
| 12355 | } |
| 12356 | _ACEOF |
| 12357 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12358 | |
| 12359 | else |
| 12360 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 12361 | CXXFLAGS="-g" |
| 12362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12363 | /* end confdefs.h. */ |
| 12364 | |
| 12365 | int |
| 12366 | main () |
| 12367 | { |
| 12368 | |
| 12369 | ; |
| 12370 | return 0; |
| 12371 | } |
| 12372 | _ACEOF |
| 12373 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 12374 | ac_cv_prog_cxx_g=yes |
| 12375 | fi |
| 12376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12377 | fi |
| 12378 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12379 | fi |
| 12380 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 12381 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 12382 | fi |
| 12383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 12384 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 12385 | if test "$ac_test_CXXFLAGS" = set; then |
| 12386 | CXXFLAGS=$ac_save_CXXFLAGS |
| 12387 | elif test $ac_cv_prog_cxx_g = yes; then |
| 12388 | if test "$GXX" = yes; then |
| 12389 | CXXFLAGS="-g -O2" |
| 12390 | else |
| 12391 | CXXFLAGS="-g" |
| 12392 | fi |
| 12393 | else |
| 12394 | if test "$GXX" = yes; then |
| 12395 | CXXFLAGS="-O2" |
| 12396 | else |
| 12397 | CXXFLAGS= |
| 12398 | fi |
| 12399 | fi |
| 12400 | ac_ext=c |
| 12401 | ac_cpp='$CPP $CPPFLAGS' |
| 12402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12405 | |
| 12406 | depcc="$CXX" am_compiler_list= |
| 12407 | |
| 12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 12409 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 12410 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : |
| 12411 | $as_echo_n "(cached) " >&6 |
| 12412 | else |
| 12413 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 12414 | # We make a subdir and do the tests there. Otherwise we can end up |
| 12415 | # making bogus files that we don't know about and never remove. For |
| 12416 | # instance it was reported that on HP-UX the gcc test will end up |
| 12417 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 12418 | # in D". |
| 12419 | rm -rf conftest.dir |
| 12420 | mkdir conftest.dir |
| 12421 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 12422 | # using a relative directory. |
| 12423 | cp "$am_depcomp" conftest.dir |
| 12424 | cd conftest.dir |
| 12425 | # We will build objects and dependencies in a subdirectory because |
| 12426 | # it helps to detect inapplicable dependency modes. For instance |
| 12427 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 12428 | # side effect of compilation, but ICC will put the dependencies in |
| 12429 | # the current directory while Tru64 will put them in the object |
| 12430 | # directory. |
| 12431 | mkdir sub |
| 12432 | |
| 12433 | am_cv_CXX_dependencies_compiler_type=none |
| 12434 | if test "$am_compiler_list" = ""; then |
| 12435 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 12436 | fi |
| 12437 | am__universal=false |
| 12438 | case " $depcc " in #( |
| 12439 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 12440 | esac |
| 12441 | |
| 12442 | for depmode in $am_compiler_list; do |
| 12443 | # Setup a source with many dependencies, because some compilers |
| 12444 | # like to wrap large dependency lists on column 80 (with \), and |
| 12445 | # we should not choose a depcomp mode which is confused by this. |
| 12446 | # |
| 12447 | # We need to recreate these files for each test, as the compiler may |
| 12448 | # overwrite some of them when testing with obscure command lines. |
| 12449 | # This happens at least with the AIX C compiler. |
| 12450 | : > sub/conftest.c |
| 12451 | for i in 1 2 3 4 5 6; do |
| 12452 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 12453 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 12454 | # Solaris 10 /bin/sh. |
| 12455 | echo '/* dummy */' > sub/conftst$i.h |
| 12456 | done |
| 12457 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 12458 | |
| 12459 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 12460 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 12461 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 12462 | # versions had trouble with output in subdirs. |
| 12463 | am__obj=sub/conftest.${OBJEXT-o} |
| 12464 | am__minus_obj="-o $am__obj" |
| 12465 | case $depmode in |
| 12466 | gcc) |
| 12467 | # This depmode causes a compiler race in universal mode. |
| 12468 | test "$am__universal" = false || continue |
| 12469 | ;; |
| 12470 | nosideeffect) |
| 12471 | # After this tag, mechanisms are not by side-effect, so they'll |
| 12472 | # only be used when explicitly requested. |
| 12473 | if test "x$enable_dependency_tracking" = xyes; then |
| 12474 | continue |
| 12475 | else |
| 12476 | break |
| 12477 | fi |
| 12478 | ;; |
| 12479 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 12480 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 12481 | # not run yet. These depmodes are late enough in the game, and |
| 12482 | # so weak that their functioning should not be impacted. |
| 12483 | am__obj=conftest.${OBJEXT-o} |
| 12484 | am__minus_obj= |
| 12485 | ;; |
| 12486 | none) break ;; |
| 12487 | esac |
| 12488 | if depmode=$depmode \ |
| 12489 | source=sub/conftest.c object=$am__obj \ |
| 12490 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 12491 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 12492 | >/dev/null 2>conftest.err && |
| 12493 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 12494 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 12495 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 12496 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 12497 | # icc doesn't choke on unknown options, it will just issue warnings |
| 12498 | # or remarks (even with -Werror). So we grep stderr for any message |
| 12499 | # that says an option was ignored or not supported. |
| 12500 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 12501 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 12502 | # The diagnosis changed in icc 8.0: |
| 12503 | # icc: Command line remark: option '-MP' not supported |
| 12504 | if (grep 'ignoring option' conftest.err || |
| 12505 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 12506 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 12507 | break |
| 12508 | fi |
| 12509 | fi |
| 12510 | done |
| 12511 | |
| 12512 | cd .. |
| 12513 | rm -rf conftest.dir |
| 12514 | else |
| 12515 | am_cv_CXX_dependencies_compiler_type=none |
| 12516 | fi |
| 12517 | |
| 12518 | fi |
| 12519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 12520 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 12521 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 12522 | |
| 12523 | if |
| 12524 | test "x$enable_dependency_tracking" != xno \ |
| 12525 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 12526 | am__fastdepCXX_TRUE= |
| 12527 | am__fastdepCXX_FALSE='#' |
| 12528 | else |
| 12529 | am__fastdepCXX_TRUE='#' |
| 12530 | am__fastdepCXX_FALSE= |
| 12531 | fi |
| 12532 | |
| 12533 | |
| 12534 | |
| 12535 | |
| 12536 | func_stripname_cnf () |
| 12537 | { |
| 12538 | case ${2} in |
| 12539 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
| 12540 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; |
| 12541 | esac |
| 12542 | } # func_stripname_cnf |
| 12543 | |
| 12544 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 12545 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 12546 | (test "X$CXX" != "Xg++"))) ; then |
| 12547 | ac_ext=cpp |
| 12548 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12549 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12550 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12551 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 12553 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 12554 | if test -z "$CXXCPP"; then |
| 12555 | if ${ac_cv_prog_CXXCPP+:} false; then : |
| 12556 | $as_echo_n "(cached) " >&6 |
| 12557 | else |
| 12558 | # Double quotes because CXXCPP needs to be expanded |
| 12559 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 12560 | do |
| 12561 | ac_preproc_ok=false |
| 12562 | for ac_cxx_preproc_warn_flag in '' yes |
| 12563 | do |
| 12564 | # Use a header file that comes with gcc, so configuring glibc |
| 12565 | # with a fresh cross-compiler works. |
| 12566 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12567 | # <limits.h> exists even on freestanding compilers. |
| 12568 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12569 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12570 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12571 | /* end confdefs.h. */ |
| 12572 | #ifdef __STDC__ |
| 12573 | # include <limits.h> |
| 12574 | #else |
| 12575 | # include <assert.h> |
| 12576 | #endif |
| 12577 | Syntax error |
| 12578 | _ACEOF |
| 12579 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12580 | |
| 12581 | else |
| 12582 | # Broken: fails on valid input. |
| 12583 | continue |
| 12584 | fi |
| 12585 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12586 | |
| 12587 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12588 | # can be detected and how. |
| 12589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12590 | /* end confdefs.h. */ |
| 12591 | #include <ac_nonexistent.h> |
| 12592 | _ACEOF |
| 12593 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12594 | # Broken: success on invalid input. |
| 12595 | continue |
| 12596 | else |
| 12597 | # Passes both tests. |
| 12598 | ac_preproc_ok=: |
| 12599 | break |
| 12600 | fi |
| 12601 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12602 | |
| 12603 | done |
| 12604 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12605 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12606 | if $ac_preproc_ok; then : |
| 12607 | break |
| 12608 | fi |
| 12609 | |
| 12610 | done |
| 12611 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12612 | |
| 12613 | fi |
| 12614 | CXXCPP=$ac_cv_prog_CXXCPP |
| 12615 | else |
| 12616 | ac_cv_prog_CXXCPP=$CXXCPP |
| 12617 | fi |
| 12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 12619 | $as_echo "$CXXCPP" >&6; } |
| 12620 | ac_preproc_ok=false |
| 12621 | for ac_cxx_preproc_warn_flag in '' yes |
| 12622 | do |
| 12623 | # Use a header file that comes with gcc, so configuring glibc |
| 12624 | # with a fresh cross-compiler works. |
| 12625 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 12626 | # <limits.h> exists even on freestanding compilers. |
| 12627 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 12628 | # not just through cpp. "Syntax error" is here to catch this case. |
| 12629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12630 | /* end confdefs.h. */ |
| 12631 | #ifdef __STDC__ |
| 12632 | # include <limits.h> |
| 12633 | #else |
| 12634 | # include <assert.h> |
| 12635 | #endif |
| 12636 | Syntax error |
| 12637 | _ACEOF |
| 12638 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12639 | |
| 12640 | else |
| 12641 | # Broken: fails on valid input. |
| 12642 | continue |
| 12643 | fi |
| 12644 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12645 | |
| 12646 | # OK, works on sane cases. Now check whether nonexistent headers |
| 12647 | # can be detected and how. |
| 12648 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12649 | /* end confdefs.h. */ |
| 12650 | #include <ac_nonexistent.h> |
| 12651 | _ACEOF |
| 12652 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 12653 | # Broken: success on invalid input. |
| 12654 | continue |
| 12655 | else |
| 12656 | # Passes both tests. |
| 12657 | ac_preproc_ok=: |
| 12658 | break |
| 12659 | fi |
| 12660 | rm -f conftest.err conftest.i conftest.$ac_ext |
| 12661 | |
| 12662 | done |
| 12663 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 12664 | rm -f conftest.i conftest.err conftest.$ac_ext |
| 12665 | if $ac_preproc_ok; then : |
| 12666 | |
| 12667 | else |
| 12668 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 12669 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 12670 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check |
| 12671 | See \`config.log' for more details" "$LINENO" 5; } |
| 12672 | fi |
| 12673 | |
| 12674 | ac_ext=c |
| 12675 | ac_cpp='$CPP $CPPFLAGS' |
| 12676 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12677 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12678 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12679 | |
| 12680 | else |
| 12681 | _lt_caught_CXX_error=yes |
| 12682 | fi |
| 12683 | |
| 12684 | ac_ext=cpp |
| 12685 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 12686 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12687 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12688 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 12689 | |
| 12690 | archive_cmds_need_lc_CXX=no |
| 12691 | allow_undefined_flag_CXX= |
| 12692 | always_export_symbols_CXX=no |
| 12693 | archive_expsym_cmds_CXX= |
| 12694 | compiler_needs_object_CXX=no |
| 12695 | export_dynamic_flag_spec_CXX= |
| 12696 | hardcode_direct_CXX=no |
| 12697 | hardcode_direct_absolute_CXX=no |
| 12698 | hardcode_libdir_flag_spec_CXX= |
| 12699 | hardcode_libdir_separator_CXX= |
| 12700 | hardcode_minus_L_CXX=no |
| 12701 | hardcode_shlibpath_var_CXX=unsupported |
| 12702 | hardcode_automatic_CXX=no |
| 12703 | inherit_rpath_CXX=no |
| 12704 | module_cmds_CXX= |
| 12705 | module_expsym_cmds_CXX= |
| 12706 | link_all_deplibs_CXX=unknown |
| 12707 | old_archive_cmds_CXX=$old_archive_cmds |
| 12708 | reload_flag_CXX=$reload_flag |
| 12709 | reload_cmds_CXX=$reload_cmds |
| 12710 | no_undefined_flag_CXX= |
| 12711 | whole_archive_flag_spec_CXX= |
| 12712 | enable_shared_with_static_runtimes_CXX=no |
| 12713 | |
| 12714 | # Source file extension for C++ test sources. |
| 12715 | ac_ext=cpp |
| 12716 | |
| 12717 | # Object file extension for compiled C++ test sources. |
| 12718 | objext=o |
| 12719 | objext_CXX=$objext |
| 12720 | |
| 12721 | # No sense in running all these tests if we already determined that |
| 12722 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 12723 | # are currently assumed to apply to all compilers on this platform, |
| 12724 | # and will be corrupted by setting them based on a non-working compiler. |
| 12725 | if test "$_lt_caught_CXX_error" != yes; then |
| 12726 | # Code to be used in simple compile tests |
| 12727 | lt_simple_compile_test_code="int some_variable = 0;" |
| 12728 | |
| 12729 | # Code to be used in simple link tests |
| 12730 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
| 12731 | |
| 12732 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 12733 | |
| 12734 | |
| 12735 | |
| 12736 | |
| 12737 | |
| 12738 | |
| 12739 | # If no C compiler was specified, use CC. |
| 12740 | LTCC=${LTCC-"$CC"} |
| 12741 | |
| 12742 | # If no C compiler flags were specified, use CFLAGS. |
| 12743 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 12744 | |
| 12745 | # Allow CC to be a program name with arguments. |
| 12746 | compiler=$CC |
| 12747 | |
| 12748 | |
| 12749 | # save warnings/boilerplate of simple test code |
| 12750 | ac_outfile=conftest.$ac_objext |
| 12751 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 12752 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12753 | _lt_compiler_boilerplate=`cat conftest.err` |
| 12754 | $RM conftest* |
| 12755 | |
| 12756 | ac_outfile=conftest.$ac_objext |
| 12757 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 12758 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 12759 | _lt_linker_boilerplate=`cat conftest.err` |
| 12760 | $RM -r conftest* |
| 12761 | |
| 12762 | |
| 12763 | # Allow CC to be a program name with arguments. |
| 12764 | lt_save_CC=$CC |
| 12765 | lt_save_CFLAGS=$CFLAGS |
| 12766 | lt_save_LD=$LD |
| 12767 | lt_save_GCC=$GCC |
| 12768 | GCC=$GXX |
| 12769 | lt_save_with_gnu_ld=$with_gnu_ld |
| 12770 | lt_save_path_LD=$lt_cv_path_LD |
| 12771 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 12772 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 12773 | else |
| 12774 | $as_unset lt_cv_prog_gnu_ld |
| 12775 | fi |
| 12776 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 12777 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 12778 | else |
| 12779 | $as_unset lt_cv_path_LD |
| 12780 | fi |
| 12781 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 12782 | CC=${CXX-"c++"} |
| 12783 | CFLAGS=$CXXFLAGS |
| 12784 | compiler=$CC |
| 12785 | compiler_CXX=$CC |
| 12786 | for cc_temp in $compiler""; do |
| 12787 | case $cc_temp in |
| 12788 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 12789 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 12790 | \-*) ;; |
| 12791 | *) break;; |
| 12792 | esac |
| 12793 | done |
| 12794 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 12795 | |
| 12796 | |
| 12797 | if test -n "$compiler"; then |
| 12798 | # We don't want -fno-exception when compiling C++ code, so set the |
| 12799 | # no_builtin_flag separately |
| 12800 | if test "$GXX" = yes; then |
| 12801 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 12802 | else |
| 12803 | lt_prog_compiler_no_builtin_flag_CXX= |
| 12804 | fi |
| 12805 | |
| 12806 | if test "$GXX" = yes; then |
| 12807 | # Set up default GNU C++ configuration |
| 12808 | |
| 12809 | |
| 12810 | |
| 12811 | # Check whether --with-gnu-ld was given. |
| 12812 | if test "${with_gnu_ld+set}" = set; then : |
| 12813 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
| 12814 | else |
| 12815 | with_gnu_ld=no |
| 12816 | fi |
| 12817 | |
| 12818 | ac_prog=ld |
| 12819 | if test "$GCC" = yes; then |
| 12820 | # Check if gcc -print-prog-name=ld gives a path. |
| 12821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 12822 | $as_echo_n "checking for ld used by $CC... " >&6; } |
| 12823 | case $host in |
| 12824 | *-*-mingw*) |
| 12825 | # gcc leaves a trailing carriage return which upsets mingw |
| 12826 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 12827 | *) |
| 12828 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 12829 | esac |
| 12830 | case $ac_prog in |
| 12831 | # Accept absolute paths. |
| 12832 | [\\/]* | ?:[\\/]*) |
| 12833 | re_direlt='/[^/][^/]*/\.\./' |
| 12834 | # Canonicalize the pathname of ld |
| 12835 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 12836 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 12837 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 12838 | done |
| 12839 | test -z "$LD" && LD="$ac_prog" |
| 12840 | ;; |
| 12841 | "") |
| 12842 | # If it fails, then pretend we aren't using GCC. |
| 12843 | ac_prog=ld |
| 12844 | ;; |
| 12845 | *) |
| 12846 | # If it is relative, then search for the first ld in PATH. |
| 12847 | with_gnu_ld=unknown |
| 12848 | ;; |
| 12849 | esac |
| 12850 | elif test "$with_gnu_ld" = yes; then |
| 12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 12852 | $as_echo_n "checking for GNU ld... " >&6; } |
| 12853 | else |
| 12854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 12855 | $as_echo_n "checking for non-GNU ld... " >&6; } |
| 12856 | fi |
| 12857 | if ${lt_cv_path_LD+:} false; then : |
| 12858 | $as_echo_n "(cached) " >&6 |
| 12859 | else |
| 12860 | if test -z "$LD"; then |
| 12861 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 12862 | for ac_dir in $PATH; do |
| 12863 | IFS="$lt_save_ifs" |
| 12864 | test -z "$ac_dir" && ac_dir=. |
| 12865 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 12866 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 12867 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 12868 | # but apparently some variants of GNU ld only accept -v. |
| 12869 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 12870 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 12871 | *GNU* | *'with BFD'*) |
| 12872 | test "$with_gnu_ld" != no && break |
| 12873 | ;; |
| 12874 | *) |
| 12875 | test "$with_gnu_ld" != yes && break |
| 12876 | ;; |
| 12877 | esac |
| 12878 | fi |
| 12879 | done |
| 12880 | IFS="$lt_save_ifs" |
| 12881 | else |
| 12882 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 12883 | fi |
| 12884 | fi |
| 12885 | |
| 12886 | LD="$lt_cv_path_LD" |
| 12887 | if test -n "$LD"; then |
| 12888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 12889 | $as_echo "$LD" >&6; } |
| 12890 | else |
| 12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12892 | $as_echo "no" >&6; } |
| 12893 | fi |
| 12894 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 12895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 12896 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 12897 | if ${lt_cv_prog_gnu_ld+:} false; then : |
| 12898 | $as_echo_n "(cached) " >&6 |
| 12899 | else |
| 12900 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 12901 | case `$LD -v 2>&1 </dev/null` in |
| 12902 | *GNU* | *'with BFD'*) |
| 12903 | lt_cv_prog_gnu_ld=yes |
| 12904 | ;; |
| 12905 | *) |
| 12906 | lt_cv_prog_gnu_ld=no |
| 12907 | ;; |
| 12908 | esac |
| 12909 | fi |
| 12910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 12911 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
| 12912 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 12913 | |
| 12914 | |
| 12915 | |
| 12916 | |
| 12917 | |
| 12918 | |
| 12919 | |
| 12920 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 12921 | # archiving commands below assume that GNU ld is being used. |
| 12922 | if test "$with_gnu_ld" = yes; then |
| 12923 | archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12924 | 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' |
| 12925 | |
| 12926 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12927 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12928 | |
| 12929 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 12930 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 12931 | # investigate it a little bit more. (MM) |
| 12932 | wlarc='${wl}' |
| 12933 | |
| 12934 | # ancient GNU ld didn't support --whole-archive et. al. |
| 12935 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 12936 | $GREP 'no-whole-archive' > /dev/null; then |
| 12937 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 12938 | else |
| 12939 | whole_archive_flag_spec_CXX= |
| 12940 | fi |
| 12941 | else |
| 12942 | with_gnu_ld=no |
| 12943 | wlarc= |
| 12944 | |
| 12945 | # A generic and very simple default shared library creation |
| 12946 | # command for GNU C++ for the case where it uses the native |
| 12947 | # linker, instead of GNU ld. If possible, this setting should |
| 12948 | # overridden to take advantage of the native linker features on |
| 12949 | # the platform it is being used on. |
| 12950 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12951 | fi |
| 12952 | |
| 12953 | # Commands to make compiler produce verbose output that lists |
| 12954 | # what "hidden" libraries, object files and flags are used when |
| 12955 | # linking a shared library. |
| 12956 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 12957 | |
| 12958 | else |
| 12959 | GXX=no |
| 12960 | with_gnu_ld=no |
| 12961 | wlarc= |
| 12962 | fi |
| 12963 | |
| 12964 | # PORTME: fill in a description of your system's C++ link characteristics |
| 12965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 12966 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 12967 | ld_shlibs_CXX=yes |
| 12968 | case $host_os in |
| 12969 | aix3*) |
| 12970 | # FIXME: insert proper C++ library support |
| 12971 | ld_shlibs_CXX=no |
| 12972 | ;; |
| 12973 | aix[4-9]*) |
| 12974 | if test "$host_cpu" = ia64; then |
| 12975 | # On IA64, the linker does run time linking by default, so we don't |
| 12976 | # have to do anything special. |
| 12977 | aix_use_runtimelinking=no |
| 12978 | exp_sym_flag='-Bexport' |
| 12979 | no_entry_flag="" |
| 12980 | else |
| 12981 | aix_use_runtimelinking=no |
| 12982 | |
| 12983 | # Test if we are trying to use run time linking or normal |
| 12984 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 12985 | # need to do runtime linking. |
| 12986 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 12987 | for ld_flag in $LDFLAGS; do |
| 12988 | case $ld_flag in |
| 12989 | *-brtl*) |
| 12990 | aix_use_runtimelinking=yes |
| 12991 | break |
| 12992 | ;; |
| 12993 | esac |
| 12994 | done |
| 12995 | ;; |
| 12996 | esac |
| 12997 | |
| 12998 | exp_sym_flag='-bexport' |
| 12999 | no_entry_flag='-bnoentry' |
| 13000 | fi |
| 13001 | |
| 13002 | # When large executables or shared objects are built, AIX ld can |
| 13003 | # have problems creating the table of contents. If linking a library |
| 13004 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 13005 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 13006 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 13007 | |
| 13008 | archive_cmds_CXX='' |
| 13009 | hardcode_direct_CXX=yes |
| 13010 | hardcode_direct_absolute_CXX=yes |
| 13011 | hardcode_libdir_separator_CXX=':' |
| 13012 | link_all_deplibs_CXX=yes |
| 13013 | file_list_spec_CXX='${wl}-f,' |
| 13014 | |
| 13015 | if test "$GXX" = yes; then |
| 13016 | case $host_os in aix4.[012]|aix4.[012].*) |
| 13017 | # We only want to do this on AIX 4.2 and lower, the check |
| 13018 | # below for broken collect2 doesn't work under 4.3+ |
| 13019 | collect2name=`${CC} -print-prog-name=collect2` |
| 13020 | if test -f "$collect2name" && |
| 13021 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 13022 | then |
| 13023 | # We have reworked collect2 |
| 13024 | : |
| 13025 | else |
| 13026 | # We have old collect2 |
| 13027 | hardcode_direct_CXX=unsupported |
| 13028 | # It fails to find uninstalled libraries when the uninstalled |
| 13029 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 13030 | # to unsupported forces relinking |
| 13031 | hardcode_minus_L_CXX=yes |
| 13032 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 13033 | hardcode_libdir_separator_CXX= |
| 13034 | fi |
| 13035 | esac |
| 13036 | shared_flag='-shared' |
| 13037 | if test "$aix_use_runtimelinking" = yes; then |
| 13038 | shared_flag="$shared_flag "'${wl}-G' |
| 13039 | fi |
| 13040 | else |
| 13041 | # not using gcc |
| 13042 | if test "$host_cpu" = ia64; then |
| 13043 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 13044 | # chokes on -Wl,-G. The following line is correct: |
| 13045 | shared_flag='-G' |
| 13046 | else |
| 13047 | if test "$aix_use_runtimelinking" = yes; then |
| 13048 | shared_flag='${wl}-G' |
| 13049 | else |
| 13050 | shared_flag='${wl}-bM:SRE' |
| 13051 | fi |
| 13052 | fi |
| 13053 | fi |
| 13054 | |
| 13055 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 13056 | # It seems that -bexpall does not export symbols beginning with |
| 13057 | # underscore (_), so it is better to generate a list of symbols to |
| 13058 | # export. |
| 13059 | always_export_symbols_CXX=yes |
| 13060 | if test "$aix_use_runtimelinking" = yes; then |
| 13061 | # Warning - without using the other runtime loading flags (-brtl), |
| 13062 | # -berok will link without error, but may produce a broken library. |
| 13063 | allow_undefined_flag_CXX='-berok' |
| 13064 | # Determine the default libpath from the value encoded in an empty |
| 13065 | # executable. |
| 13066 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 13067 | aix_libpath=$lt_cv_aix_libpath |
| 13068 | else |
| 13069 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 13070 | $as_echo_n "(cached) " >&6 |
| 13071 | else |
| 13072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13073 | /* end confdefs.h. */ |
| 13074 | |
| 13075 | int |
| 13076 | main () |
| 13077 | { |
| 13078 | |
| 13079 | ; |
| 13080 | return 0; |
| 13081 | } |
| 13082 | _ACEOF |
| 13083 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 13084 | |
| 13085 | lt_aix_libpath_sed=' |
| 13086 | /Import File Strings/,/^$/ { |
| 13087 | /^0/ { |
| 13088 | s/^0 *\([^ ]*\) *$/\1/ |
| 13089 | p |
| 13090 | } |
| 13091 | }' |
| 13092 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13093 | # Check for a 64-bit object if we didn't find anything. |
| 13094 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13095 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13096 | fi |
| 13097 | fi |
| 13098 | rm -f core conftest.err conftest.$ac_objext \ |
| 13099 | conftest$ac_exeext conftest.$ac_ext |
| 13100 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13101 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 13102 | fi |
| 13103 | |
| 13104 | fi |
| 13105 | |
| 13106 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 13107 | fi |
| 13108 | |
| 13109 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13110 | |
| 13111 | 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" |
| 13112 | else |
| 13113 | if test "$host_cpu" = ia64; then |
| 13114 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 13115 | allow_undefined_flag_CXX="-z nodefs" |
| 13116 | 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" |
| 13117 | else |
| 13118 | # Determine the default libpath from the value encoded in an |
| 13119 | # empty executable. |
| 13120 | if test "${lt_cv_aix_libpath+set}" = set; then |
| 13121 | aix_libpath=$lt_cv_aix_libpath |
| 13122 | else |
| 13123 | if ${lt_cv_aix_libpath__CXX+:} false; then : |
| 13124 | $as_echo_n "(cached) " >&6 |
| 13125 | else |
| 13126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13127 | /* end confdefs.h. */ |
| 13128 | |
| 13129 | int |
| 13130 | main () |
| 13131 | { |
| 13132 | |
| 13133 | ; |
| 13134 | return 0; |
| 13135 | } |
| 13136 | _ACEOF |
| 13137 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 13138 | |
| 13139 | lt_aix_libpath_sed=' |
| 13140 | /Import File Strings/,/^$/ { |
| 13141 | /^0/ { |
| 13142 | s/^0 *\([^ ]*\) *$/\1/ |
| 13143 | p |
| 13144 | } |
| 13145 | }' |
| 13146 | lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13147 | # Check for a 64-bit object if we didn't find anything. |
| 13148 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13149 | lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 13150 | fi |
| 13151 | fi |
| 13152 | rm -f core conftest.err conftest.$ac_objext \ |
| 13153 | conftest$ac_exeext conftest.$ac_ext |
| 13154 | if test -z "$lt_cv_aix_libpath__CXX"; then |
| 13155 | lt_cv_aix_libpath__CXX="/usr/lib:/lib" |
| 13156 | fi |
| 13157 | |
| 13158 | fi |
| 13159 | |
| 13160 | aix_libpath=$lt_cv_aix_libpath__CXX |
| 13161 | fi |
| 13162 | |
| 13163 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 13164 | # Warning - without using the other run time loading flags, |
| 13165 | # -berok will link without error, but may produce a broken library. |
| 13166 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 13167 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 13168 | if test "$with_gnu_ld" = yes; then |
| 13169 | # We only use this code for GNU lds that support --whole-archive. |
| 13170 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 13171 | else |
| 13172 | # Exported symbols can be pulled into shared objects from archives |
| 13173 | whole_archive_flag_spec_CXX='$convenience' |
| 13174 | fi |
| 13175 | archive_cmds_need_lc_CXX=yes |
| 13176 | # This is similar to how AIX traditionally builds its shared |
| 13177 | # libraries. |
| 13178 | 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' |
| 13179 | fi |
| 13180 | fi |
| 13181 | ;; |
| 13182 | |
| 13183 | beos*) |
| 13184 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 13185 | allow_undefined_flag_CXX=unsupported |
| 13186 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 13187 | # support --undefined. This deserves some investigation. FIXME |
| 13188 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13189 | else |
| 13190 | ld_shlibs_CXX=no |
| 13191 | fi |
| 13192 | ;; |
| 13193 | |
| 13194 | chorus*) |
| 13195 | case $cc_basename in |
| 13196 | *) |
| 13197 | # FIXME: insert proper C++ library support |
| 13198 | ld_shlibs_CXX=no |
| 13199 | ;; |
| 13200 | esac |
| 13201 | ;; |
| 13202 | |
| 13203 | cygwin* | mingw* | pw32* | cegcc*) |
| 13204 | case $GXX,$cc_basename in |
| 13205 | ,cl* | no,cl*) |
| 13206 | # Native MSVC |
| 13207 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 13208 | # no search path for DLLs. |
| 13209 | hardcode_libdir_flag_spec_CXX=' ' |
| 13210 | allow_undefined_flag_CXX=unsupported |
| 13211 | always_export_symbols_CXX=yes |
| 13212 | file_list_spec_CXX='@' |
| 13213 | # Tell ltmain to make .lib files, not .a files. |
| 13214 | libext=lib |
| 13215 | # Tell ltmain to make .dll files, not .so files. |
| 13216 | shrext_cmds=".dll" |
| 13217 | # FIXME: Setting linknames here is a bad hack. |
| 13218 | archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' |
| 13219 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13220 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; |
| 13221 | else |
| 13222 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; |
| 13223 | fi~ |
| 13224 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 13225 | linknames=' |
| 13226 | # The linker will not automatically build a static lib if we build a DLL. |
| 13227 | # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' |
| 13228 | enable_shared_with_static_runtimes_CXX=yes |
| 13229 | # Don't use ranlib |
| 13230 | old_postinstall_cmds_CXX='chmod 644 $oldlib' |
| 13231 | postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ |
| 13232 | lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 13233 | case $lt_outputfile in |
| 13234 | *.exe|*.EXE) ;; |
| 13235 | *) |
| 13236 | lt_outputfile="$lt_outputfile.exe" |
| 13237 | lt_tool_outputfile="$lt_tool_outputfile.exe" |
| 13238 | ;; |
| 13239 | esac~ |
| 13240 | func_to_tool_file "$lt_outputfile"~ |
| 13241 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then |
| 13242 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 13243 | $RM "$lt_outputfile.manifest"; |
| 13244 | fi' |
| 13245 | ;; |
| 13246 | *) |
| 13247 | # g++ |
| 13248 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 13249 | # as there is no search path for DLLs. |
| 13250 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 13251 | export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' |
| 13252 | allow_undefined_flag_CXX=unsupported |
| 13253 | always_export_symbols_CXX=no |
| 13254 | enable_shared_with_static_runtimes_CXX=yes |
| 13255 | |
| 13256 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 13257 | 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' |
| 13258 | # If the export-symbols file already is a .def file (1st line |
| 13259 | # is EXPORTS), use it as is; otherwise, prepend... |
| 13260 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 13261 | cp $export_symbols $output_objdir/$soname.def; |
| 13262 | else |
| 13263 | echo EXPORTS > $output_objdir/$soname.def; |
| 13264 | cat $export_symbols >> $output_objdir/$soname.def; |
| 13265 | fi~ |
| 13266 | $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' |
| 13267 | else |
| 13268 | ld_shlibs_CXX=no |
| 13269 | fi |
| 13270 | ;; |
| 13271 | esac |
| 13272 | ;; |
| 13273 | darwin* | rhapsody*) |
| 13274 | |
| 13275 | |
| 13276 | archive_cmds_need_lc_CXX=no |
| 13277 | hardcode_direct_CXX=no |
| 13278 | hardcode_automatic_CXX=yes |
| 13279 | hardcode_shlibpath_var_CXX=unsupported |
| 13280 | if test "$lt_cv_ld_force_load" = "yes"; then |
| 13281 | 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\"`' |
| 13282 | |
| 13283 | else |
| 13284 | whole_archive_flag_spec_CXX='' |
| 13285 | fi |
| 13286 | link_all_deplibs_CXX=yes |
| 13287 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 13288 | case $cc_basename in |
| 13289 | ifort*) _lt_dar_can_shared=yes ;; |
| 13290 | *) _lt_dar_can_shared=$GCC ;; |
| 13291 | esac |
| 13292 | if test "$_lt_dar_can_shared" = "yes"; then |
| 13293 | output_verbose_link_cmd=func_echo_all |
| 13294 | 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}" |
| 13295 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 13296 | 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}" |
| 13297 | 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}" |
| 13298 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 13299 | 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}" |
| 13300 | 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}" |
| 13301 | fi |
| 13302 | |
| 13303 | else |
| 13304 | ld_shlibs_CXX=no |
| 13305 | fi |
| 13306 | |
| 13307 | ;; |
| 13308 | |
| 13309 | dgux*) |
| 13310 | case $cc_basename in |
| 13311 | ec++*) |
| 13312 | # FIXME: insert proper C++ library support |
| 13313 | ld_shlibs_CXX=no |
| 13314 | ;; |
| 13315 | ghcx*) |
| 13316 | # Green Hills C++ Compiler |
| 13317 | # FIXME: insert proper C++ library support |
| 13318 | ld_shlibs_CXX=no |
| 13319 | ;; |
| 13320 | *) |
| 13321 | # FIXME: insert proper C++ library support |
| 13322 | ld_shlibs_CXX=no |
| 13323 | ;; |
| 13324 | esac |
| 13325 | ;; |
| 13326 | |
| 13327 | freebsd2.*) |
| 13328 | # C++ shared libraries reported to be fairly broken before |
| 13329 | # switch to ELF |
| 13330 | ld_shlibs_CXX=no |
| 13331 | ;; |
| 13332 | |
| 13333 | freebsd-elf*) |
| 13334 | archive_cmds_need_lc_CXX=no |
| 13335 | ;; |
| 13336 | |
| 13337 | freebsd* | dragonfly*) |
| 13338 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 13339 | # conventions |
| 13340 | ld_shlibs_CXX=yes |
| 13341 | ;; |
| 13342 | |
| 13343 | gnu*) |
| 13344 | ;; |
| 13345 | |
| 13346 | haiku*) |
| 13347 | archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13348 | link_all_deplibs_CXX=yes |
| 13349 | ;; |
| 13350 | |
| 13351 | hpux9*) |
| 13352 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 13353 | hardcode_libdir_separator_CXX=: |
| 13354 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13355 | hardcode_direct_CXX=yes |
| 13356 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13357 | # but as the default |
| 13358 | # location of the library. |
| 13359 | |
| 13360 | case $cc_basename in |
| 13361 | CC*) |
| 13362 | # FIXME: insert proper C++ library support |
| 13363 | ld_shlibs_CXX=no |
| 13364 | ;; |
| 13365 | aCC*) |
| 13366 | 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' |
| 13367 | # Commands to make compiler produce verbose output that lists |
| 13368 | # what "hidden" libraries, object files and flags are used when |
| 13369 | # linking a shared library. |
| 13370 | # |
| 13371 | # There doesn't appear to be a way to prevent this compiler from |
| 13372 | # explicitly linking system object files so we need to strip them |
| 13373 | # from the output so that they don't get included in the library |
| 13374 | # dependencies. |
| 13375 | 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"' |
| 13376 | ;; |
| 13377 | *) |
| 13378 | if test "$GXX" = yes; then |
| 13379 | 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' |
| 13380 | else |
| 13381 | # FIXME: insert proper C++ library support |
| 13382 | ld_shlibs_CXX=no |
| 13383 | fi |
| 13384 | ;; |
| 13385 | esac |
| 13386 | ;; |
| 13387 | |
| 13388 | hpux10*|hpux11*) |
| 13389 | if test $with_gnu_ld = no; then |
| 13390 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 13391 | hardcode_libdir_separator_CXX=: |
| 13392 | |
| 13393 | case $host_cpu in |
| 13394 | hppa*64*|ia64*) |
| 13395 | ;; |
| 13396 | *) |
| 13397 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13398 | ;; |
| 13399 | esac |
| 13400 | fi |
| 13401 | case $host_cpu in |
| 13402 | hppa*64*|ia64*) |
| 13403 | hardcode_direct_CXX=no |
| 13404 | hardcode_shlibpath_var_CXX=no |
| 13405 | ;; |
| 13406 | *) |
| 13407 | hardcode_direct_CXX=yes |
| 13408 | hardcode_direct_absolute_CXX=yes |
| 13409 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 13410 | # but as the default |
| 13411 | # location of the library. |
| 13412 | ;; |
| 13413 | esac |
| 13414 | |
| 13415 | case $cc_basename in |
| 13416 | CC*) |
| 13417 | # FIXME: insert proper C++ library support |
| 13418 | ld_shlibs_CXX=no |
| 13419 | ;; |
| 13420 | aCC*) |
| 13421 | case $host_cpu in |
| 13422 | hppa*64*) |
| 13423 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13424 | ;; |
| 13425 | ia64*) |
| 13426 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13427 | ;; |
| 13428 | *) |
| 13429 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13430 | ;; |
| 13431 | esac |
| 13432 | # Commands to make compiler produce verbose output that lists |
| 13433 | # what "hidden" libraries, object files and flags are used when |
| 13434 | # linking a shared library. |
| 13435 | # |
| 13436 | # There doesn't appear to be a way to prevent this compiler from |
| 13437 | # explicitly linking system object files so we need to strip them |
| 13438 | # from the output so that they don't get included in the library |
| 13439 | # dependencies. |
| 13440 | 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"' |
| 13441 | ;; |
| 13442 | *) |
| 13443 | if test "$GXX" = yes; then |
| 13444 | if test $with_gnu_ld = no; then |
| 13445 | case $host_cpu in |
| 13446 | hppa*64*) |
| 13447 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13448 | ;; |
| 13449 | ia64*) |
| 13450 | archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13451 | ;; |
| 13452 | *) |
| 13453 | 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' |
| 13454 | ;; |
| 13455 | esac |
| 13456 | fi |
| 13457 | else |
| 13458 | # FIXME: insert proper C++ library support |
| 13459 | ld_shlibs_CXX=no |
| 13460 | fi |
| 13461 | ;; |
| 13462 | esac |
| 13463 | ;; |
| 13464 | |
| 13465 | interix[3-9]*) |
| 13466 | hardcode_direct_CXX=no |
| 13467 | hardcode_shlibpath_var_CXX=no |
| 13468 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13469 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13470 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 13471 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 13472 | # default) and relocated if they conflict, which is a slow very memory |
| 13473 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 13474 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 13475 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 13476 | 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' |
| 13477 | 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' |
| 13478 | ;; |
| 13479 | irix5* | irix6*) |
| 13480 | case $cc_basename in |
| 13481 | CC*) |
| 13482 | # SGI C++ |
| 13483 | 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' |
| 13484 | |
| 13485 | # Archives containing C++ object files must be created using |
| 13486 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 13487 | # necessary to make sure instantiated templates are included |
| 13488 | # in the archive. |
| 13489 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 13490 | ;; |
| 13491 | *) |
| 13492 | if test "$GXX" = yes; then |
| 13493 | if test "$with_gnu_ld" = no; then |
| 13494 | 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' |
| 13495 | else |
| 13496 | 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' |
| 13497 | fi |
| 13498 | fi |
| 13499 | link_all_deplibs_CXX=yes |
| 13500 | ;; |
| 13501 | esac |
| 13502 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13503 | hardcode_libdir_separator_CXX=: |
| 13504 | inherit_rpath_CXX=yes |
| 13505 | ;; |
| 13506 | |
| 13507 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 13508 | case $cc_basename in |
| 13509 | KCC*) |
| 13510 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13511 | |
| 13512 | # KCC will only create a shared library if the output file |
| 13513 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13514 | # to its proper name (with version) after linking. |
| 13515 | 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' |
| 13516 | 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' |
| 13517 | # Commands to make compiler produce verbose output that lists |
| 13518 | # what "hidden" libraries, object files and flags are used when |
| 13519 | # linking a shared library. |
| 13520 | # |
| 13521 | # There doesn't appear to be a way to prevent this compiler from |
| 13522 | # explicitly linking system object files so we need to strip them |
| 13523 | # from the output so that they don't get included in the library |
| 13524 | # dependencies. |
| 13525 | 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"' |
| 13526 | |
| 13527 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13528 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13529 | |
| 13530 | # Archives containing C++ object files must be created using |
| 13531 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 13532 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 13533 | ;; |
| 13534 | icpc* | ecpc* ) |
| 13535 | # Intel C++ |
| 13536 | with_gnu_ld=yes |
| 13537 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 13538 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 13539 | # earlier do not add the objects themselves. |
| 13540 | case `$CC -V 2>&1` in |
| 13541 | *"Version 7."*) |
| 13542 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13543 | 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' |
| 13544 | ;; |
| 13545 | *) # Version 8.0 or newer |
| 13546 | tmp_idyn= |
| 13547 | case $host_cpu in |
| 13548 | ia64*) tmp_idyn=' -i_dynamic';; |
| 13549 | esac |
| 13550 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13551 | 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' |
| 13552 | ;; |
| 13553 | esac |
| 13554 | archive_cmds_need_lc_CXX=no |
| 13555 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13556 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13557 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 13558 | ;; |
| 13559 | pgCC* | pgcpp*) |
| 13560 | # Portland Group C++ compiler |
| 13561 | case `$CC -V` in |
| 13562 | *pgCC\ [1-5].* | *pgcpp\ [1-5].*) |
| 13563 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 13564 | rm -rf $tpldir~ |
| 13565 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 13566 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' |
| 13567 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 13568 | rm -rf $tpldir~ |
| 13569 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 13570 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ |
| 13571 | $RANLIB $oldlib' |
| 13572 | archive_cmds_CXX='tpldir=Template.dir~ |
| 13573 | rm -rf $tpldir~ |
| 13574 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13575 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13576 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 13577 | rm -rf $tpldir~ |
| 13578 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 13579 | $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' |
| 13580 | ;; |
| 13581 | *) # Version 6 and above use weak symbols |
| 13582 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 13583 | 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' |
| 13584 | ;; |
| 13585 | esac |
| 13586 | |
| 13587 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 13588 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13589 | 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' |
| 13590 | ;; |
| 13591 | cxx*) |
| 13592 | # Compaq C++ |
| 13593 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13594 | 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' |
| 13595 | |
| 13596 | runpath_var=LD_RUN_PATH |
| 13597 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13598 | hardcode_libdir_separator_CXX=: |
| 13599 | |
| 13600 | # Commands to make compiler produce verbose output that lists |
| 13601 | # what "hidden" libraries, object files and flags are used when |
| 13602 | # linking a shared library. |
| 13603 | # |
| 13604 | # There doesn't appear to be a way to prevent this compiler from |
| 13605 | # explicitly linking system object files so we need to strip them |
| 13606 | # from the output so that they don't get included in the library |
| 13607 | # dependencies. |
| 13608 | 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' |
| 13609 | ;; |
| 13610 | xl* | mpixl* | bgxl*) |
| 13611 | # IBM XL 8.0 on PPC, with GNU ld |
| 13612 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13613 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 13614 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 13615 | if test "x$supports_anon_versioning" = xyes; then |
| 13616 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 13617 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 13618 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 13619 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 13620 | fi |
| 13621 | ;; |
| 13622 | *) |
| 13623 | case `$CC -V 2>&1 | sed 5q` in |
| 13624 | *Sun\ C*) |
| 13625 | # Sun C++ 5.9 |
| 13626 | no_undefined_flag_CXX=' -zdefs' |
| 13627 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13628 | 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' |
| 13629 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13630 | 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' |
| 13631 | compiler_needs_object_CXX=yes |
| 13632 | |
| 13633 | # Not sure whether something based on |
| 13634 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 13635 | # would be better. |
| 13636 | output_verbose_link_cmd='func_echo_all' |
| 13637 | |
| 13638 | # Archives containing C++ object files must be created using |
| 13639 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13640 | # necessary to make sure instantiated templates are included |
| 13641 | # in the archive. |
| 13642 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13643 | ;; |
| 13644 | esac |
| 13645 | ;; |
| 13646 | esac |
| 13647 | ;; |
| 13648 | |
| 13649 | lynxos*) |
| 13650 | # FIXME: insert proper C++ library support |
| 13651 | ld_shlibs_CXX=no |
| 13652 | ;; |
| 13653 | |
| 13654 | m88k*) |
| 13655 | # FIXME: insert proper C++ library support |
| 13656 | ld_shlibs_CXX=no |
| 13657 | ;; |
| 13658 | |
| 13659 | mvs*) |
| 13660 | case $cc_basename in |
| 13661 | cxx*) |
| 13662 | # FIXME: insert proper C++ library support |
| 13663 | ld_shlibs_CXX=no |
| 13664 | ;; |
| 13665 | *) |
| 13666 | # FIXME: insert proper C++ library support |
| 13667 | ld_shlibs_CXX=no |
| 13668 | ;; |
| 13669 | esac |
| 13670 | ;; |
| 13671 | |
| 13672 | netbsd*) |
| 13673 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 13674 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 13675 | wlarc= |
| 13676 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13677 | hardcode_direct_CXX=yes |
| 13678 | hardcode_shlibpath_var_CXX=no |
| 13679 | fi |
| 13680 | # Workaround some broken pre-1.5 toolchains |
| 13681 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
| 13682 | ;; |
| 13683 | |
| 13684 | *nto* | *qnx*) |
| 13685 | ld_shlibs_CXX=yes |
| 13686 | ;; |
| 13687 | |
| 13688 | openbsd2*) |
| 13689 | # C++ shared libraries are fairly broken |
| 13690 | ld_shlibs_CXX=no |
| 13691 | ;; |
| 13692 | |
| 13693 | openbsd*) |
| 13694 | if test -f /usr/libexec/ld.so; then |
| 13695 | hardcode_direct_CXX=yes |
| 13696 | hardcode_shlibpath_var_CXX=no |
| 13697 | hardcode_direct_absolute_CXX=yes |
| 13698 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 13699 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13700 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 13701 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 13702 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 13703 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 13704 | fi |
| 13705 | output_verbose_link_cmd=func_echo_all |
| 13706 | else |
| 13707 | ld_shlibs_CXX=no |
| 13708 | fi |
| 13709 | ;; |
| 13710 | |
| 13711 | osf3* | osf4* | osf5*) |
| 13712 | case $cc_basename in |
| 13713 | KCC*) |
| 13714 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 13715 | |
| 13716 | # KCC will only create a shared library if the output file |
| 13717 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 13718 | # to its proper name (with version) after linking. |
| 13719 | 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' |
| 13720 | |
| 13721 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 13722 | hardcode_libdir_separator_CXX=: |
| 13723 | |
| 13724 | # Archives containing C++ object files must be created using |
| 13725 | # the KAI C++ compiler. |
| 13726 | case $host in |
| 13727 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 13728 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 13729 | esac |
| 13730 | ;; |
| 13731 | RCC*) |
| 13732 | # Rational C++ 2.4.1 |
| 13733 | # FIXME: insert proper C++ library support |
| 13734 | ld_shlibs_CXX=no |
| 13735 | ;; |
| 13736 | cxx*) |
| 13737 | case $host in |
| 13738 | osf3*) |
| 13739 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13740 | 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' |
| 13741 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13742 | ;; |
| 13743 | *) |
| 13744 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 13745 | 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' |
| 13746 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 13747 | echo "-hidden">> $lib.exp~ |
| 13748 | $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~ |
| 13749 | $RM $lib.exp' |
| 13750 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 13751 | ;; |
| 13752 | esac |
| 13753 | |
| 13754 | hardcode_libdir_separator_CXX=: |
| 13755 | |
| 13756 | # Commands to make compiler produce verbose output that lists |
| 13757 | # what "hidden" libraries, object files and flags are used when |
| 13758 | # linking a shared library. |
| 13759 | # |
| 13760 | # There doesn't appear to be a way to prevent this compiler from |
| 13761 | # explicitly linking system object files so we need to strip them |
| 13762 | # from the output so that they don't get included in the library |
| 13763 | # dependencies. |
| 13764 | 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"' |
| 13765 | ;; |
| 13766 | *) |
| 13767 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13768 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 13769 | case $host in |
| 13770 | osf3*) |
| 13771 | 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' |
| 13772 | ;; |
| 13773 | *) |
| 13774 | 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' |
| 13775 | ;; |
| 13776 | esac |
| 13777 | |
| 13778 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 13779 | hardcode_libdir_separator_CXX=: |
| 13780 | |
| 13781 | # Commands to make compiler produce verbose output that lists |
| 13782 | # what "hidden" libraries, object files and flags are used when |
| 13783 | # linking a shared library. |
| 13784 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13785 | |
| 13786 | else |
| 13787 | # FIXME: insert proper C++ library support |
| 13788 | ld_shlibs_CXX=no |
| 13789 | fi |
| 13790 | ;; |
| 13791 | esac |
| 13792 | ;; |
| 13793 | |
| 13794 | psos*) |
| 13795 | # FIXME: insert proper C++ library support |
| 13796 | ld_shlibs_CXX=no |
| 13797 | ;; |
| 13798 | |
| 13799 | sunos4*) |
| 13800 | case $cc_basename in |
| 13801 | CC*) |
| 13802 | # Sun C++ 4.x |
| 13803 | # FIXME: insert proper C++ library support |
| 13804 | ld_shlibs_CXX=no |
| 13805 | ;; |
| 13806 | lcc*) |
| 13807 | # Lucid |
| 13808 | # FIXME: insert proper C++ library support |
| 13809 | ld_shlibs_CXX=no |
| 13810 | ;; |
| 13811 | *) |
| 13812 | # FIXME: insert proper C++ library support |
| 13813 | ld_shlibs_CXX=no |
| 13814 | ;; |
| 13815 | esac |
| 13816 | ;; |
| 13817 | |
| 13818 | solaris*) |
| 13819 | case $cc_basename in |
| 13820 | CC* | sunCC*) |
| 13821 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13822 | archive_cmds_need_lc_CXX=yes |
| 13823 | no_undefined_flag_CXX=' -zdefs' |
| 13824 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 13825 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13826 | $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' |
| 13827 | |
| 13828 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 13829 | hardcode_shlibpath_var_CXX=no |
| 13830 | case $host_os in |
| 13831 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13832 | *) |
| 13833 | # The compiler driver will combine and reorder linker options, |
| 13834 | # but understands `-z linker_flag'. |
| 13835 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 13836 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 13837 | ;; |
| 13838 | esac |
| 13839 | link_all_deplibs_CXX=yes |
| 13840 | |
| 13841 | output_verbose_link_cmd='func_echo_all' |
| 13842 | |
| 13843 | # Archives containing C++ object files must be created using |
| 13844 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 13845 | # necessary to make sure instantiated templates are included |
| 13846 | # in the archive. |
| 13847 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 13848 | ;; |
| 13849 | gcx*) |
| 13850 | # Green Hills C++ Compiler |
| 13851 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13852 | |
| 13853 | # The C++ compiler must be used to create the archive. |
| 13854 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 13855 | ;; |
| 13856 | *) |
| 13857 | # GNU C++ compiler with Solaris linker |
| 13858 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 13859 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 13860 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 13861 | archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13862 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13863 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13864 | |
| 13865 | # Commands to make compiler produce verbose output that lists |
| 13866 | # what "hidden" libraries, object files and flags are used when |
| 13867 | # linking a shared library. |
| 13868 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13869 | else |
| 13870 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 13871 | # platform. |
| 13872 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 13873 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 13874 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 13875 | |
| 13876 | # Commands to make compiler produce verbose output that lists |
| 13877 | # what "hidden" libraries, object files and flags are used when |
| 13878 | # linking a shared library. |
| 13879 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' |
| 13880 | fi |
| 13881 | |
| 13882 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 13883 | case $host_os in |
| 13884 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 13885 | *) |
| 13886 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 13887 | ;; |
| 13888 | esac |
| 13889 | fi |
| 13890 | ;; |
| 13891 | esac |
| 13892 | ;; |
| 13893 | |
| 13894 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 13895 | no_undefined_flag_CXX='${wl}-z,text' |
| 13896 | archive_cmds_need_lc_CXX=no |
| 13897 | hardcode_shlibpath_var_CXX=no |
| 13898 | runpath_var='LD_RUN_PATH' |
| 13899 | |
| 13900 | case $cc_basename in |
| 13901 | CC*) |
| 13902 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13903 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13904 | ;; |
| 13905 | *) |
| 13906 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13907 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13908 | ;; |
| 13909 | esac |
| 13910 | ;; |
| 13911 | |
| 13912 | sysv5* | sco3.2v5* | sco5v6*) |
| 13913 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 13914 | # link with -lc, and that would cause any symbols used from libc to |
| 13915 | # always be unresolved, which means just about no library would |
| 13916 | # ever link correctly. If we're not using GNU ld we use -z text |
| 13917 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 13918 | # as -z defs. |
| 13919 | no_undefined_flag_CXX='${wl}-z,text' |
| 13920 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 13921 | archive_cmds_need_lc_CXX=no |
| 13922 | hardcode_shlibpath_var_CXX=no |
| 13923 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 13924 | hardcode_libdir_separator_CXX=':' |
| 13925 | link_all_deplibs_CXX=yes |
| 13926 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 13927 | runpath_var='LD_RUN_PATH' |
| 13928 | |
| 13929 | case $cc_basename in |
| 13930 | CC*) |
| 13931 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13932 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13933 | old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ |
| 13934 | '"$old_archive_cmds_CXX" |
| 13935 | reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ |
| 13936 | '"$reload_cmds_CXX" |
| 13937 | ;; |
| 13938 | *) |
| 13939 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13940 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 13941 | ;; |
| 13942 | esac |
| 13943 | ;; |
| 13944 | |
| 13945 | tandem*) |
| 13946 | case $cc_basename in |
| 13947 | NCC*) |
| 13948 | # NonStop-UX NCC 3.20 |
| 13949 | # FIXME: insert proper C++ library support |
| 13950 | ld_shlibs_CXX=no |
| 13951 | ;; |
| 13952 | *) |
| 13953 | # FIXME: insert proper C++ library support |
| 13954 | ld_shlibs_CXX=no |
| 13955 | ;; |
| 13956 | esac |
| 13957 | ;; |
| 13958 | |
| 13959 | vxworks*) |
| 13960 | # FIXME: insert proper C++ library support |
| 13961 | ld_shlibs_CXX=no |
| 13962 | ;; |
| 13963 | |
| 13964 | *) |
| 13965 | # FIXME: insert proper C++ library support |
| 13966 | ld_shlibs_CXX=no |
| 13967 | ;; |
| 13968 | esac |
| 13969 | |
| 13970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 13971 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 13972 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13973 | |
| 13974 | GCC_CXX="$GXX" |
| 13975 | LD_CXX="$LD" |
| 13976 | |
| 13977 | ## CAVEAT EMPTOR: |
| 13978 | ## There is no encapsulation within the following macros, do not change |
| 13979 | ## the running order or otherwise move them around unless you know exactly |
| 13980 | ## what you are doing... |
| 13981 | # Dependencies to place before and after the object being linked: |
| 13982 | predep_objects_CXX= |
| 13983 | postdep_objects_CXX= |
| 13984 | predeps_CXX= |
| 13985 | postdeps_CXX= |
| 13986 | compiler_lib_search_path_CXX= |
| 13987 | |
| 13988 | cat > conftest.$ac_ext <<_LT_EOF |
| 13989 | class Foo |
| 13990 | { |
| 13991 | public: |
| 13992 | Foo (void) { a = 0; } |
| 13993 | private: |
| 13994 | int a; |
| 13995 | }; |
| 13996 | _LT_EOF |
| 13997 | |
| 13998 | |
| 13999 | _lt_libdeps_save_CFLAGS=$CFLAGS |
| 14000 | case "$CC $CFLAGS " in #( |
| 14001 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; |
| 14002 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; |
| 14003 | *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; |
| 14004 | esac |
| 14005 | |
| 14006 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 14007 | (eval $ac_compile) 2>&5 |
| 14008 | ac_status=$? |
| 14009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14010 | test $ac_status = 0; }; then |
| 14011 | # Parse the compiler output and extract the necessary |
| 14012 | # objects, libraries and library flags. |
| 14013 | |
| 14014 | # Sentinel used to keep track of whether or not we are before |
| 14015 | # the conftest object file. |
| 14016 | pre_test_object_deps_done=no |
| 14017 | |
| 14018 | for p in `eval "$output_verbose_link_cmd"`; do |
| 14019 | case ${prev}${p} in |
| 14020 | |
| 14021 | -L* | -R* | -l*) |
| 14022 | # Some compilers place space between "-{L,R}" and the path. |
| 14023 | # Remove the space. |
| 14024 | if test $p = "-L" || |
| 14025 | test $p = "-R"; then |
| 14026 | prev=$p |
| 14027 | continue |
| 14028 | fi |
| 14029 | |
| 14030 | # Expand the sysroot to ease extracting the directories later. |
| 14031 | if test -z "$prev"; then |
| 14032 | case $p in |
| 14033 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; |
| 14034 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; |
| 14035 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; |
| 14036 | esac |
| 14037 | fi |
| 14038 | case $p in |
| 14039 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; |
| 14040 | esac |
| 14041 | if test "$pre_test_object_deps_done" = no; then |
| 14042 | case ${prev} in |
| 14043 | -L | -R) |
| 14044 | # Internal compiler library paths should come after those |
| 14045 | # provided the user. The postdeps already come after the |
| 14046 | # user supplied libs so there is no need to process them. |
| 14047 | if test -z "$compiler_lib_search_path_CXX"; then |
| 14048 | compiler_lib_search_path_CXX="${prev}${p}" |
| 14049 | else |
| 14050 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 14051 | fi |
| 14052 | ;; |
| 14053 | # The "-l" case would never come before the object being |
| 14054 | # linked, so don't bother handling this case. |
| 14055 | esac |
| 14056 | else |
| 14057 | if test -z "$postdeps_CXX"; then |
| 14058 | postdeps_CXX="${prev}${p}" |
| 14059 | else |
| 14060 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 14061 | fi |
| 14062 | fi |
| 14063 | prev= |
| 14064 | ;; |
| 14065 | |
| 14066 | *.lto.$objext) ;; # Ignore GCC LTO objects |
| 14067 | *.$objext) |
| 14068 | # This assumes that the test object file only shows up |
| 14069 | # once in the compiler output. |
| 14070 | if test "$p" = "conftest.$objext"; then |
| 14071 | pre_test_object_deps_done=yes |
| 14072 | continue |
| 14073 | fi |
| 14074 | |
| 14075 | if test "$pre_test_object_deps_done" = no; then |
| 14076 | if test -z "$predep_objects_CXX"; then |
| 14077 | predep_objects_CXX="$p" |
| 14078 | else |
| 14079 | predep_objects_CXX="$predep_objects_CXX $p" |
| 14080 | fi |
| 14081 | else |
| 14082 | if test -z "$postdep_objects_CXX"; then |
| 14083 | postdep_objects_CXX="$p" |
| 14084 | else |
| 14085 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 14086 | fi |
| 14087 | fi |
| 14088 | ;; |
| 14089 | |
| 14090 | *) ;; # Ignore the rest. |
| 14091 | |
| 14092 | esac |
| 14093 | done |
| 14094 | |
| 14095 | # Clean up. |
| 14096 | rm -f a.out a.exe |
| 14097 | else |
| 14098 | echo "libtool.m4: error: problem compiling CXX test program" |
| 14099 | fi |
| 14100 | |
| 14101 | $RM -f confest.$objext |
| 14102 | CFLAGS=$_lt_libdeps_save_CFLAGS |
| 14103 | |
| 14104 | # PORTME: override above test on systems where it is broken |
| 14105 | case $host_os in |
| 14106 | interix[3-9]*) |
| 14107 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 14108 | # hack all around it, let's just trust "g++" to DTRT. |
| 14109 | predep_objects_CXX= |
| 14110 | postdep_objects_CXX= |
| 14111 | postdeps_CXX= |
| 14112 | ;; |
| 14113 | |
| 14114 | linux*) |
| 14115 | case `$CC -V 2>&1 | sed 5q` in |
| 14116 | *Sun\ C*) |
| 14117 | # Sun C++ 5.9 |
| 14118 | |
| 14119 | # The more standards-conforming stlport4 library is |
| 14120 | # incompatible with the Cstd library. Avoid specifying |
| 14121 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 14122 | # -library=stlport4 depends on it. |
| 14123 | case " $CXX $CXXFLAGS " in |
| 14124 | *" -library=stlport4 "*) |
| 14125 | solaris_use_stlport4=yes |
| 14126 | ;; |
| 14127 | esac |
| 14128 | |
| 14129 | if test "$solaris_use_stlport4" != yes; then |
| 14130 | postdeps_CXX='-library=Cstd -library=Crun' |
| 14131 | fi |
| 14132 | ;; |
| 14133 | esac |
| 14134 | ;; |
| 14135 | |
| 14136 | solaris*) |
| 14137 | case $cc_basename in |
| 14138 | CC* | sunCC*) |
| 14139 | # The more standards-conforming stlport4 library is |
| 14140 | # incompatible with the Cstd library. Avoid specifying |
| 14141 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 14142 | # -library=stlport4 depends on it. |
| 14143 | case " $CXX $CXXFLAGS " in |
| 14144 | *" -library=stlport4 "*) |
| 14145 | solaris_use_stlport4=yes |
| 14146 | ;; |
| 14147 | esac |
| 14148 | |
| 14149 | # Adding this requires a known-good setup of shared libraries for |
| 14150 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 14151 | # archive will be linked into the output, leading to subtle bugs. |
| 14152 | if test "$solaris_use_stlport4" != yes; then |
| 14153 | postdeps_CXX='-library=Cstd -library=Crun' |
| 14154 | fi |
| 14155 | ;; |
| 14156 | esac |
| 14157 | ;; |
| 14158 | esac |
| 14159 | |
| 14160 | |
| 14161 | case " $postdeps_CXX " in |
| 14162 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 14163 | esac |
| 14164 | compiler_lib_search_dirs_CXX= |
| 14165 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 14166 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 14167 | fi |
| 14168 | |
| 14169 | |
| 14170 | |
| 14171 | |
| 14172 | |
| 14173 | |
| 14174 | |
| 14175 | |
| 14176 | |
| 14177 | |
| 14178 | |
| 14179 | |
| 14180 | |
| 14181 | |
| 14182 | |
| 14183 | |
| 14184 | |
| 14185 | |
| 14186 | |
| 14187 | |
| 14188 | |
| 14189 | |
| 14190 | |
| 14191 | |
| 14192 | |
| 14193 | |
| 14194 | |
| 14195 | |
| 14196 | |
| 14197 | |
| 14198 | |
| 14199 | lt_prog_compiler_wl_CXX= |
| 14200 | lt_prog_compiler_pic_CXX= |
| 14201 | lt_prog_compiler_static_CXX= |
| 14202 | |
| 14203 | |
| 14204 | # C++ specific cases for pic, static, wl, etc. |
| 14205 | if test "$GXX" = yes; then |
| 14206 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14207 | lt_prog_compiler_static_CXX='-static' |
| 14208 | |
| 14209 | case $host_os in |
| 14210 | aix*) |
| 14211 | # All AIX code is PIC. |
| 14212 | if test "$host_cpu" = ia64; then |
| 14213 | # AIX 5 now supports IA64 processor |
| 14214 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14215 | fi |
| 14216 | ;; |
| 14217 | |
| 14218 | amigaos*) |
| 14219 | case $host_cpu in |
| 14220 | powerpc) |
| 14221 | # see comment about AmigaOS4 .so support |
| 14222 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14223 | ;; |
| 14224 | m68k) |
| 14225 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 14226 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 14227 | # like `-m68040'. |
| 14228 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 14229 | ;; |
| 14230 | esac |
| 14231 | ;; |
| 14232 | |
| 14233 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14234 | # PIC is the default for these OSes. |
| 14235 | ;; |
| 14236 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 14237 | # This hack is so that the source file can tell whether it is being |
| 14238 | # built for inclusion in a dll (and should export symbols for example). |
| 14239 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 14240 | # (--disable-auto-import) libraries |
| 14241 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 14242 | ;; |
| 14243 | darwin* | rhapsody*) |
| 14244 | # PIC is the default on this platform |
| 14245 | # Common symbols not allowed in MH_DYLIB files |
| 14246 | lt_prog_compiler_pic_CXX='-fno-common' |
| 14247 | ;; |
| 14248 | *djgpp*) |
| 14249 | # DJGPP does not support shared libraries at all |
| 14250 | lt_prog_compiler_pic_CXX= |
| 14251 | ;; |
| 14252 | haiku*) |
| 14253 | # PIC is the default for Haiku. |
| 14254 | # The "-static" flag exists, but is broken. |
| 14255 | lt_prog_compiler_static_CXX= |
| 14256 | ;; |
| 14257 | interix[3-9]*) |
| 14258 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14259 | # Instead, we relocate shared libraries at runtime. |
| 14260 | ;; |
| 14261 | sysv4*MP*) |
| 14262 | if test -d /usr/nec; then |
| 14263 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 14264 | fi |
| 14265 | ;; |
| 14266 | hpux*) |
| 14267 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 14268 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 14269 | # sets the default TLS model and affects inlining. |
| 14270 | case $host_cpu in |
| 14271 | hppa*64*) |
| 14272 | ;; |
| 14273 | *) |
| 14274 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14275 | ;; |
| 14276 | esac |
| 14277 | ;; |
| 14278 | *qnx* | *nto*) |
| 14279 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14280 | # it will coredump. |
| 14281 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 14282 | ;; |
| 14283 | *) |
| 14284 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14285 | ;; |
| 14286 | esac |
| 14287 | else |
| 14288 | case $host_os in |
| 14289 | aix[4-9]*) |
| 14290 | # All AIX code is PIC. |
| 14291 | if test "$host_cpu" = ia64; then |
| 14292 | # AIX 5 now supports IA64 processor |
| 14293 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14294 | else |
| 14295 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 14296 | fi |
| 14297 | ;; |
| 14298 | chorus*) |
| 14299 | case $cc_basename in |
| 14300 | cxch68*) |
| 14301 | # Green Hills C++ Compiler |
| 14302 | # _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" |
| 14303 | ;; |
| 14304 | esac |
| 14305 | ;; |
| 14306 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
| 14307 | # This hack is so that the source file can tell whether it is being |
| 14308 | # built for inclusion in a dll (and should export symbols for example). |
| 14309 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 14310 | ;; |
| 14311 | dgux*) |
| 14312 | case $cc_basename in |
| 14313 | ec++*) |
| 14314 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14315 | ;; |
| 14316 | ghcx*) |
| 14317 | # Green Hills C++ Compiler |
| 14318 | lt_prog_compiler_pic_CXX='-pic' |
| 14319 | ;; |
| 14320 | *) |
| 14321 | ;; |
| 14322 | esac |
| 14323 | ;; |
| 14324 | freebsd* | dragonfly*) |
| 14325 | # FreeBSD uses GNU C++ |
| 14326 | ;; |
| 14327 | hpux9* | hpux10* | hpux11*) |
| 14328 | case $cc_basename in |
| 14329 | CC*) |
| 14330 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14331 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 14332 | if test "$host_cpu" != ia64; then |
| 14333 | lt_prog_compiler_pic_CXX='+Z' |
| 14334 | fi |
| 14335 | ;; |
| 14336 | aCC*) |
| 14337 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14338 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 14339 | case $host_cpu in |
| 14340 | hppa*64*|ia64*) |
| 14341 | # +Z the default |
| 14342 | ;; |
| 14343 | *) |
| 14344 | lt_prog_compiler_pic_CXX='+Z' |
| 14345 | ;; |
| 14346 | esac |
| 14347 | ;; |
| 14348 | *) |
| 14349 | ;; |
| 14350 | esac |
| 14351 | ;; |
| 14352 | interix*) |
| 14353 | # This is c89, which is MS Visual C++ (no shared libs) |
| 14354 | # Anyone wants to do a port? |
| 14355 | ;; |
| 14356 | irix5* | irix6* | nonstopux*) |
| 14357 | case $cc_basename in |
| 14358 | CC*) |
| 14359 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14360 | lt_prog_compiler_static_CXX='-non_shared' |
| 14361 | # CC pic flag -KPIC is the default. |
| 14362 | ;; |
| 14363 | *) |
| 14364 | ;; |
| 14365 | esac |
| 14366 | ;; |
| 14367 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 14368 | case $cc_basename in |
| 14369 | KCC*) |
| 14370 | # KAI C++ Compiler |
| 14371 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14372 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14373 | ;; |
| 14374 | ecpc* ) |
| 14375 | # old Intel C++ for x86_64 which still supported -KPIC. |
| 14376 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14377 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14378 | lt_prog_compiler_static_CXX='-static' |
| 14379 | ;; |
| 14380 | icpc* ) |
| 14381 | # Intel C++, used to be incompatible with GCC. |
| 14382 | # ICC 10 doesn't accept -KPIC any more. |
| 14383 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14384 | lt_prog_compiler_pic_CXX='-fPIC' |
| 14385 | lt_prog_compiler_static_CXX='-static' |
| 14386 | ;; |
| 14387 | pgCC* | pgcpp*) |
| 14388 | # Portland Group C++ compiler |
| 14389 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14390 | lt_prog_compiler_pic_CXX='-fpic' |
| 14391 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14392 | ;; |
| 14393 | cxx*) |
| 14394 | # Compaq C++ |
| 14395 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14396 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14397 | lt_prog_compiler_pic_CXX= |
| 14398 | lt_prog_compiler_static_CXX='-non_shared' |
| 14399 | ;; |
| 14400 | xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) |
| 14401 | # IBM XL 8.0, 9.0 on PPC and BlueGene |
| 14402 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14403 | lt_prog_compiler_pic_CXX='-qpic' |
| 14404 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 14405 | ;; |
| 14406 | *) |
| 14407 | case `$CC -V 2>&1 | sed 5q` in |
| 14408 | *Sun\ C*) |
| 14409 | # Sun C++ 5.9 |
| 14410 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14411 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14412 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14413 | ;; |
| 14414 | esac |
| 14415 | ;; |
| 14416 | esac |
| 14417 | ;; |
| 14418 | lynxos*) |
| 14419 | ;; |
| 14420 | m88k*) |
| 14421 | ;; |
| 14422 | mvs*) |
| 14423 | case $cc_basename in |
| 14424 | cxx*) |
| 14425 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 14426 | ;; |
| 14427 | *) |
| 14428 | ;; |
| 14429 | esac |
| 14430 | ;; |
| 14431 | netbsd*) |
| 14432 | ;; |
| 14433 | *qnx* | *nto*) |
| 14434 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14435 | # it will coredump. |
| 14436 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 14437 | ;; |
| 14438 | osf3* | osf4* | osf5*) |
| 14439 | case $cc_basename in |
| 14440 | KCC*) |
| 14441 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 14442 | ;; |
| 14443 | RCC*) |
| 14444 | # Rational C++ 2.4.1 |
| 14445 | lt_prog_compiler_pic_CXX='-pic' |
| 14446 | ;; |
| 14447 | cxx*) |
| 14448 | # Digital/Compaq C++ |
| 14449 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14450 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 14451 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 14452 | lt_prog_compiler_pic_CXX= |
| 14453 | lt_prog_compiler_static_CXX='-non_shared' |
| 14454 | ;; |
| 14455 | *) |
| 14456 | ;; |
| 14457 | esac |
| 14458 | ;; |
| 14459 | psos*) |
| 14460 | ;; |
| 14461 | solaris*) |
| 14462 | case $cc_basename in |
| 14463 | CC* | sunCC*) |
| 14464 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 14465 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14466 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14467 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 14468 | ;; |
| 14469 | gcx*) |
| 14470 | # Green Hills C++ Compiler |
| 14471 | lt_prog_compiler_pic_CXX='-PIC' |
| 14472 | ;; |
| 14473 | *) |
| 14474 | ;; |
| 14475 | esac |
| 14476 | ;; |
| 14477 | sunos4*) |
| 14478 | case $cc_basename in |
| 14479 | CC*) |
| 14480 | # Sun C++ 4.x |
| 14481 | lt_prog_compiler_pic_CXX='-pic' |
| 14482 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14483 | ;; |
| 14484 | lcc*) |
| 14485 | # Lucid |
| 14486 | lt_prog_compiler_pic_CXX='-pic' |
| 14487 | ;; |
| 14488 | *) |
| 14489 | ;; |
| 14490 | esac |
| 14491 | ;; |
| 14492 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14493 | case $cc_basename in |
| 14494 | CC*) |
| 14495 | lt_prog_compiler_wl_CXX='-Wl,' |
| 14496 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14497 | lt_prog_compiler_static_CXX='-Bstatic' |
| 14498 | ;; |
| 14499 | esac |
| 14500 | ;; |
| 14501 | tandem*) |
| 14502 | case $cc_basename in |
| 14503 | NCC*) |
| 14504 | # NonStop-UX NCC 3.20 |
| 14505 | lt_prog_compiler_pic_CXX='-KPIC' |
| 14506 | ;; |
| 14507 | *) |
| 14508 | ;; |
| 14509 | esac |
| 14510 | ;; |
| 14511 | vxworks*) |
| 14512 | ;; |
| 14513 | *) |
| 14514 | lt_prog_compiler_can_build_shared_CXX=no |
| 14515 | ;; |
| 14516 | esac |
| 14517 | fi |
| 14518 | |
| 14519 | case $host_os in |
| 14520 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 14521 | *djgpp*) |
| 14522 | lt_prog_compiler_pic_CXX= |
| 14523 | ;; |
| 14524 | *) |
| 14525 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 14526 | ;; |
| 14527 | esac |
| 14528 | |
| 14529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 14530 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
| 14531 | if ${lt_cv_prog_compiler_pic_CXX+:} false; then : |
| 14532 | $as_echo_n "(cached) " >&6 |
| 14533 | else |
| 14534 | lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX |
| 14535 | fi |
| 14536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 |
| 14537 | $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } |
| 14538 | lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX |
| 14539 | |
| 14540 | # |
| 14541 | # Check to make sure the PIC flag actually works. |
| 14542 | # |
| 14543 | if test -n "$lt_prog_compiler_pic_CXX"; then |
| 14544 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 14545 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 14546 | if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : |
| 14547 | $as_echo_n "(cached) " >&6 |
| 14548 | else |
| 14549 | lt_cv_prog_compiler_pic_works_CXX=no |
| 14550 | ac_outfile=conftest.$ac_objext |
| 14551 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14552 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 14553 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14554 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14555 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14556 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14557 | # The option is referenced via a variable to avoid confusing sed. |
| 14558 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14559 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14560 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14561 | -e 's:$: $lt_compiler_flag:'` |
| 14562 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14563 | (eval "$lt_compile" 2>conftest.err) |
| 14564 | ac_status=$? |
| 14565 | cat conftest.err >&5 |
| 14566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14567 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14568 | # The compiler can only warn and ignore the option if not recognized |
| 14569 | # So say no if there are warnings other than the usual output. |
| 14570 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 14571 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14572 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14573 | lt_cv_prog_compiler_pic_works_CXX=yes |
| 14574 | fi |
| 14575 | fi |
| 14576 | $RM conftest* |
| 14577 | |
| 14578 | fi |
| 14579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 14580 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
| 14581 | |
| 14582 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
| 14583 | case $lt_prog_compiler_pic_CXX in |
| 14584 | "" | " "*) ;; |
| 14585 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 14586 | esac |
| 14587 | else |
| 14588 | lt_prog_compiler_pic_CXX= |
| 14589 | lt_prog_compiler_can_build_shared_CXX=no |
| 14590 | fi |
| 14591 | |
| 14592 | fi |
| 14593 | |
| 14594 | |
| 14595 | |
| 14596 | |
| 14597 | |
| 14598 | # |
| 14599 | # Check to make sure the static flag actually works. |
| 14600 | # |
| 14601 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
| 14602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14603 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 14604 | if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : |
| 14605 | $as_echo_n "(cached) " >&6 |
| 14606 | else |
| 14607 | lt_cv_prog_compiler_static_works_CXX=no |
| 14608 | save_LDFLAGS="$LDFLAGS" |
| 14609 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14610 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14611 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14612 | # The linker can only warn and ignore the option if not recognized |
| 14613 | # So say no if there are warnings |
| 14614 | if test -s conftest.err; then |
| 14615 | # Append any errors to the config.log. |
| 14616 | cat conftest.err 1>&5 |
| 14617 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 14618 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14619 | if diff conftest.exp conftest.er2 >/dev/null; then |
| 14620 | lt_cv_prog_compiler_static_works_CXX=yes |
| 14621 | fi |
| 14622 | else |
| 14623 | lt_cv_prog_compiler_static_works_CXX=yes |
| 14624 | fi |
| 14625 | fi |
| 14626 | $RM -r conftest* |
| 14627 | LDFLAGS="$save_LDFLAGS" |
| 14628 | |
| 14629 | fi |
| 14630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 14631 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
| 14632 | |
| 14633 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
| 14634 | : |
| 14635 | else |
| 14636 | lt_prog_compiler_static_CXX= |
| 14637 | fi |
| 14638 | |
| 14639 | |
| 14640 | |
| 14641 | |
| 14642 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14643 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 14644 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 14645 | $as_echo_n "(cached) " >&6 |
| 14646 | else |
| 14647 | lt_cv_prog_compiler_c_o_CXX=no |
| 14648 | $RM -r conftest 2>/dev/null |
| 14649 | mkdir conftest |
| 14650 | cd conftest |
| 14651 | mkdir out |
| 14652 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14653 | |
| 14654 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14655 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14656 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14657 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14658 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14659 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14660 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14661 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14662 | -e 's:$: $lt_compiler_flag:'` |
| 14663 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14664 | (eval "$lt_compile" 2>out/conftest.err) |
| 14665 | ac_status=$? |
| 14666 | cat out/conftest.err >&5 |
| 14667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14668 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14669 | then |
| 14670 | # The compiler can only warn and ignore the option if not recognized |
| 14671 | # So say no if there are warnings |
| 14672 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 14673 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14674 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14675 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14676 | fi |
| 14677 | fi |
| 14678 | chmod u+w . 2>&5 |
| 14679 | $RM conftest* |
| 14680 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14681 | # template instantiation |
| 14682 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14683 | $RM out/* && rmdir out |
| 14684 | cd .. |
| 14685 | $RM -r conftest |
| 14686 | $RM conftest* |
| 14687 | |
| 14688 | fi |
| 14689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 14690 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14691 | |
| 14692 | |
| 14693 | |
| 14694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 14695 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 14696 | if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : |
| 14697 | $as_echo_n "(cached) " >&6 |
| 14698 | else |
| 14699 | lt_cv_prog_compiler_c_o_CXX=no |
| 14700 | $RM -r conftest 2>/dev/null |
| 14701 | mkdir conftest |
| 14702 | cd conftest |
| 14703 | mkdir out |
| 14704 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14705 | |
| 14706 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 14707 | # Insert the option either (1) after the last *FLAGS variable, or |
| 14708 | # (2) before a word containing "conftest.", or (3) at the end. |
| 14709 | # Note that $ac_compile itself does not contain backslashes and begins |
| 14710 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14711 | lt_compile=`echo "$ac_compile" | $SED \ |
| 14712 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14713 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14714 | -e 's:$: $lt_compiler_flag:'` |
| 14715 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14716 | (eval "$lt_compile" 2>out/conftest.err) |
| 14717 | ac_status=$? |
| 14718 | cat out/conftest.err >&5 |
| 14719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14720 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 14721 | then |
| 14722 | # The compiler can only warn and ignore the option if not recognized |
| 14723 | # So say no if there are warnings |
| 14724 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 14725 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 14726 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 14727 | lt_cv_prog_compiler_c_o_CXX=yes |
| 14728 | fi |
| 14729 | fi |
| 14730 | chmod u+w . 2>&5 |
| 14731 | $RM conftest* |
| 14732 | # SGI C++ compiler will create directory out/ii_files/ for |
| 14733 | # template instantiation |
| 14734 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 14735 | $RM out/* && rmdir out |
| 14736 | cd .. |
| 14737 | $RM -r conftest |
| 14738 | $RM conftest* |
| 14739 | |
| 14740 | fi |
| 14741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 14742 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 14743 | |
| 14744 | |
| 14745 | |
| 14746 | |
| 14747 | hard_links="nottested" |
| 14748 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 14749 | # do not overwrite the value of need_locks provided by the user |
| 14750 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 14751 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
| 14752 | hard_links=yes |
| 14753 | $RM conftest* |
| 14754 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14755 | touch conftest.a |
| 14756 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 14757 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 14758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 14759 | $as_echo "$hard_links" >&6; } |
| 14760 | if test "$hard_links" = no; then |
| 14761 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 14762 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
| 14763 | need_locks=warn |
| 14764 | fi |
| 14765 | else |
| 14766 | need_locks=no |
| 14767 | fi |
| 14768 | |
| 14769 | |
| 14770 | |
| 14771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 14772 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 14773 | |
| 14774 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14775 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 14776 | case $host_os in |
| 14777 | aix[4-9]*) |
| 14778 | # If we're using GNU nm, then we don't want the "-C" option. |
| 14779 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
| 14780 | # Also, AIX nm treats weak defined symbols like other global defined |
| 14781 | # symbols, whereas GNU nm marks them as "W". |
| 14782 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 14783 | 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' |
| 14784 | else |
| 14785 | 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' |
| 14786 | fi |
| 14787 | ;; |
| 14788 | pw32*) |
| 14789 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 14790 | ;; |
| 14791 | cygwin* | mingw* | cegcc*) |
| 14792 | case $cc_basename in |
| 14793 | cl*) |
| 14794 | exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 14795 | ;; |
| 14796 | *) |
| 14797 | 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' |
| 14798 | exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 14799 | ;; |
| 14800 | esac |
| 14801 | ;; |
| 14802 | *) |
| 14803 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 14804 | ;; |
| 14805 | esac |
| 14806 | |
| 14807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 14808 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 14809 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 14810 | |
| 14811 | with_gnu_ld_CXX=$with_gnu_ld |
| 14812 | |
| 14813 | |
| 14814 | |
| 14815 | |
| 14816 | |
| 14817 | |
| 14818 | # |
| 14819 | # Do we need to explicitly link libc? |
| 14820 | # |
| 14821 | case "x$archive_cmds_need_lc_CXX" in |
| 14822 | x|xyes) |
| 14823 | # Assume -lc should be added |
| 14824 | archive_cmds_need_lc_CXX=yes |
| 14825 | |
| 14826 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 14827 | case $archive_cmds_CXX in |
| 14828 | *'~'*) |
| 14829 | # FIXME: we may have to deal with multi-command sequences. |
| 14830 | ;; |
| 14831 | '$CC '*) |
| 14832 | # Test whether the compiler implicitly links with -lc since on some |
| 14833 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 14834 | # to ld, don't add -lc before -lgcc. |
| 14835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 14836 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 14837 | if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : |
| 14838 | $as_echo_n "(cached) " >&6 |
| 14839 | else |
| 14840 | $RM conftest* |
| 14841 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14842 | |
| 14843 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 14844 | (eval $ac_compile) 2>&5 |
| 14845 | ac_status=$? |
| 14846 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14847 | test $ac_status = 0; } 2>conftest.err; then |
| 14848 | soname=conftest |
| 14849 | lib=conftest |
| 14850 | libobjs=conftest.$ac_objext |
| 14851 | deplibs= |
| 14852 | wl=$lt_prog_compiler_wl_CXX |
| 14853 | pic_flag=$lt_prog_compiler_pic_CXX |
| 14854 | compiler_flags=-v |
| 14855 | linker_flags=-v |
| 14856 | verstring= |
| 14857 | output_objdir=. |
| 14858 | libname=conftest |
| 14859 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 14860 | allow_undefined_flag_CXX= |
| 14861 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 14862 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 14863 | ac_status=$? |
| 14864 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 14865 | test $ac_status = 0; } |
| 14866 | then |
| 14867 | lt_cv_archive_cmds_need_lc_CXX=no |
| 14868 | else |
| 14869 | lt_cv_archive_cmds_need_lc_CXX=yes |
| 14870 | fi |
| 14871 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 14872 | else |
| 14873 | cat conftest.err 1>&5 |
| 14874 | fi |
| 14875 | $RM conftest* |
| 14876 | |
| 14877 | fi |
| 14878 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 |
| 14879 | $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } |
| 14880 | archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX |
| 14881 | ;; |
| 14882 | esac |
| 14883 | fi |
| 14884 | ;; |
| 14885 | esac |
| 14886 | |
| 14887 | |
| 14888 | |
| 14889 | |
| 14890 | |
| 14891 | |
| 14892 | |
| 14893 | |
| 14894 | |
| 14895 | |
| 14896 | |
| 14897 | |
| 14898 | |
| 14899 | |
| 14900 | |
| 14901 | |
| 14902 | |
| 14903 | |
| 14904 | |
| 14905 | |
| 14906 | |
| 14907 | |
| 14908 | |
| 14909 | |
| 14910 | |
| 14911 | |
| 14912 | |
| 14913 | |
| 14914 | |
| 14915 | |
| 14916 | |
| 14917 | |
| 14918 | |
| 14919 | |
| 14920 | |
| 14921 | |
| 14922 | |
| 14923 | |
| 14924 | |
| 14925 | |
| 14926 | |
| 14927 | |
| 14928 | |
| 14929 | |
| 14930 | |
| 14931 | |
| 14932 | |
| 14933 | |
| 14934 | |
| 14935 | |
| 14936 | |
| 14937 | |
| 14938 | |
| 14939 | |
| 14940 | |
| 14941 | |
| 14942 | |
| 14943 | |
| 14944 | |
| 14945 | |
| 14946 | |
| 14947 | |
| 14948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 14949 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 14950 | |
| 14951 | library_names_spec= |
| 14952 | libname_spec='lib$name' |
| 14953 | soname_spec= |
| 14954 | shrext_cmds=".so" |
| 14955 | postinstall_cmds= |
| 14956 | postuninstall_cmds= |
| 14957 | finish_cmds= |
| 14958 | finish_eval= |
| 14959 | shlibpath_var= |
| 14960 | shlibpath_overrides_runpath=unknown |
| 14961 | version_type=none |
| 14962 | dynamic_linker="$host_os ld.so" |
| 14963 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 14964 | need_lib_prefix=unknown |
| 14965 | hardcode_into_libs=no |
| 14966 | |
| 14967 | # when you set need_version to no, make sure it does not cause -set_version |
| 14968 | # flags to be left without arguments |
| 14969 | need_version=unknown |
| 14970 | |
| 14971 | case $host_os in |
| 14972 | aix3*) |
| 14973 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14974 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 14975 | shlibpath_var=LIBPATH |
| 14976 | |
| 14977 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 14978 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14979 | ;; |
| 14980 | |
| 14981 | aix[4-9]*) |
| 14982 | version_type=linux # correct to gnu/linux during the next big refactor |
| 14983 | need_lib_prefix=no |
| 14984 | need_version=no |
| 14985 | hardcode_into_libs=yes |
| 14986 | if test "$host_cpu" = ia64; then |
| 14987 | # AIX 5 supports IA64 |
| 14988 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 14989 | shlibpath_var=LD_LIBRARY_PATH |
| 14990 | else |
| 14991 | # With GCC up to 2.95.x, collect2 would create an import file |
| 14992 | # for dependence libraries. The import file would start with |
| 14993 | # the line `#! .'. This would cause the generated library to |
| 14994 | # depend on `.', always an invalid library. This was fixed in |
| 14995 | # development snapshots of GCC prior to 3.0. |
| 14996 | case $host_os in |
| 14997 | aix4 | aix4.[01] | aix4.[01].*) |
| 14998 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 14999 | echo ' yes ' |
| 15000 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
| 15001 | : |
| 15002 | else |
| 15003 | can_build_shared=no |
| 15004 | fi |
| 15005 | ;; |
| 15006 | esac |
| 15007 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 15008 | # soname into executable. Probably we can add versioning support to |
| 15009 | # collect2, so additional links can be useful in future. |
| 15010 | if test "$aix_use_runtimelinking" = yes; then |
| 15011 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 15012 | # instead of lib<name>.a to let people know that these are not |
| 15013 | # typical AIX shared libraries. |
| 15014 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15015 | else |
| 15016 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 15017 | # and later when we are not doing run time linking. |
| 15018 | library_names_spec='${libname}${release}.a $libname.a' |
| 15019 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15020 | fi |
| 15021 | shlibpath_var=LIBPATH |
| 15022 | fi |
| 15023 | ;; |
| 15024 | |
| 15025 | amigaos*) |
| 15026 | case $host_cpu in |
| 15027 | powerpc) |
| 15028 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 15029 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 15030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15031 | ;; |
| 15032 | m68k) |
| 15033 | library_names_spec='$libname.ixlibrary $libname.a' |
| 15034 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 15035 | 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' |
| 15036 | ;; |
| 15037 | esac |
| 15038 | ;; |
| 15039 | |
| 15040 | beos*) |
| 15041 | library_names_spec='${libname}${shared_ext}' |
| 15042 | dynamic_linker="$host_os ld.so" |
| 15043 | shlibpath_var=LIBRARY_PATH |
| 15044 | ;; |
| 15045 | |
| 15046 | bsdi[45]*) |
| 15047 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15048 | need_version=no |
| 15049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15050 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15051 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 15052 | shlibpath_var=LD_LIBRARY_PATH |
| 15053 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 15054 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 15055 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 15056 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 15057 | # libtool to hard-code these into programs |
| 15058 | ;; |
| 15059 | |
| 15060 | cygwin* | mingw* | pw32* | cegcc*) |
| 15061 | version_type=windows |
| 15062 | shrext_cmds=".dll" |
| 15063 | need_version=no |
| 15064 | need_lib_prefix=no |
| 15065 | |
| 15066 | case $GCC,$cc_basename in |
| 15067 | yes,*) |
| 15068 | # gcc |
| 15069 | library_names_spec='$libname.dll.a' |
| 15070 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15071 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15072 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 15073 | dldir=$destdir/`dirname \$dlpath`~ |
| 15074 | test -d \$dldir || mkdir -p \$dldir~ |
| 15075 | $install_prog $dir/$dlname \$dldir/$dlname~ |
| 15076 | chmod a+x \$dldir/$dlname~ |
| 15077 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 15078 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 15079 | fi' |
| 15080 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15081 | dlpath=$dir/\$dldll~ |
| 15082 | $RM \$dlpath' |
| 15083 | shlibpath_overrides_runpath=yes |
| 15084 | |
| 15085 | case $host_os in |
| 15086 | cygwin*) |
| 15087 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 15088 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15089 | |
| 15090 | ;; |
| 15091 | mingw* | cegcc*) |
| 15092 | # MinGW DLLs use traditional 'lib' prefix |
| 15093 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15094 | ;; |
| 15095 | pw32*) |
| 15096 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
| 15097 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15098 | ;; |
| 15099 | esac |
| 15100 | dynamic_linker='Win32 ld.exe' |
| 15101 | ;; |
| 15102 | |
| 15103 | *,cl*) |
| 15104 | # Native MSVC |
| 15105 | libname_spec='$name' |
| 15106 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 15107 | library_names_spec='${libname}.dll.lib' |
| 15108 | |
| 15109 | case $build_os in |
| 15110 | mingw*) |
| 15111 | sys_lib_search_path_spec= |
| 15112 | lt_save_ifs=$IFS |
| 15113 | IFS=';' |
| 15114 | for lt_path in $LIB |
| 15115 | do |
| 15116 | IFS=$lt_save_ifs |
| 15117 | # Let DOS variable expansion print the short 8.3 style file name. |
| 15118 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 15119 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 15120 | done |
| 15121 | IFS=$lt_save_ifs |
| 15122 | # Convert to MSYS style. |
| 15123 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 15124 | ;; |
| 15125 | cygwin*) |
| 15126 | # Convert to unix form, then to dos form, then back to unix form |
| 15127 | # but this time dos style (no spaces!) so that the unix form looks |
| 15128 | # like /cygdrive/c/PROGRA~1:/cygdr... |
| 15129 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 15130 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 15131 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15132 | ;; |
| 15133 | *) |
| 15134 | sys_lib_search_path_spec="$LIB" |
| 15135 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 15136 | # It is most probably a Windows format PATH. |
| 15137 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 15138 | else |
| 15139 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 15140 | fi |
| 15141 | # FIXME: find the short name or the path components, as spaces are |
| 15142 | # common. (e.g. "Program Files" -> "PROGRA~1") |
| 15143 | ;; |
| 15144 | esac |
| 15145 | |
| 15146 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 15147 | postinstall_cmds='base_file=`basename \${file}`~ |
| 15148 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
| 15149 | dldir=$destdir/`dirname \$dlpath`~ |
| 15150 | test -d \$dldir || mkdir -p \$dldir~ |
| 15151 | $install_prog $dir/$dlname \$dldir/$dlname' |
| 15152 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 15153 | dlpath=$dir/\$dldll~ |
| 15154 | $RM \$dlpath' |
| 15155 | shlibpath_overrides_runpath=yes |
| 15156 | dynamic_linker='Win32 link.exe' |
| 15157 | ;; |
| 15158 | |
| 15159 | *) |
| 15160 | # Assume MSVC wrapper |
| 15161 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 15162 | dynamic_linker='Win32 ld.exe' |
| 15163 | ;; |
| 15164 | esac |
| 15165 | # FIXME: first we should search . and the directory the executable is in |
| 15166 | shlibpath_var=PATH |
| 15167 | ;; |
| 15168 | |
| 15169 | darwin* | rhapsody*) |
| 15170 | dynamic_linker="$host_os dyld" |
| 15171 | version_type=darwin |
| 15172 | need_lib_prefix=no |
| 15173 | need_version=no |
| 15174 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
| 15175 | soname_spec='${libname}${release}${major}$shared_ext' |
| 15176 | shlibpath_overrides_runpath=yes |
| 15177 | shlibpath_var=DYLD_LIBRARY_PATH |
| 15178 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 15179 | |
| 15180 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 15181 | ;; |
| 15182 | |
| 15183 | dgux*) |
| 15184 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15185 | need_lib_prefix=no |
| 15186 | need_version=no |
| 15187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 15188 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15189 | shlibpath_var=LD_LIBRARY_PATH |
| 15190 | ;; |
| 15191 | |
| 15192 | freebsd* | dragonfly*) |
| 15193 | # DragonFly does not have aout. When/if they implement a new |
| 15194 | # versioning mechanism, adjust this. |
| 15195 | if test -x /usr/bin/objformat; then |
| 15196 | objformat=`/usr/bin/objformat` |
| 15197 | else |
| 15198 | case $host_os in |
| 15199 | freebsd[23].*) objformat=aout ;; |
| 15200 | *) objformat=elf ;; |
| 15201 | esac |
| 15202 | fi |
| 15203 | version_type=freebsd-$objformat |
| 15204 | case $version_type in |
| 15205 | freebsd-elf*) |
| 15206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15207 | need_version=no |
| 15208 | need_lib_prefix=no |
| 15209 | ;; |
| 15210 | freebsd-*) |
| 15211 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 15212 | need_version=yes |
| 15213 | ;; |
| 15214 | esac |
| 15215 | shlibpath_var=LD_LIBRARY_PATH |
| 15216 | case $host_os in |
| 15217 | freebsd2.*) |
| 15218 | shlibpath_overrides_runpath=yes |
| 15219 | ;; |
| 15220 | freebsd3.[01]* | freebsdelf3.[01]*) |
| 15221 | shlibpath_overrides_runpath=yes |
| 15222 | hardcode_into_libs=yes |
| 15223 | ;; |
| 15224 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 15225 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 15226 | shlibpath_overrides_runpath=no |
| 15227 | hardcode_into_libs=yes |
| 15228 | ;; |
| 15229 | *) # from 4.6 on, and DragonFly |
| 15230 | shlibpath_overrides_runpath=yes |
| 15231 | hardcode_into_libs=yes |
| 15232 | ;; |
| 15233 | esac |
| 15234 | ;; |
| 15235 | |
| 15236 | gnu*) |
| 15237 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15238 | need_lib_prefix=no |
| 15239 | need_version=no |
| 15240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15241 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15242 | shlibpath_var=LD_LIBRARY_PATH |
| 15243 | shlibpath_overrides_runpath=no |
| 15244 | hardcode_into_libs=yes |
| 15245 | ;; |
| 15246 | |
| 15247 | haiku*) |
| 15248 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15249 | need_lib_prefix=no |
| 15250 | need_version=no |
| 15251 | dynamic_linker="$host_os runtime_loader" |
| 15252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 15253 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15254 | shlibpath_var=LIBRARY_PATH |
| 15255 | shlibpath_overrides_runpath=yes |
| 15256 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' |
| 15257 | hardcode_into_libs=yes |
| 15258 | ;; |
| 15259 | |
| 15260 | hpux9* | hpux10* | hpux11*) |
| 15261 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 15262 | # link against other versions. |
| 15263 | version_type=sunos |
| 15264 | need_lib_prefix=no |
| 15265 | need_version=no |
| 15266 | case $host_cpu in |
| 15267 | ia64*) |
| 15268 | shrext_cmds='.so' |
| 15269 | hardcode_into_libs=yes |
| 15270 | dynamic_linker="$host_os dld.so" |
| 15271 | shlibpath_var=LD_LIBRARY_PATH |
| 15272 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15274 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15275 | if test "X$HPUX_IA64_MODE" = X32; then |
| 15276 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 15277 | else |
| 15278 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 15279 | fi |
| 15280 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15281 | ;; |
| 15282 | hppa*64*) |
| 15283 | shrext_cmds='.sl' |
| 15284 | hardcode_into_libs=yes |
| 15285 | dynamic_linker="$host_os dld.sl" |
| 15286 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 15287 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 15288 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15289 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15290 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 15291 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 15292 | ;; |
| 15293 | *) |
| 15294 | shrext_cmds='.sl' |
| 15295 | dynamic_linker="$host_os dld.sl" |
| 15296 | shlibpath_var=SHLIB_PATH |
| 15297 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 15298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15299 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15300 | ;; |
| 15301 | esac |
| 15302 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 15303 | postinstall_cmds='chmod 555 $lib' |
| 15304 | # or fails outright, so override atomically: |
| 15305 | install_override_mode=555 |
| 15306 | ;; |
| 15307 | |
| 15308 | interix[3-9]*) |
| 15309 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15310 | need_lib_prefix=no |
| 15311 | need_version=no |
| 15312 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15313 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15314 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 15315 | shlibpath_var=LD_LIBRARY_PATH |
| 15316 | shlibpath_overrides_runpath=no |
| 15317 | hardcode_into_libs=yes |
| 15318 | ;; |
| 15319 | |
| 15320 | irix5* | irix6* | nonstopux*) |
| 15321 | case $host_os in |
| 15322 | nonstopux*) version_type=nonstopux ;; |
| 15323 | *) |
| 15324 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 15325 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15326 | else |
| 15327 | version_type=irix |
| 15328 | fi ;; |
| 15329 | esac |
| 15330 | need_lib_prefix=no |
| 15331 | need_version=no |
| 15332 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15334 | case $host_os in |
| 15335 | irix5* | nonstopux*) |
| 15336 | libsuff= shlibsuff= |
| 15337 | ;; |
| 15338 | *) |
| 15339 | case $LD in # libtool.m4 will add one of these switches to LD |
| 15340 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 15341 | libsuff= shlibsuff= libmagic=32-bit;; |
| 15342 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 15343 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 15344 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 15345 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 15346 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 15347 | esac |
| 15348 | ;; |
| 15349 | esac |
| 15350 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 15351 | shlibpath_overrides_runpath=no |
| 15352 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 15353 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 15354 | hardcode_into_libs=yes |
| 15355 | ;; |
| 15356 | |
| 15357 | # No shared lib support for Linux oldld, aout, or coff. |
| 15358 | linux*oldld* | linux*aout* | linux*coff*) |
| 15359 | dynamic_linker=no |
| 15360 | ;; |
| 15361 | |
| 15362 | # This must be glibc/ELF. |
| 15363 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
| 15364 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15365 | need_lib_prefix=no |
| 15366 | need_version=no |
| 15367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15368 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15369 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 15370 | shlibpath_var=LD_LIBRARY_PATH |
| 15371 | shlibpath_overrides_runpath=no |
| 15372 | |
| 15373 | # Some binutils ld are patched to set DT_RUNPATH |
| 15374 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
| 15375 | $as_echo_n "(cached) " >&6 |
| 15376 | else |
| 15377 | lt_cv_shlibpath_overrides_runpath=no |
| 15378 | save_LDFLAGS=$LDFLAGS |
| 15379 | save_libdir=$libdir |
| 15380 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 15381 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 15382 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15383 | /* end confdefs.h. */ |
| 15384 | |
| 15385 | int |
| 15386 | main () |
| 15387 | { |
| 15388 | |
| 15389 | ; |
| 15390 | return 0; |
| 15391 | } |
| 15392 | _ACEOF |
| 15393 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 15394 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 15395 | lt_cv_shlibpath_overrides_runpath=yes |
| 15396 | fi |
| 15397 | fi |
| 15398 | rm -f core conftest.err conftest.$ac_objext \ |
| 15399 | conftest$ac_exeext conftest.$ac_ext |
| 15400 | LDFLAGS=$save_LDFLAGS |
| 15401 | libdir=$save_libdir |
| 15402 | |
| 15403 | fi |
| 15404 | |
| 15405 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 15406 | |
| 15407 | # This implies no fast_install, which is unacceptable. |
| 15408 | # Some rework will be needed to allow for fast_install |
| 15409 | # before this can be enabled. |
| 15410 | hardcode_into_libs=yes |
| 15411 | |
| 15412 | # Append ld.so.conf contents to the search path |
| 15413 | if test -f /etc/ld.so.conf; then |
| 15414 | 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' ' '` |
| 15415 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 15416 | fi |
| 15417 | |
| 15418 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 15419 | # powerpc, because MkLinux only supported shared libraries with the |
| 15420 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 15421 | # most powerpc-linux boxes support dynamic linking these days and |
| 15422 | # people can always --disable-shared, the test was removed, and we |
| 15423 | # assume the GNU/Linux dynamic linker is in use. |
| 15424 | dynamic_linker='GNU/Linux ld.so' |
| 15425 | ;; |
| 15426 | |
| 15427 | netbsd*) |
| 15428 | version_type=sunos |
| 15429 | need_lib_prefix=no |
| 15430 | need_version=no |
| 15431 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15432 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15433 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15434 | dynamic_linker='NetBSD (a.out) ld.so' |
| 15435 | else |
| 15436 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 15437 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15438 | dynamic_linker='NetBSD ld.elf_so' |
| 15439 | fi |
| 15440 | shlibpath_var=LD_LIBRARY_PATH |
| 15441 | shlibpath_overrides_runpath=yes |
| 15442 | hardcode_into_libs=yes |
| 15443 | ;; |
| 15444 | |
| 15445 | newsos6) |
| 15446 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15447 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15448 | shlibpath_var=LD_LIBRARY_PATH |
| 15449 | shlibpath_overrides_runpath=yes |
| 15450 | ;; |
| 15451 | |
| 15452 | *nto* | *qnx*) |
| 15453 | version_type=qnx |
| 15454 | need_lib_prefix=no |
| 15455 | need_version=no |
| 15456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15457 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15458 | shlibpath_var=LD_LIBRARY_PATH |
| 15459 | shlibpath_overrides_runpath=no |
| 15460 | hardcode_into_libs=yes |
| 15461 | dynamic_linker='ldqnx.so' |
| 15462 | ;; |
| 15463 | |
| 15464 | openbsd*) |
| 15465 | version_type=sunos |
| 15466 | sys_lib_dlsearch_path_spec="/usr/lib" |
| 15467 | need_lib_prefix=no |
| 15468 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 15469 | case $host_os in |
| 15470 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 15471 | *) need_version=no ;; |
| 15472 | esac |
| 15473 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15474 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 15475 | shlibpath_var=LD_LIBRARY_PATH |
| 15476 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 15477 | case $host_os in |
| 15478 | openbsd2.[89] | openbsd2.[89].*) |
| 15479 | shlibpath_overrides_runpath=no |
| 15480 | ;; |
| 15481 | *) |
| 15482 | shlibpath_overrides_runpath=yes |
| 15483 | ;; |
| 15484 | esac |
| 15485 | else |
| 15486 | shlibpath_overrides_runpath=yes |
| 15487 | fi |
| 15488 | ;; |
| 15489 | |
| 15490 | os2*) |
| 15491 | libname_spec='$name' |
| 15492 | shrext_cmds=".dll" |
| 15493 | need_lib_prefix=no |
| 15494 | library_names_spec='$libname${shared_ext} $libname.a' |
| 15495 | dynamic_linker='OS/2 ld.exe' |
| 15496 | shlibpath_var=LIBPATH |
| 15497 | ;; |
| 15498 | |
| 15499 | osf3* | osf4* | osf5*) |
| 15500 | version_type=osf |
| 15501 | need_lib_prefix=no |
| 15502 | need_version=no |
| 15503 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15505 | shlibpath_var=LD_LIBRARY_PATH |
| 15506 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 15507 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 15508 | ;; |
| 15509 | |
| 15510 | rdos*) |
| 15511 | dynamic_linker=no |
| 15512 | ;; |
| 15513 | |
| 15514 | solaris*) |
| 15515 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15516 | need_lib_prefix=no |
| 15517 | need_version=no |
| 15518 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15519 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15520 | shlibpath_var=LD_LIBRARY_PATH |
| 15521 | shlibpath_overrides_runpath=yes |
| 15522 | hardcode_into_libs=yes |
| 15523 | # ldd complains unless libraries are executable |
| 15524 | postinstall_cmds='chmod +x $lib' |
| 15525 | ;; |
| 15526 | |
| 15527 | sunos4*) |
| 15528 | version_type=sunos |
| 15529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 15530 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 15531 | shlibpath_var=LD_LIBRARY_PATH |
| 15532 | shlibpath_overrides_runpath=yes |
| 15533 | if test "$with_gnu_ld" = yes; then |
| 15534 | need_lib_prefix=no |
| 15535 | fi |
| 15536 | need_version=yes |
| 15537 | ;; |
| 15538 | |
| 15539 | sysv4 | sysv4.3*) |
| 15540 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15541 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15542 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15543 | shlibpath_var=LD_LIBRARY_PATH |
| 15544 | case $host_vendor in |
| 15545 | sni) |
| 15546 | shlibpath_overrides_runpath=no |
| 15547 | need_lib_prefix=no |
| 15548 | runpath_var=LD_RUN_PATH |
| 15549 | ;; |
| 15550 | siemens) |
| 15551 | need_lib_prefix=no |
| 15552 | ;; |
| 15553 | motorola) |
| 15554 | need_lib_prefix=no |
| 15555 | need_version=no |
| 15556 | shlibpath_overrides_runpath=no |
| 15557 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 15558 | ;; |
| 15559 | esac |
| 15560 | ;; |
| 15561 | |
| 15562 | sysv4*MP*) |
| 15563 | if test -d /usr/nec ;then |
| 15564 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15565 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 15566 | soname_spec='$libname${shared_ext}.$major' |
| 15567 | shlibpath_var=LD_LIBRARY_PATH |
| 15568 | fi |
| 15569 | ;; |
| 15570 | |
| 15571 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 15572 | version_type=freebsd-elf |
| 15573 | need_lib_prefix=no |
| 15574 | need_version=no |
| 15575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 15576 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15577 | shlibpath_var=LD_LIBRARY_PATH |
| 15578 | shlibpath_overrides_runpath=yes |
| 15579 | hardcode_into_libs=yes |
| 15580 | if test "$with_gnu_ld" = yes; then |
| 15581 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 15582 | else |
| 15583 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 15584 | case $host_os in |
| 15585 | sco3.2v5*) |
| 15586 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 15587 | ;; |
| 15588 | esac |
| 15589 | fi |
| 15590 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 15591 | ;; |
| 15592 | |
| 15593 | tpf*) |
| 15594 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 15595 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15596 | need_lib_prefix=no |
| 15597 | need_version=no |
| 15598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15599 | shlibpath_var=LD_LIBRARY_PATH |
| 15600 | shlibpath_overrides_runpath=no |
| 15601 | hardcode_into_libs=yes |
| 15602 | ;; |
| 15603 | |
| 15604 | uts4*) |
| 15605 | version_type=linux # correct to gnu/linux during the next big refactor |
| 15606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 15607 | soname_spec='${libname}${release}${shared_ext}$major' |
| 15608 | shlibpath_var=LD_LIBRARY_PATH |
| 15609 | ;; |
| 15610 | |
| 15611 | *) |
| 15612 | dynamic_linker=no |
| 15613 | ;; |
| 15614 | esac |
| 15615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 15616 | $as_echo "$dynamic_linker" >&6; } |
| 15617 | test "$dynamic_linker" = no && can_build_shared=no |
| 15618 | |
| 15619 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 15620 | if test "$GCC" = yes; then |
| 15621 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 15622 | fi |
| 15623 | |
| 15624 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 15625 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 15626 | fi |
| 15627 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 15628 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 15629 | fi |
| 15630 | |
| 15631 | |
| 15632 | |
| 15633 | |
| 15634 | |
| 15635 | |
| 15636 | |
| 15637 | |
| 15638 | |
| 15639 | |
| 15640 | |
| 15641 | |
| 15642 | |
| 15643 | |
| 15644 | |
| 15645 | |
| 15646 | |
| 15647 | |
| 15648 | |
| 15649 | |
| 15650 | |
| 15651 | |
| 15652 | |
| 15653 | |
| 15654 | |
| 15655 | |
| 15656 | |
| 15657 | |
| 15658 | |
| 15659 | |
| 15660 | |
| 15661 | |
| 15662 | |
| 15663 | |
| 15664 | |
| 15665 | |
| 15666 | |
| 15667 | |
| 15668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 15669 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
| 15670 | hardcode_action_CXX= |
| 15671 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 15672 | test -n "$runpath_var_CXX" || |
| 15673 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
| 15674 | |
| 15675 | # We can hardcode non-existent directories. |
| 15676 | if test "$hardcode_direct_CXX" != no && |
| 15677 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 15678 | # have to relink, otherwise we might link with an installed library |
| 15679 | # when we should be linking with a yet-to-be-installed one |
| 15680 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
| 15681 | test "$hardcode_minus_L_CXX" != no; then |
| 15682 | # Linking always hardcodes the temporary library directory. |
| 15683 | hardcode_action_CXX=relink |
| 15684 | else |
| 15685 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 15686 | hardcode_action_CXX=immediate |
| 15687 | fi |
| 15688 | else |
| 15689 | # We cannot hardcode anything, or else we can only hardcode existing |
| 15690 | # directories. |
| 15691 | hardcode_action_CXX=unsupported |
| 15692 | fi |
| 15693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 15694 | $as_echo "$hardcode_action_CXX" >&6; } |
| 15695 | |
| 15696 | if test "$hardcode_action_CXX" = relink || |
| 15697 | test "$inherit_rpath_CXX" = yes; then |
| 15698 | # Fast installation is not supported |
| 15699 | enable_fast_install=no |
| 15700 | elif test "$shlibpath_overrides_runpath" = yes || |
| 15701 | test "$enable_shared" = no; then |
| 15702 | # Fast installation is not necessary |
| 15703 | enable_fast_install=needless |
| 15704 | fi |
| 15705 | |
| 15706 | |
| 15707 | |
| 15708 | |
| 15709 | |
| 15710 | |
| 15711 | |
| 15712 | fi # test -n "$compiler" |
| 15713 | |
| 15714 | CC=$lt_save_CC |
| 15715 | CFLAGS=$lt_save_CFLAGS |
| 15716 | LDCXX=$LD |
| 15717 | LD=$lt_save_LD |
| 15718 | GCC=$lt_save_GCC |
| 15719 | with_gnu_ld=$lt_save_with_gnu_ld |
| 15720 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 15721 | lt_cv_path_LD=$lt_save_path_LD |
| 15722 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 15723 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 15724 | fi # test "$_lt_caught_CXX_error" != yes |
| 15725 | |
| 15726 | ac_ext=c |
| 15727 | ac_cpp='$CPP $CPPFLAGS' |
| 15728 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15729 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15730 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15731 | |
| 15732 | |
Jeff Thompson | 1a1b4c0 | 2013-06-28 22:28:51 -0700 | [diff] [blame] | 15733 | |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 15734 | ac_ext=mm |
| 15735 | ac_cpp='$OBJCXXCPP $CPPFLAGS' |
| 15736 | ac_compile='$OBJCXX -c $OBJCXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15737 | ac_link='$OBJCXX -o conftest$ac_exeext $OBJCXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15738 | ac_compiler_gnu=$ac_cv_objcxx_compiler_gnu |
| 15739 | if test -n "$ac_tool_prefix"; then |
| 15740 | for ac_prog in g++ objc++ objcxx c++ CXX |
| 15741 | do |
| 15742 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 15743 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 15744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15745 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15746 | if ${ac_cv_prog_OBJCXX+:} false; then : |
| 15747 | $as_echo_n "(cached) " >&6 |
| 15748 | else |
| 15749 | if test -n "$OBJCXX"; then |
| 15750 | ac_cv_prog_OBJCXX="$OBJCXX" # Let the user override the test. |
| 15751 | else |
| 15752 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15753 | for as_dir in $PATH |
| 15754 | do |
| 15755 | IFS=$as_save_IFS |
| 15756 | test -z "$as_dir" && as_dir=. |
| 15757 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15758 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15759 | ac_cv_prog_OBJCXX="$ac_tool_prefix$ac_prog" |
| 15760 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15761 | break 2 |
| 15762 | fi |
| 15763 | done |
| 15764 | done |
| 15765 | IFS=$as_save_IFS |
| 15766 | |
| 15767 | fi |
| 15768 | fi |
| 15769 | OBJCXX=$ac_cv_prog_OBJCXX |
| 15770 | if test -n "$OBJCXX"; then |
| 15771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCXX" >&5 |
| 15772 | $as_echo "$OBJCXX" >&6; } |
| 15773 | else |
| 15774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15775 | $as_echo "no" >&6; } |
| 15776 | fi |
| 15777 | |
| 15778 | |
| 15779 | test -n "$OBJCXX" && break |
| 15780 | done |
| 15781 | fi |
| 15782 | if test -z "$OBJCXX"; then |
| 15783 | ac_ct_OBJCXX=$OBJCXX |
| 15784 | for ac_prog in g++ objc++ objcxx c++ CXX |
| 15785 | do |
| 15786 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 15787 | set dummy $ac_prog; ac_word=$2 |
| 15788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 15789 | $as_echo_n "checking for $ac_word... " >&6; } |
| 15790 | if ${ac_cv_prog_ac_ct_OBJCXX+:} false; then : |
| 15791 | $as_echo_n "(cached) " >&6 |
| 15792 | else |
| 15793 | if test -n "$ac_ct_OBJCXX"; then |
| 15794 | ac_cv_prog_ac_ct_OBJCXX="$ac_ct_OBJCXX" # Let the user override the test. |
| 15795 | else |
| 15796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 15797 | for as_dir in $PATH |
| 15798 | do |
| 15799 | IFS=$as_save_IFS |
| 15800 | test -z "$as_dir" && as_dir=. |
| 15801 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 15802 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 15803 | ac_cv_prog_ac_ct_OBJCXX="$ac_prog" |
| 15804 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 15805 | break 2 |
| 15806 | fi |
| 15807 | done |
| 15808 | done |
| 15809 | IFS=$as_save_IFS |
| 15810 | |
| 15811 | fi |
| 15812 | fi |
| 15813 | ac_ct_OBJCXX=$ac_cv_prog_ac_ct_OBJCXX |
| 15814 | if test -n "$ac_ct_OBJCXX"; then |
| 15815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCXX" >&5 |
| 15816 | $as_echo "$ac_ct_OBJCXX" >&6; } |
| 15817 | else |
| 15818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 15819 | $as_echo "no" >&6; } |
| 15820 | fi |
| 15821 | |
| 15822 | |
| 15823 | test -n "$ac_ct_OBJCXX" && break |
| 15824 | done |
| 15825 | |
| 15826 | if test "x$ac_ct_OBJCXX" = x; then |
| 15827 | OBJCXX="g++" |
| 15828 | else |
| 15829 | case $cross_compiling:$ac_tool_warned in |
| 15830 | yes:) |
| 15831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 15832 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 15833 | ac_tool_warned=yes ;; |
| 15834 | esac |
| 15835 | OBJCXX=$ac_ct_OBJCXX |
| 15836 | fi |
| 15837 | fi |
| 15838 | |
| 15839 | # Provide some information about the compiler. |
| 15840 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C++ compiler version" >&5 |
| 15841 | set X $ac_compile |
| 15842 | ac_compiler=$2 |
| 15843 | for ac_option in --version -v -V -qversion; do |
| 15844 | { { ac_try="$ac_compiler $ac_option >&5" |
| 15845 | case "(($ac_try" in |
| 15846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 15847 | *) ac_try_echo=$ac_try;; |
| 15848 | esac |
| 15849 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 15850 | $as_echo "$ac_try_echo"; } >&5 |
| 15851 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 15852 | ac_status=$? |
| 15853 | if test -s conftest.err; then |
| 15854 | sed '10a\ |
| 15855 | ... rest of stderr output deleted ... |
| 15856 | 10q' conftest.err >conftest.er1 |
| 15857 | cat conftest.er1 >&5 |
| 15858 | fi |
| 15859 | rm -f conftest.er1 conftest.err |
| 15860 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 15861 | test $ac_status = 0; } |
| 15862 | done |
| 15863 | |
| 15864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C++ compiler" >&5 |
| 15865 | $as_echo_n "checking whether we are using the GNU Objective C++ compiler... " >&6; } |
| 15866 | if ${ac_cv_objcxx_compiler_gnu+:} false; then : |
| 15867 | $as_echo_n "(cached) " >&6 |
| 15868 | else |
| 15869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15870 | /* end confdefs.h. */ |
| 15871 | |
| 15872 | int |
| 15873 | main () |
| 15874 | { |
| 15875 | #ifndef __GNUC__ |
| 15876 | choke me |
| 15877 | #endif |
| 15878 | |
| 15879 | ; |
| 15880 | return 0; |
| 15881 | } |
| 15882 | _ACEOF |
| 15883 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15884 | ac_compiler_gnu=yes |
| 15885 | else |
| 15886 | ac_compiler_gnu=no |
| 15887 | fi |
| 15888 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15889 | ac_cv_objcxx_compiler_gnu=$ac_compiler_gnu |
| 15890 | |
| 15891 | fi |
| 15892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objcxx_compiler_gnu" >&5 |
| 15893 | $as_echo "$ac_cv_objcxx_compiler_gnu" >&6; } |
| 15894 | if test $ac_compiler_gnu = yes; then |
| 15895 | GOBJCXX=yes |
| 15896 | else |
| 15897 | GOBJCXX= |
| 15898 | fi |
| 15899 | ac_test_OBJCXXFLAGS=${OBJCXXFLAGS+set} |
| 15900 | ac_save_OBJCXXFLAGS=$OBJCXXFLAGS |
| 15901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJCXX accepts -g" >&5 |
| 15902 | $as_echo_n "checking whether $OBJCXX accepts -g... " >&6; } |
| 15903 | if ${ac_cv_prog_objcxx_g+:} false; then : |
| 15904 | $as_echo_n "(cached) " >&6 |
| 15905 | else |
| 15906 | ac_save_objcxx_werror_flag=$ac_objcxx_werror_flag |
| 15907 | ac_objcxx_werror_flag=yes |
| 15908 | ac_cv_prog_objcxx_g=no |
| 15909 | OBJCXXFLAGS="-g" |
| 15910 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15911 | /* end confdefs.h. */ |
| 15912 | |
| 15913 | int |
| 15914 | main () |
| 15915 | { |
| 15916 | |
| 15917 | ; |
| 15918 | return 0; |
| 15919 | } |
| 15920 | _ACEOF |
| 15921 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15922 | ac_cv_prog_objcxx_g=yes |
| 15923 | else |
| 15924 | OBJCXXFLAGS="" |
| 15925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15926 | /* end confdefs.h. */ |
| 15927 | |
| 15928 | int |
| 15929 | main () |
| 15930 | { |
| 15931 | |
| 15932 | ; |
| 15933 | return 0; |
| 15934 | } |
| 15935 | _ACEOF |
| 15936 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15937 | |
| 15938 | else |
| 15939 | ac_objcxx_werror_flag=$ac_save_objcxx_werror_flag |
| 15940 | OBJCXXFLAGS="-g" |
| 15941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15942 | /* end confdefs.h. */ |
| 15943 | |
| 15944 | int |
| 15945 | main () |
| 15946 | { |
| 15947 | |
| 15948 | ; |
| 15949 | return 0; |
| 15950 | } |
| 15951 | _ACEOF |
| 15952 | if ac_fn_objcxx_try_compile "$LINENO"; then : |
| 15953 | ac_cv_prog_objcxx_g=yes |
| 15954 | fi |
| 15955 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15956 | fi |
| 15957 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15958 | fi |
| 15959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15960 | ac_objcxx_werror_flag=$ac_save_objcx_werror_flag |
| 15961 | fi |
| 15962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objcxx_g" >&5 |
| 15963 | $as_echo "$ac_cv_prog_objcxx_g" >&6; } |
| 15964 | if test "$ac_test_OBJCXXFLAGS" = set; then |
| 15965 | OBJCXXFLAGS=$ac_save_OBJCXXFLAGS |
| 15966 | elif test $ac_cv_prog_objcxx_g = yes; then |
| 15967 | if test "$GOBJCXX" = yes; then |
| 15968 | OBJCXXFLAGS="-g -O2" |
| 15969 | else |
| 15970 | OBJCXXFLAGS="-g" |
| 15971 | fi |
| 15972 | else |
| 15973 | if test "$GOBJCXX" = yes; then |
| 15974 | OBJCXXFLAGS="-O2" |
| 15975 | else |
| 15976 | OBJCXXFLAGS= |
| 15977 | fi |
| 15978 | fi |
| 15979 | ac_ext=c |
| 15980 | ac_cpp='$CPP $CPPFLAGS' |
| 15981 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 15982 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 15983 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 15984 | |
| 15985 | depcc="$OBJCXX" am_compiler_list='gcc3 gcc' |
| 15986 | |
| 15987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 15988 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 15989 | if ${am_cv_OBJCXX_dependencies_compiler_type+:} false; then : |
| 15990 | $as_echo_n "(cached) " >&6 |
| 15991 | else |
| 15992 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 15993 | # We make a subdir and do the tests there. Otherwise we can end up |
| 15994 | # making bogus files that we don't know about and never remove. For |
| 15995 | # instance it was reported that on HP-UX the gcc test will end up |
| 15996 | # making a dummy file named 'D' -- because '-MD' means "put the output |
| 15997 | # in D". |
| 15998 | rm -rf conftest.dir |
| 15999 | mkdir conftest.dir |
| 16000 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 16001 | # using a relative directory. |
| 16002 | cp "$am_depcomp" conftest.dir |
| 16003 | cd conftest.dir |
| 16004 | # We will build objects and dependencies in a subdirectory because |
| 16005 | # it helps to detect inapplicable dependency modes. For instance |
| 16006 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 16007 | # side effect of compilation, but ICC will put the dependencies in |
| 16008 | # the current directory while Tru64 will put them in the object |
| 16009 | # directory. |
| 16010 | mkdir sub |
| 16011 | |
| 16012 | am_cv_OBJCXX_dependencies_compiler_type=none |
| 16013 | if test "$am_compiler_list" = ""; then |
| 16014 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 16015 | fi |
| 16016 | am__universal=false |
| 16017 | |
| 16018 | |
| 16019 | for depmode in $am_compiler_list; do |
| 16020 | # Setup a source with many dependencies, because some compilers |
| 16021 | # like to wrap large dependency lists on column 80 (with \), and |
| 16022 | # we should not choose a depcomp mode which is confused by this. |
| 16023 | # |
| 16024 | # We need to recreate these files for each test, as the compiler may |
| 16025 | # overwrite some of them when testing with obscure command lines. |
| 16026 | # This happens at least with the AIX C compiler. |
| 16027 | : > sub/conftest.c |
| 16028 | for i in 1 2 3 4 5 6; do |
| 16029 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 16030 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 16031 | # Solaris 10 /bin/sh. |
| 16032 | echo '/* dummy */' > sub/conftst$i.h |
| 16033 | done |
| 16034 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 16035 | |
| 16036 | # We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 16037 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 16038 | # handle '-M -o', and we need to detect this. Also, some Intel |
| 16039 | # versions had trouble with output in subdirs. |
| 16040 | am__obj=sub/conftest.${OBJEXT-o} |
| 16041 | am__minus_obj="-o $am__obj" |
| 16042 | case $depmode in |
| 16043 | gcc) |
| 16044 | # This depmode causes a compiler race in universal mode. |
| 16045 | test "$am__universal" = false || continue |
| 16046 | ;; |
| 16047 | nosideeffect) |
| 16048 | # After this tag, mechanisms are not by side-effect, so they'll |
| 16049 | # only be used when explicitly requested. |
| 16050 | if test "x$enable_dependency_tracking" = xyes; then |
| 16051 | continue |
| 16052 | else |
| 16053 | break |
| 16054 | fi |
| 16055 | ;; |
| 16056 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 16057 | # This compiler won't grok '-c -o', but also, the minuso test has |
| 16058 | # not run yet. These depmodes are late enough in the game, and |
| 16059 | # so weak that their functioning should not be impacted. |
| 16060 | am__obj=conftest.${OBJEXT-o} |
| 16061 | am__minus_obj= |
| 16062 | ;; |
| 16063 | none) break ;; |
| 16064 | esac |
| 16065 | if depmode=$depmode \ |
| 16066 | source=sub/conftest.c object=$am__obj \ |
| 16067 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 16068 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 16069 | >/dev/null 2>conftest.err && |
| 16070 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 16071 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 16072 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 16073 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 16074 | # icc doesn't choke on unknown options, it will just issue warnings |
| 16075 | # or remarks (even with -Werror). So we grep stderr for any message |
| 16076 | # that says an option was ignored or not supported. |
| 16077 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 16078 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 16079 | # The diagnosis changed in icc 8.0: |
| 16080 | # icc: Command line remark: option '-MP' not supported |
| 16081 | if (grep 'ignoring option' conftest.err || |
| 16082 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 16083 | am_cv_OBJCXX_dependencies_compiler_type=$depmode |
| 16084 | break |
| 16085 | fi |
| 16086 | fi |
| 16087 | done |
| 16088 | |
| 16089 | cd .. |
| 16090 | rm -rf conftest.dir |
| 16091 | else |
| 16092 | am_cv_OBJCXX_dependencies_compiler_type=none |
| 16093 | fi |
| 16094 | |
| 16095 | fi |
| 16096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJCXX_dependencies_compiler_type" >&5 |
| 16097 | $as_echo "$am_cv_OBJCXX_dependencies_compiler_type" >&6; } |
| 16098 | OBJCXXDEPMODE=depmode=$am_cv_OBJCXX_dependencies_compiler_type |
| 16099 | |
| 16100 | if |
| 16101 | test "x$enable_dependency_tracking" != xno \ |
| 16102 | && test "$am_cv_OBJCXX_dependencies_compiler_type" = gcc3; then |
| 16103 | am__fastdepOBJCXX_TRUE= |
| 16104 | am__fastdepOBJCXX_FALSE='#' |
| 16105 | else |
| 16106 | am__fastdepOBJCXX_TRUE='#' |
| 16107 | am__fastdepOBJCXX_FALSE= |
| 16108 | fi |
| 16109 | |
| 16110 | |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 16111 | ac_ext=cpp |
| 16112 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16113 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16114 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16115 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16116 | |
Jeff Thompson | b18b6eb | 2013-10-11 18:28:50 -0700 | [diff] [blame] | 16117 | |
| 16118 | # Special case. |
| 16119 | case "$host" in |
| 16120 | *-darwin* | *-macos10*) |
| 16121 | if test -d /opt/local ; then |
| 16122 | CFLAGS="$CFLAGS -I/opt/local/include" |
| 16123 | CXXFLAGS="$CXXFLAGS -I/opt/local/include" |
| 16124 | CPPFLAGS="$CPPFLAGS -I/opt/local/include" |
| 16125 | LDFLAGS="$LDFLAGS -L/opt/local/lib" |
| 16126 | elif test -d /sw ; then |
| 16127 | CFLAGS="$CFLAGS -I/sw/include" |
| 16128 | CXXFLAGS="$CXXFLAGS -I/sw/include" |
| 16129 | CPPFLAGS="$CPPFLAGS -I/sw/include" |
| 16130 | LDFLAGS="$LDFLAGS -L/sw/lib" |
| 16131 | fi |
| 16132 | ;; |
| 16133 | esac |
| 16134 | |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16135 | ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 16136 | if test "x$ac_cv_type_size_t" = xyes; then : |
| 16137 | |
| 16138 | else |
| 16139 | |
| 16140 | cat >>confdefs.h <<_ACEOF |
| 16141 | #define size_t unsigned int |
| 16142 | _ACEOF |
| 16143 | |
| 16144 | fi |
| 16145 | |
| 16146 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" |
| 16147 | case $ac_cv_c_int8_t in #( |
| 16148 | no|yes) ;; #( |
| 16149 | *) |
| 16150 | |
| 16151 | cat >>confdefs.h <<_ACEOF |
| 16152 | #define int8_t $ac_cv_c_int8_t |
| 16153 | _ACEOF |
| 16154 | ;; |
| 16155 | esac |
| 16156 | |
| 16157 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" |
| 16158 | case $ac_cv_c_int16_t in #( |
| 16159 | no|yes) ;; #( |
| 16160 | *) |
| 16161 | |
| 16162 | cat >>confdefs.h <<_ACEOF |
| 16163 | #define int16_t $ac_cv_c_int16_t |
| 16164 | _ACEOF |
| 16165 | ;; |
| 16166 | esac |
| 16167 | |
| 16168 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" |
| 16169 | case $ac_cv_c_int32_t in #( |
| 16170 | no|yes) ;; #( |
| 16171 | *) |
| 16172 | |
| 16173 | cat >>confdefs.h <<_ACEOF |
| 16174 | #define int32_t $ac_cv_c_int32_t |
| 16175 | _ACEOF |
| 16176 | ;; |
| 16177 | esac |
| 16178 | |
| 16179 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" |
| 16180 | case $ac_cv_c_int64_t in #( |
| 16181 | no|yes) ;; #( |
| 16182 | *) |
| 16183 | |
| 16184 | cat >>confdefs.h <<_ACEOF |
| 16185 | #define int64_t $ac_cv_c_int64_t |
| 16186 | _ACEOF |
| 16187 | ;; |
| 16188 | esac |
| 16189 | |
| 16190 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" |
| 16191 | case $ac_cv_c_uint8_t in #( |
| 16192 | no|yes) ;; #( |
| 16193 | *) |
| 16194 | |
| 16195 | $as_echo "#define _UINT8_T 1" >>confdefs.h |
| 16196 | |
| 16197 | |
| 16198 | cat >>confdefs.h <<_ACEOF |
| 16199 | #define uint8_t $ac_cv_c_uint8_t |
| 16200 | _ACEOF |
| 16201 | ;; |
| 16202 | esac |
| 16203 | |
| 16204 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" |
| 16205 | case $ac_cv_c_uint16_t in #( |
| 16206 | no|yes) ;; #( |
| 16207 | *) |
| 16208 | |
| 16209 | |
| 16210 | cat >>confdefs.h <<_ACEOF |
| 16211 | #define uint16_t $ac_cv_c_uint16_t |
| 16212 | _ACEOF |
| 16213 | ;; |
| 16214 | esac |
| 16215 | |
| 16216 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" |
| 16217 | case $ac_cv_c_uint32_t in #( |
| 16218 | no|yes) ;; #( |
| 16219 | *) |
| 16220 | |
| 16221 | $as_echo "#define _UINT32_T 1" >>confdefs.h |
| 16222 | |
| 16223 | |
| 16224 | cat >>confdefs.h <<_ACEOF |
| 16225 | #define uint32_t $ac_cv_c_uint32_t |
| 16226 | _ACEOF |
| 16227 | ;; |
| 16228 | esac |
| 16229 | |
| 16230 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" |
| 16231 | case $ac_cv_c_uint64_t in #( |
| 16232 | no|yes) ;; #( |
| 16233 | *) |
| 16234 | |
| 16235 | $as_echo "#define _UINT64_T 1" >>confdefs.h |
| 16236 | |
| 16237 | |
| 16238 | cat >>confdefs.h <<_ACEOF |
| 16239 | #define uint64_t $ac_cv_c_uint64_t |
| 16240 | _ACEOF |
| 16241 | ;; |
| 16242 | esac |
| 16243 | |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16244 | for ac_func in memcmp memcpy memset |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16245 | do : |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16246 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16247 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 16248 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16249 | cat >>confdefs.h <<_ACEOF |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16250 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16251 | _ACEOF |
| 16252 | |
| 16253 | fi |
| 16254 | done |
| 16255 | |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16256 | for ac_func in strchr |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16257 | do : |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16258 | ac_fn_cxx_check_func "$LINENO" "strchr" "ac_cv_func_strchr" |
| 16259 | if test "x$ac_cv_func_strchr" = xyes; then : |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16260 | cat >>confdefs.h <<_ACEOF |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16261 | #define HAVE_STRCHR 1 |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16262 | _ACEOF |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16263 | : |
| 16264 | else |
| 16265 | as_fn_error $? "*** strchr not found. Check 'config.log' for more details." "$LINENO" 5 |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16266 | fi |
| 16267 | done |
| 16268 | |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16269 | for ac_func in sscanf |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16270 | do : |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16271 | ac_fn_cxx_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf" |
| 16272 | if test "x$ac_cv_func_sscanf" = xyes; then : |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16273 | cat >>confdefs.h <<_ACEOF |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16274 | #define HAVE_SSCANF 1 |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16275 | _ACEOF |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16276 | : |
| 16277 | else |
| 16278 | as_fn_error $? "*** sscanf not found. Check 'config.log' for more details." "$LINENO" 5 |
| 16279 | fi |
| 16280 | done |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16281 | |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16282 | |
| 16283 | for ac_header in sys/time.h |
| 16284 | do : |
| 16285 | ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 16286 | if test "x$ac_cv_header_sys_time_h" = xyes; then : |
| 16287 | cat >>confdefs.h <<_ACEOF |
| 16288 | #define HAVE_SYS_TIME_H 1 |
| 16289 | _ACEOF |
| 16290 | : |
| 16291 | else |
| 16292 | as_fn_error $? "*** sys/time.h not found. Check 'config.log' for more details." "$LINENO" 5 |
| 16293 | fi |
| 16294 | |
| 16295 | done |
| 16296 | |
| 16297 | for ac_func in gettimeofday |
| 16298 | do : |
| 16299 | ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
| 16300 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
| 16301 | cat >>confdefs.h <<_ACEOF |
| 16302 | #define HAVE_GETTIMEOFDAY 1 |
| 16303 | _ACEOF |
| 16304 | : |
| 16305 | else |
| 16306 | as_fn_error $? "*** gettimeofday not found. processEvents requires it. Check 'config.log' for more details." "$LINENO" 5 |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 16307 | fi |
| 16308 | done |
| 16309 | |
Jeff Thompson | 1b8f4c9 | 2013-06-19 16:18:46 -0700 | [diff] [blame] | 16310 | ax_cxx_compile_cxx11_required=falsednl |
| 16311 | ac_ext=cpp |
| 16312 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16313 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16314 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16315 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16316 | ac_success=no |
| 16317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5 |
| 16318 | $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; } |
| 16319 | if ${ax_cv_cxx_compile_cxx11+:} false; then : |
| 16320 | $as_echo_n "(cached) " >&6 |
| 16321 | else |
| 16322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16323 | /* end confdefs.h. */ |
| 16324 | |
| 16325 | template <typename T> |
| 16326 | struct check |
| 16327 | { |
| 16328 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 16329 | }; |
| 16330 | |
| 16331 | typedef check<check<bool>> right_angle_brackets; |
| 16332 | |
| 16333 | int a; |
| 16334 | decltype(a) b; |
| 16335 | |
| 16336 | typedef check<int> check_type; |
| 16337 | check_type c; |
| 16338 | check_type&& cr = static_cast<check_type&&>(c); |
| 16339 | |
| 16340 | auto d = a; |
| 16341 | |
| 16342 | _ACEOF |
| 16343 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16344 | ax_cv_cxx_compile_cxx11=yes |
| 16345 | else |
| 16346 | ax_cv_cxx_compile_cxx11=no |
| 16347 | fi |
| 16348 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16349 | fi |
| 16350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5 |
| 16351 | $as_echo "$ax_cv_cxx_compile_cxx11" >&6; } |
| 16352 | if test x$ax_cv_cxx_compile_cxx11 = xyes; then |
| 16353 | ac_success=yes |
| 16354 | fi |
| 16355 | |
| 16356 | if test x$ac_success = xno; then |
| 16357 | for switch in -std=gnu++11 -std=gnu++0x; do |
| 16358 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 16359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 16360 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 16361 | if eval \${$cachevar+:} false; then : |
| 16362 | $as_echo_n "(cached) " >&6 |
| 16363 | else |
| 16364 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 16365 | CXXFLAGS="$CXXFLAGS $switch" |
| 16366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16367 | /* end confdefs.h. */ |
| 16368 | |
| 16369 | template <typename T> |
| 16370 | struct check |
| 16371 | { |
| 16372 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 16373 | }; |
| 16374 | |
| 16375 | typedef check<check<bool>> right_angle_brackets; |
| 16376 | |
| 16377 | int a; |
| 16378 | decltype(a) b; |
| 16379 | |
| 16380 | typedef check<int> check_type; |
| 16381 | check_type c; |
| 16382 | check_type&& cr = static_cast<check_type&&>(c); |
| 16383 | |
| 16384 | auto d = a; |
| 16385 | |
| 16386 | _ACEOF |
| 16387 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16388 | eval $cachevar=yes |
| 16389 | else |
| 16390 | eval $cachevar=no |
| 16391 | fi |
| 16392 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16393 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 16394 | fi |
| 16395 | eval ac_res=\$$cachevar |
| 16396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16397 | $as_echo "$ac_res" >&6; } |
| 16398 | if eval test x\$$cachevar = xyes; then |
| 16399 | CXXFLAGS="$CXXFLAGS $switch" |
| 16400 | ac_success=yes |
| 16401 | break |
| 16402 | fi |
| 16403 | done |
| 16404 | fi |
| 16405 | |
| 16406 | if test x$ac_success = xno; then |
| 16407 | for switch in -std=c++11 -std=c++0x; do |
| 16408 | cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh` |
| 16409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5 |
| 16410 | $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; } |
| 16411 | if eval \${$cachevar+:} false; then : |
| 16412 | $as_echo_n "(cached) " >&6 |
| 16413 | else |
| 16414 | ac_save_CXXFLAGS="$CXXFLAGS" |
| 16415 | CXXFLAGS="$CXXFLAGS $switch" |
| 16416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16417 | /* end confdefs.h. */ |
| 16418 | |
| 16419 | template <typename T> |
| 16420 | struct check |
| 16421 | { |
| 16422 | static_assert(sizeof(int) <= sizeof(T), "not big enough"); |
| 16423 | }; |
| 16424 | |
| 16425 | typedef check<check<bool>> right_angle_brackets; |
| 16426 | |
| 16427 | int a; |
| 16428 | decltype(a) b; |
| 16429 | |
| 16430 | typedef check<int> check_type; |
| 16431 | check_type c; |
| 16432 | check_type&& cr = static_cast<check_type&&>(c); |
| 16433 | |
| 16434 | auto d = a; |
| 16435 | |
| 16436 | _ACEOF |
| 16437 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16438 | eval $cachevar=yes |
| 16439 | else |
| 16440 | eval $cachevar=no |
| 16441 | fi |
| 16442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16443 | CXXFLAGS="$ac_save_CXXFLAGS" |
| 16444 | fi |
| 16445 | eval ac_res=\$$cachevar |
| 16446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 16447 | $as_echo "$ac_res" >&6; } |
| 16448 | if eval test x\$$cachevar = xyes; then |
| 16449 | CXXFLAGS="$CXXFLAGS $switch" |
| 16450 | ac_success=yes |
| 16451 | break |
| 16452 | fi |
| 16453 | done |
| 16454 | fi |
| 16455 | ac_ext=cpp |
| 16456 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16457 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16458 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16459 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16460 | |
| 16461 | if test x$ax_cxx_compile_cxx11_required = xtrue; then |
| 16462 | if test x$ac_success = xno; then |
| 16463 | as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5 |
| 16464 | fi |
| 16465 | else |
| 16466 | if test x$ac_success = xno; then |
| 16467 | HAVE_CXX11=0 |
| 16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5 |
| 16469 | $as_echo "$as_me: No compiler with C++11 support was found" >&6;} |
| 16470 | else |
| 16471 | HAVE_CXX11=1 |
| 16472 | |
| 16473 | $as_echo "#define HAVE_CXX11 1" >>confdefs.h |
| 16474 | |
| 16475 | fi |
| 16476 | |
| 16477 | |
| 16478 | fi |
| 16479 | |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame] | 16480 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 16481 | $as_echo_n "checking for inline... " >&6; } |
| 16482 | if ${ac_cv_c_inline+:} false; then : |
| 16483 | $as_echo_n "(cached) " >&6 |
| 16484 | else |
| 16485 | ac_cv_c_inline=no |
| 16486 | for ac_kw in inline __inline__ __inline; do |
| 16487 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16488 | /* end confdefs.h. */ |
| 16489 | #ifndef __cplusplus |
| 16490 | typedef int foo_t; |
| 16491 | static $ac_kw foo_t static_foo () {return 0; } |
| 16492 | $ac_kw foo_t foo () {return 0; } |
| 16493 | #endif |
| 16494 | |
| 16495 | _ACEOF |
| 16496 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16497 | ac_cv_c_inline=$ac_kw |
| 16498 | fi |
| 16499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16500 | test "$ac_cv_c_inline" != no && break |
| 16501 | done |
| 16502 | |
| 16503 | fi |
| 16504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 16505 | $as_echo "$ac_cv_c_inline" >&6; } |
| 16506 | |
| 16507 | case $ac_cv_c_inline in |
| 16508 | inline | yes) ;; |
| 16509 | *) |
| 16510 | case $ac_cv_c_inline in |
| 16511 | no) ac_val=;; |
| 16512 | *) ac_val=$ac_cv_c_inline;; |
| 16513 | esac |
| 16514 | cat >>confdefs.h <<_ACEOF |
| 16515 | #ifndef __cplusplus |
| 16516 | #define inline $ac_val |
| 16517 | #endif |
| 16518 | _ACEOF |
| 16519 | ;; |
| 16520 | esac |
| 16521 | |
Jeff Thompson | b3768ae | 2013-08-08 21:22:45 -0700 | [diff] [blame] | 16522 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 16523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5 |
| 16524 | $as_echo_n "checking for std::shared_ptr... " >&6; } |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 16525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16526 | /* end confdefs.h. */ |
| 16527 | #include <memory> |
| 16528 | std::shared_ptr<int> have_shared_ptr; |
| 16529 | int |
| 16530 | main () |
| 16531 | { |
| 16532 | |
| 16533 | ; |
| 16534 | return 0; |
| 16535 | } |
| 16536 | |
| 16537 | _ACEOF |
| 16538 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16539 | |
| 16540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16541 | $as_echo "yes" >&6; } |
| 16542 | |
| 16543 | cat >>confdefs.h <<_ACEOF |
| 16544 | #define HAVE_STD_SHARED_PTR 1 |
| 16545 | _ACEOF |
| 16546 | |
| 16547 | |
| 16548 | else |
| 16549 | |
| 16550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16551 | $as_echo "no" >&6; } |
| 16552 | |
| 16553 | cat >>confdefs.h <<_ACEOF |
| 16554 | #define HAVE_STD_SHARED_PTR 0 |
| 16555 | _ACEOF |
| 16556 | |
| 16557 | |
| 16558 | fi |
| 16559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Jeff Thompson | 9e9ea9f | 2013-06-22 10:31:18 -0700 | [diff] [blame] | 16560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::shared_ptr" >&5 |
| 16561 | $as_echo_n "checking for boost::shared_ptr... " >&6; } |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 16562 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16563 | /* end confdefs.h. */ |
| 16564 | #include <boost/shared_ptr.hpp> |
| 16565 | boost::shared_ptr<int> have_shared_ptr; |
| 16566 | int |
| 16567 | main () |
| 16568 | { |
| 16569 | |
| 16570 | ; |
| 16571 | return 0; |
| 16572 | } |
| 16573 | |
| 16574 | _ACEOF |
| 16575 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16576 | |
| 16577 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16578 | $as_echo "yes" >&6; } |
| 16579 | |
| 16580 | cat >>confdefs.h <<_ACEOF |
| 16581 | #define HAVE_BOOST_SHARED_PTR 1 |
| 16582 | _ACEOF |
| 16583 | |
| 16584 | |
| 16585 | else |
| 16586 | |
| 16587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16588 | $as_echo "no" >&6; } |
| 16589 | |
| 16590 | cat >>confdefs.h <<_ACEOF |
| 16591 | #define HAVE_BOOST_SHARED_PTR 0 |
| 16592 | _ACEOF |
| 16593 | |
| 16594 | |
| 16595 | fi |
| 16596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16597 | |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame] | 16598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::function" >&5 |
| 16599 | $as_echo_n "checking for std::function... " >&6; } |
| 16600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16601 | /* end confdefs.h. */ |
| 16602 | #include <functional> |
| 16603 | std::function<int> have_function(); |
| 16604 | int |
| 16605 | main () |
| 16606 | { |
| 16607 | |
| 16608 | ; |
| 16609 | return 0; |
| 16610 | } |
| 16611 | |
| 16612 | _ACEOF |
| 16613 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16614 | |
| 16615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16616 | $as_echo "yes" >&6; } |
| 16617 | |
| 16618 | cat >>confdefs.h <<_ACEOF |
| 16619 | #define HAVE_STD_FUNCTION 1 |
| 16620 | _ACEOF |
| 16621 | |
| 16622 | |
| 16623 | else |
| 16624 | |
| 16625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16626 | $as_echo "no" >&6; } |
| 16627 | |
| 16628 | cat >>confdefs.h <<_ACEOF |
| 16629 | #define HAVE_STD_FUNCTION 0 |
| 16630 | _ACEOF |
| 16631 | |
| 16632 | |
| 16633 | fi |
| 16634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16635 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boost::function" >&5 |
| 16636 | $as_echo_n "checking for boost::function... " >&6; } |
| 16637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16638 | /* end confdefs.h. */ |
| 16639 | #include <boost/function.hpp> |
| 16640 | boost::function<int> have_function(); |
| 16641 | int |
| 16642 | main () |
| 16643 | { |
| 16644 | |
| 16645 | ; |
| 16646 | return 0; |
| 16647 | } |
| 16648 | |
| 16649 | _ACEOF |
| 16650 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16651 | |
| 16652 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16653 | $as_echo "yes" >&6; } |
| 16654 | |
| 16655 | cat >>confdefs.h <<_ACEOF |
| 16656 | #define HAVE_BOOST_FUNCTION 1 |
| 16657 | _ACEOF |
| 16658 | |
| 16659 | |
| 16660 | else |
| 16661 | |
| 16662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16663 | $as_echo "no" >&6; } |
| 16664 | |
| 16665 | cat >>confdefs.h <<_ACEOF |
| 16666 | #define HAVE_BOOST_FUNCTION 0 |
| 16667 | _ACEOF |
| 16668 | |
| 16669 | |
| 16670 | fi |
| 16671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16672 | |
Jeff Thompson | ea94620 | 2013-10-18 14:35:32 -0700 | [diff] [blame] | 16673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmtime support" >&5 |
| 16674 | $as_echo_n "checking for gmtime support... " >&6; } |
| 16675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16676 | /* end confdefs.h. */ |
| 16677 | #include <sys/time.h> |
| 16678 | struct timeval tv; |
| 16679 | int result1 = gettimeofday(&tv, 0); |
| 16680 | time_t time1 = time(0); |
| 16681 | struct tm* tm1 = gmtime(&time1); |
| 16682 | time_t time2 = timegm(tm1); |
| 16683 | int |
| 16684 | main () |
| 16685 | { |
| 16686 | |
| 16687 | ; |
| 16688 | return 0; |
| 16689 | } |
| 16690 | |
| 16691 | _ACEOF |
| 16692 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16693 | |
| 16694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16695 | $as_echo "yes" >&6; } |
| 16696 | |
| 16697 | cat >>confdefs.h <<_ACEOF |
| 16698 | #define HAVE_GMTIME_SUPPORT 1 |
| 16699 | _ACEOF |
| 16700 | |
| 16701 | |
| 16702 | else |
| 16703 | |
| 16704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16705 | $as_echo "no" >&6; } |
| 16706 | |
| 16707 | cat >>confdefs.h <<_ACEOF |
| 16708 | #define HAVE_GMTIME_SUPPORT 0 |
| 16709 | _ACEOF |
| 16710 | |
| 16711 | |
| 16712 | fi |
| 16713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16714 | |
Jeff Thompson | d0f62e1 | 2013-10-09 17:41:25 -0700 | [diff] [blame] | 16715 | # Require libcrypto. |
| 16716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_EncryptInit in -lcrypto" >&5 |
| 16717 | $as_echo_n "checking for EVP_EncryptInit in -lcrypto... " >&6; } |
| 16718 | if ${ac_cv_lib_crypto_EVP_EncryptInit+:} false; then : |
| 16719 | $as_echo_n "(cached) " >&6 |
| 16720 | else |
| 16721 | ac_check_lib_save_LIBS=$LIBS |
| 16722 | LIBS="-lcrypto $LIBS" |
| 16723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16724 | /* end confdefs.h. */ |
| 16725 | |
| 16726 | /* Override any GCC internal prototype to avoid an error. |
| 16727 | Use char because int might match the return type of a GCC |
| 16728 | builtin and then its argument prototype would still apply. */ |
| 16729 | #ifdef __cplusplus |
| 16730 | extern "C" |
| 16731 | #endif |
| 16732 | char EVP_EncryptInit (); |
| 16733 | int |
| 16734 | main () |
| 16735 | { |
| 16736 | return EVP_EncryptInit (); |
| 16737 | ; |
| 16738 | return 0; |
| 16739 | } |
| 16740 | _ACEOF |
| 16741 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 16742 | ac_cv_lib_crypto_EVP_EncryptInit=yes |
| 16743 | else |
| 16744 | ac_cv_lib_crypto_EVP_EncryptInit=no |
| 16745 | fi |
| 16746 | rm -f core conftest.err conftest.$ac_objext \ |
| 16747 | conftest$ac_exeext conftest.$ac_ext |
| 16748 | LIBS=$ac_check_lib_save_LIBS |
| 16749 | fi |
| 16750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_EncryptInit" >&5 |
| 16751 | $as_echo "$ac_cv_lib_crypto_EVP_EncryptInit" >&6; } |
| 16752 | if test "x$ac_cv_lib_crypto_EVP_EncryptInit" = xyes; then : |
| 16753 | cat >>confdefs.h <<_ACEOF |
| 16754 | #define HAVE_LIBCRYPTO 1 |
| 16755 | _ACEOF |
| 16756 | |
| 16757 | LIBS="-lcrypto $LIBS" |
| 16758 | |
| 16759 | else |
| 16760 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16761 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16762 | as_fn_error $? "can't find openssl crypto lib |
| 16763 | See \`config.log' for more details" "$LINENO" 5; } |
| 16764 | fi |
| 16765 | |
| 16766 | |
Jeff Thompson | bb6b568 | 2013-10-09 18:22:38 -0700 | [diff] [blame] | 16767 | # Conditionally use libsqlite3. AX_LIB_SQLITE3 defines HAVE_SQLITE3 in confdefs.h . |
Jeff Thompson | d0f62e1 | 2013-10-09 17:41:25 -0700 | [diff] [blame] | 16768 | |
| 16769 | |
| 16770 | # Check whether --with-sqlite3 was given. |
| 16771 | if test "${with_sqlite3+set}" = set; then : |
| 16772 | withval=$with_sqlite3; |
| 16773 | if test "$withval" = "no"; then |
| 16774 | WANT_SQLITE3="no" |
| 16775 | elif test "$withval" = "yes"; then |
| 16776 | WANT_SQLITE3="yes" |
| 16777 | ac_sqlite3_path="" |
| 16778 | else |
| 16779 | WANT_SQLITE3="yes" |
| 16780 | ac_sqlite3_path="$withval" |
| 16781 | fi |
| 16782 | |
| 16783 | else |
| 16784 | WANT_SQLITE3="yes" |
| 16785 | |
| 16786 | fi |
| 16787 | |
| 16788 | |
| 16789 | SQLITE3_CFLAGS="" |
| 16790 | SQLITE3_LDFLAGS="" |
| 16791 | SQLITE3_VERSION="" |
| 16792 | |
| 16793 | if test "x$WANT_SQLITE3" = "xyes"; then |
| 16794 | |
| 16795 | ac_sqlite3_header="sqlite3.h" |
| 16796 | |
| 16797 | sqlite3_version_req=3.0.0 |
| 16798 | sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'` |
| 16799 | sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'` |
| 16800 | sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'` |
| 16801 | sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'` |
| 16802 | if test "x$sqlite3_version_req_micro" = "x" ; then |
| 16803 | sqlite3_version_req_micro="0" |
| 16804 | fi |
| 16805 | |
| 16806 | sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \ |
| 16807 | \+ $sqlite3_version_req_minor \* 1000 \ |
| 16808 | \+ $sqlite3_version_req_micro` |
| 16809 | |
| 16810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5 |
| 16811 | $as_echo_n "checking for SQLite3 library >= $sqlite3_version_req... " >&6; } |
| 16812 | |
| 16813 | if test "$ac_sqlite3_path" != ""; then |
| 16814 | ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib" |
| 16815 | ac_sqlite3_cppflags="-I$ac_sqlite3_path/include" |
| 16816 | else |
| 16817 | for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do |
| 16818 | if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \ |
| 16819 | && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then |
| 16820 | ac_sqlite3_path=$ac_sqlite3_path_tmp |
| 16821 | ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include" |
| 16822 | ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib" |
| 16823 | break; |
| 16824 | fi |
| 16825 | done |
| 16826 | fi |
| 16827 | |
| 16828 | ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3" |
| 16829 | |
| 16830 | saved_CPPFLAGS="$CPPFLAGS" |
| 16831 | CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags" |
| 16832 | |
| 16833 | ac_ext=c |
| 16834 | ac_cpp='$CPP $CPPFLAGS' |
| 16835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 16838 | |
| 16839 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16840 | /* end confdefs.h. */ |
| 16841 | |
| 16842 | #include <sqlite3.h> |
| 16843 | int |
| 16844 | main () |
| 16845 | { |
| 16846 | |
| 16847 | #if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number) |
| 16848 | /* Everything is okay */ |
| 16849 | #else |
| 16850 | # error SQLite version is too old |
| 16851 | #endif |
| 16852 | |
| 16853 | |
| 16854 | ; |
| 16855 | return 0; |
| 16856 | } |
| 16857 | |
| 16858 | _ACEOF |
| 16859 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16860 | |
| 16861 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16862 | $as_echo "yes" >&6; } |
| 16863 | success="yes" |
| 16864 | |
| 16865 | else |
| 16866 | |
| 16867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 |
| 16868 | $as_echo "not found" >&6; } |
| 16869 | success="no" |
| 16870 | |
| 16871 | |
| 16872 | fi |
| 16873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16874 | ac_ext=cpp |
| 16875 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 16876 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 16877 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 16878 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 16879 | |
| 16880 | |
| 16881 | CPPFLAGS="$saved_CPPFLAGS" |
| 16882 | |
| 16883 | if test "$success" = "yes"; then |
| 16884 | |
| 16885 | SQLITE3_CFLAGS="$ac_sqlite3_cppflags" |
| 16886 | SQLITE3_LDFLAGS="$ac_sqlite3_ldflags" |
| 16887 | |
| 16888 | ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header" |
| 16889 | |
| 16890 | if test "x$ac_sqlite3_header_path" != "x"; then |
| 16891 | ac_sqlite3_version=`cat $ac_sqlite3_header_path \ |
| 16892 | | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \ |
| 16893 | | sed -e 's/"//'` |
| 16894 | if test $ac_sqlite3_version != ""; then |
| 16895 | SQLITE3_VERSION=$ac_sqlite3_version |
| 16896 | else |
| 16897 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5 |
| 16898 | $as_echo "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;} |
| 16899 | fi |
| 16900 | fi |
| 16901 | |
| 16902 | |
| 16903 | |
| 16904 | |
| 16905 | |
| 16906 | $as_echo "#define HAVE_SQLITE3 /**/" >>confdefs.h |
| 16907 | |
| 16908 | fi |
| 16909 | fi |
| 16910 | |
Jeff Thompson | bb6b568 | 2013-10-09 18:22:38 -0700 | [diff] [blame] | 16911 | if grep -q "#define HAVE_SQLITE3" confdefs.h ; then |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16912 | { $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] | 16913 | $as_echo_n "checking for sqlite3_open in -lsqlite3... " >&6; } |
| 16914 | if ${ac_cv_lib_sqlite3_sqlite3_open+:} false; then : |
| 16915 | $as_echo_n "(cached) " >&6 |
| 16916 | else |
| 16917 | ac_check_lib_save_LIBS=$LIBS |
| 16918 | LIBS="-lsqlite3 $LIBS" |
| 16919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16920 | /* end confdefs.h. */ |
| 16921 | |
| 16922 | /* Override any GCC internal prototype to avoid an error. |
| 16923 | Use char because int might match the return type of a GCC |
| 16924 | builtin and then its argument prototype would still apply. */ |
| 16925 | #ifdef __cplusplus |
| 16926 | extern "C" |
| 16927 | #endif |
| 16928 | char sqlite3_open (); |
| 16929 | int |
| 16930 | main () |
| 16931 | { |
| 16932 | return sqlite3_open (); |
| 16933 | ; |
| 16934 | return 0; |
| 16935 | } |
| 16936 | _ACEOF |
| 16937 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 16938 | ac_cv_lib_sqlite3_sqlite3_open=yes |
| 16939 | else |
| 16940 | ac_cv_lib_sqlite3_sqlite3_open=no |
| 16941 | fi |
| 16942 | rm -f core conftest.err conftest.$ac_objext \ |
| 16943 | conftest$ac_exeext conftest.$ac_ext |
| 16944 | LIBS=$ac_check_lib_save_LIBS |
| 16945 | fi |
| 16946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_open" >&5 |
| 16947 | $as_echo "$ac_cv_lib_sqlite3_sqlite3_open" >&6; } |
| 16948 | if test "x$ac_cv_lib_sqlite3_sqlite3_open" = xyes; then : |
| 16949 | cat >>confdefs.h <<_ACEOF |
| 16950 | #define HAVE_LIBSQLITE3 1 |
| 16951 | _ACEOF |
| 16952 | |
| 16953 | LIBS="-lsqlite3 $LIBS" |
| 16954 | |
| 16955 | else |
| 16956 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16957 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16958 | as_fn_error $? "have sqlite2 headers but no libsqlite3 |
| 16959 | See \`config.log' for more details" "$LINENO" 5; } |
| 16960 | fi |
| 16961 | |
| 16962 | fi |
| 16963 | |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16964 | # Conditionally use the OSX Security framework . |
| 16965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX Security framework" >&5 |
| 16966 | $as_echo_n "checking for OSX Security framework... " >&6; } |
Jeff Thompson | 9cf9dfb | 2013-10-04 16:36:52 -0700 | [diff] [blame] | 16967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16968 | /* end confdefs.h. */ |
| 16969 | #include <CoreFoundation/CoreFoundation.h> |
| 16970 | #include <Security/Security.h> |
| 16971 | #include <CoreServices/CoreServices.h> |
| 16972 | void test() { SecKeychainRef x; } |
| 16973 | int |
| 16974 | main () |
| 16975 | { |
| 16976 | |
| 16977 | ; |
| 16978 | return 0; |
| 16979 | } |
| 16980 | |
| 16981 | _ACEOF |
| 16982 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 16983 | |
| 16984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 16985 | $as_echo "yes" >&6; } |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16986 | HAVE_OSX_SECURITY=1 |
Jeff Thompson | 9cf9dfb | 2013-10-04 16:36:52 -0700 | [diff] [blame] | 16987 | |
| 16988 | else |
| 16989 | |
| 16990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 16991 | $as_echo "no" >&6; } |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16992 | HAVE_OSX_SECURITY=0 |
Jeff Thompson | 9cf9dfb | 2013-10-04 16:36:52 -0700 | [diff] [blame] | 16993 | |
| 16994 | fi |
| 16995 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16996 | |
Jeff Thompson | bb6b568 | 2013-10-09 18:22:38 -0700 | [diff] [blame] | 16997 | cat >>confdefs.h <<_ACEOF |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 16998 | #define HAVE_OSX_SECURITY $HAVE_OSX_SECURITY |
Jeff Thompson | bb6b568 | 2013-10-09 18:22:38 -0700 | [diff] [blame] | 16999 | _ACEOF |
| 17000 | |
Jeff Thompson | f21e224 | 2013-10-09 19:01:49 -0700 | [diff] [blame] | 17001 | if test "$HAVE_OSX_SECURITY" == "1" ; then |
| 17002 | LIBS="$LIBS -framework Security" |
| 17003 | fi |
Jeff Thompson | bb6b568 | 2013-10-09 18:22:38 -0700 | [diff] [blame] | 17004 | |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 17005 | |
| 17006 | |
| 17007 | |
| 17008 | |
| 17009 | |
| 17010 | |
| 17011 | |
| 17012 | |
| 17013 | |
| 17014 | |
| 17015 | # Files: |
| 17016 | DX_PROJECT=$PACKAGE_NAME |
| 17017 | |
| 17018 | DX_CONFIG=Doxyfile |
| 17019 | |
| 17020 | DX_DOCDIR=doxygen-doc |
| 17021 | |
| 17022 | |
| 17023 | # Environment variables used inside doxygen.cfg: |
| 17024 | DX_ENV="$DX_ENV SRCDIR='$srcdir'" |
| 17025 | |
| 17026 | DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'" |
| 17027 | |
| 17028 | DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'" |
| 17029 | |
| 17030 | DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'" |
| 17031 | |
| 17032 | |
| 17033 | # Doxygen itself: |
| 17034 | |
| 17035 | |
| 17036 | |
| 17037 | # Check whether --enable-doxygen-doc was given. |
| 17038 | if test "${enable_doxygen_doc+set}" = set; then : |
| 17039 | enableval=$enable_doxygen_doc; |
| 17040 | case "$enableval" in |
| 17041 | #( |
| 17042 | y|Y|yes|Yes|YES) |
| 17043 | DX_FLAG_doc=1 |
| 17044 | |
| 17045 | |
| 17046 | ;; #( |
| 17047 | n|N|no|No|NO) |
| 17048 | DX_FLAG_doc=0 |
| 17049 | |
| 17050 | ;; #( |
| 17051 | *) |
| 17052 | as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5 |
| 17053 | ;; |
| 17054 | esac |
| 17055 | |
| 17056 | else |
| 17057 | |
| 17058 | DX_FLAG_doc=1 |
| 17059 | |
| 17060 | |
| 17061 | |
| 17062 | fi |
| 17063 | |
| 17064 | if test "$DX_FLAG_doc" = 1; then |
| 17065 | |
| 17066 | if test -n "$ac_tool_prefix"; then |
| 17067 | # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args. |
| 17068 | set dummy ${ac_tool_prefix}doxygen; ac_word=$2 |
| 17069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17070 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17071 | if ${ac_cv_path_DX_DOXYGEN+:} false; then : |
| 17072 | $as_echo_n "(cached) " >&6 |
| 17073 | else |
| 17074 | case $DX_DOXYGEN in |
| 17075 | [\\/]* | ?:[\\/]*) |
| 17076 | ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path. |
| 17077 | ;; |
| 17078 | *) |
| 17079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17080 | for as_dir in $PATH |
| 17081 | do |
| 17082 | IFS=$as_save_IFS |
| 17083 | test -z "$as_dir" && as_dir=. |
| 17084 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17086 | ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 17087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17088 | break 2 |
| 17089 | fi |
| 17090 | done |
| 17091 | done |
| 17092 | IFS=$as_save_IFS |
| 17093 | |
| 17094 | ;; |
| 17095 | esac |
| 17096 | fi |
| 17097 | DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN |
| 17098 | if test -n "$DX_DOXYGEN"; then |
| 17099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5 |
| 17100 | $as_echo "$DX_DOXYGEN" >&6; } |
| 17101 | else |
| 17102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17103 | $as_echo "no" >&6; } |
| 17104 | fi |
| 17105 | |
| 17106 | |
| 17107 | fi |
| 17108 | if test -z "$ac_cv_path_DX_DOXYGEN"; then |
| 17109 | ac_pt_DX_DOXYGEN=$DX_DOXYGEN |
| 17110 | # Extract the first word of "doxygen", so it can be a program name with args. |
| 17111 | set dummy doxygen; ac_word=$2 |
| 17112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17113 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17114 | if ${ac_cv_path_ac_pt_DX_DOXYGEN+:} false; then : |
| 17115 | $as_echo_n "(cached) " >&6 |
| 17116 | else |
| 17117 | case $ac_pt_DX_DOXYGEN in |
| 17118 | [\\/]* | ?:[\\/]*) |
| 17119 | ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path. |
| 17120 | ;; |
| 17121 | *) |
| 17122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17123 | for as_dir in $PATH |
| 17124 | do |
| 17125 | IFS=$as_save_IFS |
| 17126 | test -z "$as_dir" && as_dir=. |
| 17127 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17128 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17129 | ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
| 17130 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17131 | break 2 |
| 17132 | fi |
| 17133 | done |
| 17134 | done |
| 17135 | IFS=$as_save_IFS |
| 17136 | |
| 17137 | ;; |
| 17138 | esac |
| 17139 | fi |
| 17140 | ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN |
| 17141 | if test -n "$ac_pt_DX_DOXYGEN"; then |
| 17142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5 |
| 17143 | $as_echo "$ac_pt_DX_DOXYGEN" >&6; } |
| 17144 | else |
| 17145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17146 | $as_echo "no" >&6; } |
| 17147 | fi |
| 17148 | |
| 17149 | if test "x$ac_pt_DX_DOXYGEN" = x; then |
| 17150 | DX_DOXYGEN="" |
| 17151 | else |
| 17152 | case $cross_compiling:$ac_tool_warned in |
| 17153 | yes:) |
| 17154 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17155 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17156 | ac_tool_warned=yes ;; |
| 17157 | esac |
| 17158 | DX_DOXYGEN=$ac_pt_DX_DOXYGEN |
| 17159 | fi |
| 17160 | else |
| 17161 | DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN" |
| 17162 | fi |
| 17163 | |
| 17164 | if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then |
| 17165 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5 |
| 17166 | $as_echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;} |
| 17167 | DX_FLAG_doc=0 |
| 17168 | |
| 17169 | fi |
| 17170 | |
| 17171 | |
| 17172 | if test -n "$ac_tool_prefix"; then |
| 17173 | # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args. |
| 17174 | set dummy ${ac_tool_prefix}perl; ac_word=$2 |
| 17175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17176 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17177 | if ${ac_cv_path_DX_PERL+:} false; then : |
| 17178 | $as_echo_n "(cached) " >&6 |
| 17179 | else |
| 17180 | case $DX_PERL in |
| 17181 | [\\/]* | ?:[\\/]*) |
| 17182 | ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path. |
| 17183 | ;; |
| 17184 | *) |
| 17185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17186 | for as_dir in $PATH |
| 17187 | do |
| 17188 | IFS=$as_save_IFS |
| 17189 | test -z "$as_dir" && as_dir=. |
| 17190 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17191 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17192 | ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 17193 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17194 | break 2 |
| 17195 | fi |
| 17196 | done |
| 17197 | done |
| 17198 | IFS=$as_save_IFS |
| 17199 | |
| 17200 | ;; |
| 17201 | esac |
| 17202 | fi |
| 17203 | DX_PERL=$ac_cv_path_DX_PERL |
| 17204 | if test -n "$DX_PERL"; then |
| 17205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5 |
| 17206 | $as_echo "$DX_PERL" >&6; } |
| 17207 | else |
| 17208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17209 | $as_echo "no" >&6; } |
| 17210 | fi |
| 17211 | |
| 17212 | |
| 17213 | fi |
| 17214 | if test -z "$ac_cv_path_DX_PERL"; then |
| 17215 | ac_pt_DX_PERL=$DX_PERL |
| 17216 | # Extract the first word of "perl", so it can be a program name with args. |
| 17217 | set dummy perl; ac_word=$2 |
| 17218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17219 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17220 | if ${ac_cv_path_ac_pt_DX_PERL+:} false; then : |
| 17221 | $as_echo_n "(cached) " >&6 |
| 17222 | else |
| 17223 | case $ac_pt_DX_PERL in |
| 17224 | [\\/]* | ?:[\\/]*) |
| 17225 | ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path. |
| 17226 | ;; |
| 17227 | *) |
| 17228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17229 | for as_dir in $PATH |
| 17230 | do |
| 17231 | IFS=$as_save_IFS |
| 17232 | test -z "$as_dir" && as_dir=. |
| 17233 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17234 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17235 | ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext" |
| 17236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17237 | break 2 |
| 17238 | fi |
| 17239 | done |
| 17240 | done |
| 17241 | IFS=$as_save_IFS |
| 17242 | |
| 17243 | ;; |
| 17244 | esac |
| 17245 | fi |
| 17246 | ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL |
| 17247 | if test -n "$ac_pt_DX_PERL"; then |
| 17248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5 |
| 17249 | $as_echo "$ac_pt_DX_PERL" >&6; } |
| 17250 | else |
| 17251 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17252 | $as_echo "no" >&6; } |
| 17253 | fi |
| 17254 | |
| 17255 | if test "x$ac_pt_DX_PERL" = x; then |
| 17256 | DX_PERL="" |
| 17257 | else |
| 17258 | case $cross_compiling:$ac_tool_warned in |
| 17259 | yes:) |
| 17260 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17261 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17262 | ac_tool_warned=yes ;; |
| 17263 | esac |
| 17264 | DX_PERL=$ac_pt_DX_PERL |
| 17265 | fi |
| 17266 | else |
| 17267 | DX_PERL="$ac_cv_path_DX_PERL" |
| 17268 | fi |
| 17269 | |
| 17270 | if test "$DX_FLAG_doc$DX_PERL" = 1; then |
| 17271 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5 |
| 17272 | $as_echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;} |
| 17273 | DX_FLAG_doc=0 |
| 17274 | |
| 17275 | fi |
| 17276 | |
| 17277 | : |
| 17278 | fi |
| 17279 | if test "$DX_FLAG_doc" = 1; then |
| 17280 | DX_COND_doc_TRUE= |
| 17281 | DX_COND_doc_FALSE='#' |
| 17282 | else |
| 17283 | DX_COND_doc_TRUE='#' |
| 17284 | DX_COND_doc_FALSE= |
| 17285 | fi |
| 17286 | |
| 17287 | if test "$DX_FLAG_doc" = 1; then |
| 17288 | DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'" |
| 17289 | |
| 17290 | : |
| 17291 | else |
| 17292 | |
| 17293 | : |
| 17294 | fi |
| 17295 | |
| 17296 | |
| 17297 | # Dot for graphics: |
| 17298 | |
| 17299 | |
| 17300 | |
| 17301 | # Check whether --enable-doxygen-dot was given. |
| 17302 | if test "${enable_doxygen_dot+set}" = set; then : |
| 17303 | enableval=$enable_doxygen_dot; |
| 17304 | case "$enableval" in |
| 17305 | #( |
| 17306 | y|Y|yes|Yes|YES) |
| 17307 | DX_FLAG_dot=1 |
| 17308 | |
| 17309 | |
| 17310 | test "$DX_FLAG_doc" = "1" \ |
| 17311 | || as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5 |
| 17312 | |
| 17313 | ;; #( |
| 17314 | n|N|no|No|NO) |
| 17315 | DX_FLAG_dot=0 |
| 17316 | |
| 17317 | ;; #( |
| 17318 | *) |
| 17319 | as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5 |
| 17320 | ;; |
| 17321 | esac |
| 17322 | |
| 17323 | else |
| 17324 | |
| 17325 | DX_FLAG_dot=0 |
| 17326 | |
| 17327 | |
| 17328 | test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0 |
| 17329 | |
| 17330 | |
| 17331 | |
| 17332 | fi |
| 17333 | |
| 17334 | if test "$DX_FLAG_dot" = 1; then |
| 17335 | |
| 17336 | if test -n "$ac_tool_prefix"; then |
| 17337 | # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args. |
| 17338 | set dummy ${ac_tool_prefix}dot; ac_word=$2 |
| 17339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17340 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17341 | if ${ac_cv_path_DX_DOT+:} false; then : |
| 17342 | $as_echo_n "(cached) " >&6 |
| 17343 | else |
| 17344 | case $DX_DOT in |
| 17345 | [\\/]* | ?:[\\/]*) |
| 17346 | ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path. |
| 17347 | ;; |
| 17348 | *) |
| 17349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17350 | for as_dir in $PATH |
| 17351 | do |
| 17352 | IFS=$as_save_IFS |
| 17353 | test -z "$as_dir" && as_dir=. |
| 17354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17355 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17356 | ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 17357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17358 | break 2 |
| 17359 | fi |
| 17360 | done |
| 17361 | done |
| 17362 | IFS=$as_save_IFS |
| 17363 | |
| 17364 | ;; |
| 17365 | esac |
| 17366 | fi |
| 17367 | DX_DOT=$ac_cv_path_DX_DOT |
| 17368 | if test -n "$DX_DOT"; then |
| 17369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5 |
| 17370 | $as_echo "$DX_DOT" >&6; } |
| 17371 | else |
| 17372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17373 | $as_echo "no" >&6; } |
| 17374 | fi |
| 17375 | |
| 17376 | |
| 17377 | fi |
| 17378 | if test -z "$ac_cv_path_DX_DOT"; then |
| 17379 | ac_pt_DX_DOT=$DX_DOT |
| 17380 | # Extract the first word of "dot", so it can be a program name with args. |
| 17381 | set dummy dot; ac_word=$2 |
| 17382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17383 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17384 | if ${ac_cv_path_ac_pt_DX_DOT+:} false; then : |
| 17385 | $as_echo_n "(cached) " >&6 |
| 17386 | else |
| 17387 | case $ac_pt_DX_DOT in |
| 17388 | [\\/]* | ?:[\\/]*) |
| 17389 | ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path. |
| 17390 | ;; |
| 17391 | *) |
| 17392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17393 | for as_dir in $PATH |
| 17394 | do |
| 17395 | IFS=$as_save_IFS |
| 17396 | test -z "$as_dir" && as_dir=. |
| 17397 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17398 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17399 | ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext" |
| 17400 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17401 | break 2 |
| 17402 | fi |
| 17403 | done |
| 17404 | done |
| 17405 | IFS=$as_save_IFS |
| 17406 | |
| 17407 | ;; |
| 17408 | esac |
| 17409 | fi |
| 17410 | ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT |
| 17411 | if test -n "$ac_pt_DX_DOT"; then |
| 17412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5 |
| 17413 | $as_echo "$ac_pt_DX_DOT" >&6; } |
| 17414 | else |
| 17415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17416 | $as_echo "no" >&6; } |
| 17417 | fi |
| 17418 | |
| 17419 | if test "x$ac_pt_DX_DOT" = x; then |
| 17420 | DX_DOT="" |
| 17421 | else |
| 17422 | case $cross_compiling:$ac_tool_warned in |
| 17423 | yes:) |
| 17424 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17425 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17426 | ac_tool_warned=yes ;; |
| 17427 | esac |
| 17428 | DX_DOT=$ac_pt_DX_DOT |
| 17429 | fi |
| 17430 | else |
| 17431 | DX_DOT="$ac_cv_path_DX_DOT" |
| 17432 | fi |
| 17433 | |
| 17434 | if test "$DX_FLAG_dot$DX_DOT" = 1; then |
| 17435 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5 |
| 17436 | $as_echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;} |
| 17437 | DX_FLAG_dot=0 |
| 17438 | |
| 17439 | fi |
| 17440 | |
| 17441 | : |
| 17442 | fi |
| 17443 | if test "$DX_FLAG_dot" = 1; then |
| 17444 | DX_COND_dot_TRUE= |
| 17445 | DX_COND_dot_FALSE='#' |
| 17446 | else |
| 17447 | DX_COND_dot_TRUE='#' |
| 17448 | DX_COND_dot_FALSE= |
| 17449 | fi |
| 17450 | |
| 17451 | if test "$DX_FLAG_dot" = 1; then |
| 17452 | DX_ENV="$DX_ENV HAVE_DOT='YES'" |
| 17453 | |
| 17454 | DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'" |
| 17455 | |
| 17456 | : |
| 17457 | else |
| 17458 | DX_ENV="$DX_ENV HAVE_DOT='NO'" |
| 17459 | |
| 17460 | : |
| 17461 | fi |
| 17462 | |
| 17463 | |
| 17464 | # Man pages generation: |
| 17465 | |
| 17466 | |
| 17467 | |
| 17468 | # Check whether --enable-doxygen-man was given. |
| 17469 | if test "${enable_doxygen_man+set}" = set; then : |
| 17470 | enableval=$enable_doxygen_man; |
| 17471 | case "$enableval" in |
| 17472 | #( |
| 17473 | y|Y|yes|Yes|YES) |
| 17474 | DX_FLAG_man=1 |
| 17475 | |
| 17476 | |
| 17477 | test "$DX_FLAG_doc" = "1" \ |
| 17478 | || as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5 |
| 17479 | |
| 17480 | ;; #( |
| 17481 | n|N|no|No|NO) |
| 17482 | DX_FLAG_man=0 |
| 17483 | |
| 17484 | ;; #( |
| 17485 | *) |
| 17486 | as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5 |
| 17487 | ;; |
| 17488 | esac |
| 17489 | |
| 17490 | else |
| 17491 | |
| 17492 | DX_FLAG_man=0 |
| 17493 | |
| 17494 | |
| 17495 | test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0 |
| 17496 | |
| 17497 | |
| 17498 | |
| 17499 | fi |
| 17500 | |
| 17501 | if test "$DX_FLAG_man" = 1; then |
| 17502 | |
| 17503 | : |
| 17504 | fi |
| 17505 | if test "$DX_FLAG_man" = 1; then |
| 17506 | DX_COND_man_TRUE= |
| 17507 | DX_COND_man_FALSE='#' |
| 17508 | else |
| 17509 | DX_COND_man_TRUE='#' |
| 17510 | DX_COND_man_FALSE= |
| 17511 | fi |
| 17512 | |
| 17513 | if test "$DX_FLAG_man" = 1; then |
| 17514 | DX_ENV="$DX_ENV GENERATE_MAN='YES'" |
| 17515 | |
| 17516 | : |
| 17517 | else |
| 17518 | DX_ENV="$DX_ENV GENERATE_MAN='NO'" |
| 17519 | |
| 17520 | : |
| 17521 | fi |
| 17522 | |
| 17523 | |
| 17524 | # RTF file generation: |
| 17525 | |
| 17526 | |
| 17527 | |
| 17528 | # Check whether --enable-doxygen-rtf was given. |
| 17529 | if test "${enable_doxygen_rtf+set}" = set; then : |
| 17530 | enableval=$enable_doxygen_rtf; |
| 17531 | case "$enableval" in |
| 17532 | #( |
| 17533 | y|Y|yes|Yes|YES) |
| 17534 | DX_FLAG_rtf=1 |
| 17535 | |
| 17536 | |
| 17537 | test "$DX_FLAG_doc" = "1" \ |
| 17538 | || as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5 |
| 17539 | |
| 17540 | ;; #( |
| 17541 | n|N|no|No|NO) |
| 17542 | DX_FLAG_rtf=0 |
| 17543 | |
| 17544 | ;; #( |
| 17545 | *) |
| 17546 | as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5 |
| 17547 | ;; |
| 17548 | esac |
| 17549 | |
| 17550 | else |
| 17551 | |
| 17552 | DX_FLAG_rtf=0 |
| 17553 | |
| 17554 | |
| 17555 | test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0 |
| 17556 | |
| 17557 | |
| 17558 | |
| 17559 | fi |
| 17560 | |
| 17561 | if test "$DX_FLAG_rtf" = 1; then |
| 17562 | |
| 17563 | : |
| 17564 | fi |
| 17565 | if test "$DX_FLAG_rtf" = 1; then |
| 17566 | DX_COND_rtf_TRUE= |
| 17567 | DX_COND_rtf_FALSE='#' |
| 17568 | else |
| 17569 | DX_COND_rtf_TRUE='#' |
| 17570 | DX_COND_rtf_FALSE= |
| 17571 | fi |
| 17572 | |
| 17573 | if test "$DX_FLAG_rtf" = 1; then |
| 17574 | DX_ENV="$DX_ENV GENERATE_RTF='YES'" |
| 17575 | |
| 17576 | : |
| 17577 | else |
| 17578 | DX_ENV="$DX_ENV GENERATE_RTF='NO'" |
| 17579 | |
| 17580 | : |
| 17581 | fi |
| 17582 | |
| 17583 | |
| 17584 | # XML file generation: |
| 17585 | |
| 17586 | |
| 17587 | |
| 17588 | # Check whether --enable-doxygen-xml was given. |
| 17589 | if test "${enable_doxygen_xml+set}" = set; then : |
| 17590 | enableval=$enable_doxygen_xml; |
| 17591 | case "$enableval" in |
| 17592 | #( |
| 17593 | y|Y|yes|Yes|YES) |
| 17594 | DX_FLAG_xml=1 |
| 17595 | |
| 17596 | |
| 17597 | test "$DX_FLAG_doc" = "1" \ |
| 17598 | || as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5 |
| 17599 | |
| 17600 | ;; #( |
| 17601 | n|N|no|No|NO) |
| 17602 | DX_FLAG_xml=0 |
| 17603 | |
| 17604 | ;; #( |
| 17605 | *) |
| 17606 | as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5 |
| 17607 | ;; |
| 17608 | esac |
| 17609 | |
| 17610 | else |
| 17611 | |
| 17612 | DX_FLAG_xml=0 |
| 17613 | |
| 17614 | |
| 17615 | test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0 |
| 17616 | |
| 17617 | |
| 17618 | |
| 17619 | fi |
| 17620 | |
| 17621 | if test "$DX_FLAG_xml" = 1; then |
| 17622 | |
| 17623 | : |
| 17624 | fi |
| 17625 | if test "$DX_FLAG_xml" = 1; then |
| 17626 | DX_COND_xml_TRUE= |
| 17627 | DX_COND_xml_FALSE='#' |
| 17628 | else |
| 17629 | DX_COND_xml_TRUE='#' |
| 17630 | DX_COND_xml_FALSE= |
| 17631 | fi |
| 17632 | |
| 17633 | if test "$DX_FLAG_xml" = 1; then |
| 17634 | DX_ENV="$DX_ENV GENERATE_XML='YES'" |
| 17635 | |
| 17636 | : |
| 17637 | else |
| 17638 | DX_ENV="$DX_ENV GENERATE_XML='NO'" |
| 17639 | |
| 17640 | : |
| 17641 | fi |
| 17642 | |
| 17643 | |
| 17644 | # (Compressed) HTML help generation: |
| 17645 | |
| 17646 | |
| 17647 | |
| 17648 | # Check whether --enable-doxygen-chm was given. |
| 17649 | if test "${enable_doxygen_chm+set}" = set; then : |
| 17650 | enableval=$enable_doxygen_chm; |
| 17651 | case "$enableval" in |
| 17652 | #( |
| 17653 | y|Y|yes|Yes|YES) |
| 17654 | DX_FLAG_chm=1 |
| 17655 | |
| 17656 | |
| 17657 | test "$DX_FLAG_doc" = "1" \ |
| 17658 | || as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5 |
| 17659 | |
| 17660 | ;; #( |
| 17661 | n|N|no|No|NO) |
| 17662 | DX_FLAG_chm=0 |
| 17663 | |
| 17664 | ;; #( |
| 17665 | *) |
| 17666 | as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5 |
| 17667 | ;; |
| 17668 | esac |
| 17669 | |
| 17670 | else |
| 17671 | |
| 17672 | DX_FLAG_chm=0 |
| 17673 | |
| 17674 | |
| 17675 | test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0 |
| 17676 | |
| 17677 | |
| 17678 | |
| 17679 | fi |
| 17680 | |
| 17681 | if test "$DX_FLAG_chm" = 1; then |
| 17682 | |
| 17683 | if test -n "$ac_tool_prefix"; then |
| 17684 | # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args. |
| 17685 | set dummy ${ac_tool_prefix}hhc; ac_word=$2 |
| 17686 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17687 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17688 | if ${ac_cv_path_DX_HHC+:} false; then : |
| 17689 | $as_echo_n "(cached) " >&6 |
| 17690 | else |
| 17691 | case $DX_HHC in |
| 17692 | [\\/]* | ?:[\\/]*) |
| 17693 | ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path. |
| 17694 | ;; |
| 17695 | *) |
| 17696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17697 | for as_dir in $PATH |
| 17698 | do |
| 17699 | IFS=$as_save_IFS |
| 17700 | test -z "$as_dir" && as_dir=. |
| 17701 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17703 | ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext" |
| 17704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17705 | break 2 |
| 17706 | fi |
| 17707 | done |
| 17708 | done |
| 17709 | IFS=$as_save_IFS |
| 17710 | |
| 17711 | ;; |
| 17712 | esac |
| 17713 | fi |
| 17714 | DX_HHC=$ac_cv_path_DX_HHC |
| 17715 | if test -n "$DX_HHC"; then |
| 17716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5 |
| 17717 | $as_echo "$DX_HHC" >&6; } |
| 17718 | else |
| 17719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17720 | $as_echo "no" >&6; } |
| 17721 | fi |
| 17722 | |
| 17723 | |
| 17724 | fi |
| 17725 | if test -z "$ac_cv_path_DX_HHC"; then |
| 17726 | ac_pt_DX_HHC=$DX_HHC |
| 17727 | # Extract the first word of "hhc", so it can be a program name with args. |
| 17728 | set dummy hhc; ac_word=$2 |
| 17729 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17730 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17731 | if ${ac_cv_path_ac_pt_DX_HHC+:} false; then : |
| 17732 | $as_echo_n "(cached) " >&6 |
| 17733 | else |
| 17734 | case $ac_pt_DX_HHC in |
| 17735 | [\\/]* | ?:[\\/]*) |
| 17736 | ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path. |
| 17737 | ;; |
| 17738 | *) |
| 17739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17740 | for as_dir in $PATH |
| 17741 | do |
| 17742 | IFS=$as_save_IFS |
| 17743 | test -z "$as_dir" && as_dir=. |
| 17744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17745 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17746 | ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext" |
| 17747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 17748 | break 2 |
| 17749 | fi |
| 17750 | done |
| 17751 | done |
| 17752 | IFS=$as_save_IFS |
| 17753 | |
| 17754 | ;; |
| 17755 | esac |
| 17756 | fi |
| 17757 | ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC |
| 17758 | if test -n "$ac_pt_DX_HHC"; then |
| 17759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5 |
| 17760 | $as_echo "$ac_pt_DX_HHC" >&6; } |
| 17761 | else |
| 17762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17763 | $as_echo "no" >&6; } |
| 17764 | fi |
| 17765 | |
| 17766 | if test "x$ac_pt_DX_HHC" = x; then |
| 17767 | DX_HHC="" |
| 17768 | else |
| 17769 | case $cross_compiling:$ac_tool_warned in |
| 17770 | yes:) |
| 17771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 17772 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 17773 | ac_tool_warned=yes ;; |
| 17774 | esac |
| 17775 | DX_HHC=$ac_pt_DX_HHC |
| 17776 | fi |
| 17777 | else |
| 17778 | DX_HHC="$ac_cv_path_DX_HHC" |
| 17779 | fi |
| 17780 | |
| 17781 | if test "$DX_FLAG_chm$DX_HHC" = 1; then |
| 17782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5 |
| 17783 | $as_echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;} |
| 17784 | DX_FLAG_chm=0 |
| 17785 | |
| 17786 | fi |
| 17787 | |
| 17788 | : |
| 17789 | fi |
| 17790 | if test "$DX_FLAG_chm" = 1; then |
| 17791 | DX_COND_chm_TRUE= |
| 17792 | DX_COND_chm_FALSE='#' |
| 17793 | else |
| 17794 | DX_COND_chm_TRUE='#' |
| 17795 | DX_COND_chm_FALSE= |
| 17796 | fi |
| 17797 | |
| 17798 | if test "$DX_FLAG_chm" = 1; then |
| 17799 | DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'" |
| 17800 | |
| 17801 | DX_ENV="$DX_ENV GENERATE_HTML='YES'" |
| 17802 | |
| 17803 | DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'" |
| 17804 | |
| 17805 | : |
| 17806 | else |
| 17807 | DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'" |
| 17808 | |
| 17809 | : |
| 17810 | fi |
| 17811 | |
| 17812 | |
| 17813 | # Seperate CHI file generation. |
| 17814 | |
| 17815 | |
| 17816 | |
| 17817 | # Check whether --enable-doxygen-chi was given. |
| 17818 | if test "${enable_doxygen_chi+set}" = set; then : |
| 17819 | enableval=$enable_doxygen_chi; |
| 17820 | case "$enableval" in |
| 17821 | #( |
| 17822 | y|Y|yes|Yes|YES) |
| 17823 | DX_FLAG_chi=1 |
| 17824 | |
| 17825 | |
| 17826 | test "$DX_FLAG_chm" = "1" \ |
| 17827 | || as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5 |
| 17828 | |
| 17829 | ;; #( |
| 17830 | n|N|no|No|NO) |
| 17831 | DX_FLAG_chi=0 |
| 17832 | |
| 17833 | ;; #( |
| 17834 | *) |
| 17835 | as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5 |
| 17836 | ;; |
| 17837 | esac |
| 17838 | |
| 17839 | else |
| 17840 | |
| 17841 | DX_FLAG_chi=0 |
| 17842 | |
| 17843 | |
| 17844 | test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0 |
| 17845 | |
| 17846 | |
| 17847 | |
| 17848 | fi |
| 17849 | |
| 17850 | if test "$DX_FLAG_chi" = 1; then |
| 17851 | |
| 17852 | : |
| 17853 | fi |
| 17854 | if test "$DX_FLAG_chi" = 1; then |
| 17855 | DX_COND_chi_TRUE= |
| 17856 | DX_COND_chi_FALSE='#' |
| 17857 | else |
| 17858 | DX_COND_chi_TRUE='#' |
| 17859 | DX_COND_chi_FALSE= |
| 17860 | fi |
| 17861 | |
| 17862 | if test "$DX_FLAG_chi" = 1; then |
| 17863 | DX_ENV="$DX_ENV GENERATE_CHI='YES'" |
| 17864 | |
| 17865 | : |
| 17866 | else |
| 17867 | DX_ENV="$DX_ENV GENERATE_CHI='NO'" |
| 17868 | |
| 17869 | : |
| 17870 | fi |
| 17871 | |
| 17872 | |
| 17873 | # Plain HTML pages generation: |
| 17874 | |
| 17875 | |
| 17876 | |
| 17877 | # Check whether --enable-doxygen-html was given. |
| 17878 | if test "${enable_doxygen_html+set}" = set; then : |
| 17879 | enableval=$enable_doxygen_html; |
| 17880 | case "$enableval" in |
| 17881 | #( |
| 17882 | y|Y|yes|Yes|YES) |
| 17883 | DX_FLAG_html=1 |
| 17884 | |
| 17885 | |
| 17886 | test "$DX_FLAG_doc" = "1" \ |
| 17887 | || as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5 |
| 17888 | |
| 17889 | test "$DX_FLAG_chm" = "0" \ |
| 17890 | || as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5 |
| 17891 | |
| 17892 | ;; #( |
| 17893 | n|N|no|No|NO) |
| 17894 | DX_FLAG_html=0 |
| 17895 | |
| 17896 | ;; #( |
| 17897 | *) |
| 17898 | as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5 |
| 17899 | ;; |
| 17900 | esac |
| 17901 | |
| 17902 | else |
| 17903 | |
| 17904 | DX_FLAG_html=1 |
| 17905 | |
| 17906 | |
| 17907 | test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0 |
| 17908 | |
| 17909 | |
| 17910 | test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0 |
| 17911 | |
| 17912 | |
| 17913 | |
| 17914 | fi |
| 17915 | |
| 17916 | if test "$DX_FLAG_html" = 1; then |
| 17917 | |
| 17918 | : |
| 17919 | fi |
| 17920 | if test "$DX_FLAG_html" = 1; then |
| 17921 | DX_COND_html_TRUE= |
| 17922 | DX_COND_html_FALSE='#' |
| 17923 | else |
| 17924 | DX_COND_html_TRUE='#' |
| 17925 | DX_COND_html_FALSE= |
| 17926 | fi |
| 17927 | |
| 17928 | if test "$DX_FLAG_html" = 1; then |
| 17929 | DX_ENV="$DX_ENV GENERATE_HTML='YES'" |
| 17930 | |
| 17931 | : |
| 17932 | else |
| 17933 | test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'" |
| 17934 | |
| 17935 | : |
| 17936 | fi |
| 17937 | |
| 17938 | |
| 17939 | # PostScript file generation: |
| 17940 | |
| 17941 | |
| 17942 | |
| 17943 | # Check whether --enable-doxygen-ps was given. |
| 17944 | if test "${enable_doxygen_ps+set}" = set; then : |
| 17945 | enableval=$enable_doxygen_ps; |
| 17946 | case "$enableval" in |
| 17947 | #( |
| 17948 | y|Y|yes|Yes|YES) |
| 17949 | DX_FLAG_ps=1 |
| 17950 | |
| 17951 | |
| 17952 | test "$DX_FLAG_doc" = "1" \ |
| 17953 | || as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5 |
| 17954 | |
| 17955 | ;; #( |
| 17956 | n|N|no|No|NO) |
| 17957 | DX_FLAG_ps=0 |
| 17958 | |
| 17959 | ;; #( |
| 17960 | *) |
| 17961 | as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5 |
| 17962 | ;; |
| 17963 | esac |
| 17964 | |
| 17965 | else |
| 17966 | |
| 17967 | DX_FLAG_ps=0 |
| 17968 | |
| 17969 | |
| 17970 | test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0 |
| 17971 | |
| 17972 | |
| 17973 | |
| 17974 | fi |
| 17975 | |
| 17976 | if test "$DX_FLAG_ps" = 1; then |
| 17977 | |
| 17978 | if test -n "$ac_tool_prefix"; then |
| 17979 | # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args. |
| 17980 | set dummy ${ac_tool_prefix}latex; ac_word=$2 |
| 17981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 17982 | $as_echo_n "checking for $ac_word... " >&6; } |
| 17983 | if ${ac_cv_path_DX_LATEX+:} false; then : |
| 17984 | $as_echo_n "(cached) " >&6 |
| 17985 | else |
| 17986 | case $DX_LATEX in |
| 17987 | [\\/]* | ?:[\\/]*) |
| 17988 | ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path. |
| 17989 | ;; |
| 17990 | *) |
| 17991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 17992 | for as_dir in $PATH |
| 17993 | do |
| 17994 | IFS=$as_save_IFS |
| 17995 | test -z "$as_dir" && as_dir=. |
| 17996 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 17997 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 17998 | ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" |
| 17999 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18000 | break 2 |
| 18001 | fi |
| 18002 | done |
| 18003 | done |
| 18004 | IFS=$as_save_IFS |
| 18005 | |
| 18006 | ;; |
| 18007 | esac |
| 18008 | fi |
| 18009 | DX_LATEX=$ac_cv_path_DX_LATEX |
| 18010 | if test -n "$DX_LATEX"; then |
| 18011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5 |
| 18012 | $as_echo "$DX_LATEX" >&6; } |
| 18013 | else |
| 18014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18015 | $as_echo "no" >&6; } |
| 18016 | fi |
| 18017 | |
| 18018 | |
| 18019 | fi |
| 18020 | if test -z "$ac_cv_path_DX_LATEX"; then |
| 18021 | ac_pt_DX_LATEX=$DX_LATEX |
| 18022 | # Extract the first word of "latex", so it can be a program name with args. |
| 18023 | set dummy latex; ac_word=$2 |
| 18024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18025 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18026 | if ${ac_cv_path_ac_pt_DX_LATEX+:} false; then : |
| 18027 | $as_echo_n "(cached) " >&6 |
| 18028 | else |
| 18029 | case $ac_pt_DX_LATEX in |
| 18030 | [\\/]* | ?:[\\/]*) |
| 18031 | ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path. |
| 18032 | ;; |
| 18033 | *) |
| 18034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18035 | for as_dir in $PATH |
| 18036 | do |
| 18037 | IFS=$as_save_IFS |
| 18038 | test -z "$as_dir" && as_dir=. |
| 18039 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18041 | ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext" |
| 18042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18043 | break 2 |
| 18044 | fi |
| 18045 | done |
| 18046 | done |
| 18047 | IFS=$as_save_IFS |
| 18048 | |
| 18049 | ;; |
| 18050 | esac |
| 18051 | fi |
| 18052 | ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX |
| 18053 | if test -n "$ac_pt_DX_LATEX"; then |
| 18054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5 |
| 18055 | $as_echo "$ac_pt_DX_LATEX" >&6; } |
| 18056 | else |
| 18057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18058 | $as_echo "no" >&6; } |
| 18059 | fi |
| 18060 | |
| 18061 | if test "x$ac_pt_DX_LATEX" = x; then |
| 18062 | DX_LATEX="" |
| 18063 | else |
| 18064 | case $cross_compiling:$ac_tool_warned in |
| 18065 | yes:) |
| 18066 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18067 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18068 | ac_tool_warned=yes ;; |
| 18069 | esac |
| 18070 | DX_LATEX=$ac_pt_DX_LATEX |
| 18071 | fi |
| 18072 | else |
| 18073 | DX_LATEX="$ac_cv_path_DX_LATEX" |
| 18074 | fi |
| 18075 | |
| 18076 | if test "$DX_FLAG_ps$DX_LATEX" = 1; then |
| 18077 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5 |
| 18078 | $as_echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;} |
| 18079 | DX_FLAG_ps=0 |
| 18080 | |
| 18081 | fi |
| 18082 | |
| 18083 | |
| 18084 | if test -n "$ac_tool_prefix"; then |
| 18085 | # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. |
| 18086 | set dummy ${ac_tool_prefix}makeindex; ac_word=$2 |
| 18087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18088 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18089 | if ${ac_cv_path_DX_MAKEINDEX+:} false; then : |
| 18090 | $as_echo_n "(cached) " >&6 |
| 18091 | else |
| 18092 | case $DX_MAKEINDEX in |
| 18093 | [\\/]* | ?:[\\/]*) |
| 18094 | ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. |
| 18095 | ;; |
| 18096 | *) |
| 18097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18098 | for as_dir in $PATH |
| 18099 | do |
| 18100 | IFS=$as_save_IFS |
| 18101 | test -z "$as_dir" && as_dir=. |
| 18102 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18103 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18104 | ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 18105 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18106 | break 2 |
| 18107 | fi |
| 18108 | done |
| 18109 | done |
| 18110 | IFS=$as_save_IFS |
| 18111 | |
| 18112 | ;; |
| 18113 | esac |
| 18114 | fi |
| 18115 | DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX |
| 18116 | if test -n "$DX_MAKEINDEX"; then |
| 18117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 |
| 18118 | $as_echo "$DX_MAKEINDEX" >&6; } |
| 18119 | else |
| 18120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18121 | $as_echo "no" >&6; } |
| 18122 | fi |
| 18123 | |
| 18124 | |
| 18125 | fi |
| 18126 | if test -z "$ac_cv_path_DX_MAKEINDEX"; then |
| 18127 | ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX |
| 18128 | # Extract the first word of "makeindex", so it can be a program name with args. |
| 18129 | set dummy makeindex; ac_word=$2 |
| 18130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18131 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18132 | if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : |
| 18133 | $as_echo_n "(cached) " >&6 |
| 18134 | else |
| 18135 | case $ac_pt_DX_MAKEINDEX in |
| 18136 | [\\/]* | ?:[\\/]*) |
| 18137 | ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. |
| 18138 | ;; |
| 18139 | *) |
| 18140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18141 | for as_dir in $PATH |
| 18142 | do |
| 18143 | IFS=$as_save_IFS |
| 18144 | test -z "$as_dir" && as_dir=. |
| 18145 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18146 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18147 | ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 18148 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18149 | break 2 |
| 18150 | fi |
| 18151 | done |
| 18152 | done |
| 18153 | IFS=$as_save_IFS |
| 18154 | |
| 18155 | ;; |
| 18156 | esac |
| 18157 | fi |
| 18158 | ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX |
| 18159 | if test -n "$ac_pt_DX_MAKEINDEX"; then |
| 18160 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 |
| 18161 | $as_echo "$ac_pt_DX_MAKEINDEX" >&6; } |
| 18162 | else |
| 18163 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18164 | $as_echo "no" >&6; } |
| 18165 | fi |
| 18166 | |
| 18167 | if test "x$ac_pt_DX_MAKEINDEX" = x; then |
| 18168 | DX_MAKEINDEX="" |
| 18169 | else |
| 18170 | case $cross_compiling:$ac_tool_warned in |
| 18171 | yes:) |
| 18172 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18173 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18174 | ac_tool_warned=yes ;; |
| 18175 | esac |
| 18176 | DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX |
| 18177 | fi |
| 18178 | else |
| 18179 | DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" |
| 18180 | fi |
| 18181 | |
| 18182 | if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then |
| 18183 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5 |
| 18184 | $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;} |
| 18185 | DX_FLAG_ps=0 |
| 18186 | |
| 18187 | fi |
| 18188 | |
| 18189 | |
| 18190 | if test -n "$ac_tool_prefix"; then |
| 18191 | # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args. |
| 18192 | set dummy ${ac_tool_prefix}dvips; ac_word=$2 |
| 18193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18194 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18195 | if ${ac_cv_path_DX_DVIPS+:} false; then : |
| 18196 | $as_echo_n "(cached) " >&6 |
| 18197 | else |
| 18198 | case $DX_DVIPS in |
| 18199 | [\\/]* | ?:[\\/]*) |
| 18200 | ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path. |
| 18201 | ;; |
| 18202 | *) |
| 18203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18204 | for as_dir in $PATH |
| 18205 | do |
| 18206 | IFS=$as_save_IFS |
| 18207 | test -z "$as_dir" && as_dir=. |
| 18208 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18209 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18210 | ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" |
| 18211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18212 | break 2 |
| 18213 | fi |
| 18214 | done |
| 18215 | done |
| 18216 | IFS=$as_save_IFS |
| 18217 | |
| 18218 | ;; |
| 18219 | esac |
| 18220 | fi |
| 18221 | DX_DVIPS=$ac_cv_path_DX_DVIPS |
| 18222 | if test -n "$DX_DVIPS"; then |
| 18223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5 |
| 18224 | $as_echo "$DX_DVIPS" >&6; } |
| 18225 | else |
| 18226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18227 | $as_echo "no" >&6; } |
| 18228 | fi |
| 18229 | |
| 18230 | |
| 18231 | fi |
| 18232 | if test -z "$ac_cv_path_DX_DVIPS"; then |
| 18233 | ac_pt_DX_DVIPS=$DX_DVIPS |
| 18234 | # Extract the first word of "dvips", so it can be a program name with args. |
| 18235 | set dummy dvips; ac_word=$2 |
| 18236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18237 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18238 | if ${ac_cv_path_ac_pt_DX_DVIPS+:} false; then : |
| 18239 | $as_echo_n "(cached) " >&6 |
| 18240 | else |
| 18241 | case $ac_pt_DX_DVIPS in |
| 18242 | [\\/]* | ?:[\\/]*) |
| 18243 | ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path. |
| 18244 | ;; |
| 18245 | *) |
| 18246 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18247 | for as_dir in $PATH |
| 18248 | do |
| 18249 | IFS=$as_save_IFS |
| 18250 | test -z "$as_dir" && as_dir=. |
| 18251 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18252 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18253 | ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext" |
| 18254 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18255 | break 2 |
| 18256 | fi |
| 18257 | done |
| 18258 | done |
| 18259 | IFS=$as_save_IFS |
| 18260 | |
| 18261 | ;; |
| 18262 | esac |
| 18263 | fi |
| 18264 | ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS |
| 18265 | if test -n "$ac_pt_DX_DVIPS"; then |
| 18266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5 |
| 18267 | $as_echo "$ac_pt_DX_DVIPS" >&6; } |
| 18268 | else |
| 18269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18270 | $as_echo "no" >&6; } |
| 18271 | fi |
| 18272 | |
| 18273 | if test "x$ac_pt_DX_DVIPS" = x; then |
| 18274 | DX_DVIPS="" |
| 18275 | else |
| 18276 | case $cross_compiling:$ac_tool_warned in |
| 18277 | yes:) |
| 18278 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18279 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18280 | ac_tool_warned=yes ;; |
| 18281 | esac |
| 18282 | DX_DVIPS=$ac_pt_DX_DVIPS |
| 18283 | fi |
| 18284 | else |
| 18285 | DX_DVIPS="$ac_cv_path_DX_DVIPS" |
| 18286 | fi |
| 18287 | |
| 18288 | if test "$DX_FLAG_ps$DX_DVIPS" = 1; then |
| 18289 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5 |
| 18290 | $as_echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;} |
| 18291 | DX_FLAG_ps=0 |
| 18292 | |
| 18293 | fi |
| 18294 | |
| 18295 | |
| 18296 | if test -n "$ac_tool_prefix"; then |
| 18297 | # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. |
| 18298 | set dummy ${ac_tool_prefix}egrep; ac_word=$2 |
| 18299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18300 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18301 | if ${ac_cv_path_DX_EGREP+:} false; then : |
| 18302 | $as_echo_n "(cached) " >&6 |
| 18303 | else |
| 18304 | case $DX_EGREP in |
| 18305 | [\\/]* | ?:[\\/]*) |
| 18306 | ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. |
| 18307 | ;; |
| 18308 | *) |
| 18309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18310 | for as_dir in $PATH |
| 18311 | do |
| 18312 | IFS=$as_save_IFS |
| 18313 | test -z "$as_dir" && as_dir=. |
| 18314 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18315 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18316 | ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18318 | break 2 |
| 18319 | fi |
| 18320 | done |
| 18321 | done |
| 18322 | IFS=$as_save_IFS |
| 18323 | |
| 18324 | ;; |
| 18325 | esac |
| 18326 | fi |
| 18327 | DX_EGREP=$ac_cv_path_DX_EGREP |
| 18328 | if test -n "$DX_EGREP"; then |
| 18329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 |
| 18330 | $as_echo "$DX_EGREP" >&6; } |
| 18331 | else |
| 18332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18333 | $as_echo "no" >&6; } |
| 18334 | fi |
| 18335 | |
| 18336 | |
| 18337 | fi |
| 18338 | if test -z "$ac_cv_path_DX_EGREP"; then |
| 18339 | ac_pt_DX_EGREP=$DX_EGREP |
| 18340 | # Extract the first word of "egrep", so it can be a program name with args. |
| 18341 | set dummy egrep; ac_word=$2 |
| 18342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18343 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18344 | if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : |
| 18345 | $as_echo_n "(cached) " >&6 |
| 18346 | else |
| 18347 | case $ac_pt_DX_EGREP in |
| 18348 | [\\/]* | ?:[\\/]*) |
| 18349 | ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. |
| 18350 | ;; |
| 18351 | *) |
| 18352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18353 | for as_dir in $PATH |
| 18354 | do |
| 18355 | IFS=$as_save_IFS |
| 18356 | test -z "$as_dir" && as_dir=. |
| 18357 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18358 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18359 | ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18361 | break 2 |
| 18362 | fi |
| 18363 | done |
| 18364 | done |
| 18365 | IFS=$as_save_IFS |
| 18366 | |
| 18367 | ;; |
| 18368 | esac |
| 18369 | fi |
| 18370 | ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP |
| 18371 | if test -n "$ac_pt_DX_EGREP"; then |
| 18372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 |
| 18373 | $as_echo "$ac_pt_DX_EGREP" >&6; } |
| 18374 | else |
| 18375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18376 | $as_echo "no" >&6; } |
| 18377 | fi |
| 18378 | |
| 18379 | if test "x$ac_pt_DX_EGREP" = x; then |
| 18380 | DX_EGREP="" |
| 18381 | else |
| 18382 | case $cross_compiling:$ac_tool_warned in |
| 18383 | yes:) |
| 18384 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18385 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18386 | ac_tool_warned=yes ;; |
| 18387 | esac |
| 18388 | DX_EGREP=$ac_pt_DX_EGREP |
| 18389 | fi |
| 18390 | else |
| 18391 | DX_EGREP="$ac_cv_path_DX_EGREP" |
| 18392 | fi |
| 18393 | |
| 18394 | if test "$DX_FLAG_ps$DX_EGREP" = 1; then |
| 18395 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5 |
| 18396 | $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;} |
| 18397 | DX_FLAG_ps=0 |
| 18398 | |
| 18399 | fi |
| 18400 | |
| 18401 | : |
| 18402 | fi |
| 18403 | if test "$DX_FLAG_ps" = 1; then |
| 18404 | DX_COND_ps_TRUE= |
| 18405 | DX_COND_ps_FALSE='#' |
| 18406 | else |
| 18407 | DX_COND_ps_TRUE='#' |
| 18408 | DX_COND_ps_FALSE= |
| 18409 | fi |
| 18410 | |
| 18411 | if test "$DX_FLAG_ps" = 1; then |
| 18412 | |
| 18413 | : |
| 18414 | else |
| 18415 | |
| 18416 | : |
| 18417 | fi |
| 18418 | |
| 18419 | |
| 18420 | # PDF file generation: |
| 18421 | |
| 18422 | |
| 18423 | |
| 18424 | # Check whether --enable-doxygen-pdf was given. |
| 18425 | if test "${enable_doxygen_pdf+set}" = set; then : |
| 18426 | enableval=$enable_doxygen_pdf; |
| 18427 | case "$enableval" in |
| 18428 | #( |
| 18429 | y|Y|yes|Yes|YES) |
| 18430 | DX_FLAG_pdf=1 |
| 18431 | |
| 18432 | |
| 18433 | test "$DX_FLAG_doc" = "1" \ |
| 18434 | || as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5 |
| 18435 | |
| 18436 | ;; #( |
| 18437 | n|N|no|No|NO) |
| 18438 | DX_FLAG_pdf=0 |
| 18439 | |
| 18440 | ;; #( |
| 18441 | *) |
| 18442 | as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5 |
| 18443 | ;; |
| 18444 | esac |
| 18445 | |
| 18446 | else |
| 18447 | |
| 18448 | DX_FLAG_pdf=0 |
| 18449 | |
| 18450 | |
| 18451 | test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0 |
| 18452 | |
| 18453 | |
| 18454 | |
| 18455 | fi |
| 18456 | |
| 18457 | if test "$DX_FLAG_pdf" = 1; then |
| 18458 | |
| 18459 | if test -n "$ac_tool_prefix"; then |
| 18460 | # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args. |
| 18461 | set dummy ${ac_tool_prefix}pdflatex; ac_word=$2 |
| 18462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18463 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18464 | if ${ac_cv_path_DX_PDFLATEX+:} false; then : |
| 18465 | $as_echo_n "(cached) " >&6 |
| 18466 | else |
| 18467 | case $DX_PDFLATEX in |
| 18468 | [\\/]* | ?:[\\/]*) |
| 18469 | ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path. |
| 18470 | ;; |
| 18471 | *) |
| 18472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18473 | for as_dir in $PATH |
| 18474 | do |
| 18475 | IFS=$as_save_IFS |
| 18476 | test -z "$as_dir" && as_dir=. |
| 18477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18478 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18479 | ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 18480 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18481 | break 2 |
| 18482 | fi |
| 18483 | done |
| 18484 | done |
| 18485 | IFS=$as_save_IFS |
| 18486 | |
| 18487 | ;; |
| 18488 | esac |
| 18489 | fi |
| 18490 | DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX |
| 18491 | if test -n "$DX_PDFLATEX"; then |
| 18492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5 |
| 18493 | $as_echo "$DX_PDFLATEX" >&6; } |
| 18494 | else |
| 18495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18496 | $as_echo "no" >&6; } |
| 18497 | fi |
| 18498 | |
| 18499 | |
| 18500 | fi |
| 18501 | if test -z "$ac_cv_path_DX_PDFLATEX"; then |
| 18502 | ac_pt_DX_PDFLATEX=$DX_PDFLATEX |
| 18503 | # Extract the first word of "pdflatex", so it can be a program name with args. |
| 18504 | set dummy pdflatex; ac_word=$2 |
| 18505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18506 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18507 | if ${ac_cv_path_ac_pt_DX_PDFLATEX+:} false; then : |
| 18508 | $as_echo_n "(cached) " >&6 |
| 18509 | else |
| 18510 | case $ac_pt_DX_PDFLATEX in |
| 18511 | [\\/]* | ?:[\\/]*) |
| 18512 | ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path. |
| 18513 | ;; |
| 18514 | *) |
| 18515 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18516 | for as_dir in $PATH |
| 18517 | do |
| 18518 | IFS=$as_save_IFS |
| 18519 | test -z "$as_dir" && as_dir=. |
| 18520 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18521 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18522 | ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext" |
| 18523 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18524 | break 2 |
| 18525 | fi |
| 18526 | done |
| 18527 | done |
| 18528 | IFS=$as_save_IFS |
| 18529 | |
| 18530 | ;; |
| 18531 | esac |
| 18532 | fi |
| 18533 | ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX |
| 18534 | if test -n "$ac_pt_DX_PDFLATEX"; then |
| 18535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5 |
| 18536 | $as_echo "$ac_pt_DX_PDFLATEX" >&6; } |
| 18537 | else |
| 18538 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18539 | $as_echo "no" >&6; } |
| 18540 | fi |
| 18541 | |
| 18542 | if test "x$ac_pt_DX_PDFLATEX" = x; then |
| 18543 | DX_PDFLATEX="" |
| 18544 | else |
| 18545 | case $cross_compiling:$ac_tool_warned in |
| 18546 | yes:) |
| 18547 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18548 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18549 | ac_tool_warned=yes ;; |
| 18550 | esac |
| 18551 | DX_PDFLATEX=$ac_pt_DX_PDFLATEX |
| 18552 | fi |
| 18553 | else |
| 18554 | DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX" |
| 18555 | fi |
| 18556 | |
| 18557 | if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then |
| 18558 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5 |
| 18559 | $as_echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;} |
| 18560 | DX_FLAG_pdf=0 |
| 18561 | |
| 18562 | fi |
| 18563 | |
| 18564 | |
| 18565 | if test -n "$ac_tool_prefix"; then |
| 18566 | # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. |
| 18567 | set dummy ${ac_tool_prefix}makeindex; ac_word=$2 |
| 18568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18569 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18570 | if ${ac_cv_path_DX_MAKEINDEX+:} false; then : |
| 18571 | $as_echo_n "(cached) " >&6 |
| 18572 | else |
| 18573 | case $DX_MAKEINDEX in |
| 18574 | [\\/]* | ?:[\\/]*) |
| 18575 | ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path. |
| 18576 | ;; |
| 18577 | *) |
| 18578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18579 | for as_dir in $PATH |
| 18580 | do |
| 18581 | IFS=$as_save_IFS |
| 18582 | test -z "$as_dir" && as_dir=. |
| 18583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18584 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18585 | ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 18586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18587 | break 2 |
| 18588 | fi |
| 18589 | done |
| 18590 | done |
| 18591 | IFS=$as_save_IFS |
| 18592 | |
| 18593 | ;; |
| 18594 | esac |
| 18595 | fi |
| 18596 | DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX |
| 18597 | if test -n "$DX_MAKEINDEX"; then |
| 18598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 |
| 18599 | $as_echo "$DX_MAKEINDEX" >&6; } |
| 18600 | else |
| 18601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18602 | $as_echo "no" >&6; } |
| 18603 | fi |
| 18604 | |
| 18605 | |
| 18606 | fi |
| 18607 | if test -z "$ac_cv_path_DX_MAKEINDEX"; then |
| 18608 | ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX |
| 18609 | # Extract the first word of "makeindex", so it can be a program name with args. |
| 18610 | set dummy makeindex; ac_word=$2 |
| 18611 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18612 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18613 | if ${ac_cv_path_ac_pt_DX_MAKEINDEX+:} false; then : |
| 18614 | $as_echo_n "(cached) " >&6 |
| 18615 | else |
| 18616 | case $ac_pt_DX_MAKEINDEX in |
| 18617 | [\\/]* | ?:[\\/]*) |
| 18618 | ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path. |
| 18619 | ;; |
| 18620 | *) |
| 18621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18622 | for as_dir in $PATH |
| 18623 | do |
| 18624 | IFS=$as_save_IFS |
| 18625 | test -z "$as_dir" && as_dir=. |
| 18626 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18627 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18628 | ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext" |
| 18629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18630 | break 2 |
| 18631 | fi |
| 18632 | done |
| 18633 | done |
| 18634 | IFS=$as_save_IFS |
| 18635 | |
| 18636 | ;; |
| 18637 | esac |
| 18638 | fi |
| 18639 | ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX |
| 18640 | if test -n "$ac_pt_DX_MAKEINDEX"; then |
| 18641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 |
| 18642 | $as_echo "$ac_pt_DX_MAKEINDEX" >&6; } |
| 18643 | else |
| 18644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18645 | $as_echo "no" >&6; } |
| 18646 | fi |
| 18647 | |
| 18648 | if test "x$ac_pt_DX_MAKEINDEX" = x; then |
| 18649 | DX_MAKEINDEX="" |
| 18650 | else |
| 18651 | case $cross_compiling:$ac_tool_warned in |
| 18652 | yes:) |
| 18653 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18654 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18655 | ac_tool_warned=yes ;; |
| 18656 | esac |
| 18657 | DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX |
| 18658 | fi |
| 18659 | else |
| 18660 | DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" |
| 18661 | fi |
| 18662 | |
| 18663 | if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then |
| 18664 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5 |
| 18665 | $as_echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;} |
| 18666 | DX_FLAG_pdf=0 |
| 18667 | |
| 18668 | fi |
| 18669 | |
| 18670 | |
| 18671 | if test -n "$ac_tool_prefix"; then |
| 18672 | # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. |
| 18673 | set dummy ${ac_tool_prefix}egrep; ac_word=$2 |
| 18674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18675 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18676 | if ${ac_cv_path_DX_EGREP+:} false; then : |
| 18677 | $as_echo_n "(cached) " >&6 |
| 18678 | else |
| 18679 | case $DX_EGREP in |
| 18680 | [\\/]* | ?:[\\/]*) |
| 18681 | ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path. |
| 18682 | ;; |
| 18683 | *) |
| 18684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18685 | for as_dir in $PATH |
| 18686 | do |
| 18687 | IFS=$as_save_IFS |
| 18688 | test -z "$as_dir" && as_dir=. |
| 18689 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18690 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18691 | ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18692 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18693 | break 2 |
| 18694 | fi |
| 18695 | done |
| 18696 | done |
| 18697 | IFS=$as_save_IFS |
| 18698 | |
| 18699 | ;; |
| 18700 | esac |
| 18701 | fi |
| 18702 | DX_EGREP=$ac_cv_path_DX_EGREP |
| 18703 | if test -n "$DX_EGREP"; then |
| 18704 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 |
| 18705 | $as_echo "$DX_EGREP" >&6; } |
| 18706 | else |
| 18707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18708 | $as_echo "no" >&6; } |
| 18709 | fi |
| 18710 | |
| 18711 | |
| 18712 | fi |
| 18713 | if test -z "$ac_cv_path_DX_EGREP"; then |
| 18714 | ac_pt_DX_EGREP=$DX_EGREP |
| 18715 | # Extract the first word of "egrep", so it can be a program name with args. |
| 18716 | set dummy egrep; ac_word=$2 |
| 18717 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18718 | $as_echo_n "checking for $ac_word... " >&6; } |
| 18719 | if ${ac_cv_path_ac_pt_DX_EGREP+:} false; then : |
| 18720 | $as_echo_n "(cached) " >&6 |
| 18721 | else |
| 18722 | case $ac_pt_DX_EGREP in |
| 18723 | [\\/]* | ?:[\\/]*) |
| 18724 | ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path. |
| 18725 | ;; |
| 18726 | *) |
| 18727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18728 | for as_dir in $PATH |
| 18729 | do |
| 18730 | IFS=$as_save_IFS |
| 18731 | test -z "$as_dir" && as_dir=. |
| 18732 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 18733 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 18734 | ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext" |
| 18735 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 18736 | break 2 |
| 18737 | fi |
| 18738 | done |
| 18739 | done |
| 18740 | IFS=$as_save_IFS |
| 18741 | |
| 18742 | ;; |
| 18743 | esac |
| 18744 | fi |
| 18745 | ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP |
| 18746 | if test -n "$ac_pt_DX_EGREP"; then |
| 18747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 |
| 18748 | $as_echo "$ac_pt_DX_EGREP" >&6; } |
| 18749 | else |
| 18750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18751 | $as_echo "no" >&6; } |
| 18752 | fi |
| 18753 | |
| 18754 | if test "x$ac_pt_DX_EGREP" = x; then |
| 18755 | DX_EGREP="" |
| 18756 | else |
| 18757 | case $cross_compiling:$ac_tool_warned in |
| 18758 | yes:) |
| 18759 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 18760 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 18761 | ac_tool_warned=yes ;; |
| 18762 | esac |
| 18763 | DX_EGREP=$ac_pt_DX_EGREP |
| 18764 | fi |
| 18765 | else |
| 18766 | DX_EGREP="$ac_cv_path_DX_EGREP" |
| 18767 | fi |
| 18768 | |
| 18769 | if test "$DX_FLAG_pdf$DX_EGREP" = 1; then |
| 18770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5 |
| 18771 | $as_echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;} |
| 18772 | DX_FLAG_pdf=0 |
| 18773 | |
| 18774 | fi |
| 18775 | |
| 18776 | : |
| 18777 | fi |
| 18778 | if test "$DX_FLAG_pdf" = 1; then |
| 18779 | DX_COND_pdf_TRUE= |
| 18780 | DX_COND_pdf_FALSE='#' |
| 18781 | else |
| 18782 | DX_COND_pdf_TRUE='#' |
| 18783 | DX_COND_pdf_FALSE= |
| 18784 | fi |
| 18785 | |
| 18786 | if test "$DX_FLAG_pdf" = 1; then |
| 18787 | |
| 18788 | : |
| 18789 | else |
| 18790 | |
| 18791 | : |
| 18792 | fi |
| 18793 | |
| 18794 | |
| 18795 | # LaTeX generation for PS and/or PDF: |
| 18796 | if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then |
| 18797 | DX_COND_latex_TRUE= |
| 18798 | DX_COND_latex_FALSE='#' |
| 18799 | else |
| 18800 | DX_COND_latex_TRUE='#' |
| 18801 | DX_COND_latex_FALSE= |
| 18802 | fi |
| 18803 | |
| 18804 | if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then |
| 18805 | DX_ENV="$DX_ENV GENERATE_LATEX='YES'" |
| 18806 | |
| 18807 | else |
| 18808 | DX_ENV="$DX_ENV GENERATE_LATEX='NO'" |
| 18809 | |
| 18810 | fi |
| 18811 | |
| 18812 | # Paper size for PS and/or PDF: |
| 18813 | |
| 18814 | case "$DOXYGEN_PAPER_SIZE" in |
| 18815 | #( |
| 18816 | "") |
| 18817 | DOXYGEN_PAPER_SIZE="" |
| 18818 | |
| 18819 | ;; #( |
| 18820 | a4wide|a4|letter|legal|executive) |
| 18821 | DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" |
| 18822 | |
| 18823 | ;; #( |
| 18824 | *) |
| 18825 | as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5 |
| 18826 | ;; |
| 18827 | esac |
| 18828 | |
| 18829 | #For debugging: |
| 18830 | #echo DX_FLAG_doc=$DX_FLAG_doc |
| 18831 | #echo DX_FLAG_dot=$DX_FLAG_dot |
| 18832 | #echo DX_FLAG_man=$DX_FLAG_man |
| 18833 | #echo DX_FLAG_html=$DX_FLAG_html |
| 18834 | #echo DX_FLAG_chm=$DX_FLAG_chm |
| 18835 | #echo DX_FLAG_chi=$DX_FLAG_chi |
| 18836 | #echo DX_FLAG_rtf=$DX_FLAG_rtf |
| 18837 | #echo DX_FLAG_xml=$DX_FLAG_xml |
| 18838 | #echo DX_FLAG_pdf=$DX_FLAG_pdf |
| 18839 | #echo DX_FLAG_ps=$DX_FLAG_ps |
| 18840 | #echo DX_ENV=$DX_ENV |
| 18841 | |
| 18842 | |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame] | 18843 | ac_config_files="$ac_config_files Makefile include/Makefile" |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18844 | |
| 18845 | cat >confcache <<\_ACEOF |
| 18846 | # This file is a shell script that caches the results of configure |
| 18847 | # tests run on this system so they can be shared between configure |
| 18848 | # scripts and configure runs, see configure's option --config-cache. |
| 18849 | # It is not useful on other systems. If it contains results you don't |
| 18850 | # want to keep, you may remove or edit it. |
| 18851 | # |
| 18852 | # config.status only pays attention to the cache file if you give it |
| 18853 | # the --recheck option to rerun configure. |
| 18854 | # |
| 18855 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 18856 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 18857 | # following values. |
| 18858 | |
| 18859 | _ACEOF |
| 18860 | |
| 18861 | # The following way of writing the cache mishandles newlines in values, |
| 18862 | # but we know of no workaround that is simple, portable, and efficient. |
| 18863 | # So, we kill variables containing newlines. |
| 18864 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 18865 | # and sets the high bit in the cache file unless we assign to the vars. |
| 18866 | ( |
| 18867 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 18868 | eval ac_val=\$$ac_var |
| 18869 | case $ac_val in #( |
| 18870 | *${as_nl}*) |
| 18871 | case $ac_var in #( |
| 18872 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 18873 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 18874 | esac |
| 18875 | case $ac_var in #( |
| 18876 | _ | IFS | as_nl) ;; #( |
| 18877 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 18878 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 18879 | esac ;; |
| 18880 | esac |
| 18881 | done |
| 18882 | |
| 18883 | (set) 2>&1 | |
| 18884 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 18885 | *${as_nl}ac_space=\ *) |
| 18886 | # `set' does not quote correctly, so add quotes: double-quote |
| 18887 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 18888 | sed -n \ |
| 18889 | "s/'/'\\\\''/g; |
| 18890 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 18891 | ;; #( |
| 18892 | *) |
| 18893 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 18894 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 18895 | ;; |
| 18896 | esac | |
| 18897 | sort |
| 18898 | ) | |
| 18899 | sed ' |
| 18900 | /^ac_cv_env_/b end |
| 18901 | t clear |
| 18902 | :clear |
| 18903 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 18904 | t end |
| 18905 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 18906 | :end' >>confcache |
| 18907 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 18908 | if test -w "$cache_file"; then |
| 18909 | if test "x$cache_file" != "x/dev/null"; then |
| 18910 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 18911 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 18912 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 18913 | cat confcache >"$cache_file" |
| 18914 | else |
| 18915 | case $cache_file in #( |
| 18916 | */* | ?:*) |
| 18917 | mv -f confcache "$cache_file"$$ && |
| 18918 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 18919 | *) |
| 18920 | mv -f confcache "$cache_file" ;; |
| 18921 | esac |
| 18922 | fi |
| 18923 | fi |
| 18924 | else |
| 18925 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 18926 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 18927 | fi |
| 18928 | fi |
| 18929 | rm -f confcache |
| 18930 | |
| 18931 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 18932 | # Let make expand exec_prefix. |
| 18933 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 18934 | |
| 18935 | DEFS=-DHAVE_CONFIG_H |
| 18936 | |
| 18937 | ac_libobjs= |
| 18938 | ac_ltlibobjs= |
| 18939 | U= |
| 18940 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 18941 | # 1. Remove the extension, and $U if already installed. |
| 18942 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 18943 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 18944 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 18945 | # will be set to the directory where LIBOBJS objects are built. |
| 18946 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 18947 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 18948 | done |
| 18949 | LIBOBJS=$ac_libobjs |
| 18950 | |
| 18951 | LTLIBOBJS=$ac_ltlibobjs |
| 18952 | |
| 18953 | |
| 18954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 18955 | $as_echo_n "checking that generated files are newer than configure... " >&6; } |
| 18956 | if test -n "$am_sleep_pid"; then |
| 18957 | # Hide warnings about reused PIDs. |
| 18958 | wait $am_sleep_pid 2>/dev/null |
| 18959 | fi |
| 18960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 18961 | $as_echo "done" >&6; } |
| 18962 | if test -n "$EXEEXT"; then |
| 18963 | am__EXEEXT_TRUE= |
| 18964 | am__EXEEXT_FALSE='#' |
| 18965 | else |
| 18966 | am__EXEEXT_TRUE='#' |
| 18967 | am__EXEEXT_FALSE= |
| 18968 | fi |
| 18969 | |
Jeff Thompson | 47053ad | 2013-08-05 10:36:53 -0700 | [diff] [blame] | 18970 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
| 18971 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
| 18972 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18973 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 18974 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 18975 | as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 18976 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18977 | fi |
Jeff Thompson | 3617406 | 2013-06-21 16:03:44 -0700 | [diff] [blame] | 18978 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 18979 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 18980 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18981 | fi |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 18982 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 18983 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. |
| 18984 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18985 | fi |
Jeff Thompson | 965a324 | 2013-10-02 09:59:35 -0700 | [diff] [blame] | 18986 | if test -z "${am__fastdepOBJCXX_TRUE}" && test -z "${am__fastdepOBJCXX_FALSE}"; then |
| 18987 | as_fn_error $? "conditional \"am__fastdepOBJCXX\" was never defined. |
| 18988 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18989 | fi |
Jeff Thompson | ca45e55 | 2013-06-26 17:40:06 -0700 | [diff] [blame] | 18990 | if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then |
| 18991 | as_fn_error $? "conditional \"DX_COND_doc\" was never defined. |
| 18992 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18993 | fi |
| 18994 | if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then |
| 18995 | as_fn_error $? "conditional \"DX_COND_dot\" was never defined. |
| 18996 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 18997 | fi |
| 18998 | if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then |
| 18999 | as_fn_error $? "conditional \"DX_COND_man\" was never defined. |
| 19000 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 19001 | fi |
| 19002 | if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then |
| 19003 | as_fn_error $? "conditional \"DX_COND_rtf\" was never defined. |
| 19004 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 19005 | fi |
| 19006 | if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then |
| 19007 | as_fn_error $? "conditional \"DX_COND_xml\" was never defined. |
| 19008 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 19009 | fi |
| 19010 | if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then |
| 19011 | as_fn_error $? "conditional \"DX_COND_chm\" was never defined. |
| 19012 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 19013 | fi |
| 19014 | if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then |
| 19015 | as_fn_error $? "conditional \"DX_COND_chi\" was never defined. |
| 19016 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 19017 | fi |
| 19018 | if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then |
| 19019 | as_fn_error $? "conditional \"DX_COND_html\" was never defined. |
| 19020 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 19021 | fi |
| 19022 | if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then |
| 19023 | as_fn_error $? "conditional \"DX_COND_ps\" was never defined. |
| 19024 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 19025 | fi |
| 19026 | if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then |
| 19027 | as_fn_error $? "conditional \"DX_COND_pdf\" was never defined. |
| 19028 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 19029 | fi |
| 19030 | if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then |
| 19031 | as_fn_error $? "conditional \"DX_COND_latex\" was never defined. |
| 19032 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 19033 | fi |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19034 | |
| 19035 | : "${CONFIG_STATUS=./config.status}" |
| 19036 | ac_write_fail=0 |
| 19037 | ac_clean_files_save=$ac_clean_files |
| 19038 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 19039 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 19040 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 19041 | as_write_fail=0 |
| 19042 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 19043 | #! $SHELL |
| 19044 | # Generated by $as_me. |
| 19045 | # Run this file to recreate the current configuration. |
| 19046 | # Compiler output produced by configure, useful for debugging |
| 19047 | # configure, is in config.log if it exists. |
| 19048 | |
| 19049 | debug=false |
| 19050 | ac_cs_recheck=false |
| 19051 | ac_cs_silent=false |
| 19052 | |
| 19053 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 19054 | export SHELL |
| 19055 | _ASEOF |
| 19056 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 19057 | ## -------------------- ## |
| 19058 | ## M4sh Initialization. ## |
| 19059 | ## -------------------- ## |
| 19060 | |
| 19061 | # Be more Bourne compatible |
| 19062 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19063 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 19064 | emulate sh |
| 19065 | NULLCMD=: |
| 19066 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 19067 | # is contrary to our usage. Disable this feature. |
| 19068 | alias -g '${1+"$@"}'='"$@"' |
| 19069 | setopt NO_GLOB_SUBST |
| 19070 | else |
| 19071 | case `(set -o) 2>/dev/null` in #( |
| 19072 | *posix*) : |
| 19073 | set -o posix ;; #( |
| 19074 | *) : |
| 19075 | ;; |
| 19076 | esac |
| 19077 | fi |
| 19078 | |
| 19079 | |
| 19080 | as_nl=' |
| 19081 | ' |
| 19082 | export as_nl |
| 19083 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 19084 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 19085 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 19086 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 19087 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 19088 | # but without wasting forks for bash or zsh. |
| 19089 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 19090 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 19091 | as_echo='print -r --' |
| 19092 | as_echo_n='print -rn --' |
| 19093 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 19094 | as_echo='printf %s\n' |
| 19095 | as_echo_n='printf %s' |
| 19096 | else |
| 19097 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 19098 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 19099 | as_echo_n='/usr/ucb/echo -n' |
| 19100 | else |
| 19101 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 19102 | as_echo_n_body='eval |
| 19103 | arg=$1; |
| 19104 | case $arg in #( |
| 19105 | *"$as_nl"*) |
| 19106 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 19107 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 19108 | esac; |
| 19109 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 19110 | ' |
| 19111 | export as_echo_n_body |
| 19112 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 19113 | fi |
| 19114 | export as_echo_body |
| 19115 | as_echo='sh -c $as_echo_body as_echo' |
| 19116 | fi |
| 19117 | |
| 19118 | # The user is always right. |
| 19119 | if test "${PATH_SEPARATOR+set}" != set; then |
| 19120 | PATH_SEPARATOR=: |
| 19121 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 19122 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 19123 | PATH_SEPARATOR=';' |
| 19124 | } |
| 19125 | fi |
| 19126 | |
| 19127 | |
| 19128 | # IFS |
| 19129 | # We need space, tab and new line, in precisely that order. Quoting is |
| 19130 | # there to prevent editors from complaining about space-tab. |
| 19131 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 19132 | # splitting by setting IFS to empty value.) |
| 19133 | IFS=" "" $as_nl" |
| 19134 | |
| 19135 | # Find who we are. Look in the path if we contain no directory separator. |
| 19136 | as_myself= |
| 19137 | case $0 in #(( |
| 19138 | *[\\/]* ) as_myself=$0 ;; |
| 19139 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19140 | for as_dir in $PATH |
| 19141 | do |
| 19142 | IFS=$as_save_IFS |
| 19143 | test -z "$as_dir" && as_dir=. |
| 19144 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 19145 | done |
| 19146 | IFS=$as_save_IFS |
| 19147 | |
| 19148 | ;; |
| 19149 | esac |
| 19150 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 19151 | # in which case we are not to be found in the path. |
| 19152 | if test "x$as_myself" = x; then |
| 19153 | as_myself=$0 |
| 19154 | fi |
| 19155 | if test ! -f "$as_myself"; then |
| 19156 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 19157 | exit 1 |
| 19158 | fi |
| 19159 | |
| 19160 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 19161 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 19162 | # suppresses any "Segmentation fault" message there. '((' could |
| 19163 | # trigger a bug in pdksh 5.2.14. |
| 19164 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 19165 | do eval test x\${$as_var+set} = xset \ |
| 19166 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 19167 | done |
| 19168 | PS1='$ ' |
| 19169 | PS2='> ' |
| 19170 | PS4='+ ' |
| 19171 | |
| 19172 | # NLS nuisances. |
| 19173 | LC_ALL=C |
| 19174 | export LC_ALL |
| 19175 | LANGUAGE=C |
| 19176 | export LANGUAGE |
| 19177 | |
| 19178 | # CDPATH. |
| 19179 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 19180 | |
| 19181 | |
| 19182 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 19183 | # ---------------------------------------- |
| 19184 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 19185 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 19186 | # script with STATUS, using 1 if that was 0. |
| 19187 | as_fn_error () |
| 19188 | { |
| 19189 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 19190 | if test "$4"; then |
| 19191 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 19192 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 19193 | fi |
| 19194 | $as_echo "$as_me: error: $2" >&2 |
| 19195 | as_fn_exit $as_status |
| 19196 | } # as_fn_error |
| 19197 | |
| 19198 | |
| 19199 | # as_fn_set_status STATUS |
| 19200 | # ----------------------- |
| 19201 | # Set $? to STATUS, without forking. |
| 19202 | as_fn_set_status () |
| 19203 | { |
| 19204 | return $1 |
| 19205 | } # as_fn_set_status |
| 19206 | |
| 19207 | # as_fn_exit STATUS |
| 19208 | # ----------------- |
| 19209 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 19210 | as_fn_exit () |
| 19211 | { |
| 19212 | set +e |
| 19213 | as_fn_set_status $1 |
| 19214 | exit $1 |
| 19215 | } # as_fn_exit |
| 19216 | |
| 19217 | # as_fn_unset VAR |
| 19218 | # --------------- |
| 19219 | # Portably unset VAR. |
| 19220 | as_fn_unset () |
| 19221 | { |
| 19222 | { eval $1=; unset $1;} |
| 19223 | } |
| 19224 | as_unset=as_fn_unset |
| 19225 | # as_fn_append VAR VALUE |
| 19226 | # ---------------------- |
| 19227 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 19228 | # advantage of any shell optimizations that allow amortized linear growth over |
| 19229 | # repeated appends, instead of the typical quadratic growth present in naive |
| 19230 | # implementations. |
| 19231 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 19232 | eval 'as_fn_append () |
| 19233 | { |
| 19234 | eval $1+=\$2 |
| 19235 | }' |
| 19236 | else |
| 19237 | as_fn_append () |
| 19238 | { |
| 19239 | eval $1=\$$1\$2 |
| 19240 | } |
| 19241 | fi # as_fn_append |
| 19242 | |
| 19243 | # as_fn_arith ARG... |
| 19244 | # ------------------ |
| 19245 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 19246 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 19247 | # must be portable across $(()) and expr. |
| 19248 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 19249 | eval 'as_fn_arith () |
| 19250 | { |
| 19251 | as_val=$(( $* )) |
| 19252 | }' |
| 19253 | else |
| 19254 | as_fn_arith () |
| 19255 | { |
| 19256 | as_val=`expr "$@" || test $? -eq 1` |
| 19257 | } |
| 19258 | fi # as_fn_arith |
| 19259 | |
| 19260 | |
| 19261 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 19262 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 19263 | as_expr=expr |
| 19264 | else |
| 19265 | as_expr=false |
| 19266 | fi |
| 19267 | |
| 19268 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 19269 | as_basename=basename |
| 19270 | else |
| 19271 | as_basename=false |
| 19272 | fi |
| 19273 | |
| 19274 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 19275 | as_dirname=dirname |
| 19276 | else |
| 19277 | as_dirname=false |
| 19278 | fi |
| 19279 | |
| 19280 | as_me=`$as_basename -- "$0" || |
| 19281 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 19282 | X"$0" : 'X\(//\)$' \| \ |
| 19283 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 19284 | $as_echo X/"$0" | |
| 19285 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 19286 | s//\1/ |
| 19287 | q |
| 19288 | } |
| 19289 | /^X\/\(\/\/\)$/{ |
| 19290 | s//\1/ |
| 19291 | q |
| 19292 | } |
| 19293 | /^X\/\(\/\).*/{ |
| 19294 | s//\1/ |
| 19295 | q |
| 19296 | } |
| 19297 | s/.*/./; q'` |
| 19298 | |
| 19299 | # Avoid depending upon Character Ranges. |
| 19300 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 19301 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 19302 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 19303 | as_cr_digits='0123456789' |
| 19304 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 19305 | |
| 19306 | ECHO_C= ECHO_N= ECHO_T= |
| 19307 | case `echo -n x` in #((((( |
| 19308 | -n*) |
| 19309 | case `echo 'xy\c'` in |
| 19310 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 19311 | xy) ECHO_C='\c';; |
| 19312 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 19313 | ECHO_T=' ';; |
| 19314 | esac;; |
| 19315 | *) |
| 19316 | ECHO_N='-n';; |
| 19317 | esac |
| 19318 | |
| 19319 | rm -f conf$$ conf$$.exe conf$$.file |
| 19320 | if test -d conf$$.dir; then |
| 19321 | rm -f conf$$.dir/conf$$.file |
| 19322 | else |
| 19323 | rm -f conf$$.dir |
| 19324 | mkdir conf$$.dir 2>/dev/null |
| 19325 | fi |
| 19326 | if (echo >conf$$.file) 2>/dev/null; then |
| 19327 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 19328 | as_ln_s='ln -s' |
| 19329 | # ... but there are two gotchas: |
| 19330 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 19331 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 19332 | # In both cases, we have to default to `cp -pR'. |
| 19333 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 19334 | as_ln_s='cp -pR' |
| 19335 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 19336 | as_ln_s=ln |
| 19337 | else |
| 19338 | as_ln_s='cp -pR' |
| 19339 | fi |
| 19340 | else |
| 19341 | as_ln_s='cp -pR' |
| 19342 | fi |
| 19343 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 19344 | rmdir conf$$.dir 2>/dev/null |
| 19345 | |
| 19346 | |
| 19347 | # as_fn_mkdir_p |
| 19348 | # ------------- |
| 19349 | # Create "$as_dir" as a directory, including parents if necessary. |
| 19350 | as_fn_mkdir_p () |
| 19351 | { |
| 19352 | |
| 19353 | case $as_dir in #( |
| 19354 | -*) as_dir=./$as_dir;; |
| 19355 | esac |
| 19356 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 19357 | as_dirs= |
| 19358 | while :; do |
| 19359 | case $as_dir in #( |
| 19360 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 19361 | *) as_qdir=$as_dir;; |
| 19362 | esac |
| 19363 | as_dirs="'$as_qdir' $as_dirs" |
| 19364 | as_dir=`$as_dirname -- "$as_dir" || |
| 19365 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 19366 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 19367 | X"$as_dir" : 'X\(//\)$' \| \ |
| 19368 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 19369 | $as_echo X"$as_dir" | |
| 19370 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 19371 | s//\1/ |
| 19372 | q |
| 19373 | } |
| 19374 | /^X\(\/\/\)[^/].*/{ |
| 19375 | s//\1/ |
| 19376 | q |
| 19377 | } |
| 19378 | /^X\(\/\/\)$/{ |
| 19379 | s//\1/ |
| 19380 | q |
| 19381 | } |
| 19382 | /^X\(\/\).*/{ |
| 19383 | s//\1/ |
| 19384 | q |
| 19385 | } |
| 19386 | s/.*/./; q'` |
| 19387 | test -d "$as_dir" && break |
| 19388 | done |
| 19389 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 19390 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 19391 | |
| 19392 | |
| 19393 | } # as_fn_mkdir_p |
| 19394 | if mkdir -p . 2>/dev/null; then |
| 19395 | as_mkdir_p='mkdir -p "$as_dir"' |
| 19396 | else |
| 19397 | test -d ./-p && rmdir ./-p |
| 19398 | as_mkdir_p=false |
| 19399 | fi |
| 19400 | |
| 19401 | |
| 19402 | # as_fn_executable_p FILE |
| 19403 | # ----------------------- |
| 19404 | # Test if FILE is an executable regular file. |
| 19405 | as_fn_executable_p () |
| 19406 | { |
| 19407 | test -f "$1" && test -x "$1" |
| 19408 | } # as_fn_executable_p |
| 19409 | as_test_x='test -x' |
| 19410 | as_executable_p=as_fn_executable_p |
| 19411 | |
| 19412 | # Sed expression to map a string onto a valid CPP name. |
| 19413 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 19414 | |
| 19415 | # Sed expression to map a string onto a valid variable name. |
| 19416 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 19417 | |
| 19418 | |
| 19419 | exec 6>&1 |
| 19420 | ## ----------------------------------- ## |
| 19421 | ## Main body of $CONFIG_STATUS script. ## |
| 19422 | ## ----------------------------------- ## |
| 19423 | _ASEOF |
| 19424 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 19425 | |
| 19426 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19427 | # Save the log message, to keep $0 and so on meaningful, and to |
| 19428 | # report actual input values of CONFIG_FILES etc. instead of their |
| 19429 | # values after options handling. |
| 19430 | ac_log=" |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 19431 | 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] | 19432 | generated by GNU Autoconf 2.69. Invocation command line was |
| 19433 | |
| 19434 | CONFIG_FILES = $CONFIG_FILES |
| 19435 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 19436 | CONFIG_LINKS = $CONFIG_LINKS |
| 19437 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 19438 | $ $0 $@ |
| 19439 | |
| 19440 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 19441 | " |
| 19442 | |
| 19443 | _ACEOF |
| 19444 | |
| 19445 | case $ac_config_files in *" |
| 19446 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 19447 | esac |
| 19448 | |
| 19449 | case $ac_config_headers in *" |
| 19450 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 19451 | esac |
| 19452 | |
| 19453 | |
| 19454 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19455 | # Files that config.status was made for. |
| 19456 | config_files="$ac_config_files" |
| 19457 | config_headers="$ac_config_headers" |
| 19458 | config_commands="$ac_config_commands" |
| 19459 | |
| 19460 | _ACEOF |
| 19461 | |
| 19462 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19463 | ac_cs_usage="\ |
| 19464 | \`$as_me' instantiates files and other configuration actions |
| 19465 | from templates according to the current configuration. Unless the files |
| 19466 | and actions are specified as TAGs, all are instantiated by default. |
| 19467 | |
| 19468 | Usage: $0 [OPTION]... [TAG]... |
| 19469 | |
| 19470 | -h, --help print this help, then exit |
| 19471 | -V, --version print version number and configuration settings, then exit |
| 19472 | --config print configuration, then exit |
| 19473 | -q, --quiet, --silent |
| 19474 | do not print progress messages |
| 19475 | -d, --debug don't remove temporary files |
| 19476 | --recheck update $as_me by reconfiguring in the same conditions |
| 19477 | --file=FILE[:TEMPLATE] |
| 19478 | instantiate the configuration file FILE |
| 19479 | --header=FILE[:TEMPLATE] |
| 19480 | instantiate the configuration header FILE |
| 19481 | |
| 19482 | Configuration files: |
| 19483 | $config_files |
| 19484 | |
| 19485 | Configuration headers: |
| 19486 | $config_headers |
| 19487 | |
| 19488 | Configuration commands: |
| 19489 | $config_commands |
| 19490 | |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 19491 | Report bugs to <ndn-lib@lists.cs.ucla.edu>. |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19492 | ndn-cpp home page: <https://github.com/named-data/ndn-cpp>." |
| 19493 | |
| 19494 | _ACEOF |
| 19495 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19496 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 19497 | ac_cs_version="\\ |
Jeff Thompson | 93a2416 | 2013-09-27 13:28:13 -0700 | [diff] [blame] | 19498 | ndn-cpp config.status 0.2 |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19499 | configured by $0, generated by GNU Autoconf 2.69, |
| 19500 | with options \\"\$ac_cs_config\\" |
| 19501 | |
| 19502 | Copyright (C) 2012 Free Software Foundation, Inc. |
| 19503 | This config.status script is free software; the Free Software Foundation |
| 19504 | gives unlimited permission to copy, distribute and modify it." |
| 19505 | |
| 19506 | ac_pwd='$ac_pwd' |
| 19507 | srcdir='$srcdir' |
| 19508 | INSTALL='$INSTALL' |
| 19509 | MKDIR_P='$MKDIR_P' |
| 19510 | AWK='$AWK' |
| 19511 | test -n "\$AWK" || AWK=awk |
| 19512 | _ACEOF |
| 19513 | |
| 19514 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19515 | # The default lists apply if the user does not specify any file. |
| 19516 | ac_need_defaults=: |
| 19517 | while test $# != 0 |
| 19518 | do |
| 19519 | case $1 in |
| 19520 | --*=?*) |
| 19521 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19522 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 19523 | ac_shift=: |
| 19524 | ;; |
| 19525 | --*=) |
| 19526 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 19527 | ac_optarg= |
| 19528 | ac_shift=: |
| 19529 | ;; |
| 19530 | *) |
| 19531 | ac_option=$1 |
| 19532 | ac_optarg=$2 |
| 19533 | ac_shift=shift |
| 19534 | ;; |
| 19535 | esac |
| 19536 | |
| 19537 | case $ac_option in |
| 19538 | # Handling of the options. |
| 19539 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 19540 | ac_cs_recheck=: ;; |
| 19541 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 19542 | $as_echo "$ac_cs_version"; exit ;; |
| 19543 | --config | --confi | --conf | --con | --co | --c ) |
| 19544 | $as_echo "$ac_cs_config"; exit ;; |
| 19545 | --debug | --debu | --deb | --de | --d | -d ) |
| 19546 | debug=: ;; |
| 19547 | --file | --fil | --fi | --f ) |
| 19548 | $ac_shift |
| 19549 | case $ac_optarg in |
| 19550 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 19551 | '') as_fn_error $? "missing file argument" ;; |
| 19552 | esac |
| 19553 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 19554 | ac_need_defaults=false;; |
| 19555 | --header | --heade | --head | --hea ) |
| 19556 | $ac_shift |
| 19557 | case $ac_optarg in |
| 19558 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 19559 | esac |
| 19560 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 19561 | ac_need_defaults=false;; |
| 19562 | --he | --h) |
| 19563 | # Conflict between --help and --header |
| 19564 | as_fn_error $? "ambiguous option: \`$1' |
| 19565 | Try \`$0 --help' for more information.";; |
| 19566 | --help | --hel | -h ) |
| 19567 | $as_echo "$ac_cs_usage"; exit ;; |
| 19568 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 19569 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 19570 | ac_cs_silent=: ;; |
| 19571 | |
| 19572 | # This is an error. |
| 19573 | -*) as_fn_error $? "unrecognized option: \`$1' |
| 19574 | Try \`$0 --help' for more information." ;; |
| 19575 | |
| 19576 | *) as_fn_append ac_config_targets " $1" |
| 19577 | ac_need_defaults=false ;; |
| 19578 | |
| 19579 | esac |
| 19580 | shift |
| 19581 | done |
| 19582 | |
| 19583 | ac_configure_extra_args= |
| 19584 | |
| 19585 | if $ac_cs_silent; then |
| 19586 | exec 6>/dev/null |
| 19587 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 19588 | fi |
| 19589 | |
| 19590 | _ACEOF |
| 19591 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19592 | if \$ac_cs_recheck; then |
| 19593 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 19594 | shift |
| 19595 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 19596 | CONFIG_SHELL='$SHELL' |
| 19597 | export CONFIG_SHELL |
| 19598 | exec "\$@" |
| 19599 | fi |
| 19600 | |
| 19601 | _ACEOF |
| 19602 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19603 | exec 5>>config.log |
| 19604 | { |
| 19605 | echo |
| 19606 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 19607 | ## Running $as_me. ## |
| 19608 | _ASBOX |
| 19609 | $as_echo "$ac_log" |
| 19610 | } >&5 |
| 19611 | |
| 19612 | _ACEOF |
| 19613 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 19614 | # |
| 19615 | # INIT-COMMANDS |
| 19616 | # |
Jeff Thompson | b752300 | 2013-10-09 10:25:00 -0700 | [diff] [blame] | 19617 | PACKAGE="$PACKAGE" |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19618 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 19619 | |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 19620 | |
| 19621 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 19622 | # if CDPATH is set. |
| 19623 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 19624 | |
| 19625 | sed_quote_subst='$sed_quote_subst' |
| 19626 | double_quote_subst='$double_quote_subst' |
| 19627 | delay_variable_subst='$delay_variable_subst' |
| 19628 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 19629 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 19630 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 19631 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 19632 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 19633 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 19634 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 19635 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 19636 | PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 19637 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 19638 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 19639 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 19640 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 19641 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 19642 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 19643 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 19644 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 19645 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 19646 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 19647 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 19648 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 19649 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 19650 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 19651 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 19652 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 19653 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 19654 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 19655 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 19656 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 19657 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 19658 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 19659 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 19660 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 19661 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 19662 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 19663 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 19664 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 19665 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 19666 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 19667 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 19668 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 19669 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 19670 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19671 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 19672 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 19673 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19674 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19675 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 19676 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 19677 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 19678 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 19679 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 19680 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 19681 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 19682 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 19683 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 19684 | 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"`' |
| 19685 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19686 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 19687 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 19688 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 19689 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 19690 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 19691 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 19692 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 19693 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 19694 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 19695 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 19696 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 19697 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 19698 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 19699 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 19700 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 19701 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 19702 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 19703 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 19704 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 19705 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 19706 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19707 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19708 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 19709 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 19710 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 19711 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 19712 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 19713 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 19714 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 19715 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 19716 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 19717 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 19718 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 19719 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 19720 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 19721 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 19722 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 19723 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 19724 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 19725 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 19726 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 19727 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 19728 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 19729 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 19730 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 19731 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 19732 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 19733 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 19734 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 19735 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 19736 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 19737 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 19738 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 19739 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 19740 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 19741 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 19742 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 19743 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 19744 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 19745 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19746 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 19747 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 19748 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 19749 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 19750 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 19751 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' |
| 19752 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 19753 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 19754 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 19755 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 19756 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 19757 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 19758 | compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' |
| 19759 | predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' |
| 19760 | postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' |
| 19761 | predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' |
| 19762 | postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' |
| 19763 | compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' |
| 19764 | LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' |
| 19765 | reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19766 | reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19767 | old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19768 | compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' |
| 19769 | GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' |
| 19770 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19771 | lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' |
| 19772 | lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' |
| 19773 | lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' |
| 19774 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' |
| 19775 | archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' |
| 19776 | enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' |
| 19777 | export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19778 | whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19779 | compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' |
| 19780 | old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19781 | old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19782 | archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19783 | archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19784 | module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19785 | module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19786 | with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' |
| 19787 | allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19788 | no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' |
| 19789 | hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19790 | hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' |
| 19791 | hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' |
| 19792 | hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' |
| 19793 | hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' |
| 19794 | hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' |
| 19795 | hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' |
| 19796 | inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' |
| 19797 | link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' |
| 19798 | always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' |
| 19799 | export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19800 | exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 19801 | include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' |
| 19802 | prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19803 | postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' |
| 19804 | file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' |
| 19805 | hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' |
| 19806 | compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' |
| 19807 | predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 19808 | postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' |
| 19809 | predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 19810 | postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' |
| 19811 | compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' |
| 19812 | |
| 19813 | LTCC='$LTCC' |
| 19814 | LTCFLAGS='$LTCFLAGS' |
| 19815 | compiler='$compiler_DEFAULT' |
| 19816 | |
| 19817 | # A function that is used when there is no print builtin or printf. |
| 19818 | func_fallback_echo () |
| 19819 | { |
| 19820 | eval 'cat <<_LTECHO_EOF |
| 19821 | \$1 |
| 19822 | _LTECHO_EOF' |
| 19823 | } |
| 19824 | |
| 19825 | # Quote evaled strings. |
| 19826 | for var in SHELL \ |
| 19827 | ECHO \ |
| 19828 | PATH_SEPARATOR \ |
| 19829 | SED \ |
| 19830 | GREP \ |
| 19831 | EGREP \ |
| 19832 | FGREP \ |
| 19833 | LD \ |
| 19834 | NM \ |
| 19835 | LN_S \ |
| 19836 | lt_SP2NL \ |
| 19837 | lt_NL2SP \ |
| 19838 | reload_flag \ |
| 19839 | OBJDUMP \ |
| 19840 | deplibs_check_method \ |
| 19841 | file_magic_cmd \ |
| 19842 | file_magic_glob \ |
| 19843 | want_nocaseglob \ |
| 19844 | DLLTOOL \ |
| 19845 | sharedlib_from_linklib_cmd \ |
| 19846 | AR \ |
| 19847 | AR_FLAGS \ |
| 19848 | archiver_list_spec \ |
| 19849 | STRIP \ |
| 19850 | RANLIB \ |
| 19851 | CC \ |
| 19852 | CFLAGS \ |
| 19853 | compiler \ |
| 19854 | lt_cv_sys_global_symbol_pipe \ |
| 19855 | lt_cv_sys_global_symbol_to_cdecl \ |
| 19856 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 19857 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 19858 | nm_file_list_spec \ |
| 19859 | lt_prog_compiler_no_builtin_flag \ |
| 19860 | lt_prog_compiler_pic \ |
| 19861 | lt_prog_compiler_wl \ |
| 19862 | lt_prog_compiler_static \ |
| 19863 | lt_cv_prog_compiler_c_o \ |
| 19864 | need_locks \ |
| 19865 | MANIFEST_TOOL \ |
| 19866 | DSYMUTIL \ |
| 19867 | NMEDIT \ |
| 19868 | LIPO \ |
| 19869 | OTOOL \ |
| 19870 | OTOOL64 \ |
| 19871 | shrext_cmds \ |
| 19872 | export_dynamic_flag_spec \ |
| 19873 | whole_archive_flag_spec \ |
| 19874 | compiler_needs_object \ |
| 19875 | with_gnu_ld \ |
| 19876 | allow_undefined_flag \ |
| 19877 | no_undefined_flag \ |
| 19878 | hardcode_libdir_flag_spec \ |
| 19879 | hardcode_libdir_separator \ |
| 19880 | exclude_expsyms \ |
| 19881 | include_expsyms \ |
| 19882 | file_list_spec \ |
| 19883 | variables_saved_for_relink \ |
| 19884 | libname_spec \ |
| 19885 | library_names_spec \ |
| 19886 | soname_spec \ |
| 19887 | install_override_mode \ |
| 19888 | finish_eval \ |
| 19889 | old_striplib \ |
| 19890 | striplib \ |
| 19891 | compiler_lib_search_dirs \ |
| 19892 | predep_objects \ |
| 19893 | postdep_objects \ |
| 19894 | predeps \ |
| 19895 | postdeps \ |
| 19896 | compiler_lib_search_path \ |
| 19897 | LD_CXX \ |
| 19898 | reload_flag_CXX \ |
| 19899 | compiler_CXX \ |
| 19900 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 19901 | lt_prog_compiler_pic_CXX \ |
| 19902 | lt_prog_compiler_wl_CXX \ |
| 19903 | lt_prog_compiler_static_CXX \ |
| 19904 | lt_cv_prog_compiler_c_o_CXX \ |
| 19905 | export_dynamic_flag_spec_CXX \ |
| 19906 | whole_archive_flag_spec_CXX \ |
| 19907 | compiler_needs_object_CXX \ |
| 19908 | with_gnu_ld_CXX \ |
| 19909 | allow_undefined_flag_CXX \ |
| 19910 | no_undefined_flag_CXX \ |
| 19911 | hardcode_libdir_flag_spec_CXX \ |
| 19912 | hardcode_libdir_separator_CXX \ |
| 19913 | exclude_expsyms_CXX \ |
| 19914 | include_expsyms_CXX \ |
| 19915 | file_list_spec_CXX \ |
| 19916 | compiler_lib_search_dirs_CXX \ |
| 19917 | predep_objects_CXX \ |
| 19918 | postdep_objects_CXX \ |
| 19919 | predeps_CXX \ |
| 19920 | postdeps_CXX \ |
| 19921 | compiler_lib_search_path_CXX; do |
| 19922 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 19923 | *[\\\\\\\`\\"\\\$]*) |
| 19924 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 19925 | ;; |
| 19926 | *) |
| 19927 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 19928 | ;; |
| 19929 | esac |
| 19930 | done |
| 19931 | |
| 19932 | # Double-quote double-evaled strings. |
| 19933 | for var in reload_cmds \ |
| 19934 | old_postinstall_cmds \ |
| 19935 | old_postuninstall_cmds \ |
| 19936 | old_archive_cmds \ |
| 19937 | extract_expsyms_cmds \ |
| 19938 | old_archive_from_new_cmds \ |
| 19939 | old_archive_from_expsyms_cmds \ |
| 19940 | archive_cmds \ |
| 19941 | archive_expsym_cmds \ |
| 19942 | module_cmds \ |
| 19943 | module_expsym_cmds \ |
| 19944 | export_symbols_cmds \ |
| 19945 | prelink_cmds \ |
| 19946 | postlink_cmds \ |
| 19947 | postinstall_cmds \ |
| 19948 | postuninstall_cmds \ |
| 19949 | finish_cmds \ |
| 19950 | sys_lib_search_path_spec \ |
| 19951 | sys_lib_dlsearch_path_spec \ |
| 19952 | reload_cmds_CXX \ |
| 19953 | old_archive_cmds_CXX \ |
| 19954 | old_archive_from_new_cmds_CXX \ |
| 19955 | old_archive_from_expsyms_cmds_CXX \ |
| 19956 | archive_cmds_CXX \ |
| 19957 | archive_expsym_cmds_CXX \ |
| 19958 | module_cmds_CXX \ |
| 19959 | module_expsym_cmds_CXX \ |
| 19960 | export_symbols_cmds_CXX \ |
| 19961 | prelink_cmds_CXX \ |
| 19962 | postlink_cmds_CXX; do |
| 19963 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 19964 | *[\\\\\\\`\\"\\\$]*) |
| 19965 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 19966 | ;; |
| 19967 | *) |
| 19968 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 19969 | ;; |
| 19970 | esac |
| 19971 | done |
| 19972 | |
| 19973 | ac_aux_dir='$ac_aux_dir' |
| 19974 | xsi_shell='$xsi_shell' |
| 19975 | lt_shell_append='$lt_shell_append' |
| 19976 | |
| 19977 | # See if we are running on zsh, and set the options which allow our |
| 19978 | # commands through without removal of \ escapes INIT. |
| 19979 | if test -n "\${ZSH_VERSION+set}" ; then |
| 19980 | setopt NO_GLOB_SUBST |
| 19981 | fi |
| 19982 | |
| 19983 | |
| 19984 | PACKAGE='$PACKAGE' |
| 19985 | VERSION='$VERSION' |
| 19986 | TIMESTAMP='$TIMESTAMP' |
| 19987 | RM='$RM' |
| 19988 | ofile='$ofile' |
| 19989 | |
| 19990 | |
| 19991 | |
| 19992 | |
| 19993 | |
| 19994 | |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 19995 | _ACEOF |
| 19996 | |
| 19997 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 19998 | |
| 19999 | # Handling of arguments. |
| 20000 | for ac_config_target in $ac_config_targets |
| 20001 | do |
| 20002 | case $ac_config_target in |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame] | 20003 | "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; |
| 20004 | "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] | 20005 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 20006 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 20007 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame] | 20008 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 20009 | |
| 20010 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 20011 | esac |
| 20012 | done |
| 20013 | |
| 20014 | |
| 20015 | # If the user did not use the arguments to specify the items to instantiate, |
| 20016 | # then the envvar interface is used. Set only those that are not. |
| 20017 | # We use the long form for the default assignment because of an extremely |
| 20018 | # bizarre bug on SunOS 4.1.3. |
| 20019 | if $ac_need_defaults; then |
| 20020 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 20021 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 20022 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 20023 | fi |
| 20024 | |
| 20025 | # Have a temporary directory for convenience. Make it in the build tree |
| 20026 | # simply because there is no reason against having it here, and in addition, |
| 20027 | # creating and moving files from /tmp can sometimes cause problems. |
| 20028 | # Hook for its removal unless debugging. |
| 20029 | # Note that there is a small window in which the directory will not be cleaned: |
| 20030 | # after its creation but before its name has been assigned to `$tmp'. |
| 20031 | $debug || |
| 20032 | { |
| 20033 | tmp= ac_tmp= |
| 20034 | trap 'exit_status=$? |
| 20035 | : "${ac_tmp:=$tmp}" |
| 20036 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 20037 | ' 0 |
| 20038 | trap 'as_fn_exit 1' 1 2 13 15 |
| 20039 | } |
| 20040 | # Create a (secure) tmp directory for tmp files. |
| 20041 | |
| 20042 | { |
| 20043 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 20044 | test -d "$tmp" |
| 20045 | } || |
| 20046 | { |
| 20047 | tmp=./conf$$-$RANDOM |
| 20048 | (umask 077 && mkdir "$tmp") |
| 20049 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 20050 | ac_tmp=$tmp |
| 20051 | |
| 20052 | # Set up the scripts for CONFIG_FILES section. |
| 20053 | # No need to generate them if there are no CONFIG_FILES. |
| 20054 | # This happens for instance with `./config.status config.h'. |
| 20055 | if test -n "$CONFIG_FILES"; then |
| 20056 | |
| 20057 | |
| 20058 | ac_cr=`echo X | tr X '\015'` |
| 20059 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 20060 | # But we know of no other shell where ac_cr would be empty at this |
| 20061 | # point, so we can use a bashism as a fallback. |
| 20062 | if test "x$ac_cr" = x; then |
| 20063 | eval ac_cr=\$\'\\r\' |
| 20064 | fi |
| 20065 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 20066 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 20067 | ac_cs_awk_cr='\\r' |
| 20068 | else |
| 20069 | ac_cs_awk_cr=$ac_cr |
| 20070 | fi |
| 20071 | |
| 20072 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 20073 | _ACEOF |
| 20074 | |
| 20075 | |
| 20076 | { |
| 20077 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 20078 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 20079 | echo "_ACEOF" |
| 20080 | } >conf$$subs.sh || |
| 20081 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 20082 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 20083 | ac_delim='%!_!# ' |
| 20084 | for ac_last_try in false false false false false :; do |
| 20085 | . ./conf$$subs.sh || |
| 20086 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 20087 | |
| 20088 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 20089 | if test $ac_delim_n = $ac_delim_num; then |
| 20090 | break |
| 20091 | elif $ac_last_try; then |
| 20092 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 20093 | else |
| 20094 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20095 | fi |
| 20096 | done |
| 20097 | rm -f conf$$subs.sh |
| 20098 | |
| 20099 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20100 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 20101 | _ACEOF |
| 20102 | sed -n ' |
| 20103 | h |
| 20104 | s/^/S["/; s/!.*/"]=/ |
| 20105 | p |
| 20106 | g |
| 20107 | s/^[^!]*!// |
| 20108 | :repl |
| 20109 | t repl |
| 20110 | s/'"$ac_delim"'$// |
| 20111 | t delim |
| 20112 | :nl |
| 20113 | h |
| 20114 | s/\(.\{148\}\)..*/\1/ |
| 20115 | t more1 |
| 20116 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 20117 | p |
| 20118 | n |
| 20119 | b repl |
| 20120 | :more1 |
| 20121 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 20122 | p |
| 20123 | g |
| 20124 | s/.\{148\}// |
| 20125 | t nl |
| 20126 | :delim |
| 20127 | h |
| 20128 | s/\(.\{148\}\)..*/\1/ |
| 20129 | t more2 |
| 20130 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 20131 | p |
| 20132 | b |
| 20133 | :more2 |
| 20134 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 20135 | p |
| 20136 | g |
| 20137 | s/.\{148\}// |
| 20138 | t delim |
| 20139 | ' <conf$$subs.awk | sed ' |
| 20140 | /^[^""]/{ |
| 20141 | N |
| 20142 | s/\n// |
| 20143 | } |
| 20144 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 20145 | rm -f conf$$subs.awk |
| 20146 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20147 | _ACAWK |
| 20148 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 20149 | for (key in S) S_is_set[key] = 1 |
| 20150 | FS = "" |
| 20151 | |
| 20152 | } |
| 20153 | { |
| 20154 | line = $ 0 |
| 20155 | nfields = split(line, field, "@") |
| 20156 | substed = 0 |
| 20157 | len = length(field[1]) |
| 20158 | for (i = 2; i < nfields; i++) { |
| 20159 | key = field[i] |
| 20160 | keylen = length(key) |
| 20161 | if (S_is_set[key]) { |
| 20162 | value = S[key] |
| 20163 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 20164 | len += length(value) + length(field[++i]) |
| 20165 | substed = 1 |
| 20166 | } else |
| 20167 | len += 1 + keylen |
| 20168 | } |
| 20169 | |
| 20170 | print line |
| 20171 | } |
| 20172 | |
| 20173 | _ACAWK |
| 20174 | _ACEOF |
| 20175 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20176 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 20177 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 20178 | else |
| 20179 | cat |
| 20180 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 20181 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 20182 | _ACEOF |
| 20183 | |
| 20184 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 20185 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 20186 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 20187 | # (actually we leave an empty line to preserve line numbers). |
| 20188 | if test "x$srcdir" = x.; then |
| 20189 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 20190 | h |
| 20191 | s/// |
| 20192 | s/^/:/ |
| 20193 | s/[ ]*$/:/ |
| 20194 | s/:\$(srcdir):/:/g |
| 20195 | s/:\${srcdir}:/:/g |
| 20196 | s/:@srcdir@:/:/g |
| 20197 | s/^:*// |
| 20198 | s/:*$// |
| 20199 | x |
| 20200 | s/\(=[ ]*\).*/\1/ |
| 20201 | G |
| 20202 | s/\n// |
| 20203 | s/^[^=]*=[ ]*$// |
| 20204 | }' |
| 20205 | fi |
| 20206 | |
| 20207 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20208 | fi # test -n "$CONFIG_FILES" |
| 20209 | |
| 20210 | # Set up the scripts for CONFIG_HEADERS section. |
| 20211 | # No need to generate them if there are no CONFIG_HEADERS. |
| 20212 | # This happens for instance with `./config.status Makefile'. |
| 20213 | if test -n "$CONFIG_HEADERS"; then |
| 20214 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 20215 | BEGIN { |
| 20216 | _ACEOF |
| 20217 | |
| 20218 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 20219 | # here-document in config.status, that substitutes the proper values into |
| 20220 | # config.h.in to produce config.h. |
| 20221 | |
| 20222 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 20223 | # handling of long lines. |
| 20224 | ac_delim='%!_!# ' |
| 20225 | for ac_last_try in false false :; do |
| 20226 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 20227 | if test -z "$ac_tt"; then |
| 20228 | break |
| 20229 | elif $ac_last_try; then |
| 20230 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 20231 | else |
| 20232 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 20233 | fi |
| 20234 | done |
| 20235 | |
| 20236 | # For the awk script, D is an array of macro values keyed by name, |
| 20237 | # likewise P contains macro parameters if any. Preserve backslash |
| 20238 | # newline sequences. |
| 20239 | |
| 20240 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 20241 | sed -n ' |
| 20242 | s/.\{148\}/&'"$ac_delim"'/g |
| 20243 | t rset |
| 20244 | :rset |
| 20245 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 20246 | t def |
| 20247 | d |
| 20248 | :def |
| 20249 | s/\\$// |
| 20250 | t bsnl |
| 20251 | s/["\\]/\\&/g |
| 20252 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 20253 | D["\1"]=" \3"/p |
| 20254 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 20255 | d |
| 20256 | :bsnl |
| 20257 | s/["\\]/\\&/g |
| 20258 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 20259 | D["\1"]=" \3\\\\\\n"\\/p |
| 20260 | t cont |
| 20261 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 20262 | t cont |
| 20263 | d |
| 20264 | :cont |
| 20265 | n |
| 20266 | s/.\{148\}/&'"$ac_delim"'/g |
| 20267 | t clear |
| 20268 | :clear |
| 20269 | s/\\$// |
| 20270 | t bsnlc |
| 20271 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 20272 | d |
| 20273 | :bsnlc |
| 20274 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 20275 | b cont |
| 20276 | ' <confdefs.h | sed ' |
| 20277 | s/'"$ac_delim"'/"\\\ |
| 20278 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 20279 | |
| 20280 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20281 | for (key in D) D_is_set[key] = 1 |
| 20282 | FS = "" |
| 20283 | } |
| 20284 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 20285 | line = \$ 0 |
| 20286 | split(line, arg, " ") |
| 20287 | if (arg[1] == "#") { |
| 20288 | defundef = arg[2] |
| 20289 | mac1 = arg[3] |
| 20290 | } else { |
| 20291 | defundef = substr(arg[1], 2) |
| 20292 | mac1 = arg[2] |
| 20293 | } |
| 20294 | split(mac1, mac2, "(") #) |
| 20295 | macro = mac2[1] |
| 20296 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 20297 | if (D_is_set[macro]) { |
| 20298 | # Preserve the white space surrounding the "#". |
| 20299 | print prefix "define", macro P[macro] D[macro] |
| 20300 | next |
| 20301 | } else { |
| 20302 | # Replace #undef with comments. This is necessary, for example, |
| 20303 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 20304 | # on some systems where configure will not decide to define it. |
| 20305 | if (defundef == "undef") { |
| 20306 | print "/*", prefix defundef, macro, "*/" |
| 20307 | next |
| 20308 | } |
| 20309 | } |
| 20310 | } |
| 20311 | { print } |
| 20312 | _ACAWK |
| 20313 | _ACEOF |
| 20314 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20315 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 20316 | fi # test -n "$CONFIG_HEADERS" |
| 20317 | |
| 20318 | |
| 20319 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 20320 | shift |
| 20321 | for ac_tag |
| 20322 | do |
| 20323 | case $ac_tag in |
| 20324 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 20325 | esac |
| 20326 | case $ac_mode$ac_tag in |
| 20327 | :[FHL]*:*);; |
| 20328 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 20329 | :[FH]-) ac_tag=-:-;; |
| 20330 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 20331 | esac |
| 20332 | ac_save_IFS=$IFS |
| 20333 | IFS=: |
| 20334 | set x $ac_tag |
| 20335 | IFS=$ac_save_IFS |
| 20336 | shift |
| 20337 | ac_file=$1 |
| 20338 | shift |
| 20339 | |
| 20340 | case $ac_mode in |
| 20341 | :L) ac_source=$1;; |
| 20342 | :[FH]) |
| 20343 | ac_file_inputs= |
| 20344 | for ac_f |
| 20345 | do |
| 20346 | case $ac_f in |
| 20347 | -) ac_f="$ac_tmp/stdin";; |
| 20348 | *) # Look for the file first in the build tree, then in the source tree |
| 20349 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 20350 | # because $ac_f cannot contain `:'. |
| 20351 | test -f "$ac_f" || |
| 20352 | case $ac_f in |
| 20353 | [\\/$]*) false;; |
| 20354 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 20355 | esac || |
| 20356 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 20357 | esac |
| 20358 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 20359 | as_fn_append ac_file_inputs " '$ac_f'" |
| 20360 | done |
| 20361 | |
| 20362 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 20363 | # use $as_me), people would be surprised to read: |
| 20364 | # /* config.h. Generated by config.status. */ |
| 20365 | configure_input='Generated from '` |
| 20366 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 20367 | `' by configure.' |
| 20368 | if test x"$ac_file" != x-; then |
| 20369 | configure_input="$ac_file. $configure_input" |
| 20370 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 20371 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 20372 | fi |
| 20373 | # Neutralize special characters interpreted by sed in replacement strings. |
| 20374 | case $configure_input in #( |
| 20375 | *\&* | *\|* | *\\* ) |
| 20376 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 20377 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 20378 | *) ac_sed_conf_input=$configure_input;; |
| 20379 | esac |
| 20380 | |
| 20381 | case $ac_tag in |
| 20382 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 20383 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 20384 | esac |
| 20385 | ;; |
| 20386 | esac |
| 20387 | |
| 20388 | ac_dir=`$as_dirname -- "$ac_file" || |
| 20389 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20390 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 20391 | X"$ac_file" : 'X\(//\)$' \| \ |
| 20392 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 20393 | $as_echo X"$ac_file" | |
| 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'` |
| 20411 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 20412 | ac_builddir=. |
| 20413 | |
| 20414 | case "$ac_dir" in |
| 20415 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20416 | *) |
| 20417 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 20418 | # A ".." for each directory in $ac_dir_suffix. |
| 20419 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 20420 | case $ac_top_builddir_sub in |
| 20421 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 20422 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 20423 | esac ;; |
| 20424 | esac |
| 20425 | ac_abs_top_builddir=$ac_pwd |
| 20426 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 20427 | # for backward compatibility: |
| 20428 | ac_top_builddir=$ac_top_build_prefix |
| 20429 | |
| 20430 | case $srcdir in |
| 20431 | .) # We are building in place. |
| 20432 | ac_srcdir=. |
| 20433 | ac_top_srcdir=$ac_top_builddir_sub |
| 20434 | ac_abs_top_srcdir=$ac_pwd ;; |
| 20435 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 20436 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 20437 | ac_top_srcdir=$srcdir |
| 20438 | ac_abs_top_srcdir=$srcdir ;; |
| 20439 | *) # Relative name. |
| 20440 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 20441 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 20442 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 20443 | esac |
| 20444 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 20445 | |
| 20446 | |
| 20447 | case $ac_mode in |
| 20448 | :F) |
| 20449 | # |
| 20450 | # CONFIG_FILE |
| 20451 | # |
| 20452 | |
| 20453 | case $INSTALL in |
| 20454 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 20455 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 20456 | esac |
| 20457 | ac_MKDIR_P=$MKDIR_P |
| 20458 | case $MKDIR_P in |
| 20459 | [\\/$]* | ?:[\\/]* ) ;; |
| 20460 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 20461 | esac |
| 20462 | _ACEOF |
| 20463 | |
| 20464 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20465 | # If the template does not know about datarootdir, expand it. |
| 20466 | # FIXME: This hack should be removed a few years after 2.60. |
| 20467 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 20468 | ac_sed_dataroot=' |
| 20469 | /datarootdir/ { |
| 20470 | p |
| 20471 | q |
| 20472 | } |
| 20473 | /@datadir@/p |
| 20474 | /@docdir@/p |
| 20475 | /@infodir@/p |
| 20476 | /@localedir@/p |
| 20477 | /@mandir@/p' |
| 20478 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 20479 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 20480 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 20481 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 20482 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 20483 | _ACEOF |
| 20484 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20485 | ac_datarootdir_hack=' |
| 20486 | s&@datadir@&$datadir&g |
| 20487 | s&@docdir@&$docdir&g |
| 20488 | s&@infodir@&$infodir&g |
| 20489 | s&@localedir@&$localedir&g |
| 20490 | s&@mandir@&$mandir&g |
| 20491 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 20492 | esac |
| 20493 | _ACEOF |
| 20494 | |
| 20495 | # Neutralize VPATH when `$srcdir' = `.'. |
| 20496 | # Shell code in configure.ac might set extrasub. |
| 20497 | # FIXME: do we really want to maintain this feature? |
| 20498 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 20499 | ac_sed_extra="$ac_vpsub |
| 20500 | $extrasub |
| 20501 | _ACEOF |
| 20502 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 20503 | :t |
| 20504 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 20505 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 20506 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 20507 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 20508 | s&@srcdir@&$ac_srcdir&;t t |
| 20509 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 20510 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 20511 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 20512 | s&@builddir@&$ac_builddir&;t t |
| 20513 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 20514 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 20515 | s&@INSTALL@&$ac_INSTALL&;t t |
| 20516 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 20517 | $ac_datarootdir_hack |
| 20518 | " |
| 20519 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 20520 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20521 | |
| 20522 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 20523 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 20524 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 20525 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
| 20526 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20527 | which seems to be undefined. Please make sure it is defined" >&5 |
| 20528 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 20529 | which seems to be undefined. Please make sure it is defined" >&2;} |
| 20530 | |
| 20531 | rm -f "$ac_tmp/stdin" |
| 20532 | case $ac_file in |
| 20533 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 20534 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 20535 | esac \ |
| 20536 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20537 | ;; |
| 20538 | :H) |
| 20539 | # |
| 20540 | # CONFIG_HEADER |
| 20541 | # |
| 20542 | if test x"$ac_file" != x-; then |
| 20543 | { |
| 20544 | $as_echo "/* $configure_input */" \ |
| 20545 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 20546 | } >"$ac_tmp/config.h" \ |
| 20547 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20548 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 20549 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 20550 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 20551 | else |
| 20552 | rm -f "$ac_file" |
| 20553 | mv "$ac_tmp/config.h" "$ac_file" \ |
| 20554 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 20555 | fi |
| 20556 | else |
| 20557 | $as_echo "/* $configure_input */" \ |
| 20558 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 20559 | || as_fn_error $? "could not create -" "$LINENO" 5 |
| 20560 | fi |
| 20561 | # Compute "$ac_file"'s index in $config_headers. |
| 20562 | _am_arg="$ac_file" |
| 20563 | _am_stamp_count=1 |
| 20564 | for _am_header in $config_headers :; do |
| 20565 | case $_am_header in |
| 20566 | $_am_arg | $_am_arg:* ) |
| 20567 | break ;; |
| 20568 | * ) |
| 20569 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 20570 | esac |
| 20571 | done |
| 20572 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 20573 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20574 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 20575 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 20576 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 20577 | $as_echo X"$_am_arg" | |
| 20578 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20579 | s//\1/ |
| 20580 | q |
| 20581 | } |
| 20582 | /^X\(\/\/\)[^/].*/{ |
| 20583 | s//\1/ |
| 20584 | q |
| 20585 | } |
| 20586 | /^X\(\/\/\)$/{ |
| 20587 | s//\1/ |
| 20588 | q |
| 20589 | } |
| 20590 | /^X\(\/\).*/{ |
| 20591 | s//\1/ |
| 20592 | q |
| 20593 | } |
| 20594 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 20595 | ;; |
| 20596 | |
| 20597 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 20598 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 20599 | ;; |
| 20600 | esac |
| 20601 | |
| 20602 | |
| 20603 | case $ac_file$ac_mode in |
Jeff Thompson | 6e22904 | 2013-10-10 11:09:49 -0700 | [diff] [blame] | 20604 | "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] | 20605 | ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"` |
| 20606 | ac_prefix_conf_PKG=`echo $PACKAGE` |
| 20607 | ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"` |
| 20608 | ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"` |
| 20609 | ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'` |
| 20610 | if test ".$ac_prefix_conf_INP" = "."; then |
| 20611 | for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue |
| 20612 | case "$ac_file" in |
| 20613 | *.h) ac_prefix_conf_INP=$ac_file ;; |
| 20614 | *) |
| 20615 | esac |
| 20616 | test ".$ac_prefix_conf_INP" != "." && break |
| 20617 | done |
| 20618 | fi |
| 20619 | if test ".$ac_prefix_conf_INP" = "."; then |
| 20620 | case "$ac_prefix_conf_OUT" in |
| 20621 | */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"` |
| 20622 | ;; |
| 20623 | *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"` |
| 20624 | ;; |
| 20625 | *) ac_prefix_conf_INP=config.h |
| 20626 | ;; |
| 20627 | esac |
| 20628 | fi |
| 20629 | if test -z "$ac_prefix_conf_PKG" ; then |
| 20630 | as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5 |
| 20631 | else |
| 20632 | if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then |
| 20633 | ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP" |
| 20634 | fi fi |
| 20635 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5 |
| 20636 | $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;} |
| 20637 | if test -f $ac_prefix_conf_INP ; then |
| 20638 | $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix |
| 20639 | $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix |
| 20640 | $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix |
| 20641 | $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix |
| 20642 | $as_echo "#endif/" >> conftest.prefix |
| 20643 | $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix |
| 20644 | $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix |
| 20645 | $as_echo "#endif/" >> conftest.prefix |
| 20646 | # now executing _script on _DEF input to create _OUT output file |
| 20647 | echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h |
| 20648 | echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h |
| 20649 | echo ' ' >>$tmp/pconfig.h |
| 20650 | echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h |
| 20651 | |
| 20652 | sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h |
| 20653 | echo ' ' >>$tmp/pconfig.h |
| 20654 | echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h |
| 20655 | echo "#endif" >>$tmp/pconfig.h |
| 20656 | if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then |
| 20657 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5 |
| 20658 | $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;} |
| 20659 | else |
| 20660 | ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" || |
| 20661 | $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20662 | X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \ |
| 20663 | X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \ |
| 20664 | X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null || |
| 20665 | $as_echo X"$ac_prefix_conf_OUT" | |
| 20666 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20667 | s//\1/ |
| 20668 | q |
| 20669 | } |
| 20670 | /^X\(\/\/\)[^/].*/{ |
| 20671 | s//\1/ |
| 20672 | q |
| 20673 | } |
| 20674 | /^X\(\/\/\)$/{ |
| 20675 | s//\1/ |
| 20676 | q |
| 20677 | } |
| 20678 | /^X\(\/\).*/{ |
| 20679 | s//\1/ |
| 20680 | q |
| 20681 | } |
| 20682 | s/.*/./; q'` |
| 20683 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 20684 | rm -f "$ac_prefix_conf_OUT" |
| 20685 | mv $tmp/pconfig.h "$ac_prefix_conf_OUT" |
| 20686 | fi |
| 20687 | cp conftest.prefix _configs.sed |
| 20688 | else |
| 20689 | as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5 |
| 20690 | fi |
| 20691 | rm -f conftest.* |
| 20692 | fi |
| 20693 | ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 20694 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 20695 | # Older Autoconf quotes --file arguments for eval, but not when files |
| 20696 | # are listed without --file. Let's play safe and only enable the eval |
| 20697 | # if we detect the quoting. |
| 20698 | case $CONFIG_FILES in |
| 20699 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 20700 | *) set x $CONFIG_FILES ;; |
| 20701 | esac |
| 20702 | shift |
| 20703 | for mf |
| 20704 | do |
| 20705 | # Strip MF so we end up with the name of the file. |
| 20706 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 20707 | # Check whether this is an Automake generated Makefile or not. |
| 20708 | # We used to match only the files named 'Makefile.in', but |
| 20709 | # some people rename them; so instead we look at the file content. |
| 20710 | # Grep'ing the first line is not enough: some people post-process |
| 20711 | # each Makefile.in and add a new line on top of each file to say so. |
| 20712 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 20713 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 20714 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 20715 | dirpart=`$as_dirname -- "$mf" || |
| 20716 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20717 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 20718 | X"$mf" : 'X\(//\)$' \| \ |
| 20719 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 20720 | $as_echo X"$mf" | |
| 20721 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20722 | s//\1/ |
| 20723 | q |
| 20724 | } |
| 20725 | /^X\(\/\/\)[^/].*/{ |
| 20726 | s//\1/ |
| 20727 | q |
| 20728 | } |
| 20729 | /^X\(\/\/\)$/{ |
| 20730 | s//\1/ |
| 20731 | q |
| 20732 | } |
| 20733 | /^X\(\/\).*/{ |
| 20734 | s//\1/ |
| 20735 | q |
| 20736 | } |
| 20737 | s/.*/./; q'` |
| 20738 | else |
| 20739 | continue |
| 20740 | fi |
| 20741 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 20742 | # from the Makefile without running 'make'. |
| 20743 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 20744 | test -z "$DEPDIR" && continue |
| 20745 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 20746 | test -z "$am__include" && continue |
| 20747 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 20748 | # Find all dependency output files, they are included files with |
| 20749 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 20750 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 20751 | # expansion. |
| 20752 | for file in `sed -n " |
| 20753 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 20754 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
| 20755 | # Make sure the directory exists. |
| 20756 | test -f "$dirpart/$file" && continue |
| 20757 | fdir=`$as_dirname -- "$file" || |
| 20758 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 20759 | X"$file" : 'X\(//\)[^/]' \| \ |
| 20760 | X"$file" : 'X\(//\)$' \| \ |
| 20761 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 20762 | $as_echo X"$file" | |
| 20763 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 20764 | s//\1/ |
| 20765 | q |
| 20766 | } |
| 20767 | /^X\(\/\/\)[^/].*/{ |
| 20768 | s//\1/ |
| 20769 | q |
| 20770 | } |
| 20771 | /^X\(\/\/\)$/{ |
| 20772 | s//\1/ |
| 20773 | q |
| 20774 | } |
| 20775 | /^X\(\/\).*/{ |
| 20776 | s//\1/ |
| 20777 | q |
| 20778 | } |
| 20779 | s/.*/./; q'` |
| 20780 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 20781 | # echo "creating $dirpart/$file" |
| 20782 | echo '# dummy' > "$dirpart/$file" |
| 20783 | done |
| 20784 | done |
| 20785 | } |
| 20786 | ;; |
Jeff Thompson | 4f03164 | 2013-08-05 11:03:16 -0700 | [diff] [blame] | 20787 | "libtool":C) |
| 20788 | |
| 20789 | # See if we are running on zsh, and set the options which allow our |
| 20790 | # commands through without removal of \ escapes. |
| 20791 | if test -n "${ZSH_VERSION+set}" ; then |
| 20792 | setopt NO_GLOB_SUBST |
| 20793 | fi |
| 20794 | |
| 20795 | cfgfile="${ofile}T" |
| 20796 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 20797 | $RM "$cfgfile" |
| 20798 | |
| 20799 | cat <<_LT_EOF >> "$cfgfile" |
| 20800 | #! $SHELL |
| 20801 | |
| 20802 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 20803 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 20804 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 20805 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 20806 | # |
| 20807 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 20808 | # 2006, 2007, 2008, 2009, 2010, 2011 Free Software |
| 20809 | # Foundation, Inc. |
| 20810 | # Written by Gordon Matzigkeit, 1996 |
| 20811 | # |
| 20812 | # This file is part of GNU Libtool. |
| 20813 | # |
| 20814 | # GNU Libtool is free software; you can redistribute it and/or |
| 20815 | # modify it under the terms of the GNU General Public License as |
| 20816 | # published by the Free Software Foundation; either version 2 of |
| 20817 | # the License, or (at your option) any later version. |
| 20818 | # |
| 20819 | # As a special exception to the GNU General Public License, |
| 20820 | # if you distribute this file as part of a program or library that |
| 20821 | # is built using GNU Libtool, you may include this file under the |
| 20822 | # same distribution terms that you use for the rest of that program. |
| 20823 | # |
| 20824 | # GNU Libtool is distributed in the hope that it will be useful, |
| 20825 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20826 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20827 | # GNU General Public License for more details. |
| 20828 | # |
| 20829 | # You should have received a copy of the GNU General Public License |
| 20830 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 20831 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 20832 | # obtained by writing to the Free Software Foundation, Inc., |
| 20833 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 20834 | |
| 20835 | |
| 20836 | # The names of the tagged configurations supported by this script. |
| 20837 | available_tags="CXX " |
| 20838 | |
| 20839 | # ### BEGIN LIBTOOL CONFIG |
| 20840 | |
| 20841 | # Which release of libtool.m4 was used? |
| 20842 | macro_version=$macro_version |
| 20843 | macro_revision=$macro_revision |
| 20844 | |
| 20845 | # Whether or not to build shared libraries. |
| 20846 | build_libtool_libs=$enable_shared |
| 20847 | |
| 20848 | # Whether or not to build static libraries. |
| 20849 | build_old_libs=$enable_static |
| 20850 | |
| 20851 | # What type of objects to build. |
| 20852 | pic_mode=$pic_mode |
| 20853 | |
| 20854 | # Whether or not to optimize for fast installation. |
| 20855 | fast_install=$enable_fast_install |
| 20856 | |
| 20857 | # Shell to use when invoking shell scripts. |
| 20858 | SHELL=$lt_SHELL |
| 20859 | |
| 20860 | # An echo program that protects backslashes. |
| 20861 | ECHO=$lt_ECHO |
| 20862 | |
| 20863 | # The PATH separator for the build system. |
| 20864 | PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 20865 | |
| 20866 | # The host system. |
| 20867 | host_alias=$host_alias |
| 20868 | host=$host |
| 20869 | host_os=$host_os |
| 20870 | |
| 20871 | # The build system. |
| 20872 | build_alias=$build_alias |
| 20873 | build=$build |
| 20874 | build_os=$build_os |
| 20875 | |
| 20876 | # A sed program that does not truncate output. |
| 20877 | SED=$lt_SED |
| 20878 | |
| 20879 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 20880 | Xsed="\$SED -e 1s/^X//" |
| 20881 | |
| 20882 | # A grep program that handles long lines. |
| 20883 | GREP=$lt_GREP |
| 20884 | |
| 20885 | # An ERE matcher. |
| 20886 | EGREP=$lt_EGREP |
| 20887 | |
| 20888 | # A literal string matcher. |
| 20889 | FGREP=$lt_FGREP |
| 20890 | |
| 20891 | # A BSD- or MS-compatible name lister. |
| 20892 | NM=$lt_NM |
| 20893 | |
| 20894 | # Whether we need soft or hard links. |
| 20895 | LN_S=$lt_LN_S |
| 20896 | |
| 20897 | # What is the maximum length of a command? |
| 20898 | max_cmd_len=$max_cmd_len |
| 20899 | |
| 20900 | # Object file suffix (normally "o"). |
| 20901 | objext=$ac_objext |
| 20902 | |
| 20903 | # Executable file suffix (normally ""). |
| 20904 | exeext=$exeext |
| 20905 | |
| 20906 | # whether the shell understands "unset". |
| 20907 | lt_unset=$lt_unset |
| 20908 | |
| 20909 | # turn spaces into newlines. |
| 20910 | SP2NL=$lt_lt_SP2NL |
| 20911 | |
| 20912 | # turn newlines into spaces. |
| 20913 | NL2SP=$lt_lt_NL2SP |
| 20914 | |
| 20915 | # convert \$build file names to \$host format. |
| 20916 | to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 20917 | |
| 20918 | # convert \$build files to toolchain format. |
| 20919 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 20920 | |
| 20921 | # An object symbol dumper. |
| 20922 | OBJDUMP=$lt_OBJDUMP |
| 20923 | |
| 20924 | # Method to check whether dependent libraries are shared objects. |
| 20925 | deplibs_check_method=$lt_deplibs_check_method |
| 20926 | |
| 20927 | # Command to use when deplibs_check_method = "file_magic". |
| 20928 | file_magic_cmd=$lt_file_magic_cmd |
| 20929 | |
| 20930 | # How to find potential files when deplibs_check_method = "file_magic". |
| 20931 | file_magic_glob=$lt_file_magic_glob |
| 20932 | |
| 20933 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 20934 | want_nocaseglob=$lt_want_nocaseglob |
| 20935 | |
| 20936 | # DLL creation program. |
| 20937 | DLLTOOL=$lt_DLLTOOL |
| 20938 | |
| 20939 | # Command to associate shared and link libraries. |
| 20940 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 20941 | |
| 20942 | # The archiver. |
| 20943 | AR=$lt_AR |
| 20944 | |
| 20945 | # Flags to create an archive. |
| 20946 | AR_FLAGS=$lt_AR_FLAGS |
| 20947 | |
| 20948 | # How to feed a file listing to the archiver. |
| 20949 | archiver_list_spec=$lt_archiver_list_spec |
| 20950 | |
| 20951 | # A symbol stripping program. |
| 20952 | STRIP=$lt_STRIP |
| 20953 | |
| 20954 | # Commands used to install an old-style archive. |
| 20955 | RANLIB=$lt_RANLIB |
| 20956 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 20957 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 20958 | |
| 20959 | # Whether to use a lock for old archive extraction. |
| 20960 | lock_old_archive_extraction=$lock_old_archive_extraction |
| 20961 | |
| 20962 | # A C compiler. |
| 20963 | LTCC=$lt_CC |
| 20964 | |
| 20965 | # LTCC compiler flags. |
| 20966 | LTCFLAGS=$lt_CFLAGS |
| 20967 | |
| 20968 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 20969 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 20970 | |
| 20971 | # Transform the output of nm in a proper C declaration. |
| 20972 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 20973 | |
| 20974 | # Transform the output of nm in a C name address pair. |
| 20975 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 20976 | |
| 20977 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 20978 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 20979 | |
| 20980 | # Specify filename containing input files for \$NM. |
| 20981 | nm_file_list_spec=$lt_nm_file_list_spec |
| 20982 | |
| 20983 | # The root where to search for dependent libraries,and in which our libraries should be installed. |
| 20984 | lt_sysroot=$lt_sysroot |
| 20985 | |
| 20986 | # The name of the directory that contains temporary libtool files. |
| 20987 | objdir=$objdir |
| 20988 | |
| 20989 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 20990 | MAGIC_CMD=$MAGIC_CMD |
| 20991 | |
| 20992 | # Must we lock files when doing compilation? |
| 20993 | need_locks=$lt_need_locks |
| 20994 | |
| 20995 | # Manifest tool. |
| 20996 | MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 20997 | |
| 20998 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 20999 | DSYMUTIL=$lt_DSYMUTIL |
| 21000 | |
| 21001 | # Tool to change global to local symbols on Mac OS X. |
| 21002 | NMEDIT=$lt_NMEDIT |
| 21003 | |
| 21004 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 21005 | LIPO=$lt_LIPO |
| 21006 | |
| 21007 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 21008 | OTOOL=$lt_OTOOL |
| 21009 | |
| 21010 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 21011 | OTOOL64=$lt_OTOOL64 |
| 21012 | |
| 21013 | # Old archive suffix (normally "a"). |
| 21014 | libext=$libext |
| 21015 | |
| 21016 | # Shared library suffix (normally ".so"). |
| 21017 | shrext_cmds=$lt_shrext_cmds |
| 21018 | |
| 21019 | # The commands to extract the exported symbol list from a shared archive. |
| 21020 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 21021 | |
| 21022 | # Variables whose values should be saved in libtool wrapper scripts and |
| 21023 | # restored at link time. |
| 21024 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 21025 | |
| 21026 | # Do we need the "lib" prefix for modules? |
| 21027 | need_lib_prefix=$need_lib_prefix |
| 21028 | |
| 21029 | # Do we need a version for libraries? |
| 21030 | need_version=$need_version |
| 21031 | |
| 21032 | # Library versioning type. |
| 21033 | version_type=$version_type |
| 21034 | |
| 21035 | # Shared library runtime path variable. |
| 21036 | runpath_var=$runpath_var |
| 21037 | |
| 21038 | # Shared library path variable. |
| 21039 | shlibpath_var=$shlibpath_var |
| 21040 | |
| 21041 | # Is shlibpath searched before the hard-coded library search path? |
| 21042 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 21043 | |
| 21044 | # Format of library name prefix. |
| 21045 | libname_spec=$lt_libname_spec |
| 21046 | |
| 21047 | # List of archive names. First name is the real one, the rest are links. |
| 21048 | # The last name is the one that the linker finds with -lNAME |
| 21049 | library_names_spec=$lt_library_names_spec |
| 21050 | |
| 21051 | # The coded name of the library, if different from the real name. |
| 21052 | soname_spec=$lt_soname_spec |
| 21053 | |
| 21054 | # Permission mode override for installation of shared libraries. |
| 21055 | install_override_mode=$lt_install_override_mode |
| 21056 | |
| 21057 | # Command to use after installation of a shared archive. |
| 21058 | postinstall_cmds=$lt_postinstall_cmds |
| 21059 | |
| 21060 | # Command to use after uninstallation of a shared archive. |
| 21061 | postuninstall_cmds=$lt_postuninstall_cmds |
| 21062 | |
| 21063 | # Commands used to finish a libtool library installation in a directory. |
| 21064 | finish_cmds=$lt_finish_cmds |
| 21065 | |
| 21066 | # As "finish_cmds", except a single script fragment to be evaled but |
| 21067 | # not shown. |
| 21068 | finish_eval=$lt_finish_eval |
| 21069 | |
| 21070 | # Whether we should hardcode library paths into libraries. |
| 21071 | hardcode_into_libs=$hardcode_into_libs |
| 21072 | |
| 21073 | # Compile-time system search path for libraries. |
| 21074 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 21075 | |
| 21076 | # Run-time system search path for libraries. |
| 21077 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 21078 | |
| 21079 | # Whether dlopen is supported. |
| 21080 | dlopen_support=$enable_dlopen |
| 21081 | |
| 21082 | # Whether dlopen of programs is supported. |
| 21083 | dlopen_self=$enable_dlopen_self |
| 21084 | |
| 21085 | # Whether dlopen of statically linked programs is supported. |
| 21086 | dlopen_self_static=$enable_dlopen_self_static |
| 21087 | |
| 21088 | # Commands to strip libraries. |
| 21089 | old_striplib=$lt_old_striplib |
| 21090 | striplib=$lt_striplib |
| 21091 | |
| 21092 | |
| 21093 | # The linker used to build libraries. |
| 21094 | LD=$lt_LD |
| 21095 | |
| 21096 | # How to create reloadable object files. |
| 21097 | reload_flag=$lt_reload_flag |
| 21098 | reload_cmds=$lt_reload_cmds |
| 21099 | |
| 21100 | # Commands used to build an old-style archive. |
| 21101 | old_archive_cmds=$lt_old_archive_cmds |
| 21102 | |
| 21103 | # A language specific compiler. |
| 21104 | CC=$lt_compiler |
| 21105 | |
| 21106 | # Is the compiler the GNU compiler? |
| 21107 | with_gcc=$GCC |
| 21108 | |
| 21109 | # Compiler flag to turn off builtin functions. |
| 21110 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 21111 | |
| 21112 | # Additional compiler flags for building library objects. |
| 21113 | pic_flag=$lt_lt_prog_compiler_pic |
| 21114 | |
| 21115 | # How to pass a linker flag through the compiler. |
| 21116 | wl=$lt_lt_prog_compiler_wl |
| 21117 | |
| 21118 | # Compiler flag to prevent dynamic linking. |
| 21119 | link_static_flag=$lt_lt_prog_compiler_static |
| 21120 | |
| 21121 | # Does compiler simultaneously support -c and -o options? |
| 21122 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 21123 | |
| 21124 | # Whether or not to add -lc for building shared libraries. |
| 21125 | build_libtool_need_lc=$archive_cmds_need_lc |
| 21126 | |
| 21127 | # Whether or not to disallow shared libs when runtime libs are static. |
| 21128 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 21129 | |
| 21130 | # Compiler flag to allow reflexive dlopens. |
| 21131 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 21132 | |
| 21133 | # Compiler flag to generate shared objects directly from archives. |
| 21134 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 21135 | |
| 21136 | # Whether the compiler copes with passing no objects directly. |
| 21137 | compiler_needs_object=$lt_compiler_needs_object |
| 21138 | |
| 21139 | # Create an old-style archive from a shared archive. |
| 21140 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 21141 | |
| 21142 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21143 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 21144 | |
| 21145 | # Commands used to build a shared archive. |
| 21146 | archive_cmds=$lt_archive_cmds |
| 21147 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 21148 | |
| 21149 | # Commands used to build a loadable module if different from building |
| 21150 | # a shared archive. |
| 21151 | module_cmds=$lt_module_cmds |
| 21152 | module_expsym_cmds=$lt_module_expsym_cmds |
| 21153 | |
| 21154 | # Whether we are building with GNU ld or not. |
| 21155 | with_gnu_ld=$lt_with_gnu_ld |
| 21156 | |
| 21157 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21158 | allow_undefined_flag=$lt_allow_undefined_flag |
| 21159 | |
| 21160 | # Flag that enforces no undefined symbols. |
| 21161 | no_undefined_flag=$lt_no_undefined_flag |
| 21162 | |
| 21163 | # Flag to hardcode \$libdir into a binary during linking. |
| 21164 | # This must work even if \$libdir does not exist |
| 21165 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 21166 | |
| 21167 | # Whether we need a single "-rpath" flag with a separated argument. |
| 21168 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 21169 | |
| 21170 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 21171 | # DIR into the resulting binary. |
| 21172 | hardcode_direct=$hardcode_direct |
| 21173 | |
| 21174 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 21175 | # DIR into the resulting binary and the resulting library dependency is |
| 21176 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 21177 | # library is relocated. |
| 21178 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 21179 | |
| 21180 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 21181 | # into the resulting binary. |
| 21182 | hardcode_minus_L=$hardcode_minus_L |
| 21183 | |
| 21184 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 21185 | # into the resulting binary. |
| 21186 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 21187 | |
| 21188 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 21189 | # into the library and all subsequent libraries and executables linked |
| 21190 | # against it. |
| 21191 | hardcode_automatic=$hardcode_automatic |
| 21192 | |
| 21193 | # Set to yes if linker adds runtime paths of dependent libraries |
| 21194 | # to runtime path list. |
| 21195 | inherit_rpath=$inherit_rpath |
| 21196 | |
| 21197 | # Whether libtool must link a program against all its dependency libraries. |
| 21198 | link_all_deplibs=$link_all_deplibs |
| 21199 | |
| 21200 | # Set to "yes" if exported symbols are required. |
| 21201 | always_export_symbols=$always_export_symbols |
| 21202 | |
| 21203 | # The commands to list exported symbols. |
| 21204 | export_symbols_cmds=$lt_export_symbols_cmds |
| 21205 | |
| 21206 | # Symbols that should not be listed in the preloaded symbols. |
| 21207 | exclude_expsyms=$lt_exclude_expsyms |
| 21208 | |
| 21209 | # Symbols that must always be exported. |
| 21210 | include_expsyms=$lt_include_expsyms |
| 21211 | |
| 21212 | # Commands necessary for linking programs (against libraries) with templates. |
| 21213 | prelink_cmds=$lt_prelink_cmds |
| 21214 | |
| 21215 | # Commands necessary for finishing linking programs. |
| 21216 | postlink_cmds=$lt_postlink_cmds |
| 21217 | |
| 21218 | # Specify filename containing input files. |
| 21219 | file_list_spec=$lt_file_list_spec |
| 21220 | |
| 21221 | # How to hardcode a shared library path into an executable. |
| 21222 | hardcode_action=$hardcode_action |
| 21223 | |
| 21224 | # The directories searched by this compiler when creating a shared library. |
| 21225 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 21226 | |
| 21227 | # Dependencies to place before and after the objects being linked to |
| 21228 | # create a shared library. |
| 21229 | predep_objects=$lt_predep_objects |
| 21230 | postdep_objects=$lt_postdep_objects |
| 21231 | predeps=$lt_predeps |
| 21232 | postdeps=$lt_postdeps |
| 21233 | |
| 21234 | # The library search path used internally by the compiler when linking |
| 21235 | # a shared library. |
| 21236 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 21237 | |
| 21238 | # ### END LIBTOOL CONFIG |
| 21239 | |
| 21240 | _LT_EOF |
| 21241 | |
| 21242 | case $host_os in |
| 21243 | aix3*) |
| 21244 | cat <<\_LT_EOF >> "$cfgfile" |
| 21245 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 21246 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 21247 | # vanish in a puff of smoke. |
| 21248 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 21249 | COLLECT_NAMES= |
| 21250 | export COLLECT_NAMES |
| 21251 | fi |
| 21252 | _LT_EOF |
| 21253 | ;; |
| 21254 | esac |
| 21255 | |
| 21256 | |
| 21257 | ltmain="$ac_aux_dir/ltmain.sh" |
| 21258 | |
| 21259 | |
| 21260 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 21261 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 21262 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 21263 | # is reportedly fixed, but why not run on old versions too? |
| 21264 | sed '$q' "$ltmain" >> "$cfgfile" \ |
| 21265 | || (rm -f "$cfgfile"; exit 1) |
| 21266 | |
| 21267 | if test x"$xsi_shell" = xyes; then |
| 21268 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ |
| 21269 | func_dirname ()\ |
| 21270 | {\ |
| 21271 | \ case ${1} in\ |
| 21272 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 21273 | \ * ) func_dirname_result="${3}" ;;\ |
| 21274 | \ esac\ |
| 21275 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21276 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21277 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21278 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21279 | |
| 21280 | |
| 21281 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ |
| 21282 | func_basename ()\ |
| 21283 | {\ |
| 21284 | \ func_basename_result="${1##*/}"\ |
| 21285 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21286 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21287 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21288 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21289 | |
| 21290 | |
| 21291 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ |
| 21292 | func_dirname_and_basename ()\ |
| 21293 | {\ |
| 21294 | \ case ${1} in\ |
| 21295 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ |
| 21296 | \ * ) func_dirname_result="${3}" ;;\ |
| 21297 | \ esac\ |
| 21298 | \ func_basename_result="${1##*/}"\ |
| 21299 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21300 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21301 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21302 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21303 | |
| 21304 | |
| 21305 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ |
| 21306 | func_stripname ()\ |
| 21307 | {\ |
| 21308 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ |
| 21309 | \ # positional parameters, so assign one to ordinary parameter first.\ |
| 21310 | \ func_stripname_result=${3}\ |
| 21311 | \ func_stripname_result=${func_stripname_result#"${1}"}\ |
| 21312 | \ func_stripname_result=${func_stripname_result%"${2}"}\ |
| 21313 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21314 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21315 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21316 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21317 | |
| 21318 | |
| 21319 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ |
| 21320 | func_split_long_opt ()\ |
| 21321 | {\ |
| 21322 | \ func_split_long_opt_name=${1%%=*}\ |
| 21323 | \ func_split_long_opt_arg=${1#*=}\ |
| 21324 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21325 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21326 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21327 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21328 | |
| 21329 | |
| 21330 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ |
| 21331 | func_split_short_opt ()\ |
| 21332 | {\ |
| 21333 | \ func_split_short_opt_arg=${1#??}\ |
| 21334 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ |
| 21335 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21336 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21337 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21338 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21339 | |
| 21340 | |
| 21341 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ |
| 21342 | func_lo2o ()\ |
| 21343 | {\ |
| 21344 | \ case ${1} in\ |
| 21345 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ |
| 21346 | \ *) func_lo2o_result=${1} ;;\ |
| 21347 | \ esac\ |
| 21348 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21349 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21350 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21351 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21352 | |
| 21353 | |
| 21354 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ |
| 21355 | func_xform ()\ |
| 21356 | {\ |
| 21357 | func_xform_result=${1%.*}.lo\ |
| 21358 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21359 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21360 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21361 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21362 | |
| 21363 | |
| 21364 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ |
| 21365 | func_arith ()\ |
| 21366 | {\ |
| 21367 | func_arith_result=$(( $* ))\ |
| 21368 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21369 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21370 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21371 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21372 | |
| 21373 | |
| 21374 | sed -e '/^func_len ()$/,/^} # func_len /c\ |
| 21375 | func_len ()\ |
| 21376 | {\ |
| 21377 | func_len_result=${#1}\ |
| 21378 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21379 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21380 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21381 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21382 | |
| 21383 | fi |
| 21384 | |
| 21385 | if test x"$lt_shell_append" = xyes; then |
| 21386 | sed -e '/^func_append ()$/,/^} # func_append /c\ |
| 21387 | func_append ()\ |
| 21388 | {\ |
| 21389 | eval "${1}+=\\${2}"\ |
| 21390 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21391 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21392 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21393 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21394 | |
| 21395 | |
| 21396 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ |
| 21397 | func_append_quoted ()\ |
| 21398 | {\ |
| 21399 | \ func_quote_for_eval "${2}"\ |
| 21400 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ |
| 21401 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ |
| 21402 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21403 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21404 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21405 | |
| 21406 | |
| 21407 | # Save a `func_append' function call where possible by direct use of '+=' |
| 21408 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ |
| 21409 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21410 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21411 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21412 | else |
| 21413 | # Save a `func_append' function call even when '+=' is not available |
| 21414 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ |
| 21415 | && mv -f "$cfgfile.tmp" "$cfgfile" \ |
| 21416 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") |
| 21417 | test 0 -eq $? || _lt_function_replace_fail=: |
| 21418 | fi |
| 21419 | |
| 21420 | if test x"$_lt_function_replace_fail" = x":"; then |
| 21421 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 |
| 21422 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} |
| 21423 | fi |
| 21424 | |
| 21425 | |
| 21426 | mv -f "$cfgfile" "$ofile" || |
| 21427 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 21428 | chmod +x "$ofile" |
| 21429 | |
| 21430 | |
| 21431 | cat <<_LT_EOF >> "$ofile" |
| 21432 | |
| 21433 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 21434 | |
| 21435 | # The linker used to build libraries. |
| 21436 | LD=$lt_LD_CXX |
| 21437 | |
| 21438 | # How to create reloadable object files. |
| 21439 | reload_flag=$lt_reload_flag_CXX |
| 21440 | reload_cmds=$lt_reload_cmds_CXX |
| 21441 | |
| 21442 | # Commands used to build an old-style archive. |
| 21443 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 21444 | |
| 21445 | # A language specific compiler. |
| 21446 | CC=$lt_compiler_CXX |
| 21447 | |
| 21448 | # Is the compiler the GNU compiler? |
| 21449 | with_gcc=$GCC_CXX |
| 21450 | |
| 21451 | # Compiler flag to turn off builtin functions. |
| 21452 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 21453 | |
| 21454 | # Additional compiler flags for building library objects. |
| 21455 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 21456 | |
| 21457 | # How to pass a linker flag through the compiler. |
| 21458 | wl=$lt_lt_prog_compiler_wl_CXX |
| 21459 | |
| 21460 | # Compiler flag to prevent dynamic linking. |
| 21461 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 21462 | |
| 21463 | # Does compiler simultaneously support -c and -o options? |
| 21464 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 21465 | |
| 21466 | # Whether or not to add -lc for building shared libraries. |
| 21467 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 21468 | |
| 21469 | # Whether or not to disallow shared libs when runtime libs are static. |
| 21470 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 21471 | |
| 21472 | # Compiler flag to allow reflexive dlopens. |
| 21473 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 21474 | |
| 21475 | # Compiler flag to generate shared objects directly from archives. |
| 21476 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 21477 | |
| 21478 | # Whether the compiler copes with passing no objects directly. |
| 21479 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 21480 | |
| 21481 | # Create an old-style archive from a shared archive. |
| 21482 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 21483 | |
| 21484 | # Create a temporary old-style archive to link instead of a shared archive. |
| 21485 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 21486 | |
| 21487 | # Commands used to build a shared archive. |
| 21488 | archive_cmds=$lt_archive_cmds_CXX |
| 21489 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 21490 | |
| 21491 | # Commands used to build a loadable module if different from building |
| 21492 | # a shared archive. |
| 21493 | module_cmds=$lt_module_cmds_CXX |
| 21494 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 21495 | |
| 21496 | # Whether we are building with GNU ld or not. |
| 21497 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 21498 | |
| 21499 | # Flag that allows shared libraries with undefined symbols to be built. |
| 21500 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 21501 | |
| 21502 | # Flag that enforces no undefined symbols. |
| 21503 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 21504 | |
| 21505 | # Flag to hardcode \$libdir into a binary during linking. |
| 21506 | # This must work even if \$libdir does not exist |
| 21507 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 21508 | |
| 21509 | # Whether we need a single "-rpath" flag with a separated argument. |
| 21510 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 21511 | |
| 21512 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 21513 | # DIR into the resulting binary. |
| 21514 | hardcode_direct=$hardcode_direct_CXX |
| 21515 | |
| 21516 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 21517 | # DIR into the resulting binary and the resulting library dependency is |
| 21518 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 21519 | # library is relocated. |
| 21520 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 21521 | |
| 21522 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 21523 | # into the resulting binary. |
| 21524 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 21525 | |
| 21526 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 21527 | # into the resulting binary. |
| 21528 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 21529 | |
| 21530 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 21531 | # into the library and all subsequent libraries and executables linked |
| 21532 | # against it. |
| 21533 | hardcode_automatic=$hardcode_automatic_CXX |
| 21534 | |
| 21535 | # Set to yes if linker adds runtime paths of dependent libraries |
| 21536 | # to runtime path list. |
| 21537 | inherit_rpath=$inherit_rpath_CXX |
| 21538 | |
| 21539 | # Whether libtool must link a program against all its dependency libraries. |
| 21540 | link_all_deplibs=$link_all_deplibs_CXX |
| 21541 | |
| 21542 | # Set to "yes" if exported symbols are required. |
| 21543 | always_export_symbols=$always_export_symbols_CXX |
| 21544 | |
| 21545 | # The commands to list exported symbols. |
| 21546 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 21547 | |
| 21548 | # Symbols that should not be listed in the preloaded symbols. |
| 21549 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 21550 | |
| 21551 | # Symbols that must always be exported. |
| 21552 | include_expsyms=$lt_include_expsyms_CXX |
| 21553 | |
| 21554 | # Commands necessary for linking programs (against libraries) with templates. |
| 21555 | prelink_cmds=$lt_prelink_cmds_CXX |
| 21556 | |
| 21557 | # Commands necessary for finishing linking programs. |
| 21558 | postlink_cmds=$lt_postlink_cmds_CXX |
| 21559 | |
| 21560 | # Specify filename containing input files. |
| 21561 | file_list_spec=$lt_file_list_spec_CXX |
| 21562 | |
| 21563 | # How to hardcode a shared library path into an executable. |
| 21564 | hardcode_action=$hardcode_action_CXX |
| 21565 | |
| 21566 | # The directories searched by this compiler when creating a shared library. |
| 21567 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 21568 | |
| 21569 | # Dependencies to place before and after the objects being linked to |
| 21570 | # create a shared library. |
| 21571 | predep_objects=$lt_predep_objects_CXX |
| 21572 | postdep_objects=$lt_postdep_objects_CXX |
| 21573 | predeps=$lt_predeps_CXX |
| 21574 | postdeps=$lt_postdeps_CXX |
| 21575 | |
| 21576 | # The library search path used internally by the compiler when linking |
| 21577 | # a shared library. |
| 21578 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 21579 | |
| 21580 | # ### END LIBTOOL TAG CONFIG: CXX |
| 21581 | _LT_EOF |
| 21582 | |
| 21583 | ;; |
Jeff Thompson | 39128c6 | 2013-06-19 14:08:51 -0700 | [diff] [blame] | 21584 | |
| 21585 | esac |
| 21586 | done # for ac_tag |
| 21587 | |
| 21588 | |
| 21589 | as_fn_exit 0 |
| 21590 | _ACEOF |
| 21591 | ac_clean_files=$ac_clean_files_save |
| 21592 | |
| 21593 | test $ac_write_fail = 0 || |
| 21594 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 21595 | |
| 21596 | |
| 21597 | # configure is writing to config.log, and then calls config.status. |
| 21598 | # config.status does its own redirection, appending to config.log. |
| 21599 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 21600 | # by configure, so config.status won't be able to write to it; its |
| 21601 | # output is simply discarded. So we exec the FD to /dev/null, |
| 21602 | # effectively closing config.log, so it can be properly (re)opened and |
| 21603 | # appended to by config.status. When coming back to configure, we |
| 21604 | # need to make the FD available again. |
| 21605 | if test "$no_create" != yes; then |
| 21606 | ac_cs_success=: |
| 21607 | ac_config_status_args= |
| 21608 | test "$silent" = yes && |
| 21609 | ac_config_status_args="$ac_config_status_args --quiet" |
| 21610 | exec 5>/dev/null |
| 21611 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 21612 | exec 5>>config.log |
| 21613 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 21614 | # would make configure fail if this is the last instruction. |
| 21615 | $ac_cs_success || as_fn_exit 1 |
| 21616 | fi |
| 21617 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 21618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 21619 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 21620 | fi |
| 21621 | |