Mercurial > repos > ktnyt > gembassy
comparison GEMBASSY-1.0.3/configure @ 0:8300eb051bea draft
Initial upload
| author | ktnyt |
|---|---|
| date | Fri, 26 Jun 2015 05:19:29 -0400 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:8300eb051bea |
|---|---|
| 1 #! /bin/sh | |
| 2 # From configure.in Revision: 1.35 . | |
| 3 # Guess values for system-dependent variables and create Makefiles. | |
| 4 # Generated by GNU Autoconf 2.69 for GEMBASSY 1.0.3. | |
| 5 # | |
| 6 # Report bugs to <celery@g-language.org>. | |
| 7 # | |
| 8 # | |
| 9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
| 10 # | |
| 11 # | |
| 12 # This configure script is free software; the Free Software Foundation | |
| 13 # gives unlimited permission to copy, distribute and modify it. | |
| 14 ## -------------------- ## | |
| 15 ## M4sh Initialization. ## | |
| 16 ## -------------------- ## | |
| 17 | |
| 18 # Be more Bourne compatible | |
| 19 DUALCASE=1; export DUALCASE # for MKS sh | |
| 20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
| 21 emulate sh | |
| 22 NULLCMD=: | |
| 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
| 24 # is contrary to our usage. Disable this feature. | |
| 25 alias -g '${1+"$@"}'='"$@"' | |
| 26 setopt NO_GLOB_SUBST | |
| 27 else | |
| 28 case `(set -o) 2>/dev/null` in #( | |
| 29 *posix*) : | |
| 30 set -o posix ;; #( | |
| 31 *) : | |
| 32 ;; | |
| 33 esac | |
| 34 fi | |
| 35 | |
| 36 | |
| 37 as_nl=' | |
| 38 ' | |
| 39 export as_nl | |
| 40 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
| 41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
| 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
| 43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
| 44 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
| 45 # but without wasting forks for bash or zsh. | |
| 46 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
| 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
| 48 as_echo='print -r --' | |
| 49 as_echo_n='print -rn --' | |
| 50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
| 51 as_echo='printf %s\n' | |
| 52 as_echo_n='printf %s' | |
| 53 else | |
| 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
| 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
| 56 as_echo_n='/usr/ucb/echo -n' | |
| 57 else | |
| 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
| 59 as_echo_n_body='eval | |
| 60 arg=$1; | |
| 61 case $arg in #( | |
| 62 *"$as_nl"*) | |
| 63 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
| 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
| 65 esac; | |
| 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
| 67 ' | |
| 68 export as_echo_n_body | |
| 69 as_echo_n='sh -c $as_echo_n_body as_echo' | |
| 70 fi | |
| 71 export as_echo_body | |
| 72 as_echo='sh -c $as_echo_body as_echo' | |
| 73 fi | |
| 74 | |
| 75 # The user is always right. | |
| 76 if test "${PATH_SEPARATOR+set}" != set; then | |
| 77 PATH_SEPARATOR=: | |
| 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
| 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
| 80 PATH_SEPARATOR=';' | |
| 81 } | |
| 82 fi | |
| 83 | |
| 84 | |
| 85 # IFS | |
| 86 # We need space, tab and new line, in precisely that order. Quoting is | |
| 87 # there to prevent editors from complaining about space-tab. | |
| 88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
| 89 # splitting by setting IFS to empty value.) | |
| 90 IFS=" "" $as_nl" | |
| 91 | |
| 92 # Find who we are. Look in the path if we contain no directory separator. | |
| 93 as_myself= | |
| 94 case $0 in #(( | |
| 95 *[\\/]* ) as_myself=$0 ;; | |
| 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 97 for as_dir in $PATH | |
| 98 do | |
| 99 IFS=$as_save_IFS | |
| 100 test -z "$as_dir" && as_dir=. | |
| 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
| 102 done | |
| 103 IFS=$as_save_IFS | |
| 104 | |
| 105 ;; | |
| 106 esac | |
| 107 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
| 108 # in which case we are not to be found in the path. | |
| 109 if test "x$as_myself" = x; then | |
| 110 as_myself=$0 | |
| 111 fi | |
| 112 if test ! -f "$as_myself"; then | |
| 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
| 114 exit 1 | |
| 115 fi | |
| 116 | |
| 117 # Unset variables that we do not need and which cause bugs (e.g. in | |
| 118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
| 119 # suppresses any "Segmentation fault" message there. '((' could | |
| 120 # trigger a bug in pdksh 5.2.14. | |
| 121 for as_var in BASH_ENV ENV MAIL MAILPATH | |
| 122 do eval test x\${$as_var+set} = xset \ | |
| 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
| 124 done | |
| 125 PS1='$ ' | |
| 126 PS2='> ' | |
| 127 PS4='+ ' | |
| 128 | |
| 129 # NLS nuisances. | |
| 130 LC_ALL=C | |
| 131 export LC_ALL | |
| 132 LANGUAGE=C | |
| 133 export LANGUAGE | |
| 134 | |
| 135 # CDPATH. | |
| 136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
| 137 | |
| 138 # Use a proper internal environment variable to ensure we don't fall | |
| 139 # into an infinite loop, continuously re-executing ourselves. | |
| 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
| 141 _as_can_reexec=no; export _as_can_reexec; | |
| 142 # We cannot yet assume a decent shell, so we have to provide a | |
| 143 # neutralization value for shells without unset; and this also | |
| 144 # works around shells that cannot unset nonexistent variables. | |
| 145 # Preserve -v and -x to the replacement shell. | |
| 146 BASH_ENV=/dev/null | |
| 147 ENV=/dev/null | |
| 148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
| 149 case $- in # (((( | |
| 150 *v*x* | *x*v* ) as_opts=-vx ;; | |
| 151 *v* ) as_opts=-v ;; | |
| 152 *x* ) as_opts=-x ;; | |
| 153 * ) as_opts= ;; | |
| 154 esac | |
| 155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
| 156 # Admittedly, this is quite paranoid, since all the known shells bail | |
| 157 # out after a failed `exec'. | |
| 158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
| 159 as_fn_exit 255 | |
| 160 fi | |
| 161 # We don't want this to propagate to other subprocesses. | |
| 162 { _as_can_reexec=; unset _as_can_reexec;} | |
| 163 if test "x$CONFIG_SHELL" = x; then | |
| 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
| 165 emulate sh | |
| 166 NULLCMD=: | |
| 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
| 168 # is contrary to our usage. Disable this feature. | |
| 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
| 170 setopt NO_GLOB_SUBST | |
| 171 else | |
| 172 case \`(set -o) 2>/dev/null\` in #( | |
| 173 *posix*) : | |
| 174 set -o posix ;; #( | |
| 175 *) : | |
| 176 ;; | |
| 177 esac | |
| 178 fi | |
| 179 " | |
| 180 as_required="as_fn_return () { (exit \$1); } | |
| 181 as_fn_success () { as_fn_return 0; } | |
| 182 as_fn_failure () { as_fn_return 1; } | |
| 183 as_fn_ret_success () { return 0; } | |
| 184 as_fn_ret_failure () { return 1; } | |
| 185 | |
| 186 exitcode=0 | |
| 187 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
| 188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
| 189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
| 190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
| 191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
| 192 | |
| 193 else | |
| 194 exitcode=1; echo positional parameters were not saved. | |
| 195 fi | |
| 196 test x\$exitcode = x0 || exit 1 | |
| 197 test -x / || exit 1" | |
| 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
| 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
| 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
| 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
| 202 | |
| 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
| 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
| 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
| 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
| 207 PATH=/empty FPATH=/empty; export PATH FPATH | |
| 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
| 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
| 210 test \$(( 1 + 1 )) = 2 || exit 1" | |
| 211 if (eval "$as_required") 2>/dev/null; then : | |
| 212 as_have_required=yes | |
| 213 else | |
| 214 as_have_required=no | |
| 215 fi | |
| 216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
| 217 | |
| 218 else | |
| 219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 220 as_found=false | |
| 221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
| 222 do | |
| 223 IFS=$as_save_IFS | |
| 224 test -z "$as_dir" && as_dir=. | |
| 225 as_found=: | |
| 226 case $as_dir in #( | |
| 227 /*) | |
| 228 for as_base in sh bash ksh sh5; do | |
| 229 # Try only shells that exist, to save several forks. | |
| 230 as_shell=$as_dir/$as_base | |
| 231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
| 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
| 233 CONFIG_SHELL=$as_shell as_have_required=yes | |
| 234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
| 235 break 2 | |
| 236 fi | |
| 237 fi | |
| 238 done;; | |
| 239 esac | |
| 240 as_found=false | |
| 241 done | |
| 242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
| 243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
| 244 CONFIG_SHELL=$SHELL as_have_required=yes | |
| 245 fi; } | |
| 246 IFS=$as_save_IFS | |
| 247 | |
| 248 | |
| 249 if test "x$CONFIG_SHELL" != x; then : | |
| 250 export CONFIG_SHELL | |
| 251 # We cannot yet assume a decent shell, so we have to provide a | |
| 252 # neutralization value for shells without unset; and this also | |
| 253 # works around shells that cannot unset nonexistent variables. | |
| 254 # Preserve -v and -x to the replacement shell. | |
| 255 BASH_ENV=/dev/null | |
| 256 ENV=/dev/null | |
| 257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
| 258 case $- in # (((( | |
| 259 *v*x* | *x*v* ) as_opts=-vx ;; | |
| 260 *v* ) as_opts=-v ;; | |
| 261 *x* ) as_opts=-x ;; | |
| 262 * ) as_opts= ;; | |
| 263 esac | |
| 264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
| 265 # Admittedly, this is quite paranoid, since all the known shells bail | |
| 266 # out after a failed `exec'. | |
| 267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
| 268 exit 255 | |
| 269 fi | |
| 270 | |
| 271 if test x$as_have_required = xno; then : | |
| 272 $as_echo "$0: This script requires a shell more modern than all" | |
| 273 $as_echo "$0: the shells that I found on your system." | |
| 274 if test x${ZSH_VERSION+set} = xset ; then | |
| 275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
| 276 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
| 277 else | |
| 278 $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
| 279 $0: celery@g-language.org about your system, including any | |
| 280 $0: error possibly output before this message. Then install | |
| 281 $0: a modern shell, or manually run the script under such a | |
| 282 $0: shell if you do have one." | |
| 283 fi | |
| 284 exit 1 | |
| 285 fi | |
| 286 fi | |
| 287 fi | |
| 288 SHELL=${CONFIG_SHELL-/bin/sh} | |
| 289 export SHELL | |
| 290 # Unset more variables known to interfere with behavior of common tools. | |
| 291 CLICOLOR_FORCE= GREP_OPTIONS= | |
| 292 unset CLICOLOR_FORCE GREP_OPTIONS | |
| 293 | |
| 294 ## --------------------- ## | |
| 295 ## M4sh Shell Functions. ## | |
| 296 ## --------------------- ## | |
| 297 # as_fn_unset VAR | |
| 298 # --------------- | |
| 299 # Portably unset VAR. | |
| 300 as_fn_unset () | |
| 301 { | |
| 302 { eval $1=; unset $1;} | |
| 303 } | |
| 304 as_unset=as_fn_unset | |
| 305 | |
| 306 # as_fn_set_status STATUS | |
| 307 # ----------------------- | |
| 308 # Set $? to STATUS, without forking. | |
| 309 as_fn_set_status () | |
| 310 { | |
| 311 return $1 | |
| 312 } # as_fn_set_status | |
| 313 | |
| 314 # as_fn_exit STATUS | |
| 315 # ----------------- | |
| 316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
| 317 as_fn_exit () | |
| 318 { | |
| 319 set +e | |
| 320 as_fn_set_status $1 | |
| 321 exit $1 | |
| 322 } # as_fn_exit | |
| 323 | |
| 324 # as_fn_mkdir_p | |
| 325 # ------------- | |
| 326 # Create "$as_dir" as a directory, including parents if necessary. | |
| 327 as_fn_mkdir_p () | |
| 328 { | |
| 329 | |
| 330 case $as_dir in #( | |
| 331 -*) as_dir=./$as_dir;; | |
| 332 esac | |
| 333 test -d "$as_dir" || eval $as_mkdir_p || { | |
| 334 as_dirs= | |
| 335 while :; do | |
| 336 case $as_dir in #( | |
| 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
| 338 *) as_qdir=$as_dir;; | |
| 339 esac | |
| 340 as_dirs="'$as_qdir' $as_dirs" | |
| 341 as_dir=`$as_dirname -- "$as_dir" || | |
| 342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 343 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
| 344 X"$as_dir" : 'X\(//\)$' \| \ | |
| 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
| 346 $as_echo X"$as_dir" | | |
| 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 348 s//\1/ | |
| 349 q | |
| 350 } | |
| 351 /^X\(\/\/\)[^/].*/{ | |
| 352 s//\1/ | |
| 353 q | |
| 354 } | |
| 355 /^X\(\/\/\)$/{ | |
| 356 s//\1/ | |
| 357 q | |
| 358 } | |
| 359 /^X\(\/\).*/{ | |
| 360 s//\1/ | |
| 361 q | |
| 362 } | |
| 363 s/.*/./; q'` | |
| 364 test -d "$as_dir" && break | |
| 365 done | |
| 366 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
| 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
| 368 | |
| 369 | |
| 370 } # as_fn_mkdir_p | |
| 371 | |
| 372 # as_fn_executable_p FILE | |
| 373 # ----------------------- | |
| 374 # Test if FILE is an executable regular file. | |
| 375 as_fn_executable_p () | |
| 376 { | |
| 377 test -f "$1" && test -x "$1" | |
| 378 } # as_fn_executable_p | |
| 379 # as_fn_append VAR VALUE | |
| 380 # ---------------------- | |
| 381 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
| 382 # advantage of any shell optimizations that allow amortized linear growth over | |
| 383 # repeated appends, instead of the typical quadratic growth present in naive | |
| 384 # implementations. | |
| 385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
| 386 eval 'as_fn_append () | |
| 387 { | |
| 388 eval $1+=\$2 | |
| 389 }' | |
| 390 else | |
| 391 as_fn_append () | |
| 392 { | |
| 393 eval $1=\$$1\$2 | |
| 394 } | |
| 395 fi # as_fn_append | |
| 396 | |
| 397 # as_fn_arith ARG... | |
| 398 # ------------------ | |
| 399 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
| 400 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
| 401 # must be portable across $(()) and expr. | |
| 402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
| 403 eval 'as_fn_arith () | |
| 404 { | |
| 405 as_val=$(( $* )) | |
| 406 }' | |
| 407 else | |
| 408 as_fn_arith () | |
| 409 { | |
| 410 as_val=`expr "$@" || test $? -eq 1` | |
| 411 } | |
| 412 fi # as_fn_arith | |
| 413 | |
| 414 | |
| 415 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
| 416 # ---------------------------------------- | |
| 417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
| 418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
| 419 # script with STATUS, using 1 if that was 0. | |
| 420 as_fn_error () | |
| 421 { | |
| 422 as_status=$1; test $as_status -eq 0 && as_status=1 | |
| 423 if test "$4"; then | |
| 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
| 426 fi | |
| 427 $as_echo "$as_me: error: $2" >&2 | |
| 428 as_fn_exit $as_status | |
| 429 } # as_fn_error | |
| 430 | |
| 431 if expr a : '\(a\)' >/dev/null 2>&1 && | |
| 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
| 433 as_expr=expr | |
| 434 else | |
| 435 as_expr=false | |
| 436 fi | |
| 437 | |
| 438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
| 439 as_basename=basename | |
| 440 else | |
| 441 as_basename=false | |
| 442 fi | |
| 443 | |
| 444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
| 445 as_dirname=dirname | |
| 446 else | |
| 447 as_dirname=false | |
| 448 fi | |
| 449 | |
| 450 as_me=`$as_basename -- "$0" || | |
| 451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
| 452 X"$0" : 'X\(//\)$' \| \ | |
| 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
| 454 $as_echo X/"$0" | | |
| 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
| 456 s//\1/ | |
| 457 q | |
| 458 } | |
| 459 /^X\/\(\/\/\)$/{ | |
| 460 s//\1/ | |
| 461 q | |
| 462 } | |
| 463 /^X\/\(\/\).*/{ | |
| 464 s//\1/ | |
| 465 q | |
| 466 } | |
| 467 s/.*/./; q'` | |
| 468 | |
| 469 # Avoid depending upon Character Ranges. | |
| 470 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
| 471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| 472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
| 473 as_cr_digits='0123456789' | |
| 474 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
| 475 | |
| 476 | |
| 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
| 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
| 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
| 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
| 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
| 482 sed -n ' | |
| 483 p | |
| 484 /[$]LINENO/= | |
| 485 ' <$as_myself | | |
| 486 sed ' | |
| 487 s/[$]LINENO.*/&-/ | |
| 488 t lineno | |
| 489 b | |
| 490 :lineno | |
| 491 N | |
| 492 :loop | |
| 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
| 494 t loop | |
| 495 s/-\n.*// | |
| 496 ' >$as_me.lineno && | |
| 497 chmod +x "$as_me.lineno" || | |
| 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
| 499 | |
| 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
| 501 # already done that, so ensure we don't try to do so again and fall | |
| 502 # in an infinite loop. This has already happened in practice. | |
| 503 _as_can_reexec=no; export _as_can_reexec | |
| 504 # Don't try to exec as it changes $[0], causing all sort of problems | |
| 505 # (the dirname of $[0] is not the place where we might find the | |
| 506 # original and so on. Autoconf is especially sensitive to this). | |
| 507 . "./$as_me.lineno" | |
| 508 # Exit status is that of the last command. | |
| 509 exit | |
| 510 } | |
| 511 | |
| 512 ECHO_C= ECHO_N= ECHO_T= | |
| 513 case `echo -n x` in #((((( | |
| 514 -n*) | |
| 515 case `echo 'xy\c'` in | |
| 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
| 517 xy) ECHO_C='\c';; | |
| 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
| 519 ECHO_T=' ';; | |
| 520 esac;; | |
| 521 *) | |
| 522 ECHO_N='-n';; | |
| 523 esac | |
| 524 | |
| 525 rm -f conf$$ conf$$.exe conf$$.file | |
| 526 if test -d conf$$.dir; then | |
| 527 rm -f conf$$.dir/conf$$.file | |
| 528 else | |
| 529 rm -f conf$$.dir | |
| 530 mkdir conf$$.dir 2>/dev/null | |
| 531 fi | |
| 532 if (echo >conf$$.file) 2>/dev/null; then | |
| 533 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
| 534 as_ln_s='ln -s' | |
| 535 # ... but there are two gotchas: | |
| 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
| 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
| 538 # In both cases, we have to default to `cp -pR'. | |
| 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
| 540 as_ln_s='cp -pR' | |
| 541 elif ln conf$$.file conf$$ 2>/dev/null; then | |
| 542 as_ln_s=ln | |
| 543 else | |
| 544 as_ln_s='cp -pR' | |
| 545 fi | |
| 546 else | |
| 547 as_ln_s='cp -pR' | |
| 548 fi | |
| 549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
| 550 rmdir conf$$.dir 2>/dev/null | |
| 551 | |
| 552 if mkdir -p . 2>/dev/null; then | |
| 553 as_mkdir_p='mkdir -p "$as_dir"' | |
| 554 else | |
| 555 test -d ./-p && rmdir ./-p | |
| 556 as_mkdir_p=false | |
| 557 fi | |
| 558 | |
| 559 as_test_x='test -x' | |
| 560 as_executable_p=as_fn_executable_p | |
| 561 | |
| 562 # Sed expression to map a string onto a valid CPP name. | |
| 563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
| 564 | |
| 565 # Sed expression to map a string onto a valid variable name. | |
| 566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
| 567 | |
| 568 SHELL=${CONFIG_SHELL-/bin/sh} | |
| 569 | |
| 570 | |
| 571 test -n "$DJDIR" || exec 7<&0 </dev/null | |
| 572 exec 6>&1 | |
| 573 | |
| 574 # Name of the host. | |
| 575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
| 576 # so uname gets run too. | |
| 577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 578 | |
| 579 # | |
| 580 # Initializations. | |
| 581 # | |
| 582 ac_default_prefix=/usr/local | |
| 583 ac_clean_files= | |
| 584 ac_config_libobj_dir=. | |
| 585 LIBOBJS= | |
| 586 cross_compiling=no | |
| 587 subdirs= | |
| 588 MFLAGS= | |
| 589 MAKEFLAGS= | |
| 590 | |
| 591 # Identity of this package. | |
| 592 PACKAGE_NAME='GEMBASSY' | |
| 593 PACKAGE_TARNAME='GEMBASSY' | |
| 594 PACKAGE_VERSION='1.0.3' | |
| 595 PACKAGE_STRING='GEMBASSY 1.0.3' | |
| 596 PACKAGE_BUGREPORT='celery@g-language.org' | |
| 597 PACKAGE_URL='http://www.g-language.org/gembassy/' | |
| 598 | |
| 599 ac_unique_file="src/ggcskew.c" | |
| 600 # Factoring default headers for most tests. | |
| 601 ac_includes_default="\ | |
| 602 #include <stdio.h> | |
| 603 #ifdef HAVE_SYS_TYPES_H | |
| 604 # include <sys/types.h> | |
| 605 #endif | |
| 606 #ifdef HAVE_SYS_STAT_H | |
| 607 # include <sys/stat.h> | |
| 608 #endif | |
| 609 #ifdef STDC_HEADERS | |
| 610 # include <stdlib.h> | |
| 611 # include <stddef.h> | |
| 612 #else | |
| 613 # ifdef HAVE_STDLIB_H | |
| 614 # include <stdlib.h> | |
| 615 # endif | |
| 616 #endif | |
| 617 #ifdef HAVE_STRING_H | |
| 618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
| 619 # include <memory.h> | |
| 620 # endif | |
| 621 # include <string.h> | |
| 622 #endif | |
| 623 #ifdef HAVE_STRINGS_H | |
| 624 # include <strings.h> | |
| 625 #endif | |
| 626 #ifdef HAVE_INTTYPES_H | |
| 627 # include <inttypes.h> | |
| 628 #endif | |
| 629 #ifdef HAVE_STDINT_H | |
| 630 # include <stdint.h> | |
| 631 #endif | |
| 632 #ifdef HAVE_UNISTD_H | |
| 633 # include <unistd.h> | |
| 634 #endif" | |
| 635 | |
| 636 ac_subst_vars='am__EXEEXT_FALSE | |
| 637 am__EXEEXT_TRUE | |
| 638 LTLIBOBJS | |
| 639 LIBOBJS | |
| 640 NEEDAJAX_FALSE | |
| 641 NEEDAJAX_TRUE | |
| 642 ISSHARED_FALSE | |
| 643 ISSHARED_TRUE | |
| 644 ISAIXIA64_FALSE | |
| 645 ISAIXIA64_TRUE | |
| 646 ISCYGWIN_FALSE | |
| 647 ISCYGWIN_TRUE | |
| 648 PURIFY_FALSE | |
| 649 PURIFY_TRUE | |
| 650 ESYSTEMLIBS_FALSE | |
| 651 ESYSTEMLIBS_TRUE | |
| 652 embprefix | |
| 653 LOCALLINK_FALSE | |
| 654 LOCALLINK_TRUE | |
| 655 POSIX_MALLOC_THRESHOLD | |
| 656 PCRE_POSIXLIB_VERSION | |
| 657 PCRE_LIB_VERSION | |
| 658 PCRE_VERSION | |
| 659 PCRE_DATE | |
| 660 PCRE_MINOR | |
| 661 PCRE_MAJOR | |
| 662 HAVE_STRERROR | |
| 663 HAVE_MEMMOVE | |
| 664 POSTGRESQL_VERSION | |
| 665 POSTGRESQL_LDFLAGS | |
| 666 POSTGRESQL_CPPFLAGS | |
| 667 POSTGRESQL_CFLAGS | |
| 668 POSTGRESQL_CONFIG | |
| 669 MYSQL_VERSION | |
| 670 MYSQL_LDFLAGS | |
| 671 MYSQL_CPPFLAGS | |
| 672 MYSQL_CFLAGS | |
| 673 MYSQL_CONFIG | |
| 674 JAVA_BUILD_FALSE | |
| 675 JAVA_BUILD_TRUE | |
| 676 JAVA_LDFLAGS | |
| 677 JAVA_CPPFLAGS | |
| 678 JAVA_CFLAGS | |
| 679 JAVAC | |
| 680 JAVA | |
| 681 JAR | |
| 682 ANT | |
| 683 AMPDF_FALSE | |
| 684 AMPDF_TRUE | |
| 685 AMPNG_FALSE | |
| 686 AMPNG_TRUE | |
| 687 XLIB | |
| 688 X_EXTRA_LIBS | |
| 689 X_LIBS | |
| 690 X_PRE_LIBS | |
| 691 X_CFLAGS | |
| 692 XMKMF | |
| 693 DEVWARN_CFLAGS | |
| 694 WARN_CFLAGS | |
| 695 CXXCPP | |
| 696 LT_SYS_LIBRARY_PATH | |
| 697 OTOOL64 | |
| 698 OTOOL | |
| 699 LIPO | |
| 700 NMEDIT | |
| 701 DSYMUTIL | |
| 702 MANIFEST_TOOL | |
| 703 RANLIB | |
| 704 ac_ct_AR | |
| 705 AR | |
| 706 DLLTOOL | |
| 707 OBJDUMP | |
| 708 NM | |
| 709 ac_ct_DUMPBIN | |
| 710 DUMPBIN | |
| 711 LD | |
| 712 FGREP | |
| 713 EGREP | |
| 714 GREP | |
| 715 SED | |
| 716 host_os | |
| 717 host_vendor | |
| 718 host_cpu | |
| 719 host | |
| 720 build_os | |
| 721 build_vendor | |
| 722 build_cpu | |
| 723 build | |
| 724 LIBTOOL | |
| 725 AM_BACKSLASH | |
| 726 AM_DEFAULT_VERBOSITY | |
| 727 AM_DEFAULT_V | |
| 728 AM_V | |
| 729 am__fastdepCXX_FALSE | |
| 730 am__fastdepCXX_TRUE | |
| 731 CXXDEPMODE | |
| 732 am__fastdepCC_FALSE | |
| 733 am__fastdepCC_TRUE | |
| 734 CCDEPMODE | |
| 735 am__nodep | |
| 736 AMDEPBACKSLASH | |
| 737 AMDEP_FALSE | |
| 738 AMDEP_TRUE | |
| 739 am__quote | |
| 740 am__include | |
| 741 DEPDIR | |
| 742 am__untar | |
| 743 am__tar | |
| 744 AMTAR | |
| 745 am__leading_dot | |
| 746 mkdir_p | |
| 747 INSTALL_STRIP_PROGRAM | |
| 748 STRIP | |
| 749 install_sh | |
| 750 MAKEINFO | |
| 751 AUTOHEADER | |
| 752 AUTOMAKE | |
| 753 AUTOCONF | |
| 754 ACLOCAL | |
| 755 VERSION | |
| 756 PACKAGE | |
| 757 CYGPATH_W | |
| 758 am__isrc | |
| 759 MKDIR_P | |
| 760 SET_MAKE | |
| 761 LN_S | |
| 762 INSTALL_DATA | |
| 763 INSTALL_SCRIPT | |
| 764 INSTALL_PROGRAM | |
| 765 CPP | |
| 766 ac_ct_CXX | |
| 767 CXXFLAGS | |
| 768 CXX | |
| 769 OBJEXT | |
| 770 EXEEXT | |
| 771 ac_ct_CC | |
| 772 CPPFLAGS | |
| 773 LDFLAGS | |
| 774 CFLAGS | |
| 775 CC | |
| 776 AWK | |
| 777 target_alias | |
| 778 host_alias | |
| 779 build_alias | |
| 780 LIBS | |
| 781 ECHO_T | |
| 782 ECHO_N | |
| 783 ECHO_C | |
| 784 DEFS | |
| 785 mandir | |
| 786 localedir | |
| 787 libdir | |
| 788 psdir | |
| 789 pdfdir | |
| 790 dvidir | |
| 791 htmldir | |
| 792 infodir | |
| 793 docdir | |
| 794 oldincludedir | |
| 795 includedir | |
| 796 localstatedir | |
| 797 sharedstatedir | |
| 798 sysconfdir | |
| 799 datadir | |
| 800 datarootdir | |
| 801 libexecdir | |
| 802 sbindir | |
| 803 bindir | |
| 804 program_transform_name | |
| 805 prefix | |
| 806 exec_prefix | |
| 807 PACKAGE_URL | |
| 808 PACKAGE_BUGREPORT | |
| 809 PACKAGE_STRING | |
| 810 PACKAGE_VERSION | |
| 811 PACKAGE_TARNAME | |
| 812 PACKAGE_NAME | |
| 813 PATH_SEPARATOR | |
| 814 SHELL' | |
| 815 ac_subst_files='' | |
| 816 ac_user_opts=' | |
| 817 enable_option_checking | |
| 818 enable_dependency_tracking | |
| 819 enable_silent_rules | |
| 820 enable_shared | |
| 821 enable_static | |
| 822 with_pic | |
| 823 enable_fast_install | |
| 824 with_aix_soname | |
| 825 with_gnu_ld | |
| 826 with_sysroot | |
| 827 enable_libtool_lock | |
| 828 enable_64 | |
| 829 with_optimisation | |
| 830 enable_warnings | |
| 831 enable_devwarnings | |
| 832 enable_devextrawarnings | |
| 833 enable_buildbookdeprecated | |
| 834 enable_buildalldeprecated | |
| 835 with_sgiabi | |
| 836 with_x | |
| 837 with_docroot | |
| 838 with_gccprofile | |
| 839 with_java | |
| 840 with_javaos | |
| 841 with_auth | |
| 842 with_thread | |
| 843 with_hpdf | |
| 844 with_pngdriver | |
| 845 with_mysql | |
| 846 with_postgresql | |
| 847 enable_localforce | |
| 848 enable_debug | |
| 849 enable_large | |
| 850 enable_systemlibs | |
| 851 enable_purify | |
| 852 enable_mcheck | |
| 853 enable_savestats | |
| 854 ' | |
| 855 ac_precious_vars='build_alias | |
| 856 host_alias | |
| 857 target_alias | |
| 858 CC | |
| 859 CFLAGS | |
| 860 LDFLAGS | |
| 861 LIBS | |
| 862 CPPFLAGS | |
| 863 CXX | |
| 864 CXXFLAGS | |
| 865 CCC | |
| 866 CPP | |
| 867 LT_SYS_LIBRARY_PATH | |
| 868 CXXCPP | |
| 869 XMKMF | |
| 870 ANT | |
| 871 JAR | |
| 872 JAVA | |
| 873 JAVAC' | |
| 874 | |
| 875 | |
| 876 # Initialize some variables set by options. | |
| 877 ac_init_help= | |
| 878 ac_init_version=false | |
| 879 ac_unrecognized_opts= | |
| 880 ac_unrecognized_sep= | |
| 881 # The variables have the same names as the options, with | |
| 882 # dashes changed to underlines. | |
| 883 cache_file=/dev/null | |
| 884 exec_prefix=NONE | |
| 885 no_create= | |
| 886 no_recursion= | |
| 887 prefix=NONE | |
| 888 program_prefix=NONE | |
| 889 program_suffix=NONE | |
| 890 program_transform_name=s,x,x, | |
| 891 silent= | |
| 892 site= | |
| 893 srcdir= | |
| 894 verbose= | |
| 895 x_includes=NONE | |
| 896 x_libraries=NONE | |
| 897 | |
| 898 # Installation directory options. | |
| 899 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
| 900 # and all the variables that are supposed to be based on exec_prefix | |
| 901 # by default will actually change. | |
| 902 # Use braces instead of parens because sh, perl, etc. also accept them. | |
| 903 # (The list follows the same order as the GNU Coding Standards.) | |
| 904 bindir='${exec_prefix}/bin' | |
| 905 sbindir='${exec_prefix}/sbin' | |
| 906 libexecdir='${exec_prefix}/libexec' | |
| 907 datarootdir='${prefix}/share' | |
| 908 datadir='${datarootdir}' | |
| 909 sysconfdir='${prefix}/etc' | |
| 910 sharedstatedir='${prefix}/com' | |
| 911 localstatedir='${prefix}/var' | |
| 912 includedir='${prefix}/include' | |
| 913 oldincludedir='/usr/include' | |
| 914 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
| 915 infodir='${datarootdir}/info' | |
| 916 htmldir='${docdir}' | |
| 917 dvidir='${docdir}' | |
| 918 pdfdir='${docdir}' | |
| 919 psdir='${docdir}' | |
| 920 libdir='${exec_prefix}/lib' | |
| 921 localedir='${datarootdir}/locale' | |
| 922 mandir='${datarootdir}/man' | |
| 923 | |
| 924 ac_prev= | |
| 925 ac_dashdash= | |
| 926 for ac_option | |
| 927 do | |
| 928 # If the previous option needs an argument, assign it. | |
| 929 if test -n "$ac_prev"; then | |
| 930 eval $ac_prev=\$ac_option | |
| 931 ac_prev= | |
| 932 continue | |
| 933 fi | |
| 934 | |
| 935 case $ac_option in | |
| 936 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
| 937 *=) ac_optarg= ;; | |
| 938 *) ac_optarg=yes ;; | |
| 939 esac | |
| 940 | |
| 941 # Accept the important Cygnus configure options, so we can diagnose typos. | |
| 942 | |
| 943 case $ac_dashdash$ac_option in | |
| 944 --) | |
| 945 ac_dashdash=yes ;; | |
| 946 | |
| 947 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
| 948 ac_prev=bindir ;; | |
| 949 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
| 950 bindir=$ac_optarg ;; | |
| 951 | |
| 952 -build | --build | --buil | --bui | --bu) | |
| 953 ac_prev=build_alias ;; | |
| 954 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
| 955 build_alias=$ac_optarg ;; | |
| 956 | |
| 957 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
| 958 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
| 959 ac_prev=cache_file ;; | |
| 960 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
| 961 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
| 962 cache_file=$ac_optarg ;; | |
| 963 | |
| 964 --config-cache | -C) | |
| 965 cache_file=config.cache ;; | |
| 966 | |
| 967 -datadir | --datadir | --datadi | --datad) | |
| 968 ac_prev=datadir ;; | |
| 969 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
| 970 datadir=$ac_optarg ;; | |
| 971 | |
| 972 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
| 973 | --dataroo | --dataro | --datar) | |
| 974 ac_prev=datarootdir ;; | |
| 975 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
| 976 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
| 977 datarootdir=$ac_optarg ;; | |
| 978 | |
| 979 -disable-* | --disable-*) | |
| 980 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
| 981 # Reject names that are not valid shell variable names. | |
| 982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
| 983 as_fn_error $? "invalid feature name: $ac_useropt" | |
| 984 ac_useropt_orig=$ac_useropt | |
| 985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
| 986 case $ac_user_opts in | |
| 987 *" | |
| 988 "enable_$ac_useropt" | |
| 989 "*) ;; | |
| 990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
| 991 ac_unrecognized_sep=', ';; | |
| 992 esac | |
| 993 eval enable_$ac_useropt=no ;; | |
| 994 | |
| 995 -docdir | --docdir | --docdi | --doc | --do) | |
| 996 ac_prev=docdir ;; | |
| 997 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
| 998 docdir=$ac_optarg ;; | |
| 999 | |
| 1000 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
| 1001 ac_prev=dvidir ;; | |
| 1002 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
| 1003 dvidir=$ac_optarg ;; | |
| 1004 | |
| 1005 -enable-* | --enable-*) | |
| 1006 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
| 1007 # Reject names that are not valid shell variable names. | |
| 1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
| 1009 as_fn_error $? "invalid feature name: $ac_useropt" | |
| 1010 ac_useropt_orig=$ac_useropt | |
| 1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
| 1012 case $ac_user_opts in | |
| 1013 *" | |
| 1014 "enable_$ac_useropt" | |
| 1015 "*) ;; | |
| 1016 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
| 1017 ac_unrecognized_sep=', ';; | |
| 1018 esac | |
| 1019 eval enable_$ac_useropt=\$ac_optarg ;; | |
| 1020 | |
| 1021 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
| 1022 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
| 1023 | --exec | --exe | --ex) | |
| 1024 ac_prev=exec_prefix ;; | |
| 1025 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
| 1026 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
| 1027 | --exec=* | --exe=* | --ex=*) | |
| 1028 exec_prefix=$ac_optarg ;; | |
| 1029 | |
| 1030 -gas | --gas | --ga | --g) | |
| 1031 # Obsolete; use --with-gas. | |
| 1032 with_gas=yes ;; | |
| 1033 | |
| 1034 -help | --help | --hel | --he | -h) | |
| 1035 ac_init_help=long ;; | |
| 1036 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
| 1037 ac_init_help=recursive ;; | |
| 1038 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
| 1039 ac_init_help=short ;; | |
| 1040 | |
| 1041 -host | --host | --hos | --ho) | |
| 1042 ac_prev=host_alias ;; | |
| 1043 -host=* | --host=* | --hos=* | --ho=*) | |
| 1044 host_alias=$ac_optarg ;; | |
| 1045 | |
| 1046 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
| 1047 ac_prev=htmldir ;; | |
| 1048 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
| 1049 | --ht=*) | |
| 1050 htmldir=$ac_optarg ;; | |
| 1051 | |
| 1052 -includedir | --includedir | --includedi | --included | --include \ | |
| 1053 | --includ | --inclu | --incl | --inc) | |
| 1054 ac_prev=includedir ;; | |
| 1055 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
| 1056 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
| 1057 includedir=$ac_optarg ;; | |
| 1058 | |
| 1059 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
| 1060 ac_prev=infodir ;; | |
| 1061 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
| 1062 infodir=$ac_optarg ;; | |
| 1063 | |
| 1064 -libdir | --libdir | --libdi | --libd) | |
| 1065 ac_prev=libdir ;; | |
| 1066 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
| 1067 libdir=$ac_optarg ;; | |
| 1068 | |
| 1069 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
| 1070 | --libexe | --libex | --libe) | |
| 1071 ac_prev=libexecdir ;; | |
| 1072 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
| 1073 | --libexe=* | --libex=* | --libe=*) | |
| 1074 libexecdir=$ac_optarg ;; | |
| 1075 | |
| 1076 -localedir | --localedir | --localedi | --localed | --locale) | |
| 1077 ac_prev=localedir ;; | |
| 1078 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
| 1079 localedir=$ac_optarg ;; | |
| 1080 | |
| 1081 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
| 1082 | --localstate | --localstat | --localsta | --localst | --locals) | |
| 1083 ac_prev=localstatedir ;; | |
| 1084 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
| 1085 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
| 1086 localstatedir=$ac_optarg ;; | |
| 1087 | |
| 1088 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
| 1089 ac_prev=mandir ;; | |
| 1090 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
| 1091 mandir=$ac_optarg ;; | |
| 1092 | |
| 1093 -nfp | --nfp | --nf) | |
| 1094 # Obsolete; use --without-fp. | |
| 1095 with_fp=no ;; | |
| 1096 | |
| 1097 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
| 1098 | --no-cr | --no-c | -n) | |
| 1099 no_create=yes ;; | |
| 1100 | |
| 1101 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
| 1102 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
| 1103 no_recursion=yes ;; | |
| 1104 | |
| 1105 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
| 1106 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
| 1107 | --oldin | --oldi | --old | --ol | --o) | |
| 1108 ac_prev=oldincludedir ;; | |
| 1109 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
| 1110 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
| 1111 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
| 1112 oldincludedir=$ac_optarg ;; | |
| 1113 | |
| 1114 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
| 1115 ac_prev=prefix ;; | |
| 1116 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
| 1117 prefix=$ac_optarg ;; | |
| 1118 | |
| 1119 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
| 1120 | --program-pre | --program-pr | --program-p) | |
| 1121 ac_prev=program_prefix ;; | |
| 1122 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
| 1123 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
| 1124 program_prefix=$ac_optarg ;; | |
| 1125 | |
| 1126 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
| 1127 | --program-suf | --program-su | --program-s) | |
| 1128 ac_prev=program_suffix ;; | |
| 1129 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
| 1130 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
| 1131 program_suffix=$ac_optarg ;; | |
| 1132 | |
| 1133 -program-transform-name | --program-transform-name \ | |
| 1134 | --program-transform-nam | --program-transform-na \ | |
| 1135 | --program-transform-n | --program-transform- \ | |
| 1136 | --program-transform | --program-transfor \ | |
| 1137 | --program-transfo | --program-transf \ | |
| 1138 | --program-trans | --program-tran \ | |
| 1139 | --progr-tra | --program-tr | --program-t) | |
| 1140 ac_prev=program_transform_name ;; | |
| 1141 -program-transform-name=* | --program-transform-name=* \ | |
| 1142 | --program-transform-nam=* | --program-transform-na=* \ | |
| 1143 | --program-transform-n=* | --program-transform-=* \ | |
| 1144 | --program-transform=* | --program-transfor=* \ | |
| 1145 | --program-transfo=* | --program-transf=* \ | |
| 1146 | --program-trans=* | --program-tran=* \ | |
| 1147 | --progr-tra=* | --program-tr=* | --program-t=*) | |
| 1148 program_transform_name=$ac_optarg ;; | |
| 1149 | |
| 1150 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
| 1151 ac_prev=pdfdir ;; | |
| 1152 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
| 1153 pdfdir=$ac_optarg ;; | |
| 1154 | |
| 1155 -psdir | --psdir | --psdi | --psd | --ps) | |
| 1156 ac_prev=psdir ;; | |
| 1157 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
| 1158 psdir=$ac_optarg ;; | |
| 1159 | |
| 1160 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 1161 | -silent | --silent | --silen | --sile | --sil) | |
| 1162 silent=yes ;; | |
| 1163 | |
| 1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
| 1165 ac_prev=sbindir ;; | |
| 1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
| 1167 | --sbi=* | --sb=*) | |
| 1168 sbindir=$ac_optarg ;; | |
| 1169 | |
| 1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
| 1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
| 1172 | --sharedst | --shareds | --shared | --share | --shar \ | |
| 1173 | --sha | --sh) | |
| 1174 ac_prev=sharedstatedir ;; | |
| 1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
| 1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
| 1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
| 1178 | --sha=* | --sh=*) | |
| 1179 sharedstatedir=$ac_optarg ;; | |
| 1180 | |
| 1181 -site | --site | --sit) | |
| 1182 ac_prev=site ;; | |
| 1183 -site=* | --site=* | --sit=*) | |
| 1184 site=$ac_optarg ;; | |
| 1185 | |
| 1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
| 1187 ac_prev=srcdir ;; | |
| 1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
| 1189 srcdir=$ac_optarg ;; | |
| 1190 | |
| 1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
| 1192 | --syscon | --sysco | --sysc | --sys | --sy) | |
| 1193 ac_prev=sysconfdir ;; | |
| 1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
| 1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
| 1196 sysconfdir=$ac_optarg ;; | |
| 1197 | |
| 1198 -target | --target | --targe | --targ | --tar | --ta | --t) | |
| 1199 ac_prev=target_alias ;; | |
| 1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
| 1201 target_alias=$ac_optarg ;; | |
| 1202 | |
| 1203 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
| 1204 verbose=yes ;; | |
| 1205 | |
| 1206 -version | --version | --versio | --versi | --vers | -V) | |
| 1207 ac_init_version=: ;; | |
| 1208 | |
| 1209 -with-* | --with-*) | |
| 1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
| 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--with-$ac_useropt_orig" | |
| 1221 ac_unrecognized_sep=', ';; | |
| 1222 esac | |
| 1223 eval with_$ac_useropt=\$ac_optarg ;; | |
| 1224 | |
| 1225 -without-* | --without-*) | |
| 1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
| 1227 # Reject names that are not valid shell variable names. | |
| 1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
| 1229 as_fn_error $? "invalid package name: $ac_useropt" | |
| 1230 ac_useropt_orig=$ac_useropt | |
| 1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
| 1232 case $ac_user_opts in | |
| 1233 *" | |
| 1234 "with_$ac_useropt" | |
| 1235 "*) ;; | |
| 1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
| 1237 ac_unrecognized_sep=', ';; | |
| 1238 esac | |
| 1239 eval with_$ac_useropt=no ;; | |
| 1240 | |
| 1241 --x) | |
| 1242 # Obsolete; use --with-x. | |
| 1243 with_x=yes ;; | |
| 1244 | |
| 1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
| 1246 | --x-incl | --x-inc | --x-in | --x-i) | |
| 1247 ac_prev=x_includes ;; | |
| 1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
| 1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
| 1250 x_includes=$ac_optarg ;; | |
| 1251 | |
| 1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
| 1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
| 1254 ac_prev=x_libraries ;; | |
| 1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
| 1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
| 1257 x_libraries=$ac_optarg ;; | |
| 1258 | |
| 1259 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
| 1260 Try \`$0 --help' for more information" | |
| 1261 ;; | |
| 1262 | |
| 1263 *=*) | |
| 1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
| 1265 # Reject names that are not valid shell variable names. | |
| 1266 case $ac_envvar in #( | |
| 1267 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
| 1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
| 1269 esac | |
| 1270 eval $ac_envvar=\$ac_optarg | |
| 1271 export $ac_envvar ;; | |
| 1272 | |
| 1273 *) | |
| 1274 # FIXME: should be removed in autoconf 3.0. | |
| 1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
| 1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
| 1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
| 1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
| 1279 ;; | |
| 1280 | |
| 1281 esac | |
| 1282 done | |
| 1283 | |
| 1284 if test -n "$ac_prev"; then | |
| 1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
| 1286 as_fn_error $? "missing argument to $ac_option" | |
| 1287 fi | |
| 1288 | |
| 1289 if test -n "$ac_unrecognized_opts"; then | |
| 1290 case $enable_option_checking in | |
| 1291 no) ;; | |
| 1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
| 1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
| 1294 esac | |
| 1295 fi | |
| 1296 | |
| 1297 # Check all directory arguments for consistency. | |
| 1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
| 1299 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
| 1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
| 1301 libdir localedir mandir | |
| 1302 do | |
| 1303 eval ac_val=\$$ac_var | |
| 1304 # Remove trailing slashes. | |
| 1305 case $ac_val in | |
| 1306 */ ) | |
| 1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
| 1308 eval $ac_var=\$ac_val;; | |
| 1309 esac | |
| 1310 # Be sure to have absolute directory names. | |
| 1311 case $ac_val in | |
| 1312 [\\/$]* | ?:[\\/]* ) continue;; | |
| 1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
| 1314 esac | |
| 1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
| 1316 done | |
| 1317 | |
| 1318 # There might be people who depend on the old broken behavior: `$host' | |
| 1319 # used to hold the argument of --host etc. | |
| 1320 # FIXME: To remove some day. | |
| 1321 build=$build_alias | |
| 1322 host=$host_alias | |
| 1323 target=$target_alias | |
| 1324 | |
| 1325 # FIXME: To remove some day. | |
| 1326 if test "x$host_alias" != x; then | |
| 1327 if test "x$build_alias" = x; then | |
| 1328 cross_compiling=maybe | |
| 1329 elif test "x$build_alias" != "x$host_alias"; then | |
| 1330 cross_compiling=yes | |
| 1331 fi | |
| 1332 fi | |
| 1333 | |
| 1334 ac_tool_prefix= | |
| 1335 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
| 1336 | |
| 1337 test "$silent" = yes && exec 6>/dev/null | |
| 1338 | |
| 1339 | |
| 1340 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
| 1341 ac_ls_di=`ls -di .` && | |
| 1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
| 1343 as_fn_error $? "working directory cannot be determined" | |
| 1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
| 1345 as_fn_error $? "pwd does not report name of working directory" | |
| 1346 | |
| 1347 | |
| 1348 # Find the source files, if location was not specified. | |
| 1349 if test -z "$srcdir"; then | |
| 1350 ac_srcdir_defaulted=yes | |
| 1351 # Try the directory containing this script, then the parent directory. | |
| 1352 ac_confdir=`$as_dirname -- "$as_myself" || | |
| 1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 1354 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
| 1355 X"$as_myself" : 'X\(//\)$' \| \ | |
| 1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
| 1357 $as_echo X"$as_myself" | | |
| 1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 1359 s//\1/ | |
| 1360 q | |
| 1361 } | |
| 1362 /^X\(\/\/\)[^/].*/{ | |
| 1363 s//\1/ | |
| 1364 q | |
| 1365 } | |
| 1366 /^X\(\/\/\)$/{ | |
| 1367 s//\1/ | |
| 1368 q | |
| 1369 } | |
| 1370 /^X\(\/\).*/{ | |
| 1371 s//\1/ | |
| 1372 q | |
| 1373 } | |
| 1374 s/.*/./; q'` | |
| 1375 srcdir=$ac_confdir | |
| 1376 if test ! -r "$srcdir/$ac_unique_file"; then | |
| 1377 srcdir=.. | |
| 1378 fi | |
| 1379 else | |
| 1380 ac_srcdir_defaulted=no | |
| 1381 fi | |
| 1382 if test ! -r "$srcdir/$ac_unique_file"; then | |
| 1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
| 1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
| 1385 fi | |
| 1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
| 1387 ac_abs_confdir=`( | |
| 1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
| 1389 pwd)` | |
| 1390 # When building in place, set srcdir=. | |
| 1391 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
| 1392 srcdir=. | |
| 1393 fi | |
| 1394 # Remove unnecessary trailing slashes from srcdir. | |
| 1395 # Double slashes in file names in object file debugging info | |
| 1396 # mess up M-x gdb in Emacs. | |
| 1397 case $srcdir in | |
| 1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
| 1399 esac | |
| 1400 for ac_var in $ac_precious_vars; do | |
| 1401 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
| 1402 eval ac_env_${ac_var}_value=\$${ac_var} | |
| 1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
| 1404 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
| 1405 done | |
| 1406 | |
| 1407 # | |
| 1408 # Report the --help message. | |
| 1409 # | |
| 1410 if test "$ac_init_help" = "long"; then | |
| 1411 # Omit some internal or obsolete options to make the list less imposing. | |
| 1412 # This message is too long to be a string in the A/UX 3.1 sh. | |
| 1413 cat <<_ACEOF | |
| 1414 \`configure' configures GEMBASSY 1.0.3 to adapt to many kinds of systems. | |
| 1415 | |
| 1416 Usage: $0 [OPTION]... [VAR=VALUE]... | |
| 1417 | |
| 1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
| 1419 VAR=VALUE. See below for descriptions of some of the useful variables. | |
| 1420 | |
| 1421 Defaults for the options are specified in brackets. | |
| 1422 | |
| 1423 Configuration: | |
| 1424 -h, --help display this help and exit | |
| 1425 --help=short display options specific to this package | |
| 1426 --help=recursive display the short help of all the included packages | |
| 1427 -V, --version display version information and exit | |
| 1428 -q, --quiet, --silent do not print \`checking ...' messages | |
| 1429 --cache-file=FILE cache test results in FILE [disabled] | |
| 1430 -C, --config-cache alias for \`--cache-file=config.cache' | |
| 1431 -n, --no-create do not create output files | |
| 1432 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
| 1433 | |
| 1434 Installation directories: | |
| 1435 --prefix=PREFIX install architecture-independent files in PREFIX | |
| 1436 [$ac_default_prefix] | |
| 1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
| 1438 [PREFIX] | |
| 1439 | |
| 1440 By default, \`make install' will install all the files in | |
| 1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
| 1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
| 1443 for instance \`--prefix=\$HOME'. | |
| 1444 | |
| 1445 For better control, use the options below. | |
| 1446 | |
| 1447 Fine tuning of the installation directories: | |
| 1448 --bindir=DIR user executables [EPREFIX/bin] | |
| 1449 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
| 1450 --libexecdir=DIR program executables [EPREFIX/libexec] | |
| 1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
| 1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
| 1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
| 1454 --libdir=DIR object code libraries [EPREFIX/lib] | |
| 1455 --includedir=DIR C header files [PREFIX/include] | |
| 1456 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
| 1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
| 1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
| 1459 --infodir=DIR info documentation [DATAROOTDIR/info] | |
| 1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
| 1461 --mandir=DIR man documentation [DATAROOTDIR/man] | |
| 1462 --docdir=DIR documentation root [DATAROOTDIR/doc/GEMBASSY] | |
| 1463 --htmldir=DIR html documentation [DOCDIR] | |
| 1464 --dvidir=DIR dvi documentation [DOCDIR] | |
| 1465 --pdfdir=DIR pdf documentation [DOCDIR] | |
| 1466 --psdir=DIR ps documentation [DOCDIR] | |
| 1467 _ACEOF | |
| 1468 | |
| 1469 cat <<\_ACEOF | |
| 1470 | |
| 1471 Program names: | |
| 1472 --program-prefix=PREFIX prepend PREFIX to installed program names | |
| 1473 --program-suffix=SUFFIX append SUFFIX to installed program names | |
| 1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
| 1475 | |
| 1476 X features: | |
| 1477 --x-includes=DIR X include files are in DIR | |
| 1478 --x-libraries=DIR X library files are in DIR | |
| 1479 | |
| 1480 System types: | |
| 1481 --build=BUILD configure for building on BUILD [guessed] | |
| 1482 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
| 1483 _ACEOF | |
| 1484 fi | |
| 1485 | |
| 1486 if test -n "$ac_init_help"; then | |
| 1487 case $ac_init_help in | |
| 1488 short | recursive ) echo "Configuration of GEMBASSY 1.0.3:";; | |
| 1489 esac | |
| 1490 cat <<\_ACEOF | |
| 1491 | |
| 1492 Optional Features: | |
| 1493 --disable-option-checking ignore unrecognized --enable/--with options | |
| 1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
| 1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
| 1496 --enable-dependency-tracking | |
| 1497 do not reject slow dependency extractors | |
| 1498 --disable-dependency-tracking | |
| 1499 speeds up one-time build | |
| 1500 --enable-silent-rules less verbose build output (undo: "make V=1") | |
| 1501 --disable-silent-rules verbose build output (undo: "make V=0") | |
| 1502 --enable-shared[=PKGS] build shared libraries [default=yes] | |
| 1503 --enable-static[=PKGS] build static libraries [default=yes] | |
| 1504 --enable-fast-install[=PKGS] | |
| 1505 optimize for fast installation [default=yes] | |
| 1506 --disable-libtool-lock avoid locking (might break parallel builds) | |
| 1507 --enable-64 64 bit pointers on 32 bit machines | |
| 1508 --enable-warnings compiler warnings | |
| 1509 --enable-devwarnings strict compiler warnings for developers | |
| 1510 --enable-devextrawarnings | |
| 1511 add extra warnings to devwarnings | |
| 1512 --enable-buildbookdeprecated | |
| 1513 build deprecated functions used in books for 6.2.0 | |
| 1514 --enable-buildalldeprecated | |
| 1515 build all deprecated functions | |
| 1516 --enable-localforce force compile/link against /usr/local | |
| 1517 --enable-debug debug (-g option on compiler) | |
| 1518 --enable-large over 2Gb file support [default=yes] | |
| 1519 --enable-systemlibs utility for RPM/dpkg bundles | |
| 1520 --enable-purify purify | |
| 1521 --enable-mcheck mcheck and mprobe memory allocation test | |
| 1522 --enable-savestats save AJAX statistics and print with debug output | |
| 1523 | |
| 1524 Optional Packages: | |
| 1525 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
| 1526 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
| 1527 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
| 1528 both] | |
| 1529 --with-aix-soname=aix|svr4|both | |
| 1530 shared library versioning (aka "SONAME") variant to | |
| 1531 provide on AIX, [default=aix]. | |
| 1532 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
| 1533 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the | |
| 1534 compiler's sysroot if not specified). | |
| 1535 --without-optimisation Disable compiler optimisation | |
| 1536 --with-sgiabi=[ARG] SGI compiler flags [default=no] | |
| 1537 --with-x use the X Window System | |
| 1538 --with-docroot=DIR root directory path of documentation (defaults to | |
| 1539 none) | |
| 1540 --with-gccprofile selects profiling | |
| 1541 --with-java[=ARG] root directory path of Java installation | |
| 1542 --with-javaos[=ARG] root directory path of Java OS include | |
| 1543 --with-auth[=ARG] authorisation mechanism for Jemboss server | |
| 1544 [default=PAM] | |
| 1545 --with-thread[=ARG] thread type [default=linux] | |
| 1546 --with-hpdf=DIR root directory path of hpdf installation [defaults | |
| 1547 to /usr] | |
| 1548 --with-pngdriver=[DIR] root directory path of png/gd/zlib installation | |
| 1549 (defaults to /usr) | |
| 1550 --with-mysql[=ARG] use MySQL client library [default=yes], optionally | |
| 1551 specify path to mysql_config | |
| 1552 --with-postgresql@<:=@ARG] | |
| 1553 use PostgreSQL library [default=yes], optionally | |
| 1554 specify path to pg_config | |
| 1555 | |
| 1556 Some influential environment variables: | |
| 1557 CC C compiler command | |
| 1558 CFLAGS C compiler flags | |
| 1559 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
| 1560 nonstandard directory <lib dir> | |
| 1561 LIBS libraries to pass to the linker, e.g. -l<library> | |
| 1562 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
| 1563 you have headers in a nonstandard directory <include dir> | |
| 1564 CXX C++ compiler command | |
| 1565 CXXFLAGS C++ compiler flags | |
| 1566 CPP C preprocessor | |
| 1567 LT_SYS_LIBRARY_PATH | |
| 1568 User-defined run-time library search path. | |
| 1569 CXXCPP C++ preprocessor | |
| 1570 XMKMF Path to xmkmf, Makefile generator for X Window System | |
| 1571 ANT Path to the Apache Ant make tool | |
| 1572 JAR Path to the Java archive tool | |
| 1573 JAVA Path to the Java application launcher | |
| 1574 JAVAC Path to the Java compiler | |
| 1575 | |
| 1576 Use these variables to override the choices made by `configure' or to help | |
| 1577 it to find libraries and programs with nonstandard names/locations. | |
| 1578 | |
| 1579 Report bugs to <celery@g-language.org>. | |
| 1580 GEMBASSY home page: <http://www.g-language.org/gembassy/>. | |
| 1581 _ACEOF | |
| 1582 ac_status=$? | |
| 1583 fi | |
| 1584 | |
| 1585 if test "$ac_init_help" = "recursive"; then | |
| 1586 # If there are subdirs, report their specific --help. | |
| 1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
| 1588 test -d "$ac_dir" || | |
| 1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
| 1590 continue | |
| 1591 ac_builddir=. | |
| 1592 | |
| 1593 case "$ac_dir" in | |
| 1594 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 1595 *) | |
| 1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
| 1597 # A ".." for each directory in $ac_dir_suffix. | |
| 1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
| 1599 case $ac_top_builddir_sub in | |
| 1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
| 1602 esac ;; | |
| 1603 esac | |
| 1604 ac_abs_top_builddir=$ac_pwd | |
| 1605 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
| 1606 # for backward compatibility: | |
| 1607 ac_top_builddir=$ac_top_build_prefix | |
| 1608 | |
| 1609 case $srcdir in | |
| 1610 .) # We are building in place. | |
| 1611 ac_srcdir=. | |
| 1612 ac_top_srcdir=$ac_top_builddir_sub | |
| 1613 ac_abs_top_srcdir=$ac_pwd ;; | |
| 1614 [\\/]* | ?:[\\/]* ) # Absolute name. | |
| 1615 ac_srcdir=$srcdir$ac_dir_suffix; | |
| 1616 ac_top_srcdir=$srcdir | |
| 1617 ac_abs_top_srcdir=$srcdir ;; | |
| 1618 *) # Relative name. | |
| 1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
| 1620 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
| 1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
| 1622 esac | |
| 1623 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
| 1624 | |
| 1625 cd "$ac_dir" || { ac_status=$?; continue; } | |
| 1626 # Check for guested configure. | |
| 1627 if test -f "$ac_srcdir/configure.gnu"; then | |
| 1628 echo && | |
| 1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
| 1630 elif test -f "$ac_srcdir/configure"; then | |
| 1631 echo && | |
| 1632 $SHELL "$ac_srcdir/configure" --help=recursive | |
| 1633 else | |
| 1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
| 1635 fi || ac_status=$? | |
| 1636 cd "$ac_pwd" || { ac_status=$?; break; } | |
| 1637 done | |
| 1638 fi | |
| 1639 | |
| 1640 test -n "$ac_init_help" && exit $ac_status | |
| 1641 if $ac_init_version; then | |
| 1642 cat <<\_ACEOF | |
| 1643 GEMBASSY configure 1.0.3 | |
| 1644 generated by GNU Autoconf 2.69 | |
| 1645 | |
| 1646 Copyright (C) 2012 Free Software Foundation, Inc. | |
| 1647 This configure script is free software; the Free Software Foundation | |
| 1648 gives unlimited permission to copy, distribute and modify it. | |
| 1649 _ACEOF | |
| 1650 exit | |
| 1651 fi | |
| 1652 | |
| 1653 ## ------------------------ ## | |
| 1654 ## Autoconf initialization. ## | |
| 1655 ## ------------------------ ## | |
| 1656 | |
| 1657 # ac_fn_c_try_compile LINENO | |
| 1658 # -------------------------- | |
| 1659 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
| 1660 ac_fn_c_try_compile () | |
| 1661 { | |
| 1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1663 rm -f conftest.$ac_objext | |
| 1664 if { { ac_try="$ac_compile" | |
| 1665 case "(($ac_try" in | |
| 1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1667 *) ac_try_echo=$ac_try;; | |
| 1668 esac | |
| 1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1670 $as_echo "$ac_try_echo"; } >&5 | |
| 1671 (eval "$ac_compile") 2>conftest.err | |
| 1672 ac_status=$? | |
| 1673 if test -s conftest.err; then | |
| 1674 grep -v '^ *+' conftest.err >conftest.er1 | |
| 1675 cat conftest.er1 >&5 | |
| 1676 mv -f conftest.er1 conftest.err | |
| 1677 fi | |
| 1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1679 test $ac_status = 0; } && { | |
| 1680 test -z "$ac_c_werror_flag" || | |
| 1681 test ! -s conftest.err | |
| 1682 } && test -s conftest.$ac_objext; then : | |
| 1683 ac_retval=0 | |
| 1684 else | |
| 1685 $as_echo "$as_me: failed program was:" >&5 | |
| 1686 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 1687 | |
| 1688 ac_retval=1 | |
| 1689 fi | |
| 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1691 as_fn_set_status $ac_retval | |
| 1692 | |
| 1693 } # ac_fn_c_try_compile | |
| 1694 | |
| 1695 # ac_fn_cxx_try_compile LINENO | |
| 1696 # ---------------------------- | |
| 1697 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
| 1698 ac_fn_cxx_try_compile () | |
| 1699 { | |
| 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1701 rm -f conftest.$ac_objext | |
| 1702 if { { ac_try="$ac_compile" | |
| 1703 case "(($ac_try" in | |
| 1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1705 *) ac_try_echo=$ac_try;; | |
| 1706 esac | |
| 1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1708 $as_echo "$ac_try_echo"; } >&5 | |
| 1709 (eval "$ac_compile") 2>conftest.err | |
| 1710 ac_status=$? | |
| 1711 if test -s conftest.err; then | |
| 1712 grep -v '^ *+' conftest.err >conftest.er1 | |
| 1713 cat conftest.er1 >&5 | |
| 1714 mv -f conftest.er1 conftest.err | |
| 1715 fi | |
| 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1717 test $ac_status = 0; } && { | |
| 1718 test -z "$ac_cxx_werror_flag" || | |
| 1719 test ! -s conftest.err | |
| 1720 } && test -s conftest.$ac_objext; then : | |
| 1721 ac_retval=0 | |
| 1722 else | |
| 1723 $as_echo "$as_me: failed program was:" >&5 | |
| 1724 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 1725 | |
| 1726 ac_retval=1 | |
| 1727 fi | |
| 1728 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1729 as_fn_set_status $ac_retval | |
| 1730 | |
| 1731 } # ac_fn_cxx_try_compile | |
| 1732 | |
| 1733 # ac_fn_c_try_cpp LINENO | |
| 1734 # ---------------------- | |
| 1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
| 1736 ac_fn_c_try_cpp () | |
| 1737 { | |
| 1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1739 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
| 1740 case "(($ac_try" in | |
| 1741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1742 *) ac_try_echo=$ac_try;; | |
| 1743 esac | |
| 1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1745 $as_echo "$ac_try_echo"; } >&5 | |
| 1746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
| 1747 ac_status=$? | |
| 1748 if test -s conftest.err; then | |
| 1749 grep -v '^ *+' conftest.err >conftest.er1 | |
| 1750 cat conftest.er1 >&5 | |
| 1751 mv -f conftest.er1 conftest.err | |
| 1752 fi | |
| 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1754 test $ac_status = 0; } > conftest.i && { | |
| 1755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
| 1756 test ! -s conftest.err | |
| 1757 }; then : | |
| 1758 ac_retval=0 | |
| 1759 else | |
| 1760 $as_echo "$as_me: failed program was:" >&5 | |
| 1761 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 1762 | |
| 1763 ac_retval=1 | |
| 1764 fi | |
| 1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1766 as_fn_set_status $ac_retval | |
| 1767 | |
| 1768 } # ac_fn_c_try_cpp | |
| 1769 | |
| 1770 # ac_fn_c_try_link LINENO | |
| 1771 # ----------------------- | |
| 1772 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
| 1773 ac_fn_c_try_link () | |
| 1774 { | |
| 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1776 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 1777 if { { ac_try="$ac_link" | |
| 1778 case "(($ac_try" in | |
| 1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1780 *) ac_try_echo=$ac_try;; | |
| 1781 esac | |
| 1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1783 $as_echo "$ac_try_echo"; } >&5 | |
| 1784 (eval "$ac_link") 2>conftest.err | |
| 1785 ac_status=$? | |
| 1786 if test -s conftest.err; then | |
| 1787 grep -v '^ *+' conftest.err >conftest.er1 | |
| 1788 cat conftest.er1 >&5 | |
| 1789 mv -f conftest.er1 conftest.err | |
| 1790 fi | |
| 1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1792 test $ac_status = 0; } && { | |
| 1793 test -z "$ac_c_werror_flag" || | |
| 1794 test ! -s conftest.err | |
| 1795 } && test -s conftest$ac_exeext && { | |
| 1796 test "$cross_compiling" = yes || | |
| 1797 test -x conftest$ac_exeext | |
| 1798 }; then : | |
| 1799 ac_retval=0 | |
| 1800 else | |
| 1801 $as_echo "$as_me: failed program was:" >&5 | |
| 1802 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 1803 | |
| 1804 ac_retval=1 | |
| 1805 fi | |
| 1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
| 1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
| 1808 # interfere with the next link command; also delete a directory that is | |
| 1809 # left behind by Apple's compiler. We do this before executing the actions. | |
| 1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
| 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1812 as_fn_set_status $ac_retval | |
| 1813 | |
| 1814 } # ac_fn_c_try_link | |
| 1815 | |
| 1816 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
| 1817 # ------------------------------------------------------- | |
| 1818 # Tests whether HEADER exists and can be compiled using the include files in | |
| 1819 # INCLUDES, setting the cache variable VAR accordingly. | |
| 1820 ac_fn_c_check_header_compile () | |
| 1821 { | |
| 1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
| 1824 $as_echo_n "checking for $2... " >&6; } | |
| 1825 if eval \${$3+:} false; then : | |
| 1826 $as_echo_n "(cached) " >&6 | |
| 1827 else | |
| 1828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 1829 /* end confdefs.h. */ | |
| 1830 $4 | |
| 1831 #include <$2> | |
| 1832 _ACEOF | |
| 1833 if ac_fn_c_try_compile "$LINENO"; then : | |
| 1834 eval "$3=yes" | |
| 1835 else | |
| 1836 eval "$3=no" | |
| 1837 fi | |
| 1838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 1839 fi | |
| 1840 eval ac_res=\$$3 | |
| 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
| 1842 $as_echo "$ac_res" >&6; } | |
| 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1844 | |
| 1845 } # ac_fn_c_check_header_compile | |
| 1846 | |
| 1847 # ac_fn_c_try_run LINENO | |
| 1848 # ---------------------- | |
| 1849 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
| 1850 # that executables *can* be run. | |
| 1851 ac_fn_c_try_run () | |
| 1852 { | |
| 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1854 if { { ac_try="$ac_link" | |
| 1855 case "(($ac_try" in | |
| 1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1857 *) ac_try_echo=$ac_try;; | |
| 1858 esac | |
| 1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1860 $as_echo "$ac_try_echo"; } >&5 | |
| 1861 (eval "$ac_link") 2>&5 | |
| 1862 ac_status=$? | |
| 1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1864 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
| 1865 { { case "(($ac_try" in | |
| 1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1867 *) ac_try_echo=$ac_try;; | |
| 1868 esac | |
| 1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1870 $as_echo "$ac_try_echo"; } >&5 | |
| 1871 (eval "$ac_try") 2>&5 | |
| 1872 ac_status=$? | |
| 1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1874 test $ac_status = 0; }; }; then : | |
| 1875 ac_retval=0 | |
| 1876 else | |
| 1877 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
| 1878 $as_echo "$as_me: failed program was:" >&5 | |
| 1879 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 1880 | |
| 1881 ac_retval=$ac_status | |
| 1882 fi | |
| 1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
| 1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1885 as_fn_set_status $ac_retval | |
| 1886 | |
| 1887 } # ac_fn_c_try_run | |
| 1888 | |
| 1889 # ac_fn_c_check_func LINENO FUNC VAR | |
| 1890 # ---------------------------------- | |
| 1891 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
| 1892 ac_fn_c_check_func () | |
| 1893 { | |
| 1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
| 1896 $as_echo_n "checking for $2... " >&6; } | |
| 1897 if eval \${$3+:} false; then : | |
| 1898 $as_echo_n "(cached) " >&6 | |
| 1899 else | |
| 1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 1901 /* end confdefs.h. */ | |
| 1902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
| 1903 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
| 1904 #define $2 innocuous_$2 | |
| 1905 | |
| 1906 /* System header to define __stub macros and hopefully few prototypes, | |
| 1907 which can conflict with char $2 (); below. | |
| 1908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
| 1909 <limits.h> exists even on freestanding compilers. */ | |
| 1910 | |
| 1911 #ifdef __STDC__ | |
| 1912 # include <limits.h> | |
| 1913 #else | |
| 1914 # include <assert.h> | |
| 1915 #endif | |
| 1916 | |
| 1917 #undef $2 | |
| 1918 | |
| 1919 /* Override any GCC internal prototype to avoid an error. | |
| 1920 Use char because int might match the return type of a GCC | |
| 1921 builtin and then its argument prototype would still apply. */ | |
| 1922 #ifdef __cplusplus | |
| 1923 extern "C" | |
| 1924 #endif | |
| 1925 char $2 (); | |
| 1926 /* The GNU C library defines this for functions which it implements | |
| 1927 to always fail with ENOSYS. Some functions are actually named | |
| 1928 something starting with __ and the normal name is an alias. */ | |
| 1929 #if defined __stub_$2 || defined __stub___$2 | |
| 1930 choke me | |
| 1931 #endif | |
| 1932 | |
| 1933 int | |
| 1934 main () | |
| 1935 { | |
| 1936 return $2 (); | |
| 1937 ; | |
| 1938 return 0; | |
| 1939 } | |
| 1940 _ACEOF | |
| 1941 if ac_fn_c_try_link "$LINENO"; then : | |
| 1942 eval "$3=yes" | |
| 1943 else | |
| 1944 eval "$3=no" | |
| 1945 fi | |
| 1946 rm -f core conftest.err conftest.$ac_objext \ | |
| 1947 conftest$ac_exeext conftest.$ac_ext | |
| 1948 fi | |
| 1949 eval ac_res=\$$3 | |
| 1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
| 1951 $as_echo "$ac_res" >&6; } | |
| 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1953 | |
| 1954 } # ac_fn_c_check_func | |
| 1955 | |
| 1956 # ac_fn_cxx_try_cpp LINENO | |
| 1957 # ------------------------ | |
| 1958 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
| 1959 ac_fn_cxx_try_cpp () | |
| 1960 { | |
| 1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1962 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
| 1963 case "(($ac_try" in | |
| 1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 1965 *) ac_try_echo=$ac_try;; | |
| 1966 esac | |
| 1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 1968 $as_echo "$ac_try_echo"; } >&5 | |
| 1969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
| 1970 ac_status=$? | |
| 1971 if test -s conftest.err; then | |
| 1972 grep -v '^ *+' conftest.err >conftest.er1 | |
| 1973 cat conftest.er1 >&5 | |
| 1974 mv -f conftest.er1 conftest.err | |
| 1975 fi | |
| 1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 1977 test $ac_status = 0; } > conftest.i && { | |
| 1978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
| 1979 test ! -s conftest.err | |
| 1980 }; then : | |
| 1981 ac_retval=0 | |
| 1982 else | |
| 1983 $as_echo "$as_me: failed program was:" >&5 | |
| 1984 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 1985 | |
| 1986 ac_retval=1 | |
| 1987 fi | |
| 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 1989 as_fn_set_status $ac_retval | |
| 1990 | |
| 1991 } # ac_fn_cxx_try_cpp | |
| 1992 | |
| 1993 # ac_fn_cxx_try_link LINENO | |
| 1994 # ------------------------- | |
| 1995 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
| 1996 ac_fn_cxx_try_link () | |
| 1997 { | |
| 1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 1999 rm -f conftest.$ac_objext conftest$ac_exeext | |
| 2000 if { { ac_try="$ac_link" | |
| 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_link") 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_cxx_werror_flag" || | |
| 2017 test ! -s conftest.err | |
| 2018 } && test -s conftest$ac_exeext && { | |
| 2019 test "$cross_compiling" = yes || | |
| 2020 test -x conftest$ac_exeext | |
| 2021 }; then : | |
| 2022 ac_retval=0 | |
| 2023 else | |
| 2024 $as_echo "$as_me: failed program was:" >&5 | |
| 2025 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 2026 | |
| 2027 ac_retval=1 | |
| 2028 fi | |
| 2029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
| 2030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
| 2031 # interfere with the next link command; also delete a directory that is | |
| 2032 # left behind by Apple's compiler. We do this before executing the actions. | |
| 2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
| 2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 2035 as_fn_set_status $ac_retval | |
| 2036 | |
| 2037 } # ac_fn_cxx_try_link | |
| 2038 | |
| 2039 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
| 2040 # ------------------------------------------------------- | |
| 2041 # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
| 2042 # the include files in INCLUDES and setting the cache variable VAR | |
| 2043 # accordingly. | |
| 2044 ac_fn_c_check_header_mongrel () | |
| 2045 { | |
| 2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 2047 if eval \${$3+:} false; then : | |
| 2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
| 2049 $as_echo_n "checking for $2... " >&6; } | |
| 2050 if eval \${$3+:} false; then : | |
| 2051 $as_echo_n "(cached) " >&6 | |
| 2052 fi | |
| 2053 eval ac_res=\$$3 | |
| 2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
| 2055 $as_echo "$ac_res" >&6; } | |
| 2056 else | |
| 2057 # Is the header compilable? | |
| 2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
| 2059 $as_echo_n "checking $2 usability... " >&6; } | |
| 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 2061 /* end confdefs.h. */ | |
| 2062 $4 | |
| 2063 #include <$2> | |
| 2064 _ACEOF | |
| 2065 if ac_fn_c_try_compile "$LINENO"; then : | |
| 2066 ac_header_compiler=yes | |
| 2067 else | |
| 2068 ac_header_compiler=no | |
| 2069 fi | |
| 2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
| 2072 $as_echo "$ac_header_compiler" >&6; } | |
| 2073 | |
| 2074 # Is the header present? | |
| 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
| 2076 $as_echo_n "checking $2 presence... " >&6; } | |
| 2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 2078 /* end confdefs.h. */ | |
| 2079 #include <$2> | |
| 2080 _ACEOF | |
| 2081 if ac_fn_c_try_cpp "$LINENO"; then : | |
| 2082 ac_header_preproc=yes | |
| 2083 else | |
| 2084 ac_header_preproc=no | |
| 2085 fi | |
| 2086 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
| 2088 $as_echo "$ac_header_preproc" >&6; } | |
| 2089 | |
| 2090 # So? What about this header? | |
| 2091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
| 2092 yes:no: ) | |
| 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
| 2094 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
| 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
| 2096 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
| 2097 ;; | |
| 2098 no:yes:* ) | |
| 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
| 2100 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
| 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
| 2102 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
| 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
| 2104 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
| 2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
| 2106 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
| 2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
| 2108 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
| 2109 ( $as_echo "## ------------------------------------ ## | |
| 2110 ## Report this to celery@g-language.org ## | |
| 2111 ## ------------------------------------ ##" | |
| 2112 ) | sed "s/^/$as_me: WARNING: /" >&2 | |
| 2113 ;; | |
| 2114 esac | |
| 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
| 2116 $as_echo_n "checking for $2... " >&6; } | |
| 2117 if eval \${$3+:} false; then : | |
| 2118 $as_echo_n "(cached) " >&6 | |
| 2119 else | |
| 2120 eval "$3=\$ac_header_compiler" | |
| 2121 fi | |
| 2122 eval ac_res=\$$3 | |
| 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
| 2124 $as_echo "$ac_res" >&6; } | |
| 2125 fi | |
| 2126 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 2127 | |
| 2128 } # ac_fn_c_check_header_mongrel | |
| 2129 | |
| 2130 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
| 2131 # ------------------------------------------- | |
| 2132 # Tests whether TYPE exists after having included INCLUDES, setting cache | |
| 2133 # variable VAR accordingly. | |
| 2134 ac_fn_c_check_type () | |
| 2135 { | |
| 2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
| 2138 $as_echo_n "checking for $2... " >&6; } | |
| 2139 if eval \${$3+:} false; then : | |
| 2140 $as_echo_n "(cached) " >&6 | |
| 2141 else | |
| 2142 eval "$3=no" | |
| 2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 2144 /* end confdefs.h. */ | |
| 2145 $4 | |
| 2146 int | |
| 2147 main () | |
| 2148 { | |
| 2149 if (sizeof ($2)) | |
| 2150 return 0; | |
| 2151 ; | |
| 2152 return 0; | |
| 2153 } | |
| 2154 _ACEOF | |
| 2155 if ac_fn_c_try_compile "$LINENO"; then : | |
| 2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 2157 /* end confdefs.h. */ | |
| 2158 $4 | |
| 2159 int | |
| 2160 main () | |
| 2161 { | |
| 2162 if (sizeof (($2))) | |
| 2163 return 0; | |
| 2164 ; | |
| 2165 return 0; | |
| 2166 } | |
| 2167 _ACEOF | |
| 2168 if ac_fn_c_try_compile "$LINENO"; then : | |
| 2169 | |
| 2170 else | |
| 2171 eval "$3=yes" | |
| 2172 fi | |
| 2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 2174 fi | |
| 2175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 2176 fi | |
| 2177 eval ac_res=\$$3 | |
| 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
| 2179 $as_echo "$ac_res" >&6; } | |
| 2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
| 2181 | |
| 2182 } # ac_fn_c_check_type | |
| 2183 cat >config.log <<_ACEOF | |
| 2184 This file contains any messages produced by compilers while | |
| 2185 running configure, to aid debugging if configure makes a mistake. | |
| 2186 | |
| 2187 It was created by GEMBASSY $as_me 1.0.3, which was | |
| 2188 generated by GNU Autoconf 2.69. Invocation command line was | |
| 2189 | |
| 2190 $ $0 $@ | |
| 2191 | |
| 2192 _ACEOF | |
| 2193 exec 5>>config.log | |
| 2194 { | |
| 2195 cat <<_ASUNAME | |
| 2196 ## --------- ## | |
| 2197 ## Platform. ## | |
| 2198 ## --------- ## | |
| 2199 | |
| 2200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 2201 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
| 2202 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
| 2203 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
| 2204 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
| 2205 | |
| 2206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
| 2207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
| 2208 | |
| 2209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
| 2210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
| 2211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
| 2212 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
| 2213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
| 2214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
| 2215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
| 2216 | |
| 2217 _ASUNAME | |
| 2218 | |
| 2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 2220 for as_dir in $PATH | |
| 2221 do | |
| 2222 IFS=$as_save_IFS | |
| 2223 test -z "$as_dir" && as_dir=. | |
| 2224 $as_echo "PATH: $as_dir" | |
| 2225 done | |
| 2226 IFS=$as_save_IFS | |
| 2227 | |
| 2228 } >&5 | |
| 2229 | |
| 2230 cat >&5 <<_ACEOF | |
| 2231 | |
| 2232 | |
| 2233 ## ----------- ## | |
| 2234 ## Core tests. ## | |
| 2235 ## ----------- ## | |
| 2236 | |
| 2237 _ACEOF | |
| 2238 | |
| 2239 | |
| 2240 # Keep a trace of the command line. | |
| 2241 # Strip out --no-create and --no-recursion so they do not pile up. | |
| 2242 # Strip out --silent because we don't want to record it for future runs. | |
| 2243 # Also quote any args containing shell meta-characters. | |
| 2244 # Make two passes to allow for proper duplicate-argument suppression. | |
| 2245 ac_configure_args= | |
| 2246 ac_configure_args0= | |
| 2247 ac_configure_args1= | |
| 2248 ac_must_keep_next=false | |
| 2249 for ac_pass in 1 2 | |
| 2250 do | |
| 2251 for ac_arg | |
| 2252 do | |
| 2253 case $ac_arg in | |
| 2254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
| 2255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 2256 | -silent | --silent | --silen | --sile | --sil) | |
| 2257 continue ;; | |
| 2258 *\'*) | |
| 2259 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
| 2260 esac | |
| 2261 case $ac_pass in | |
| 2262 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
| 2263 2) | |
| 2264 as_fn_append ac_configure_args1 " '$ac_arg'" | |
| 2265 if test $ac_must_keep_next = true; then | |
| 2266 ac_must_keep_next=false # Got value, back to normal. | |
| 2267 else | |
| 2268 case $ac_arg in | |
| 2269 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
| 2270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
| 2271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
| 2272 | -with-* | --with-* | -without-* | --without-* | --x) | |
| 2273 case "$ac_configure_args0 " in | |
| 2274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
| 2275 esac | |
| 2276 ;; | |
| 2277 -* ) ac_must_keep_next=true ;; | |
| 2278 esac | |
| 2279 fi | |
| 2280 as_fn_append ac_configure_args " '$ac_arg'" | |
| 2281 ;; | |
| 2282 esac | |
| 2283 done | |
| 2284 done | |
| 2285 { ac_configure_args0=; unset ac_configure_args0;} | |
| 2286 { ac_configure_args1=; unset ac_configure_args1;} | |
| 2287 | |
| 2288 # When interrupted or exit'd, cleanup temporary files, and complete | |
| 2289 # config.log. We remove comments because anyway the quotes in there | |
| 2290 # would cause problems or look ugly. | |
| 2291 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
| 2292 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
| 2293 trap 'exit_status=$? | |
| 2294 # Save into config.log some information that might help in debugging. | |
| 2295 { | |
| 2296 echo | |
| 2297 | |
| 2298 $as_echo "## ---------------- ## | |
| 2299 ## Cache variables. ## | |
| 2300 ## ---------------- ##" | |
| 2301 echo | |
| 2302 # The following way of writing the cache mishandles newlines in values, | |
| 2303 ( | |
| 2304 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
| 2305 eval ac_val=\$$ac_var | |
| 2306 case $ac_val in #( | |
| 2307 *${as_nl}*) | |
| 2308 case $ac_var in #( | |
| 2309 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
| 2310 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
| 2311 esac | |
| 2312 case $ac_var in #( | |
| 2313 _ | IFS | as_nl) ;; #( | |
| 2314 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
| 2315 *) { eval $ac_var=; unset $ac_var;} ;; | |
| 2316 esac ;; | |
| 2317 esac | |
| 2318 done | |
| 2319 (set) 2>&1 | | |
| 2320 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
| 2321 *${as_nl}ac_space=\ *) | |
| 2322 sed -n \ | |
| 2323 "s/'\''/'\''\\\\'\'''\''/g; | |
| 2324 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
| 2325 ;; #( | |
| 2326 *) | |
| 2327 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
| 2328 ;; | |
| 2329 esac | | |
| 2330 sort | |
| 2331 ) | |
| 2332 echo | |
| 2333 | |
| 2334 $as_echo "## ----------------- ## | |
| 2335 ## Output variables. ## | |
| 2336 ## ----------------- ##" | |
| 2337 echo | |
| 2338 for ac_var in $ac_subst_vars | |
| 2339 do | |
| 2340 eval ac_val=\$$ac_var | |
| 2341 case $ac_val in | |
| 2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
| 2343 esac | |
| 2344 $as_echo "$ac_var='\''$ac_val'\''" | |
| 2345 done | sort | |
| 2346 echo | |
| 2347 | |
| 2348 if test -n "$ac_subst_files"; then | |
| 2349 $as_echo "## ------------------- ## | |
| 2350 ## File substitutions. ## | |
| 2351 ## ------------------- ##" | |
| 2352 echo | |
| 2353 for ac_var in $ac_subst_files | |
| 2354 do | |
| 2355 eval ac_val=\$$ac_var | |
| 2356 case $ac_val in | |
| 2357 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
| 2358 esac | |
| 2359 $as_echo "$ac_var='\''$ac_val'\''" | |
| 2360 done | sort | |
| 2361 echo | |
| 2362 fi | |
| 2363 | |
| 2364 if test -s confdefs.h; then | |
| 2365 $as_echo "## ----------- ## | |
| 2366 ## confdefs.h. ## | |
| 2367 ## ----------- ##" | |
| 2368 echo | |
| 2369 cat confdefs.h | |
| 2370 echo | |
| 2371 fi | |
| 2372 test "$ac_signal" != 0 && | |
| 2373 $as_echo "$as_me: caught signal $ac_signal" | |
| 2374 $as_echo "$as_me: exit $exit_status" | |
| 2375 } >&5 | |
| 2376 rm -f core *.core core.conftest.* && | |
| 2377 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
| 2378 exit $exit_status | |
| 2379 ' 0 | |
| 2380 for ac_signal in 1 2 13 15; do | |
| 2381 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
| 2382 done | |
| 2383 ac_signal=0 | |
| 2384 | |
| 2385 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
| 2386 rm -f -r conftest* confdefs.h | |
| 2387 | |
| 2388 $as_echo "/* confdefs.h */" > confdefs.h | |
| 2389 | |
| 2390 # Predefined preprocessor variables. | |
| 2391 | |
| 2392 cat >>confdefs.h <<_ACEOF | |
| 2393 #define PACKAGE_NAME "$PACKAGE_NAME" | |
| 2394 _ACEOF | |
| 2395 | |
| 2396 cat >>confdefs.h <<_ACEOF | |
| 2397 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
| 2398 _ACEOF | |
| 2399 | |
| 2400 cat >>confdefs.h <<_ACEOF | |
| 2401 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
| 2402 _ACEOF | |
| 2403 | |
| 2404 cat >>confdefs.h <<_ACEOF | |
| 2405 #define PACKAGE_STRING "$PACKAGE_STRING" | |
| 2406 _ACEOF | |
| 2407 | |
| 2408 cat >>confdefs.h <<_ACEOF | |
| 2409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
| 2410 _ACEOF | |
| 2411 | |
| 2412 cat >>confdefs.h <<_ACEOF | |
| 2413 #define PACKAGE_URL "$PACKAGE_URL" | |
| 2414 _ACEOF | |
| 2415 | |
| 2416 | |
| 2417 # Let the site file select an alternate cache file if it wants to. | |
| 2418 # Prefer an explicitly selected file to automatically selected ones. | |
| 2419 ac_site_file1=NONE | |
| 2420 ac_site_file2=NONE | |
| 2421 if test -n "$CONFIG_SITE"; then | |
| 2422 # We do not want a PATH search for config.site. | |
| 2423 case $CONFIG_SITE in #(( | |
| 2424 -*) ac_site_file1=./$CONFIG_SITE;; | |
| 2425 */*) ac_site_file1=$CONFIG_SITE;; | |
| 2426 *) ac_site_file1=./$CONFIG_SITE;; | |
| 2427 esac | |
| 2428 elif test "x$prefix" != xNONE; then | |
| 2429 ac_site_file1=$prefix/share/config.site | |
| 2430 ac_site_file2=$prefix/etc/config.site | |
| 2431 else | |
| 2432 ac_site_file1=$ac_default_prefix/share/config.site | |
| 2433 ac_site_file2=$ac_default_prefix/etc/config.site | |
| 2434 fi | |
| 2435 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
| 2436 do | |
| 2437 test "x$ac_site_file" = xNONE && continue | |
| 2438 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
| 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
| 2440 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
| 2441 sed 's/^/| /' "$ac_site_file" >&5 | |
| 2442 . "$ac_site_file" \ | |
| 2443 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
| 2444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
| 2445 as_fn_error $? "failed to load site script $ac_site_file | |
| 2446 See \`config.log' for more details" "$LINENO" 5; } | |
| 2447 fi | |
| 2448 done | |
| 2449 | |
| 2450 if test -r "$cache_file"; then | |
| 2451 # Some versions of bash will fail to source /dev/null (special files | |
| 2452 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
| 2453 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
| 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
| 2455 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
| 2456 case $cache_file in | |
| 2457 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
| 2458 *) . "./$cache_file";; | |
| 2459 esac | |
| 2460 fi | |
| 2461 else | |
| 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
| 2463 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
| 2464 >$cache_file | |
| 2465 fi | |
| 2466 | |
| 2467 # Check that the precious variables saved in the cache have kept the same | |
| 2468 # value. | |
| 2469 ac_cache_corrupted=false | |
| 2470 for ac_var in $ac_precious_vars; do | |
| 2471 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
| 2472 eval ac_new_set=\$ac_env_${ac_var}_set | |
| 2473 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
| 2474 eval ac_new_val=\$ac_env_${ac_var}_value | |
| 2475 case $ac_old_set,$ac_new_set in | |
| 2476 set,) | |
| 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
| 2478 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
| 2479 ac_cache_corrupted=: ;; | |
| 2480 ,set) | |
| 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
| 2482 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
| 2483 ac_cache_corrupted=: ;; | |
| 2484 ,);; | |
| 2485 *) | |
| 2486 if test "x$ac_old_val" != "x$ac_new_val"; then | |
| 2487 # differences in whitespace do not lead to failure. | |
| 2488 ac_old_val_w=`echo x $ac_old_val` | |
| 2489 ac_new_val_w=`echo x $ac_new_val` | |
| 2490 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
| 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
| 2492 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
| 2493 ac_cache_corrupted=: | |
| 2494 else | |
| 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
| 2496 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
| 2497 eval $ac_var=\$ac_old_val | |
| 2498 fi | |
| 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
| 2500 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
| 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
| 2502 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
| 2503 fi;; | |
| 2504 esac | |
| 2505 # Pass precious variables to config.status. | |
| 2506 if test "$ac_new_set" = set; then | |
| 2507 case $ac_new_val in | |
| 2508 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
| 2509 *) ac_arg=$ac_var=$ac_new_val ;; | |
| 2510 esac | |
| 2511 case " $ac_configure_args " in | |
| 2512 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
| 2513 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
| 2514 esac | |
| 2515 fi | |
| 2516 done | |
| 2517 if $ac_cache_corrupted; then | |
| 2518 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
| 2519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
| 2520 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
| 2521 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
| 2522 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
| 2523 fi | |
| 2524 ## -------------------- ## | |
| 2525 ## Main body of script. ## | |
| 2526 ## -------------------- ## | |
| 2527 | |
| 2528 ac_ext=c | |
| 2529 ac_cpp='$CPP $CPPFLAGS' | |
| 2530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 2531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 2532 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 2533 | |
| 2534 | |
| 2535 | |
| 2536 | |
| 2537 ac_config_headers="$ac_config_headers src/config.h" | |
| 2538 | |
| 2539 | |
| 2540 | |
| 2541 # Make sure CFLAGS is defined to stop AC_PROG_CC adding -g. | |
| 2542 CFLAGS="${CFLAGS} " | |
| 2543 | |
| 2544 # Checks for programs. | |
| 2545 for ac_prog in gawk mawk nawk awk | |
| 2546 do | |
| 2547 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 2548 set dummy $ac_prog; ac_word=$2 | |
| 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 2550 $as_echo_n "checking for $ac_word... " >&6; } | |
| 2551 if ${ac_cv_prog_AWK+:} false; then : | |
| 2552 $as_echo_n "(cached) " >&6 | |
| 2553 else | |
| 2554 if test -n "$AWK"; then | |
| 2555 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
| 2556 else | |
| 2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 2558 for as_dir in $PATH | |
| 2559 do | |
| 2560 IFS=$as_save_IFS | |
| 2561 test -z "$as_dir" && as_dir=. | |
| 2562 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 2563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 2564 ac_cv_prog_AWK="$ac_prog" | |
| 2565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 2566 break 2 | |
| 2567 fi | |
| 2568 done | |
| 2569 done | |
| 2570 IFS=$as_save_IFS | |
| 2571 | |
| 2572 fi | |
| 2573 fi | |
| 2574 AWK=$ac_cv_prog_AWK | |
| 2575 if test -n "$AWK"; then | |
| 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
| 2577 $as_echo "$AWK" >&6; } | |
| 2578 else | |
| 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 2580 $as_echo "no" >&6; } | |
| 2581 fi | |
| 2582 | |
| 2583 | |
| 2584 test -n "$AWK" && break | |
| 2585 done | |
| 2586 | |
| 2587 ac_ext=c | |
| 2588 ac_cpp='$CPP $CPPFLAGS' | |
| 2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 2592 if test -n "$ac_tool_prefix"; then | |
| 2593 for ac_prog in icc gcc cc | |
| 2594 do | |
| 2595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
| 2596 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
| 2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 2598 $as_echo_n "checking for $ac_word... " >&6; } | |
| 2599 if ${ac_cv_prog_CC+:} false; then : | |
| 2600 $as_echo_n "(cached) " >&6 | |
| 2601 else | |
| 2602 if test -n "$CC"; then | |
| 2603 ac_cv_prog_CC="$CC" # Let the user override the test. | |
| 2604 else | |
| 2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 2606 for as_dir in $PATH | |
| 2607 do | |
| 2608 IFS=$as_save_IFS | |
| 2609 test -z "$as_dir" && as_dir=. | |
| 2610 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 2611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 2612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
| 2613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 2614 break 2 | |
| 2615 fi | |
| 2616 done | |
| 2617 done | |
| 2618 IFS=$as_save_IFS | |
| 2619 | |
| 2620 fi | |
| 2621 fi | |
| 2622 CC=$ac_cv_prog_CC | |
| 2623 if test -n "$CC"; then | |
| 2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
| 2625 $as_echo "$CC" >&6; } | |
| 2626 else | |
| 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 2628 $as_echo "no" >&6; } | |
| 2629 fi | |
| 2630 | |
| 2631 | |
| 2632 test -n "$CC" && break | |
| 2633 done | |
| 2634 fi | |
| 2635 if test -z "$CC"; then | |
| 2636 ac_ct_CC=$CC | |
| 2637 for ac_prog in icc gcc cc | |
| 2638 do | |
| 2639 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 2640 set dummy $ac_prog; ac_word=$2 | |
| 2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 2642 $as_echo_n "checking for $ac_word... " >&6; } | |
| 2643 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
| 2644 $as_echo_n "(cached) " >&6 | |
| 2645 else | |
| 2646 if test -n "$ac_ct_CC"; then | |
| 2647 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
| 2648 else | |
| 2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 2650 for as_dir in $PATH | |
| 2651 do | |
| 2652 IFS=$as_save_IFS | |
| 2653 test -z "$as_dir" && as_dir=. | |
| 2654 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 2655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 2656 ac_cv_prog_ac_ct_CC="$ac_prog" | |
| 2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 2658 break 2 | |
| 2659 fi | |
| 2660 done | |
| 2661 done | |
| 2662 IFS=$as_save_IFS | |
| 2663 | |
| 2664 fi | |
| 2665 fi | |
| 2666 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
| 2667 if test -n "$ac_ct_CC"; then | |
| 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
| 2669 $as_echo "$ac_ct_CC" >&6; } | |
| 2670 else | |
| 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 2672 $as_echo "no" >&6; } | |
| 2673 fi | |
| 2674 | |
| 2675 | |
| 2676 test -n "$ac_ct_CC" && break | |
| 2677 done | |
| 2678 | |
| 2679 if test "x$ac_ct_CC" = x; then | |
| 2680 CC="" | |
| 2681 else | |
| 2682 case $cross_compiling:$ac_tool_warned in | |
| 2683 yes:) | |
| 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 2685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 2686 ac_tool_warned=yes ;; | |
| 2687 esac | |
| 2688 CC=$ac_ct_CC | |
| 2689 fi | |
| 2690 fi | |
| 2691 | |
| 2692 | |
| 2693 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
| 2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
| 2695 as_fn_error $? "no acceptable C compiler found in \$PATH | |
| 2696 See \`config.log' for more details" "$LINENO" 5; } | |
| 2697 | |
| 2698 # Provide some information about the compiler. | |
| 2699 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
| 2700 set X $ac_compile | |
| 2701 ac_compiler=$2 | |
| 2702 for ac_option in --version -v -V -qversion; do | |
| 2703 { { ac_try="$ac_compiler $ac_option >&5" | |
| 2704 case "(($ac_try" in | |
| 2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2706 *) ac_try_echo=$ac_try;; | |
| 2707 esac | |
| 2708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 2709 $as_echo "$ac_try_echo"; } >&5 | |
| 2710 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
| 2711 ac_status=$? | |
| 2712 if test -s conftest.err; then | |
| 2713 sed '10a\ | |
| 2714 ... rest of stderr output deleted ... | |
| 2715 10q' conftest.err >conftest.er1 | |
| 2716 cat conftest.er1 >&5 | |
| 2717 fi | |
| 2718 rm -f conftest.er1 conftest.err | |
| 2719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 2720 test $ac_status = 0; } | |
| 2721 done | |
| 2722 | |
| 2723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 2724 /* end confdefs.h. */ | |
| 2725 | |
| 2726 int | |
| 2727 main () | |
| 2728 { | |
| 2729 | |
| 2730 ; | |
| 2731 return 0; | |
| 2732 } | |
| 2733 _ACEOF | |
| 2734 ac_clean_files_save=$ac_clean_files | |
| 2735 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
| 2736 # Try to create an executable without -o first, disregard a.out. | |
| 2737 # It will help us diagnose broken compilers, and finding out an intuition | |
| 2738 # of exeext. | |
| 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
| 2740 $as_echo_n "checking whether the C compiler works... " >&6; } | |
| 2741 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
| 2742 | |
| 2743 # The possible output files: | |
| 2744 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
| 2745 | |
| 2746 ac_rmfiles= | |
| 2747 for ac_file in $ac_files | |
| 2748 do | |
| 2749 case $ac_file in | |
| 2750 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
| 2751 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
| 2752 esac | |
| 2753 done | |
| 2754 rm -f $ac_rmfiles | |
| 2755 | |
| 2756 if { { ac_try="$ac_link_default" | |
| 2757 case "(($ac_try" in | |
| 2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2759 *) ac_try_echo=$ac_try;; | |
| 2760 esac | |
| 2761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 2762 $as_echo "$ac_try_echo"; } >&5 | |
| 2763 (eval "$ac_link_default") 2>&5 | |
| 2764 ac_status=$? | |
| 2765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 2766 test $ac_status = 0; }; then : | |
| 2767 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
| 2768 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
| 2769 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
| 2770 # so that the user can short-circuit this test for compilers unknown to | |
| 2771 # Autoconf. | |
| 2772 for ac_file in $ac_files '' | |
| 2773 do | |
| 2774 test -f "$ac_file" || continue | |
| 2775 case $ac_file in | |
| 2776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
| 2777 ;; | |
| 2778 [ab].out ) | |
| 2779 # We found the default executable, but exeext='' is most | |
| 2780 # certainly right. | |
| 2781 break;; | |
| 2782 *.* ) | |
| 2783 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
| 2784 then :; else | |
| 2785 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
| 2786 fi | |
| 2787 # We set ac_cv_exeext here because the later test for it is not | |
| 2788 # safe: cross compilers may not add the suffix if given an `-o' | |
| 2789 # argument, so we may need to know it at that point already. | |
| 2790 # Even if this section looks crufty: it has the advantage of | |
| 2791 # actually working. | |
| 2792 break;; | |
| 2793 * ) | |
| 2794 break;; | |
| 2795 esac | |
| 2796 done | |
| 2797 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
| 2798 | |
| 2799 else | |
| 2800 ac_file='' | |
| 2801 fi | |
| 2802 if test -z "$ac_file"; then : | |
| 2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 2804 $as_echo "no" >&6; } | |
| 2805 $as_echo "$as_me: failed program was:" >&5 | |
| 2806 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 2807 | |
| 2808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
| 2809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
| 2810 as_fn_error 77 "C compiler cannot create executables | |
| 2811 See \`config.log' for more details" "$LINENO" 5; } | |
| 2812 else | |
| 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 2814 $as_echo "yes" >&6; } | |
| 2815 fi | |
| 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
| 2817 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
| 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
| 2819 $as_echo "$ac_file" >&6; } | |
| 2820 ac_exeext=$ac_cv_exeext | |
| 2821 | |
| 2822 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
| 2823 ac_clean_files=$ac_clean_files_save | |
| 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
| 2825 $as_echo_n "checking for suffix of executables... " >&6; } | |
| 2826 if { { ac_try="$ac_link" | |
| 2827 case "(($ac_try" in | |
| 2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2829 *) ac_try_echo=$ac_try;; | |
| 2830 esac | |
| 2831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 2832 $as_echo "$ac_try_echo"; } >&5 | |
| 2833 (eval "$ac_link") 2>&5 | |
| 2834 ac_status=$? | |
| 2835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 2836 test $ac_status = 0; }; then : | |
| 2837 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
| 2838 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
| 2839 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
| 2840 # `rm'. | |
| 2841 for ac_file in conftest.exe conftest conftest.*; do | |
| 2842 test -f "$ac_file" || continue | |
| 2843 case $ac_file in | |
| 2844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
| 2845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
| 2846 break;; | |
| 2847 * ) break;; | |
| 2848 esac | |
| 2849 done | |
| 2850 else | |
| 2851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
| 2852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
| 2853 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
| 2854 See \`config.log' for more details" "$LINENO" 5; } | |
| 2855 fi | |
| 2856 rm -f conftest conftest$ac_cv_exeext | |
| 2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
| 2858 $as_echo "$ac_cv_exeext" >&6; } | |
| 2859 | |
| 2860 rm -f conftest.$ac_ext | |
| 2861 EXEEXT=$ac_cv_exeext | |
| 2862 ac_exeext=$EXEEXT | |
| 2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 2864 /* end confdefs.h. */ | |
| 2865 #include <stdio.h> | |
| 2866 int | |
| 2867 main () | |
| 2868 { | |
| 2869 FILE *f = fopen ("conftest.out", "w"); | |
| 2870 return ferror (f) || fclose (f) != 0; | |
| 2871 | |
| 2872 ; | |
| 2873 return 0; | |
| 2874 } | |
| 2875 _ACEOF | |
| 2876 ac_clean_files="$ac_clean_files conftest.out" | |
| 2877 # Check that the compiler produces executables we can run. If not, either | |
| 2878 # the compiler is broken, or we cross compile. | |
| 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
| 2880 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
| 2881 if test "$cross_compiling" != yes; then | |
| 2882 { { ac_try="$ac_link" | |
| 2883 case "(($ac_try" in | |
| 2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2885 *) ac_try_echo=$ac_try;; | |
| 2886 esac | |
| 2887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 2888 $as_echo "$ac_try_echo"; } >&5 | |
| 2889 (eval "$ac_link") 2>&5 | |
| 2890 ac_status=$? | |
| 2891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 2892 test $ac_status = 0; } | |
| 2893 if { ac_try='./conftest$ac_cv_exeext' | |
| 2894 { { case "(($ac_try" in | |
| 2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2896 *) ac_try_echo=$ac_try;; | |
| 2897 esac | |
| 2898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 2899 $as_echo "$ac_try_echo"; } >&5 | |
| 2900 (eval "$ac_try") 2>&5 | |
| 2901 ac_status=$? | |
| 2902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 2903 test $ac_status = 0; }; }; then | |
| 2904 cross_compiling=no | |
| 2905 else | |
| 2906 if test "$cross_compiling" = maybe; then | |
| 2907 cross_compiling=yes | |
| 2908 else | |
| 2909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
| 2910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
| 2911 as_fn_error $? "cannot run C compiled programs. | |
| 2912 If you meant to cross compile, use \`--host'. | |
| 2913 See \`config.log' for more details" "$LINENO" 5; } | |
| 2914 fi | |
| 2915 fi | |
| 2916 fi | |
| 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
| 2918 $as_echo "$cross_compiling" >&6; } | |
| 2919 | |
| 2920 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
| 2921 ac_clean_files=$ac_clean_files_save | |
| 2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
| 2923 $as_echo_n "checking for suffix of object files... " >&6; } | |
| 2924 if ${ac_cv_objext+:} false; then : | |
| 2925 $as_echo_n "(cached) " >&6 | |
| 2926 else | |
| 2927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 2928 /* end confdefs.h. */ | |
| 2929 | |
| 2930 int | |
| 2931 main () | |
| 2932 { | |
| 2933 | |
| 2934 ; | |
| 2935 return 0; | |
| 2936 } | |
| 2937 _ACEOF | |
| 2938 rm -f conftest.o conftest.obj | |
| 2939 if { { ac_try="$ac_compile" | |
| 2940 case "(($ac_try" in | |
| 2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 2942 *) ac_try_echo=$ac_try;; | |
| 2943 esac | |
| 2944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 2945 $as_echo "$ac_try_echo"; } >&5 | |
| 2946 (eval "$ac_compile") 2>&5 | |
| 2947 ac_status=$? | |
| 2948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 2949 test $ac_status = 0; }; then : | |
| 2950 for ac_file in conftest.o conftest.obj conftest.*; do | |
| 2951 test -f "$ac_file" || continue; | |
| 2952 case $ac_file in | |
| 2953 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
| 2954 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
| 2955 break;; | |
| 2956 esac | |
| 2957 done | |
| 2958 else | |
| 2959 $as_echo "$as_me: failed program was:" >&5 | |
| 2960 sed 's/^/| /' conftest.$ac_ext >&5 | |
| 2961 | |
| 2962 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
| 2963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
| 2964 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
| 2965 See \`config.log' for more details" "$LINENO" 5; } | |
| 2966 fi | |
| 2967 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
| 2968 fi | |
| 2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
| 2970 $as_echo "$ac_cv_objext" >&6; } | |
| 2971 OBJEXT=$ac_cv_objext | |
| 2972 ac_objext=$OBJEXT | |
| 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
| 2974 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
| 2975 if ${ac_cv_c_compiler_gnu+:} false; then : | |
| 2976 $as_echo_n "(cached) " >&6 | |
| 2977 else | |
| 2978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 2979 /* end confdefs.h. */ | |
| 2980 | |
| 2981 int | |
| 2982 main () | |
| 2983 { | |
| 2984 #ifndef __GNUC__ | |
| 2985 choke me | |
| 2986 #endif | |
| 2987 | |
| 2988 ; | |
| 2989 return 0; | |
| 2990 } | |
| 2991 _ACEOF | |
| 2992 if ac_fn_c_try_compile "$LINENO"; then : | |
| 2993 ac_compiler_gnu=yes | |
| 2994 else | |
| 2995 ac_compiler_gnu=no | |
| 2996 fi | |
| 2997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 2998 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
| 2999 | |
| 3000 fi | |
| 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
| 3002 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
| 3003 if test $ac_compiler_gnu = yes; then | |
| 3004 GCC=yes | |
| 3005 else | |
| 3006 GCC= | |
| 3007 fi | |
| 3008 ac_test_CFLAGS=${CFLAGS+set} | |
| 3009 ac_save_CFLAGS=$CFLAGS | |
| 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
| 3011 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
| 3012 if ${ac_cv_prog_cc_g+:} false; then : | |
| 3013 $as_echo_n "(cached) " >&6 | |
| 3014 else | |
| 3015 ac_save_c_werror_flag=$ac_c_werror_flag | |
| 3016 ac_c_werror_flag=yes | |
| 3017 ac_cv_prog_cc_g=no | |
| 3018 CFLAGS="-g" | |
| 3019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3020 /* end confdefs.h. */ | |
| 3021 | |
| 3022 int | |
| 3023 main () | |
| 3024 { | |
| 3025 | |
| 3026 ; | |
| 3027 return 0; | |
| 3028 } | |
| 3029 _ACEOF | |
| 3030 if ac_fn_c_try_compile "$LINENO"; then : | |
| 3031 ac_cv_prog_cc_g=yes | |
| 3032 else | |
| 3033 CFLAGS="" | |
| 3034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3035 /* end confdefs.h. */ | |
| 3036 | |
| 3037 int | |
| 3038 main () | |
| 3039 { | |
| 3040 | |
| 3041 ; | |
| 3042 return 0; | |
| 3043 } | |
| 3044 _ACEOF | |
| 3045 if ac_fn_c_try_compile "$LINENO"; then : | |
| 3046 | |
| 3047 else | |
| 3048 ac_c_werror_flag=$ac_save_c_werror_flag | |
| 3049 CFLAGS="-g" | |
| 3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3051 /* end confdefs.h. */ | |
| 3052 | |
| 3053 int | |
| 3054 main () | |
| 3055 { | |
| 3056 | |
| 3057 ; | |
| 3058 return 0; | |
| 3059 } | |
| 3060 _ACEOF | |
| 3061 if ac_fn_c_try_compile "$LINENO"; then : | |
| 3062 ac_cv_prog_cc_g=yes | |
| 3063 fi | |
| 3064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 3065 fi | |
| 3066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 3067 fi | |
| 3068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 3069 ac_c_werror_flag=$ac_save_c_werror_flag | |
| 3070 fi | |
| 3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
| 3072 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
| 3073 if test "$ac_test_CFLAGS" = set; then | |
| 3074 CFLAGS=$ac_save_CFLAGS | |
| 3075 elif test $ac_cv_prog_cc_g = yes; then | |
| 3076 if test "$GCC" = yes; then | |
| 3077 CFLAGS="-g -O2" | |
| 3078 else | |
| 3079 CFLAGS="-g" | |
| 3080 fi | |
| 3081 else | |
| 3082 if test "$GCC" = yes; then | |
| 3083 CFLAGS="-O2" | |
| 3084 else | |
| 3085 CFLAGS= | |
| 3086 fi | |
| 3087 fi | |
| 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
| 3089 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
| 3090 if ${ac_cv_prog_cc_c89+:} false; then : | |
| 3091 $as_echo_n "(cached) " >&6 | |
| 3092 else | |
| 3093 ac_cv_prog_cc_c89=no | |
| 3094 ac_save_CC=$CC | |
| 3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3096 /* end confdefs.h. */ | |
| 3097 #include <stdarg.h> | |
| 3098 #include <stdio.h> | |
| 3099 struct stat; | |
| 3100 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
| 3101 struct buf { int x; }; | |
| 3102 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
| 3103 static char *e (p, i) | |
| 3104 char **p; | |
| 3105 int i; | |
| 3106 { | |
| 3107 return p[i]; | |
| 3108 } | |
| 3109 static char *f (char * (*g) (char **, int), char **p, ...) | |
| 3110 { | |
| 3111 char *s; | |
| 3112 va_list v; | |
| 3113 va_start (v,p); | |
| 3114 s = g (p, va_arg (v,int)); | |
| 3115 va_end (v); | |
| 3116 return s; | |
| 3117 } | |
| 3118 | |
| 3119 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
| 3120 function prototypes and stuff, but not '\xHH' hex character constants. | |
| 3121 These don't provoke an error unfortunately, instead are silently treated | |
| 3122 as 'x'. The following induces an error, until -std is added to get | |
| 3123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
| 3124 array size at least. It's necessary to write '\x00'==0 to get something | |
| 3125 that's true only with -std. */ | |
| 3126 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
| 3127 | |
| 3128 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
| 3129 inside strings and character constants. */ | |
| 3130 #define FOO(x) 'x' | |
| 3131 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
| 3132 | |
| 3133 int test (int i, double x); | |
| 3134 struct s1 {int (*f) (int a);}; | |
| 3135 struct s2 {int (*f) (double a);}; | |
| 3136 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
| 3137 int argc; | |
| 3138 char **argv; | |
| 3139 int | |
| 3140 main () | |
| 3141 { | |
| 3142 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
| 3143 ; | |
| 3144 return 0; | |
| 3145 } | |
| 3146 _ACEOF | |
| 3147 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
| 3148 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
| 3149 do | |
| 3150 CC="$ac_save_CC $ac_arg" | |
| 3151 if ac_fn_c_try_compile "$LINENO"; then : | |
| 3152 ac_cv_prog_cc_c89=$ac_arg | |
| 3153 fi | |
| 3154 rm -f core conftest.err conftest.$ac_objext | |
| 3155 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
| 3156 done | |
| 3157 rm -f conftest.$ac_ext | |
| 3158 CC=$ac_save_CC | |
| 3159 | |
| 3160 fi | |
| 3161 # AC_CACHE_VAL | |
| 3162 case "x$ac_cv_prog_cc_c89" in | |
| 3163 x) | |
| 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
| 3165 $as_echo "none needed" >&6; } ;; | |
| 3166 xno) | |
| 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
| 3168 $as_echo "unsupported" >&6; } ;; | |
| 3169 *) | |
| 3170 CC="$CC $ac_cv_prog_cc_c89" | |
| 3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
| 3172 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
| 3173 esac | |
| 3174 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
| 3175 | |
| 3176 fi | |
| 3177 | |
| 3178 ac_ext=c | |
| 3179 ac_cpp='$CPP $CPPFLAGS' | |
| 3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 3183 | |
| 3184 ac_aux_dir= | |
| 3185 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
| 3186 if test -f "$ac_dir/install-sh"; then | |
| 3187 ac_aux_dir=$ac_dir | |
| 3188 ac_install_sh="$ac_aux_dir/install-sh -c" | |
| 3189 break | |
| 3190 elif test -f "$ac_dir/install.sh"; then | |
| 3191 ac_aux_dir=$ac_dir | |
| 3192 ac_install_sh="$ac_aux_dir/install.sh -c" | |
| 3193 break | |
| 3194 elif test -f "$ac_dir/shtool"; then | |
| 3195 ac_aux_dir=$ac_dir | |
| 3196 ac_install_sh="$ac_aux_dir/shtool install -c" | |
| 3197 break | |
| 3198 fi | |
| 3199 done | |
| 3200 if test -z "$ac_aux_dir"; then | |
| 3201 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
| 3202 fi | |
| 3203 | |
| 3204 # These three variables are undocumented and unsupported, | |
| 3205 # and are intended to be withdrawn in a future Autoconf release. | |
| 3206 # They can cause serious problems if a builder's source tree is in a directory | |
| 3207 # whose full name contains unusual characters. | |
| 3208 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
| 3209 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
| 3210 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
| 3211 | |
| 3212 | |
| 3213 # Expand $ac_aux_dir to an absolute path. | |
| 3214 am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
| 3215 | |
| 3216 ac_ext=c | |
| 3217 ac_cpp='$CPP $CPPFLAGS' | |
| 3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
| 3222 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
| 3223 if ${am_cv_prog_cc_c_o+:} false; then : | |
| 3224 $as_echo_n "(cached) " >&6 | |
| 3225 else | |
| 3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3227 /* end confdefs.h. */ | |
| 3228 | |
| 3229 int | |
| 3230 main () | |
| 3231 { | |
| 3232 | |
| 3233 ; | |
| 3234 return 0; | |
| 3235 } | |
| 3236 _ACEOF | |
| 3237 # Make sure it works both with $CC and with simple cc. | |
| 3238 # Following AC_PROG_CC_C_O, we do the test twice because some | |
| 3239 # compilers refuse to overwrite an existing .o file with -o, | |
| 3240 # though they will create one. | |
| 3241 am_cv_prog_cc_c_o=yes | |
| 3242 for am_i in 1 2; do | |
| 3243 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
| 3244 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
| 3245 ac_status=$? | |
| 3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 3247 (exit $ac_status); } \ | |
| 3248 && test -f conftest2.$ac_objext; then | |
| 3249 : OK | |
| 3250 else | |
| 3251 am_cv_prog_cc_c_o=no | |
| 3252 break | |
| 3253 fi | |
| 3254 done | |
| 3255 rm -f core conftest* | |
| 3256 unset am_i | |
| 3257 fi | |
| 3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
| 3259 $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
| 3260 if test "$am_cv_prog_cc_c_o" != yes; then | |
| 3261 # Losing compiler, so override with the script. | |
| 3262 # FIXME: It is wrong to rewrite CC. | |
| 3263 # But if we don't then we get into trouble of one sort or another. | |
| 3264 # A longer-term fix would be to have automake use am__CC in this case, | |
| 3265 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
| 3266 CC="$am_aux_dir/compile $CC" | |
| 3267 fi | |
| 3268 ac_ext=c | |
| 3269 ac_cpp='$CPP $CPPFLAGS' | |
| 3270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 3271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 3272 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 3273 | |
| 3274 | |
| 3275 ac_ext=cpp | |
| 3276 ac_cpp='$CXXCPP $CPPFLAGS' | |
| 3277 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 3278 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 3279 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
| 3280 if test -z "$CXX"; then | |
| 3281 if test -n "$CCC"; then | |
| 3282 CXX=$CCC | |
| 3283 else | |
| 3284 if test -n "$ac_tool_prefix"; then | |
| 3285 for ac_prog in icpc g++ | |
| 3286 do | |
| 3287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
| 3288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
| 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 3290 $as_echo_n "checking for $ac_word... " >&6; } | |
| 3291 if ${ac_cv_prog_CXX+:} false; then : | |
| 3292 $as_echo_n "(cached) " >&6 | |
| 3293 else | |
| 3294 if test -n "$CXX"; then | |
| 3295 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
| 3296 else | |
| 3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3298 for as_dir in $PATH | |
| 3299 do | |
| 3300 IFS=$as_save_IFS | |
| 3301 test -z "$as_dir" && as_dir=. | |
| 3302 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 3304 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
| 3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 3306 break 2 | |
| 3307 fi | |
| 3308 done | |
| 3309 done | |
| 3310 IFS=$as_save_IFS | |
| 3311 | |
| 3312 fi | |
| 3313 fi | |
| 3314 CXX=$ac_cv_prog_CXX | |
| 3315 if test -n "$CXX"; then | |
| 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
| 3317 $as_echo "$CXX" >&6; } | |
| 3318 else | |
| 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3320 $as_echo "no" >&6; } | |
| 3321 fi | |
| 3322 | |
| 3323 | |
| 3324 test -n "$CXX" && break | |
| 3325 done | |
| 3326 fi | |
| 3327 if test -z "$CXX"; then | |
| 3328 ac_ct_CXX=$CXX | |
| 3329 for ac_prog in icpc g++ | |
| 3330 do | |
| 3331 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 3332 set dummy $ac_prog; ac_word=$2 | |
| 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 3334 $as_echo_n "checking for $ac_word... " >&6; } | |
| 3335 if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
| 3336 $as_echo_n "(cached) " >&6 | |
| 3337 else | |
| 3338 if test -n "$ac_ct_CXX"; then | |
| 3339 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
| 3340 else | |
| 3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3342 for as_dir in $PATH | |
| 3343 do | |
| 3344 IFS=$as_save_IFS | |
| 3345 test -z "$as_dir" && as_dir=. | |
| 3346 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 3348 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
| 3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 3350 break 2 | |
| 3351 fi | |
| 3352 done | |
| 3353 done | |
| 3354 IFS=$as_save_IFS | |
| 3355 | |
| 3356 fi | |
| 3357 fi | |
| 3358 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
| 3359 if test -n "$ac_ct_CXX"; then | |
| 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
| 3361 $as_echo "$ac_ct_CXX" >&6; } | |
| 3362 else | |
| 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3364 $as_echo "no" >&6; } | |
| 3365 fi | |
| 3366 | |
| 3367 | |
| 3368 test -n "$ac_ct_CXX" && break | |
| 3369 done | |
| 3370 | |
| 3371 if test "x$ac_ct_CXX" = x; then | |
| 3372 CXX="g++" | |
| 3373 else | |
| 3374 case $cross_compiling:$ac_tool_warned in | |
| 3375 yes:) | |
| 3376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 3377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 3378 ac_tool_warned=yes ;; | |
| 3379 esac | |
| 3380 CXX=$ac_ct_CXX | |
| 3381 fi | |
| 3382 fi | |
| 3383 | |
| 3384 fi | |
| 3385 fi | |
| 3386 # Provide some information about the compiler. | |
| 3387 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
| 3388 set X $ac_compile | |
| 3389 ac_compiler=$2 | |
| 3390 for ac_option in --version -v -V -qversion; do | |
| 3391 { { ac_try="$ac_compiler $ac_option >&5" | |
| 3392 case "(($ac_try" in | |
| 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
| 3394 *) ac_try_echo=$ac_try;; | |
| 3395 esac | |
| 3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
| 3397 $as_echo "$ac_try_echo"; } >&5 | |
| 3398 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
| 3399 ac_status=$? | |
| 3400 if test -s conftest.err; then | |
| 3401 sed '10a\ | |
| 3402 ... rest of stderr output deleted ... | |
| 3403 10q' conftest.err >conftest.er1 | |
| 3404 cat conftest.er1 >&5 | |
| 3405 fi | |
| 3406 rm -f conftest.er1 conftest.err | |
| 3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 3408 test $ac_status = 0; } | |
| 3409 done | |
| 3410 | |
| 3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
| 3412 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
| 3413 if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
| 3414 $as_echo_n "(cached) " >&6 | |
| 3415 else | |
| 3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3417 /* end confdefs.h. */ | |
| 3418 | |
| 3419 int | |
| 3420 main () | |
| 3421 { | |
| 3422 #ifndef __GNUC__ | |
| 3423 choke me | |
| 3424 #endif | |
| 3425 | |
| 3426 ; | |
| 3427 return 0; | |
| 3428 } | |
| 3429 _ACEOF | |
| 3430 if ac_fn_cxx_try_compile "$LINENO"; then : | |
| 3431 ac_compiler_gnu=yes | |
| 3432 else | |
| 3433 ac_compiler_gnu=no | |
| 3434 fi | |
| 3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 3436 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
| 3437 | |
| 3438 fi | |
| 3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
| 3440 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
| 3441 if test $ac_compiler_gnu = yes; then | |
| 3442 GXX=yes | |
| 3443 else | |
| 3444 GXX= | |
| 3445 fi | |
| 3446 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
| 3447 ac_save_CXXFLAGS=$CXXFLAGS | |
| 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
| 3449 $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
| 3450 if ${ac_cv_prog_cxx_g+:} false; then : | |
| 3451 $as_echo_n "(cached) " >&6 | |
| 3452 else | |
| 3453 ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
| 3454 ac_cxx_werror_flag=yes | |
| 3455 ac_cv_prog_cxx_g=no | |
| 3456 CXXFLAGS="-g" | |
| 3457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3458 /* end confdefs.h. */ | |
| 3459 | |
| 3460 int | |
| 3461 main () | |
| 3462 { | |
| 3463 | |
| 3464 ; | |
| 3465 return 0; | |
| 3466 } | |
| 3467 _ACEOF | |
| 3468 if ac_fn_cxx_try_compile "$LINENO"; then : | |
| 3469 ac_cv_prog_cxx_g=yes | |
| 3470 else | |
| 3471 CXXFLAGS="" | |
| 3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3473 /* end confdefs.h. */ | |
| 3474 | |
| 3475 int | |
| 3476 main () | |
| 3477 { | |
| 3478 | |
| 3479 ; | |
| 3480 return 0; | |
| 3481 } | |
| 3482 _ACEOF | |
| 3483 if ac_fn_cxx_try_compile "$LINENO"; then : | |
| 3484 | |
| 3485 else | |
| 3486 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
| 3487 CXXFLAGS="-g" | |
| 3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3489 /* end confdefs.h. */ | |
| 3490 | |
| 3491 int | |
| 3492 main () | |
| 3493 { | |
| 3494 | |
| 3495 ; | |
| 3496 return 0; | |
| 3497 } | |
| 3498 _ACEOF | |
| 3499 if ac_fn_cxx_try_compile "$LINENO"; then : | |
| 3500 ac_cv_prog_cxx_g=yes | |
| 3501 fi | |
| 3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 3503 fi | |
| 3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 3505 fi | |
| 3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 3507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
| 3508 fi | |
| 3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
| 3510 $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
| 3511 if test "$ac_test_CXXFLAGS" = set; then | |
| 3512 CXXFLAGS=$ac_save_CXXFLAGS | |
| 3513 elif test $ac_cv_prog_cxx_g = yes; then | |
| 3514 if test "$GXX" = yes; then | |
| 3515 CXXFLAGS="-g -O2" | |
| 3516 else | |
| 3517 CXXFLAGS="-g" | |
| 3518 fi | |
| 3519 else | |
| 3520 if test "$GXX" = yes; then | |
| 3521 CXXFLAGS="-O2" | |
| 3522 else | |
| 3523 CXXFLAGS= | |
| 3524 fi | |
| 3525 fi | |
| 3526 ac_ext=c | |
| 3527 ac_cpp='$CPP $CPPFLAGS' | |
| 3528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 3529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 3530 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 3531 | |
| 3532 ac_ext=c | |
| 3533 ac_cpp='$CPP $CPPFLAGS' | |
| 3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
| 3538 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
| 3539 # On Suns, sometimes $CPP names a directory. | |
| 3540 if test -n "$CPP" && test -d "$CPP"; then | |
| 3541 CPP= | |
| 3542 fi | |
| 3543 if test -z "$CPP"; then | |
| 3544 if ${ac_cv_prog_CPP+:} false; then : | |
| 3545 $as_echo_n "(cached) " >&6 | |
| 3546 else | |
| 3547 # Double quotes because CPP needs to be expanded | |
| 3548 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
| 3549 do | |
| 3550 ac_preproc_ok=false | |
| 3551 for ac_c_preproc_warn_flag in '' yes | |
| 3552 do | |
| 3553 # Use a header file that comes with gcc, so configuring glibc | |
| 3554 # with a fresh cross-compiler works. | |
| 3555 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
| 3556 # <limits.h> exists even on freestanding compilers. | |
| 3557 # On the NeXT, cc -E runs the code through the compiler's parser, | |
| 3558 # not just through cpp. "Syntax error" is here to catch this case. | |
| 3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3560 /* end confdefs.h. */ | |
| 3561 #ifdef __STDC__ | |
| 3562 # include <limits.h> | |
| 3563 #else | |
| 3564 # include <assert.h> | |
| 3565 #endif | |
| 3566 Syntax error | |
| 3567 _ACEOF | |
| 3568 if ac_fn_c_try_cpp "$LINENO"; then : | |
| 3569 | |
| 3570 else | |
| 3571 # Broken: fails on valid input. | |
| 3572 continue | |
| 3573 fi | |
| 3574 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 3575 | |
| 3576 # OK, works on sane cases. Now check whether nonexistent headers | |
| 3577 # can be detected and how. | |
| 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3579 /* end confdefs.h. */ | |
| 3580 #include <ac_nonexistent.h> | |
| 3581 _ACEOF | |
| 3582 if ac_fn_c_try_cpp "$LINENO"; then : | |
| 3583 # Broken: success on invalid input. | |
| 3584 continue | |
| 3585 else | |
| 3586 # Passes both tests. | |
| 3587 ac_preproc_ok=: | |
| 3588 break | |
| 3589 fi | |
| 3590 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 3591 | |
| 3592 done | |
| 3593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
| 3594 rm -f conftest.i conftest.err conftest.$ac_ext | |
| 3595 if $ac_preproc_ok; then : | |
| 3596 break | |
| 3597 fi | |
| 3598 | |
| 3599 done | |
| 3600 ac_cv_prog_CPP=$CPP | |
| 3601 | |
| 3602 fi | |
| 3603 CPP=$ac_cv_prog_CPP | |
| 3604 else | |
| 3605 ac_cv_prog_CPP=$CPP | |
| 3606 fi | |
| 3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
| 3608 $as_echo "$CPP" >&6; } | |
| 3609 ac_preproc_ok=false | |
| 3610 for ac_c_preproc_warn_flag in '' yes | |
| 3611 do | |
| 3612 # Use a header file that comes with gcc, so configuring glibc | |
| 3613 # with a fresh cross-compiler works. | |
| 3614 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
| 3615 # <limits.h> exists even on freestanding compilers. | |
| 3616 # On the NeXT, cc -E runs the code through the compiler's parser, | |
| 3617 # not just through cpp. "Syntax error" is here to catch this case. | |
| 3618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3619 /* end confdefs.h. */ | |
| 3620 #ifdef __STDC__ | |
| 3621 # include <limits.h> | |
| 3622 #else | |
| 3623 # include <assert.h> | |
| 3624 #endif | |
| 3625 Syntax error | |
| 3626 _ACEOF | |
| 3627 if ac_fn_c_try_cpp "$LINENO"; then : | |
| 3628 | |
| 3629 else | |
| 3630 # Broken: fails on valid input. | |
| 3631 continue | |
| 3632 fi | |
| 3633 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 3634 | |
| 3635 # OK, works on sane cases. Now check whether nonexistent headers | |
| 3636 # can be detected and how. | |
| 3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 3638 /* end confdefs.h. */ | |
| 3639 #include <ac_nonexistent.h> | |
| 3640 _ACEOF | |
| 3641 if ac_fn_c_try_cpp "$LINENO"; then : | |
| 3642 # Broken: success on invalid input. | |
| 3643 continue | |
| 3644 else | |
| 3645 # Passes both tests. | |
| 3646 ac_preproc_ok=: | |
| 3647 break | |
| 3648 fi | |
| 3649 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 3650 | |
| 3651 done | |
| 3652 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
| 3653 rm -f conftest.i conftest.err conftest.$ac_ext | |
| 3654 if $ac_preproc_ok; then : | |
| 3655 | |
| 3656 else | |
| 3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
| 3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
| 3659 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
| 3660 See \`config.log' for more details" "$LINENO" 5; } | |
| 3661 fi | |
| 3662 | |
| 3663 ac_ext=c | |
| 3664 ac_cpp='$CPP $CPPFLAGS' | |
| 3665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 3666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 3667 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 3668 | |
| 3669 # Find a good install program. We prefer a C program (faster), | |
| 3670 # so one script is as good as another. But avoid the broken or | |
| 3671 # incompatible versions: | |
| 3672 # SysV /etc/install, /usr/sbin/install | |
| 3673 # SunOS /usr/etc/install | |
| 3674 # IRIX /sbin/install | |
| 3675 # AIX /bin/install | |
| 3676 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
| 3677 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
| 3678 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
| 3679 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
| 3680 # OS/2's system install, which has a completely different semantic | |
| 3681 # ./install, which can be erroneously created by make from ./install.sh. | |
| 3682 # Reject install programs that cannot install multiple files. | |
| 3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
| 3684 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
| 3685 if test -z "$INSTALL"; then | |
| 3686 if ${ac_cv_path_install+:} false; then : | |
| 3687 $as_echo_n "(cached) " >&6 | |
| 3688 else | |
| 3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3690 for as_dir in $PATH | |
| 3691 do | |
| 3692 IFS=$as_save_IFS | |
| 3693 test -z "$as_dir" && as_dir=. | |
| 3694 # Account for people who put trailing slashes in PATH elements. | |
| 3695 case $as_dir/ in #(( | |
| 3696 ./ | .// | /[cC]/* | \ | |
| 3697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
| 3698 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
| 3699 /usr/ucb/* ) ;; | |
| 3700 *) | |
| 3701 # OSF1 and SCO ODT 3.0 have their own names for install. | |
| 3702 # Don't use installbsd from OSF since it installs stuff as root | |
| 3703 # by default. | |
| 3704 for ac_prog in ginstall scoinst install; do | |
| 3705 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3706 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
| 3707 if test $ac_prog = install && | |
| 3708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
| 3709 # AIX install. It has an incompatible calling convention. | |
| 3710 : | |
| 3711 elif test $ac_prog = install && | |
| 3712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
| 3713 # program-specific install script used by HP pwplus--don't use. | |
| 3714 : | |
| 3715 else | |
| 3716 rm -rf conftest.one conftest.two conftest.dir | |
| 3717 echo one > conftest.one | |
| 3718 echo two > conftest.two | |
| 3719 mkdir conftest.dir | |
| 3720 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
| 3721 test -s conftest.one && test -s conftest.two && | |
| 3722 test -s conftest.dir/conftest.one && | |
| 3723 test -s conftest.dir/conftest.two | |
| 3724 then | |
| 3725 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
| 3726 break 3 | |
| 3727 fi | |
| 3728 fi | |
| 3729 fi | |
| 3730 done | |
| 3731 done | |
| 3732 ;; | |
| 3733 esac | |
| 3734 | |
| 3735 done | |
| 3736 IFS=$as_save_IFS | |
| 3737 | |
| 3738 rm -rf conftest.one conftest.two conftest.dir | |
| 3739 | |
| 3740 fi | |
| 3741 if test "${ac_cv_path_install+set}" = set; then | |
| 3742 INSTALL=$ac_cv_path_install | |
| 3743 else | |
| 3744 # As a last resort, use the slow shell script. Don't cache a | |
| 3745 # value for INSTALL within a source directory, because that will | |
| 3746 # break other packages using the cache if that directory is | |
| 3747 # removed, or if the value is a relative name. | |
| 3748 INSTALL=$ac_install_sh | |
| 3749 fi | |
| 3750 fi | |
| 3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
| 3752 $as_echo "$INSTALL" >&6; } | |
| 3753 | |
| 3754 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
| 3755 # It thinks the first close brace ends the variable substitution. | |
| 3756 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
| 3757 | |
| 3758 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
| 3759 | |
| 3760 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
| 3761 | |
| 3762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
| 3763 $as_echo_n "checking whether ln -s works... " >&6; } | |
| 3764 LN_S=$as_ln_s | |
| 3765 if test "$LN_S" = "ln -s"; then | |
| 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 3767 $as_echo "yes" >&6; } | |
| 3768 else | |
| 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
| 3770 $as_echo "no, using $LN_S" >&6; } | |
| 3771 fi | |
| 3772 | |
| 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
| 3774 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
| 3775 set x ${MAKE-make} | |
| 3776 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
| 3777 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
| 3778 $as_echo_n "(cached) " >&6 | |
| 3779 else | |
| 3780 cat >conftest.make <<\_ACEOF | |
| 3781 SHELL = /bin/sh | |
| 3782 all: | |
| 3783 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
| 3784 _ACEOF | |
| 3785 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
| 3786 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
| 3787 *@@@%%%=?*=@@@%%%*) | |
| 3788 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
| 3789 *) | |
| 3790 eval ac_cv_prog_make_${ac_make}_set=no;; | |
| 3791 esac | |
| 3792 rm -f conftest.make | |
| 3793 fi | |
| 3794 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
| 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 3796 $as_echo "yes" >&6; } | |
| 3797 SET_MAKE= | |
| 3798 else | |
| 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3800 $as_echo "no" >&6; } | |
| 3801 SET_MAKE="MAKE=${MAKE-make}" | |
| 3802 fi | |
| 3803 | |
| 3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
| 3805 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
| 3806 if test -z "$MKDIR_P"; then | |
| 3807 if ${ac_cv_path_mkdir+:} false; then : | |
| 3808 $as_echo_n "(cached) " >&6 | |
| 3809 else | |
| 3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3811 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
| 3812 do | |
| 3813 IFS=$as_save_IFS | |
| 3814 test -z "$as_dir" && as_dir=. | |
| 3815 for ac_prog in mkdir gmkdir; do | |
| 3816 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3817 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
| 3818 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
| 3819 'mkdir (GNU coreutils) '* | \ | |
| 3820 'mkdir (coreutils) '* | \ | |
| 3821 'mkdir (fileutils) '4.1*) | |
| 3822 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
| 3823 break 3;; | |
| 3824 esac | |
| 3825 done | |
| 3826 done | |
| 3827 done | |
| 3828 IFS=$as_save_IFS | |
| 3829 | |
| 3830 fi | |
| 3831 | |
| 3832 test -d ./--version && rmdir ./--version | |
| 3833 if test "${ac_cv_path_mkdir+set}" = set; then | |
| 3834 MKDIR_P="$ac_cv_path_mkdir -p" | |
| 3835 else | |
| 3836 # As a last resort, use the slow shell script. Don't cache a | |
| 3837 # value for MKDIR_P within a source directory, because that will | |
| 3838 # break other packages using the cache if that directory is | |
| 3839 # removed, or if the value is a relative name. | |
| 3840 MKDIR_P="$ac_install_sh -d" | |
| 3841 fi | |
| 3842 fi | |
| 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
| 3844 $as_echo "$MKDIR_P" >&6; } | |
| 3845 | |
| 3846 | |
| 3847 am__api_version='1.15' | |
| 3848 | |
| 3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
| 3850 $as_echo_n "checking whether build environment is sane... " >&6; } | |
| 3851 # Reject unsafe characters in $srcdir or the absolute working directory | |
| 3852 # name. Accept space and tab only in the latter. | |
| 3853 am_lf=' | |
| 3854 ' | |
| 3855 case `pwd` in | |
| 3856 *[\\\"\#\$\&\'\`$am_lf]*) | |
| 3857 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
| 3858 esac | |
| 3859 case $srcdir in | |
| 3860 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
| 3861 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
| 3862 esac | |
| 3863 | |
| 3864 # Do 'set' in a subshell so we don't clobber the current shell's | |
| 3865 # arguments. Must try -L first in case configure is actually a | |
| 3866 # symlink; some systems play weird games with the mod time of symlinks | |
| 3867 # (eg FreeBSD returns the mod time of the symlink's containing | |
| 3868 # directory). | |
| 3869 if ( | |
| 3870 am_has_slept=no | |
| 3871 for am_try in 1 2; do | |
| 3872 echo "timestamp, slept: $am_has_slept" > conftest.file | |
| 3873 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
| 3874 if test "$*" = "X"; then | |
| 3875 # -L didn't work. | |
| 3876 set X `ls -t "$srcdir/configure" conftest.file` | |
| 3877 fi | |
| 3878 if test "$*" != "X $srcdir/configure conftest.file" \ | |
| 3879 && test "$*" != "X conftest.file $srcdir/configure"; then | |
| 3880 | |
| 3881 # If neither matched, then we have a broken ls. This can happen | |
| 3882 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
| 3883 # broken ls alias from the environment. This has actually | |
| 3884 # happened. Such a system could not be considered "sane". | |
| 3885 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
| 3886 alias in your environment" "$LINENO" 5 | |
| 3887 fi | |
| 3888 if test "$2" = conftest.file || test $am_try -eq 2; then | |
| 3889 break | |
| 3890 fi | |
| 3891 # Just in case. | |
| 3892 sleep 1 | |
| 3893 am_has_slept=yes | |
| 3894 done | |
| 3895 test "$2" = conftest.file | |
| 3896 ) | |
| 3897 then | |
| 3898 # Ok. | |
| 3899 : | |
| 3900 else | |
| 3901 as_fn_error $? "newly created file is older than distributed files! | |
| 3902 Check your system clock" "$LINENO" 5 | |
| 3903 fi | |
| 3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 3905 $as_echo "yes" >&6; } | |
| 3906 # If we didn't sleep, we still need to ensure time stamps of config.status and | |
| 3907 # generated files are strictly newer. | |
| 3908 am_sleep_pid= | |
| 3909 if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
| 3910 ( sleep 1 ) & | |
| 3911 am_sleep_pid=$! | |
| 3912 fi | |
| 3913 | |
| 3914 rm -f conftest.file | |
| 3915 | |
| 3916 test "$program_prefix" != NONE && | |
| 3917 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
| 3918 # Use a double $ so make ignores it. | |
| 3919 test "$program_suffix" != NONE && | |
| 3920 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
| 3921 # Double any \ or $. | |
| 3922 # By default was `s,x,x', remove it if useless. | |
| 3923 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
| 3924 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
| 3925 | |
| 3926 if test x"${MISSING+set}" != xset; then | |
| 3927 case $am_aux_dir in | |
| 3928 *\ * | *\ *) | |
| 3929 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
| 3930 *) | |
| 3931 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
| 3932 esac | |
| 3933 fi | |
| 3934 # Use eval to expand $SHELL | |
| 3935 if eval "$MISSING --is-lightweight"; then | |
| 3936 am_missing_run="$MISSING " | |
| 3937 else | |
| 3938 am_missing_run= | |
| 3939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
| 3940 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
| 3941 fi | |
| 3942 | |
| 3943 if test x"${install_sh+set}" != xset; then | |
| 3944 case $am_aux_dir in | |
| 3945 *\ * | *\ *) | |
| 3946 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
| 3947 *) | |
| 3948 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
| 3949 esac | |
| 3950 fi | |
| 3951 | |
| 3952 # Installed binaries are usually stripped using 'strip' when the user | |
| 3953 # run "make install-strip". However 'strip' might not be the right | |
| 3954 # tool to use in cross-compilation environments, therefore Automake | |
| 3955 # will honor the 'STRIP' environment variable to overrule this program. | |
| 3956 if test "$cross_compiling" != no; then | |
| 3957 if test -n "$ac_tool_prefix"; then | |
| 3958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
| 3959 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
| 3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 3961 $as_echo_n "checking for $ac_word... " >&6; } | |
| 3962 if ${ac_cv_prog_STRIP+:} false; then : | |
| 3963 $as_echo_n "(cached) " >&6 | |
| 3964 else | |
| 3965 if test -n "$STRIP"; then | |
| 3966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
| 3967 else | |
| 3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 3969 for as_dir in $PATH | |
| 3970 do | |
| 3971 IFS=$as_save_IFS | |
| 3972 test -z "$as_dir" && as_dir=. | |
| 3973 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 3975 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
| 3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 3977 break 2 | |
| 3978 fi | |
| 3979 done | |
| 3980 done | |
| 3981 IFS=$as_save_IFS | |
| 3982 | |
| 3983 fi | |
| 3984 fi | |
| 3985 STRIP=$ac_cv_prog_STRIP | |
| 3986 if test -n "$STRIP"; then | |
| 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
| 3988 $as_echo "$STRIP" >&6; } | |
| 3989 else | |
| 3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 3991 $as_echo "no" >&6; } | |
| 3992 fi | |
| 3993 | |
| 3994 | |
| 3995 fi | |
| 3996 if test -z "$ac_cv_prog_STRIP"; then | |
| 3997 ac_ct_STRIP=$STRIP | |
| 3998 # Extract the first word of "strip", so it can be a program name with args. | |
| 3999 set dummy strip; ac_word=$2 | |
| 4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 4001 $as_echo_n "checking for $ac_word... " >&6; } | |
| 4002 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
| 4003 $as_echo_n "(cached) " >&6 | |
| 4004 else | |
| 4005 if test -n "$ac_ct_STRIP"; then | |
| 4006 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
| 4007 else | |
| 4008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4009 for as_dir in $PATH | |
| 4010 do | |
| 4011 IFS=$as_save_IFS | |
| 4012 test -z "$as_dir" && as_dir=. | |
| 4013 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 4015 ac_cv_prog_ac_ct_STRIP="strip" | |
| 4016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 4017 break 2 | |
| 4018 fi | |
| 4019 done | |
| 4020 done | |
| 4021 IFS=$as_save_IFS | |
| 4022 | |
| 4023 fi | |
| 4024 fi | |
| 4025 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
| 4026 if test -n "$ac_ct_STRIP"; then | |
| 4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
| 4028 $as_echo "$ac_ct_STRIP" >&6; } | |
| 4029 else | |
| 4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 4031 $as_echo "no" >&6; } | |
| 4032 fi | |
| 4033 | |
| 4034 if test "x$ac_ct_STRIP" = x; then | |
| 4035 STRIP=":" | |
| 4036 else | |
| 4037 case $cross_compiling:$ac_tool_warned in | |
| 4038 yes:) | |
| 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 4040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 4041 ac_tool_warned=yes ;; | |
| 4042 esac | |
| 4043 STRIP=$ac_ct_STRIP | |
| 4044 fi | |
| 4045 else | |
| 4046 STRIP="$ac_cv_prog_STRIP" | |
| 4047 fi | |
| 4048 | |
| 4049 fi | |
| 4050 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
| 4051 | |
| 4052 rm -rf .tst 2>/dev/null | |
| 4053 mkdir .tst 2>/dev/null | |
| 4054 if test -d .tst; then | |
| 4055 am__leading_dot=. | |
| 4056 else | |
| 4057 am__leading_dot=_ | |
| 4058 fi | |
| 4059 rmdir .tst 2>/dev/null | |
| 4060 | |
| 4061 DEPDIR="${am__leading_dot}deps" | |
| 4062 | |
| 4063 ac_config_commands="$ac_config_commands depfiles" | |
| 4064 | |
| 4065 | |
| 4066 am_make=${MAKE-make} | |
| 4067 cat > confinc << 'END' | |
| 4068 am__doit: | |
| 4069 @echo this is the am__doit target | |
| 4070 .PHONY: am__doit | |
| 4071 END | |
| 4072 # If we don't find an include directive, just comment out the code. | |
| 4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
| 4074 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
| 4075 am__include="#" | |
| 4076 am__quote= | |
| 4077 _am_result=none | |
| 4078 # First try GNU make style include. | |
| 4079 echo "include confinc" > confmf | |
| 4080 # Ignore all kinds of additional output from 'make'. | |
| 4081 case `$am_make -s -f confmf 2> /dev/null` in #( | |
| 4082 *the\ am__doit\ target*) | |
| 4083 am__include=include | |
| 4084 am__quote= | |
| 4085 _am_result=GNU | |
| 4086 ;; | |
| 4087 esac | |
| 4088 # Now try BSD make style include. | |
| 4089 if test "$am__include" = "#"; then | |
| 4090 echo '.include "confinc"' > confmf | |
| 4091 case `$am_make -s -f confmf 2> /dev/null` in #( | |
| 4092 *the\ am__doit\ target*) | |
| 4093 am__include=.include | |
| 4094 am__quote="\"" | |
| 4095 _am_result=BSD | |
| 4096 ;; | |
| 4097 esac | |
| 4098 fi | |
| 4099 | |
| 4100 | |
| 4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
| 4102 $as_echo "$_am_result" >&6; } | |
| 4103 rm -f confinc confmf | |
| 4104 | |
| 4105 # Check whether --enable-dependency-tracking was given. | |
| 4106 if test "${enable_dependency_tracking+set}" = set; then : | |
| 4107 enableval=$enable_dependency_tracking; | |
| 4108 fi | |
| 4109 | |
| 4110 if test "x$enable_dependency_tracking" != xno; then | |
| 4111 am_depcomp="$ac_aux_dir/depcomp" | |
| 4112 AMDEPBACKSLASH='\' | |
| 4113 am__nodep='_no' | |
| 4114 fi | |
| 4115 if test "x$enable_dependency_tracking" != xno; then | |
| 4116 AMDEP_TRUE= | |
| 4117 AMDEP_FALSE='#' | |
| 4118 else | |
| 4119 AMDEP_TRUE='#' | |
| 4120 AMDEP_FALSE= | |
| 4121 fi | |
| 4122 | |
| 4123 | |
| 4124 # Check whether --enable-silent-rules was given. | |
| 4125 if test "${enable_silent_rules+set}" = set; then : | |
| 4126 enableval=$enable_silent_rules; | |
| 4127 fi | |
| 4128 | |
| 4129 case $enable_silent_rules in # ((( | |
| 4130 yes) AM_DEFAULT_VERBOSITY=0;; | |
| 4131 no) AM_DEFAULT_VERBOSITY=1;; | |
| 4132 *) AM_DEFAULT_VERBOSITY=1;; | |
| 4133 esac | |
| 4134 am_make=${MAKE-make} | |
| 4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
| 4136 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
| 4137 if ${am_cv_make_support_nested_variables+:} false; then : | |
| 4138 $as_echo_n "(cached) " >&6 | |
| 4139 else | |
| 4140 if $as_echo 'TRUE=$(BAR$(V)) | |
| 4141 BAR0=false | |
| 4142 BAR1=true | |
| 4143 V=1 | |
| 4144 am__doit: | |
| 4145 @$(TRUE) | |
| 4146 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
| 4147 am_cv_make_support_nested_variables=yes | |
| 4148 else | |
| 4149 am_cv_make_support_nested_variables=no | |
| 4150 fi | |
| 4151 fi | |
| 4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
| 4153 $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
| 4154 if test $am_cv_make_support_nested_variables = yes; then | |
| 4155 AM_V='$(V)' | |
| 4156 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
| 4157 else | |
| 4158 AM_V=$AM_DEFAULT_VERBOSITY | |
| 4159 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
| 4160 fi | |
| 4161 AM_BACKSLASH='\' | |
| 4162 | |
| 4163 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
| 4164 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
| 4165 # is not polluted with repeated "-I." | |
| 4166 am__isrc=' -I$(srcdir)' | |
| 4167 # test to see if srcdir already configured | |
| 4168 if test -f $srcdir/config.status; then | |
| 4169 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
| 4170 fi | |
| 4171 fi | |
| 4172 | |
| 4173 # test whether we have cygpath | |
| 4174 if test -z "$CYGPATH_W"; then | |
| 4175 if (cygpath --version) >/dev/null 2>/dev/null; then | |
| 4176 CYGPATH_W='cygpath -w' | |
| 4177 else | |
| 4178 CYGPATH_W=echo | |
| 4179 fi | |
| 4180 fi | |
| 4181 | |
| 4182 | |
| 4183 # Define the identity of the package. | |
| 4184 PACKAGE='GEMBASSY' | |
| 4185 VERSION='1.0.3' | |
| 4186 | |
| 4187 | |
| 4188 cat >>confdefs.h <<_ACEOF | |
| 4189 #define PACKAGE "$PACKAGE" | |
| 4190 _ACEOF | |
| 4191 | |
| 4192 | |
| 4193 cat >>confdefs.h <<_ACEOF | |
| 4194 #define VERSION "$VERSION" | |
| 4195 _ACEOF | |
| 4196 | |
| 4197 # Some tools Automake needs. | |
| 4198 | |
| 4199 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
| 4200 | |
| 4201 | |
| 4202 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
| 4203 | |
| 4204 | |
| 4205 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
| 4206 | |
| 4207 | |
| 4208 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
| 4209 | |
| 4210 | |
| 4211 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
| 4212 | |
| 4213 # For better backward compatibility. To be removed once Automake 1.9.x | |
| 4214 # dies out for good. For more background, see: | |
| 4215 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
| 4216 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
| 4217 mkdir_p='$(MKDIR_P)' | |
| 4218 | |
| 4219 # We need awk for the "check" target (and possibly the TAP driver). The | |
| 4220 # system "awk" is bad on some platforms. | |
| 4221 # Always define AMTAR for backward compatibility. Yes, it's still used | |
| 4222 # in the wild :-( We should find a proper way to deprecate it ... | |
| 4223 AMTAR='$${TAR-tar}' | |
| 4224 | |
| 4225 | |
| 4226 # We'll loop over all known methods to create a tar archive until one works. | |
| 4227 _am_tools='gnutar pax cpio none' | |
| 4228 | |
| 4229 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
| 4230 | |
| 4231 | |
| 4232 | |
| 4233 | |
| 4234 | |
| 4235 depcc="$CC" am_compiler_list= | |
| 4236 | |
| 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
| 4238 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
| 4239 if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
| 4240 $as_echo_n "(cached) " >&6 | |
| 4241 else | |
| 4242 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
| 4243 # We make a subdir and do the tests there. Otherwise we can end up | |
| 4244 # making bogus files that we don't know about and never remove. For | |
| 4245 # instance it was reported that on HP-UX the gcc test will end up | |
| 4246 # making a dummy file named 'D' -- because '-MD' means "put the output | |
| 4247 # in D". | |
| 4248 rm -rf conftest.dir | |
| 4249 mkdir conftest.dir | |
| 4250 # Copy depcomp to subdir because otherwise we won't find it if we're | |
| 4251 # using a relative directory. | |
| 4252 cp "$am_depcomp" conftest.dir | |
| 4253 cd conftest.dir | |
| 4254 # We will build objects and dependencies in a subdirectory because | |
| 4255 # it helps to detect inapplicable dependency modes. For instance | |
| 4256 # both Tru64's cc and ICC support -MD to output dependencies as a | |
| 4257 # side effect of compilation, but ICC will put the dependencies in | |
| 4258 # the current directory while Tru64 will put them in the object | |
| 4259 # directory. | |
| 4260 mkdir sub | |
| 4261 | |
| 4262 am_cv_CC_dependencies_compiler_type=none | |
| 4263 if test "$am_compiler_list" = ""; then | |
| 4264 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
| 4265 fi | |
| 4266 am__universal=false | |
| 4267 case " $depcc " in #( | |
| 4268 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
| 4269 esac | |
| 4270 | |
| 4271 for depmode in $am_compiler_list; do | |
| 4272 # Setup a source with many dependencies, because some compilers | |
| 4273 # like to wrap large dependency lists on column 80 (with \), and | |
| 4274 # we should not choose a depcomp mode which is confused by this. | |
| 4275 # | |
| 4276 # We need to recreate these files for each test, as the compiler may | |
| 4277 # overwrite some of them when testing with obscure command lines. | |
| 4278 # This happens at least with the AIX C compiler. | |
| 4279 : > sub/conftest.c | |
| 4280 for i in 1 2 3 4 5 6; do | |
| 4281 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
| 4282 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
| 4283 # Solaris 10 /bin/sh. | |
| 4284 echo '/* dummy */' > sub/conftst$i.h | |
| 4285 done | |
| 4286 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
| 4287 | |
| 4288 # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
| 4289 # mode. It turns out that the SunPro C++ compiler does not properly | |
| 4290 # handle '-M -o', and we need to detect this. Also, some Intel | |
| 4291 # versions had trouble with output in subdirs. | |
| 4292 am__obj=sub/conftest.${OBJEXT-o} | |
| 4293 am__minus_obj="-o $am__obj" | |
| 4294 case $depmode in | |
| 4295 gcc) | |
| 4296 # This depmode causes a compiler race in universal mode. | |
| 4297 test "$am__universal" = false || continue | |
| 4298 ;; | |
| 4299 nosideeffect) | |
| 4300 # After this tag, mechanisms are not by side-effect, so they'll | |
| 4301 # only be used when explicitly requested. | |
| 4302 if test "x$enable_dependency_tracking" = xyes; then | |
| 4303 continue | |
| 4304 else | |
| 4305 break | |
| 4306 fi | |
| 4307 ;; | |
| 4308 msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
| 4309 # This compiler won't grok '-c -o', but also, the minuso test has | |
| 4310 # not run yet. These depmodes are late enough in the game, and | |
| 4311 # so weak that their functioning should not be impacted. | |
| 4312 am__obj=conftest.${OBJEXT-o} | |
| 4313 am__minus_obj= | |
| 4314 ;; | |
| 4315 none) break ;; | |
| 4316 esac | |
| 4317 if depmode=$depmode \ | |
| 4318 source=sub/conftest.c object=$am__obj \ | |
| 4319 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
| 4320 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
| 4321 >/dev/null 2>conftest.err && | |
| 4322 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
| 4323 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
| 4324 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
| 4325 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
| 4326 # icc doesn't choke on unknown options, it will just issue warnings | |
| 4327 # or remarks (even with -Werror). So we grep stderr for any message | |
| 4328 # that says an option was ignored or not supported. | |
| 4329 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
| 4330 # icc: Command line warning: ignoring option '-M'; no argument required | |
| 4331 # The diagnosis changed in icc 8.0: | |
| 4332 # icc: Command line remark: option '-MP' not supported | |
| 4333 if (grep 'ignoring option' conftest.err || | |
| 4334 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
| 4335 am_cv_CC_dependencies_compiler_type=$depmode | |
| 4336 break | |
| 4337 fi | |
| 4338 fi | |
| 4339 done | |
| 4340 | |
| 4341 cd .. | |
| 4342 rm -rf conftest.dir | |
| 4343 else | |
| 4344 am_cv_CC_dependencies_compiler_type=none | |
| 4345 fi | |
| 4346 | |
| 4347 fi | |
| 4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
| 4349 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
| 4350 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
| 4351 | |
| 4352 if | |
| 4353 test "x$enable_dependency_tracking" != xno \ | |
| 4354 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
| 4355 am__fastdepCC_TRUE= | |
| 4356 am__fastdepCC_FALSE='#' | |
| 4357 else | |
| 4358 am__fastdepCC_TRUE='#' | |
| 4359 am__fastdepCC_FALSE= | |
| 4360 fi | |
| 4361 | |
| 4362 | |
| 4363 depcc="$CXX" am_compiler_list= | |
| 4364 | |
| 4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
| 4366 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
| 4367 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | |
| 4368 $as_echo_n "(cached) " >&6 | |
| 4369 else | |
| 4370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
| 4371 # We make a subdir and do the tests there. Otherwise we can end up | |
| 4372 # making bogus files that we don't know about and never remove. For | |
| 4373 # instance it was reported that on HP-UX the gcc test will end up | |
| 4374 # making a dummy file named 'D' -- because '-MD' means "put the output | |
| 4375 # in D". | |
| 4376 rm -rf conftest.dir | |
| 4377 mkdir conftest.dir | |
| 4378 # Copy depcomp to subdir because otherwise we won't find it if we're | |
| 4379 # using a relative directory. | |
| 4380 cp "$am_depcomp" conftest.dir | |
| 4381 cd conftest.dir | |
| 4382 # We will build objects and dependencies in a subdirectory because | |
| 4383 # it helps to detect inapplicable dependency modes. For instance | |
| 4384 # both Tru64's cc and ICC support -MD to output dependencies as a | |
| 4385 # side effect of compilation, but ICC will put the dependencies in | |
| 4386 # the current directory while Tru64 will put them in the object | |
| 4387 # directory. | |
| 4388 mkdir sub | |
| 4389 | |
| 4390 am_cv_CXX_dependencies_compiler_type=none | |
| 4391 if test "$am_compiler_list" = ""; then | |
| 4392 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
| 4393 fi | |
| 4394 am__universal=false | |
| 4395 case " $depcc " in #( | |
| 4396 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
| 4397 esac | |
| 4398 | |
| 4399 for depmode in $am_compiler_list; do | |
| 4400 # Setup a source with many dependencies, because some compilers | |
| 4401 # like to wrap large dependency lists on column 80 (with \), and | |
| 4402 # we should not choose a depcomp mode which is confused by this. | |
| 4403 # | |
| 4404 # We need to recreate these files for each test, as the compiler may | |
| 4405 # overwrite some of them when testing with obscure command lines. | |
| 4406 # This happens at least with the AIX C compiler. | |
| 4407 : > sub/conftest.c | |
| 4408 for i in 1 2 3 4 5 6; do | |
| 4409 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
| 4410 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
| 4411 # Solaris 10 /bin/sh. | |
| 4412 echo '/* dummy */' > sub/conftst$i.h | |
| 4413 done | |
| 4414 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
| 4415 | |
| 4416 # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
| 4417 # mode. It turns out that the SunPro C++ compiler does not properly | |
| 4418 # handle '-M -o', and we need to detect this. Also, some Intel | |
| 4419 # versions had trouble with output in subdirs. | |
| 4420 am__obj=sub/conftest.${OBJEXT-o} | |
| 4421 am__minus_obj="-o $am__obj" | |
| 4422 case $depmode in | |
| 4423 gcc) | |
| 4424 # This depmode causes a compiler race in universal mode. | |
| 4425 test "$am__universal" = false || continue | |
| 4426 ;; | |
| 4427 nosideeffect) | |
| 4428 # After this tag, mechanisms are not by side-effect, so they'll | |
| 4429 # only be used when explicitly requested. | |
| 4430 if test "x$enable_dependency_tracking" = xyes; then | |
| 4431 continue | |
| 4432 else | |
| 4433 break | |
| 4434 fi | |
| 4435 ;; | |
| 4436 msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
| 4437 # This compiler won't grok '-c -o', but also, the minuso test has | |
| 4438 # not run yet. These depmodes are late enough in the game, and | |
| 4439 # so weak that their functioning should not be impacted. | |
| 4440 am__obj=conftest.${OBJEXT-o} | |
| 4441 am__minus_obj= | |
| 4442 ;; | |
| 4443 none) break ;; | |
| 4444 esac | |
| 4445 if depmode=$depmode \ | |
| 4446 source=sub/conftest.c object=$am__obj \ | |
| 4447 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
| 4448 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
| 4449 >/dev/null 2>conftest.err && | |
| 4450 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
| 4451 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
| 4452 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
| 4453 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
| 4454 # icc doesn't choke on unknown options, it will just issue warnings | |
| 4455 # or remarks (even with -Werror). So we grep stderr for any message | |
| 4456 # that says an option was ignored or not supported. | |
| 4457 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
| 4458 # icc: Command line warning: ignoring option '-M'; no argument required | |
| 4459 # The diagnosis changed in icc 8.0: | |
| 4460 # icc: Command line remark: option '-MP' not supported | |
| 4461 if (grep 'ignoring option' conftest.err || | |
| 4462 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
| 4463 am_cv_CXX_dependencies_compiler_type=$depmode | |
| 4464 break | |
| 4465 fi | |
| 4466 fi | |
| 4467 done | |
| 4468 | |
| 4469 cd .. | |
| 4470 rm -rf conftest.dir | |
| 4471 else | |
| 4472 am_cv_CXX_dependencies_compiler_type=none | |
| 4473 fi | |
| 4474 | |
| 4475 fi | |
| 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
| 4477 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
| 4478 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
| 4479 | |
| 4480 if | |
| 4481 test "x$enable_dependency_tracking" != xno \ | |
| 4482 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
| 4483 am__fastdepCXX_TRUE= | |
| 4484 am__fastdepCXX_FALSE='#' | |
| 4485 else | |
| 4486 am__fastdepCXX_TRUE='#' | |
| 4487 am__fastdepCXX_FALSE= | |
| 4488 fi | |
| 4489 | |
| 4490 | |
| 4491 | |
| 4492 # POSIX will say in a future version that running "rm -f" with no argument | |
| 4493 # is OK; and we want to be able to make that assumption in our Makefile | |
| 4494 # recipes. So use an aggressive probe to check that the usage we want is | |
| 4495 # actually supported "in the wild" to an acceptable degree. | |
| 4496 # See automake bug#10828. | |
| 4497 # To make any issue more visible, cause the running configure to be aborted | |
| 4498 # by default if the 'rm' program in use doesn't match our expectations; the | |
| 4499 # user can still override this though. | |
| 4500 if rm -f && rm -fr && rm -rf; then : OK; else | |
| 4501 cat >&2 <<'END' | |
| 4502 Oops! | |
| 4503 | |
| 4504 Your 'rm' program seems unable to run without file operands specified | |
| 4505 on the command line, even when the '-f' option is present. This is contrary | |
| 4506 to the behaviour of most rm programs out there, and not conforming with | |
| 4507 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
| 4508 | |
| 4509 Please tell bug-automake@gnu.org about your system, including the value | |
| 4510 of your $PATH and any error possibly output before this message. This | |
| 4511 can help us improve future automake versions. | |
| 4512 | |
| 4513 END | |
| 4514 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
| 4515 echo 'Configuration will proceed anyway, since you have set the' >&2 | |
| 4516 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
| 4517 echo >&2 | |
| 4518 else | |
| 4519 cat >&2 <<'END' | |
| 4520 Aborting the configuration process, to ensure you take notice of the issue. | |
| 4521 | |
| 4522 You can download and install GNU coreutils to get an 'rm' implementation | |
| 4523 that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
| 4524 | |
| 4525 If you want to complete the configuration process using your problematic | |
| 4526 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
| 4527 to "yes", and re-run configure. | |
| 4528 | |
| 4529 END | |
| 4530 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
| 4531 fi | |
| 4532 fi | |
| 4533 | |
| 4534 | |
| 4535 # Use libtool to make a shared library. | |
| 4536 case `pwd` in | |
| 4537 *\ * | *\ *) | |
| 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
| 4539 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
| 4540 esac | |
| 4541 | |
| 4542 | |
| 4543 | |
| 4544 macro_version='2.4.5' | |
| 4545 macro_revision='2.4.5' | |
| 4546 | |
| 4547 | |
| 4548 | |
| 4549 | |
| 4550 | |
| 4551 | |
| 4552 | |
| 4553 | |
| 4554 | |
| 4555 | |
| 4556 | |
| 4557 | |
| 4558 | |
| 4559 ltmain=$ac_aux_dir/ltmain.sh | |
| 4560 | |
| 4561 # Make sure we can run config.sub. | |
| 4562 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
| 4563 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
| 4564 | |
| 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
| 4566 $as_echo_n "checking build system type... " >&6; } | |
| 4567 if ${ac_cv_build+:} false; then : | |
| 4568 $as_echo_n "(cached) " >&6 | |
| 4569 else | |
| 4570 ac_build_alias=$build_alias | |
| 4571 test "x$ac_build_alias" = x && | |
| 4572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
| 4573 test "x$ac_build_alias" = x && | |
| 4574 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
| 4575 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
| 4576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
| 4577 | |
| 4578 fi | |
| 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
| 4580 $as_echo "$ac_cv_build" >&6; } | |
| 4581 case $ac_cv_build in | |
| 4582 *-*-*) ;; | |
| 4583 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
| 4584 esac | |
| 4585 build=$ac_cv_build | |
| 4586 ac_save_IFS=$IFS; IFS='-' | |
| 4587 set x $ac_cv_build | |
| 4588 shift | |
| 4589 build_cpu=$1 | |
| 4590 build_vendor=$2 | |
| 4591 shift; shift | |
| 4592 # Remember, the first character of IFS is used to create $*, | |
| 4593 # except with old shells: | |
| 4594 build_os=$* | |
| 4595 IFS=$ac_save_IFS | |
| 4596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
| 4597 | |
| 4598 | |
| 4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
| 4600 $as_echo_n "checking host system type... " >&6; } | |
| 4601 if ${ac_cv_host+:} false; then : | |
| 4602 $as_echo_n "(cached) " >&6 | |
| 4603 else | |
| 4604 if test "x$host_alias" = x; then | |
| 4605 ac_cv_host=$ac_cv_build | |
| 4606 else | |
| 4607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
| 4608 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
| 4609 fi | |
| 4610 | |
| 4611 fi | |
| 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
| 4613 $as_echo "$ac_cv_host" >&6; } | |
| 4614 case $ac_cv_host in | |
| 4615 *-*-*) ;; | |
| 4616 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
| 4617 esac | |
| 4618 host=$ac_cv_host | |
| 4619 ac_save_IFS=$IFS; IFS='-' | |
| 4620 set x $ac_cv_host | |
| 4621 shift | |
| 4622 host_cpu=$1 | |
| 4623 host_vendor=$2 | |
| 4624 shift; shift | |
| 4625 # Remember, the first character of IFS is used to create $*, | |
| 4626 # except with old shells: | |
| 4627 host_os=$* | |
| 4628 IFS=$ac_save_IFS | |
| 4629 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
| 4630 | |
| 4631 | |
| 4632 # Backslashify metacharacters that are still active within | |
| 4633 # double-quoted strings. | |
| 4634 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
| 4635 | |
| 4636 # Same as above, but do not quote variable references. | |
| 4637 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
| 4638 | |
| 4639 # Sed substitution to delay expansion of an escaped shell variable in a | |
| 4640 # double_quote_subst'ed string. | |
| 4641 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
| 4642 | |
| 4643 # Sed substitution to delay expansion of an escaped single quote. | |
| 4644 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
| 4645 | |
| 4646 # Sed substitution to avoid accidental globbing in evaled expressions | |
| 4647 no_glob_subst='s/\*/\\\*/g' | |
| 4648 | |
| 4649 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
| 4650 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
| 4651 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
| 4652 | |
| 4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
| 4654 $as_echo_n "checking how to print strings... " >&6; } | |
| 4655 # Test print first, because it will be a builtin if present. | |
| 4656 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
| 4657 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
| 4658 ECHO='print -r --' | |
| 4659 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
| 4660 ECHO='printf %s\n' | |
| 4661 else | |
| 4662 # Use this function as a fallback that always works. | |
| 4663 func_fallback_echo () | |
| 4664 { | |
| 4665 eval 'cat <<_LTECHO_EOF | |
| 4666 $1 | |
| 4667 _LTECHO_EOF' | |
| 4668 } | |
| 4669 ECHO='func_fallback_echo' | |
| 4670 fi | |
| 4671 | |
| 4672 # func_echo_all arg... | |
| 4673 # Invoke $ECHO with all args, space-separated. | |
| 4674 func_echo_all () | |
| 4675 { | |
| 4676 $ECHO "" | |
| 4677 } | |
| 4678 | |
| 4679 case $ECHO in | |
| 4680 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
| 4681 $as_echo "printf" >&6; } ;; | |
| 4682 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
| 4683 $as_echo "print -r" >&6; } ;; | |
| 4684 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
| 4685 $as_echo "cat" >&6; } ;; | |
| 4686 esac | |
| 4687 | |
| 4688 | |
| 4689 | |
| 4690 | |
| 4691 | |
| 4692 | |
| 4693 | |
| 4694 | |
| 4695 | |
| 4696 | |
| 4697 | |
| 4698 | |
| 4699 | |
| 4700 | |
| 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
| 4702 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
| 4703 if ${ac_cv_path_SED+:} false; then : | |
| 4704 $as_echo_n "(cached) " >&6 | |
| 4705 else | |
| 4706 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
| 4707 for ac_i in 1 2 3 4 5 6 7; do | |
| 4708 ac_script="$ac_script$as_nl$ac_script" | |
| 4709 done | |
| 4710 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
| 4711 { ac_script=; unset ac_script;} | |
| 4712 if test -z "$SED"; then | |
| 4713 ac_path_SED_found=false | |
| 4714 # Loop through the user's path and test for each of PROGNAME-LIST | |
| 4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4716 for as_dir in $PATH | |
| 4717 do | |
| 4718 IFS=$as_save_IFS | |
| 4719 test -z "$as_dir" && as_dir=. | |
| 4720 for ac_prog in sed gsed; do | |
| 4721 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4722 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
| 4723 as_fn_executable_p "$ac_path_SED" || continue | |
| 4724 # Check for GNU ac_path_SED and select it if it is found. | |
| 4725 # Check for GNU $ac_path_SED | |
| 4726 case `"$ac_path_SED" --version 2>&1` in | |
| 4727 *GNU*) | |
| 4728 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
| 4729 *) | |
| 4730 ac_count=0 | |
| 4731 $as_echo_n 0123456789 >"conftest.in" | |
| 4732 while : | |
| 4733 do | |
| 4734 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
| 4735 mv "conftest.tmp" "conftest.in" | |
| 4736 cp "conftest.in" "conftest.nl" | |
| 4737 $as_echo '' >> "conftest.nl" | |
| 4738 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
| 4739 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
| 4740 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
| 4741 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
| 4742 # Best one so far, save it but keep looking for a better one | |
| 4743 ac_cv_path_SED="$ac_path_SED" | |
| 4744 ac_path_SED_max=$ac_count | |
| 4745 fi | |
| 4746 # 10*(2^10) chars as input seems more than enough | |
| 4747 test $ac_count -gt 10 && break | |
| 4748 done | |
| 4749 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
| 4750 esac | |
| 4751 | |
| 4752 $ac_path_SED_found && break 3 | |
| 4753 done | |
| 4754 done | |
| 4755 done | |
| 4756 IFS=$as_save_IFS | |
| 4757 if test -z "$ac_cv_path_SED"; then | |
| 4758 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
| 4759 fi | |
| 4760 else | |
| 4761 ac_cv_path_SED=$SED | |
| 4762 fi | |
| 4763 | |
| 4764 fi | |
| 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
| 4766 $as_echo "$ac_cv_path_SED" >&6; } | |
| 4767 SED="$ac_cv_path_SED" | |
| 4768 rm -f conftest.sed | |
| 4769 | |
| 4770 test -z "$SED" && SED=sed | |
| 4771 Xsed="$SED -e 1s/^X//" | |
| 4772 | |
| 4773 | |
| 4774 | |
| 4775 | |
| 4776 | |
| 4777 | |
| 4778 | |
| 4779 | |
| 4780 | |
| 4781 | |
| 4782 | |
| 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
| 4784 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
| 4785 if ${ac_cv_path_GREP+:} false; then : | |
| 4786 $as_echo_n "(cached) " >&6 | |
| 4787 else | |
| 4788 if test -z "$GREP"; then | |
| 4789 ac_path_GREP_found=false | |
| 4790 # Loop through the user's path and test for each of PROGNAME-LIST | |
| 4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4792 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
| 4793 do | |
| 4794 IFS=$as_save_IFS | |
| 4795 test -z "$as_dir" && as_dir=. | |
| 4796 for ac_prog in grep ggrep; do | |
| 4797 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4798 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
| 4799 as_fn_executable_p "$ac_path_GREP" || continue | |
| 4800 # Check for GNU ac_path_GREP and select it if it is found. | |
| 4801 # Check for GNU $ac_path_GREP | |
| 4802 case `"$ac_path_GREP" --version 2>&1` in | |
| 4803 *GNU*) | |
| 4804 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
| 4805 *) | |
| 4806 ac_count=0 | |
| 4807 $as_echo_n 0123456789 >"conftest.in" | |
| 4808 while : | |
| 4809 do | |
| 4810 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
| 4811 mv "conftest.tmp" "conftest.in" | |
| 4812 cp "conftest.in" "conftest.nl" | |
| 4813 $as_echo 'GREP' >> "conftest.nl" | |
| 4814 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
| 4815 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
| 4816 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
| 4817 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
| 4818 # Best one so far, save it but keep looking for a better one | |
| 4819 ac_cv_path_GREP="$ac_path_GREP" | |
| 4820 ac_path_GREP_max=$ac_count | |
| 4821 fi | |
| 4822 # 10*(2^10) chars as input seems more than enough | |
| 4823 test $ac_count -gt 10 && break | |
| 4824 done | |
| 4825 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
| 4826 esac | |
| 4827 | |
| 4828 $ac_path_GREP_found && break 3 | |
| 4829 done | |
| 4830 done | |
| 4831 done | |
| 4832 IFS=$as_save_IFS | |
| 4833 if test -z "$ac_cv_path_GREP"; then | |
| 4834 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
| 4835 fi | |
| 4836 else | |
| 4837 ac_cv_path_GREP=$GREP | |
| 4838 fi | |
| 4839 | |
| 4840 fi | |
| 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
| 4842 $as_echo "$ac_cv_path_GREP" >&6; } | |
| 4843 GREP="$ac_cv_path_GREP" | |
| 4844 | |
| 4845 | |
| 4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
| 4847 $as_echo_n "checking for egrep... " >&6; } | |
| 4848 if ${ac_cv_path_EGREP+:} false; then : | |
| 4849 $as_echo_n "(cached) " >&6 | |
| 4850 else | |
| 4851 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
| 4852 then ac_cv_path_EGREP="$GREP -E" | |
| 4853 else | |
| 4854 if test -z "$EGREP"; then | |
| 4855 ac_path_EGREP_found=false | |
| 4856 # Loop through the user's path and test for each of PROGNAME-LIST | |
| 4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
| 4859 do | |
| 4860 IFS=$as_save_IFS | |
| 4861 test -z "$as_dir" && as_dir=. | |
| 4862 for ac_prog in egrep; do | |
| 4863 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4864 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
| 4865 as_fn_executable_p "$ac_path_EGREP" || continue | |
| 4866 # Check for GNU ac_path_EGREP and select it if it is found. | |
| 4867 # Check for GNU $ac_path_EGREP | |
| 4868 case `"$ac_path_EGREP" --version 2>&1` in | |
| 4869 *GNU*) | |
| 4870 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
| 4871 *) | |
| 4872 ac_count=0 | |
| 4873 $as_echo_n 0123456789 >"conftest.in" | |
| 4874 while : | |
| 4875 do | |
| 4876 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
| 4877 mv "conftest.tmp" "conftest.in" | |
| 4878 cp "conftest.in" "conftest.nl" | |
| 4879 $as_echo 'EGREP' >> "conftest.nl" | |
| 4880 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
| 4881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
| 4882 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
| 4883 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
| 4884 # Best one so far, save it but keep looking for a better one | |
| 4885 ac_cv_path_EGREP="$ac_path_EGREP" | |
| 4886 ac_path_EGREP_max=$ac_count | |
| 4887 fi | |
| 4888 # 10*(2^10) chars as input seems more than enough | |
| 4889 test $ac_count -gt 10 && break | |
| 4890 done | |
| 4891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
| 4892 esac | |
| 4893 | |
| 4894 $ac_path_EGREP_found && break 3 | |
| 4895 done | |
| 4896 done | |
| 4897 done | |
| 4898 IFS=$as_save_IFS | |
| 4899 if test -z "$ac_cv_path_EGREP"; then | |
| 4900 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
| 4901 fi | |
| 4902 else | |
| 4903 ac_cv_path_EGREP=$EGREP | |
| 4904 fi | |
| 4905 | |
| 4906 fi | |
| 4907 fi | |
| 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
| 4909 $as_echo "$ac_cv_path_EGREP" >&6; } | |
| 4910 EGREP="$ac_cv_path_EGREP" | |
| 4911 | |
| 4912 | |
| 4913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
| 4914 $as_echo_n "checking for fgrep... " >&6; } | |
| 4915 if ${ac_cv_path_FGREP+:} false; then : | |
| 4916 $as_echo_n "(cached) " >&6 | |
| 4917 else | |
| 4918 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
| 4919 then ac_cv_path_FGREP="$GREP -F" | |
| 4920 else | |
| 4921 if test -z "$FGREP"; then | |
| 4922 ac_path_FGREP_found=false | |
| 4923 # Loop through the user's path and test for each of PROGNAME-LIST | |
| 4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 4925 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
| 4926 do | |
| 4927 IFS=$as_save_IFS | |
| 4928 test -z "$as_dir" && as_dir=. | |
| 4929 for ac_prog in fgrep; do | |
| 4930 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 4931 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
| 4932 as_fn_executable_p "$ac_path_FGREP" || continue | |
| 4933 # Check for GNU ac_path_FGREP and select it if it is found. | |
| 4934 # Check for GNU $ac_path_FGREP | |
| 4935 case `"$ac_path_FGREP" --version 2>&1` in | |
| 4936 *GNU*) | |
| 4937 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
| 4938 *) | |
| 4939 ac_count=0 | |
| 4940 $as_echo_n 0123456789 >"conftest.in" | |
| 4941 while : | |
| 4942 do | |
| 4943 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
| 4944 mv "conftest.tmp" "conftest.in" | |
| 4945 cp "conftest.in" "conftest.nl" | |
| 4946 $as_echo 'FGREP' >> "conftest.nl" | |
| 4947 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
| 4948 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
| 4949 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
| 4950 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
| 4951 # Best one so far, save it but keep looking for a better one | |
| 4952 ac_cv_path_FGREP="$ac_path_FGREP" | |
| 4953 ac_path_FGREP_max=$ac_count | |
| 4954 fi | |
| 4955 # 10*(2^10) chars as input seems more than enough | |
| 4956 test $ac_count -gt 10 && break | |
| 4957 done | |
| 4958 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
| 4959 esac | |
| 4960 | |
| 4961 $ac_path_FGREP_found && break 3 | |
| 4962 done | |
| 4963 done | |
| 4964 done | |
| 4965 IFS=$as_save_IFS | |
| 4966 if test -z "$ac_cv_path_FGREP"; then | |
| 4967 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
| 4968 fi | |
| 4969 else | |
| 4970 ac_cv_path_FGREP=$FGREP | |
| 4971 fi | |
| 4972 | |
| 4973 fi | |
| 4974 fi | |
| 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
| 4976 $as_echo "$ac_cv_path_FGREP" >&6; } | |
| 4977 FGREP="$ac_cv_path_FGREP" | |
| 4978 | |
| 4979 | |
| 4980 test -z "$GREP" && GREP=grep | |
| 4981 | |
| 4982 | |
| 4983 | |
| 4984 | |
| 4985 | |
| 4986 | |
| 4987 | |
| 4988 | |
| 4989 | |
| 4990 | |
| 4991 | |
| 4992 | |
| 4993 | |
| 4994 | |
| 4995 | |
| 4996 | |
| 4997 | |
| 4998 | |
| 4999 | |
| 5000 # Check whether --with-gnu-ld was given. | |
| 5001 if test "${with_gnu_ld+set}" = set; then : | |
| 5002 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
| 5003 else | |
| 5004 with_gnu_ld=no | |
| 5005 fi | |
| 5006 | |
| 5007 ac_prog=ld | |
| 5008 if test yes = "$GCC"; then | |
| 5009 # Check if gcc -print-prog-name=ld gives a path. | |
| 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
| 5011 $as_echo_n "checking for ld used by $CC... " >&6; } | |
| 5012 case $host in | |
| 5013 *-*-mingw*) | |
| 5014 # gcc leaves a trailing carriage return, which upsets mingw | |
| 5015 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
| 5016 *) | |
| 5017 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
| 5018 esac | |
| 5019 case $ac_prog in | |
| 5020 # Accept absolute paths. | |
| 5021 [\\/]* | ?:[\\/]*) | |
| 5022 re_direlt='/[^/][^/]*/\.\./' | |
| 5023 # Canonicalize the pathname of ld | |
| 5024 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
| 5025 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
| 5026 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
| 5027 done | |
| 5028 test -z "$LD" && LD=$ac_prog | |
| 5029 ;; | |
| 5030 "") | |
| 5031 # If it fails, then pretend we aren't using GCC. | |
| 5032 ac_prog=ld | |
| 5033 ;; | |
| 5034 *) | |
| 5035 # If it is relative, then search for the first ld in PATH. | |
| 5036 with_gnu_ld=unknown | |
| 5037 ;; | |
| 5038 esac | |
| 5039 elif test yes = "$with_gnu_ld"; then | |
| 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
| 5041 $as_echo_n "checking for GNU ld... " >&6; } | |
| 5042 else | |
| 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
| 5044 $as_echo_n "checking for non-GNU ld... " >&6; } | |
| 5045 fi | |
| 5046 if ${lt_cv_path_LD+:} false; then : | |
| 5047 $as_echo_n "(cached) " >&6 | |
| 5048 else | |
| 5049 if test -z "$LD"; then | |
| 5050 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
| 5051 for ac_dir in $PATH; do | |
| 5052 IFS=$lt_save_ifs | |
| 5053 test -z "$ac_dir" && ac_dir=. | |
| 5054 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
| 5055 lt_cv_path_LD=$ac_dir/$ac_prog | |
| 5056 # Check to see if the program is GNU ld. I'd rather use --version, | |
| 5057 # but apparently some variants of GNU ld only accept -v. | |
| 5058 # Break only if it was the GNU/non-GNU ld that we prefer. | |
| 5059 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
| 5060 *GNU* | *'with BFD'*) | |
| 5061 test no != "$with_gnu_ld" && break | |
| 5062 ;; | |
| 5063 *) | |
| 5064 test yes != "$with_gnu_ld" && break | |
| 5065 ;; | |
| 5066 esac | |
| 5067 fi | |
| 5068 done | |
| 5069 IFS=$lt_save_ifs | |
| 5070 else | |
| 5071 lt_cv_path_LD=$LD # Let the user override the test with a path. | |
| 5072 fi | |
| 5073 fi | |
| 5074 | |
| 5075 LD=$lt_cv_path_LD | |
| 5076 if test -n "$LD"; then | |
| 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
| 5078 $as_echo "$LD" >&6; } | |
| 5079 else | |
| 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 5081 $as_echo "no" >&6; } | |
| 5082 fi | |
| 5083 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
| 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
| 5085 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
| 5086 if ${lt_cv_prog_gnu_ld+:} false; then : | |
| 5087 $as_echo_n "(cached) " >&6 | |
| 5088 else | |
| 5089 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
| 5090 case `$LD -v 2>&1 </dev/null` in | |
| 5091 *GNU* | *'with BFD'*) | |
| 5092 lt_cv_prog_gnu_ld=yes | |
| 5093 ;; | |
| 5094 *) | |
| 5095 lt_cv_prog_gnu_ld=no | |
| 5096 ;; | |
| 5097 esac | |
| 5098 fi | |
| 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
| 5100 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
| 5101 with_gnu_ld=$lt_cv_prog_gnu_ld | |
| 5102 | |
| 5103 | |
| 5104 | |
| 5105 | |
| 5106 | |
| 5107 | |
| 5108 | |
| 5109 | |
| 5110 | |
| 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
| 5112 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
| 5113 if ${lt_cv_path_NM+:} false; then : | |
| 5114 $as_echo_n "(cached) " >&6 | |
| 5115 else | |
| 5116 if test -n "$NM"; then | |
| 5117 # Let the user override the test. | |
| 5118 lt_cv_path_NM=$NM | |
| 5119 else | |
| 5120 lt_nm_to_check=${ac_tool_prefix}nm | |
| 5121 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
| 5122 lt_nm_to_check="$lt_nm_to_check nm" | |
| 5123 fi | |
| 5124 for lt_tmp_nm in $lt_nm_to_check; do | |
| 5125 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
| 5126 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
| 5127 IFS=$lt_save_ifs | |
| 5128 test -z "$ac_dir" && ac_dir=. | |
| 5129 tmp_nm=$ac_dir/$lt_tmp_nm | |
| 5130 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then | |
| 5131 # Check to see if the nm accepts a BSD-compat flag. | |
| 5132 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: | |
| 5133 # nm: unknown option "B" ignored | |
| 5134 # Tru64's nm complains that /dev/null is an invalid object file | |
| 5135 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty | |
| 5136 case $build_os in | |
| 5137 mingw*) lt_bad_file=conftest.nm/nofile ;; | |
| 5138 *) lt_bad_file=/dev/null ;; | |
| 5139 esac | |
| 5140 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in | |
| 5141 *$lt_bad_file* | *'Invalid file or object type'*) | |
| 5142 lt_cv_path_NM="$tmp_nm -B" | |
| 5143 break 2 | |
| 5144 ;; | |
| 5145 *) | |
| 5146 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
| 5147 */dev/null*) | |
| 5148 lt_cv_path_NM="$tmp_nm -p" | |
| 5149 break 2 | |
| 5150 ;; | |
| 5151 *) | |
| 5152 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
| 5153 continue # so that we can try to find one that supports BSD flags | |
| 5154 ;; | |
| 5155 esac | |
| 5156 ;; | |
| 5157 esac | |
| 5158 fi | |
| 5159 done | |
| 5160 IFS=$lt_save_ifs | |
| 5161 done | |
| 5162 : ${lt_cv_path_NM=no} | |
| 5163 fi | |
| 5164 fi | |
| 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
| 5166 $as_echo "$lt_cv_path_NM" >&6; } | |
| 5167 if test no != "$lt_cv_path_NM"; then | |
| 5168 NM=$lt_cv_path_NM | |
| 5169 else | |
| 5170 # Didn't find any BSD compatible name lister, look for dumpbin. | |
| 5171 if test -n "$DUMPBIN"; then : | |
| 5172 # Let the user override the test. | |
| 5173 else | |
| 5174 if test -n "$ac_tool_prefix"; then | |
| 5175 for ac_prog in dumpbin "link -dump" | |
| 5176 do | |
| 5177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
| 5178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
| 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 5180 $as_echo_n "checking for $ac_word... " >&6; } | |
| 5181 if ${ac_cv_prog_DUMPBIN+:} false; then : | |
| 5182 $as_echo_n "(cached) " >&6 | |
| 5183 else | |
| 5184 if test -n "$DUMPBIN"; then | |
| 5185 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
| 5186 else | |
| 5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 5188 for as_dir in $PATH | |
| 5189 do | |
| 5190 IFS=$as_save_IFS | |
| 5191 test -z "$as_dir" && as_dir=. | |
| 5192 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 5194 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
| 5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 5196 break 2 | |
| 5197 fi | |
| 5198 done | |
| 5199 done | |
| 5200 IFS=$as_save_IFS | |
| 5201 | |
| 5202 fi | |
| 5203 fi | |
| 5204 DUMPBIN=$ac_cv_prog_DUMPBIN | |
| 5205 if test -n "$DUMPBIN"; then | |
| 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
| 5207 $as_echo "$DUMPBIN" >&6; } | |
| 5208 else | |
| 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 5210 $as_echo "no" >&6; } | |
| 5211 fi | |
| 5212 | |
| 5213 | |
| 5214 test -n "$DUMPBIN" && break | |
| 5215 done | |
| 5216 fi | |
| 5217 if test -z "$DUMPBIN"; then | |
| 5218 ac_ct_DUMPBIN=$DUMPBIN | |
| 5219 for ac_prog in dumpbin "link -dump" | |
| 5220 do | |
| 5221 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 5222 set dummy $ac_prog; ac_word=$2 | |
| 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 5224 $as_echo_n "checking for $ac_word... " >&6; } | |
| 5225 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
| 5226 $as_echo_n "(cached) " >&6 | |
| 5227 else | |
| 5228 if test -n "$ac_ct_DUMPBIN"; then | |
| 5229 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
| 5230 else | |
| 5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 5232 for as_dir in $PATH | |
| 5233 do | |
| 5234 IFS=$as_save_IFS | |
| 5235 test -z "$as_dir" && as_dir=. | |
| 5236 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 5237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 5238 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
| 5239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 5240 break 2 | |
| 5241 fi | |
| 5242 done | |
| 5243 done | |
| 5244 IFS=$as_save_IFS | |
| 5245 | |
| 5246 fi | |
| 5247 fi | |
| 5248 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
| 5249 if test -n "$ac_ct_DUMPBIN"; then | |
| 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
| 5251 $as_echo "$ac_ct_DUMPBIN" >&6; } | |
| 5252 else | |
| 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 5254 $as_echo "no" >&6; } | |
| 5255 fi | |
| 5256 | |
| 5257 | |
| 5258 test -n "$ac_ct_DUMPBIN" && break | |
| 5259 done | |
| 5260 | |
| 5261 if test "x$ac_ct_DUMPBIN" = x; then | |
| 5262 DUMPBIN=":" | |
| 5263 else | |
| 5264 case $cross_compiling:$ac_tool_warned in | |
| 5265 yes:) | |
| 5266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 5267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 5268 ac_tool_warned=yes ;; | |
| 5269 esac | |
| 5270 DUMPBIN=$ac_ct_DUMPBIN | |
| 5271 fi | |
| 5272 fi | |
| 5273 | |
| 5274 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in | |
| 5275 *COFF*) | |
| 5276 DUMPBIN="$DUMPBIN -symbols -headers" | |
| 5277 ;; | |
| 5278 *) | |
| 5279 DUMPBIN=: | |
| 5280 ;; | |
| 5281 esac | |
| 5282 fi | |
| 5283 | |
| 5284 if test : != "$DUMPBIN"; then | |
| 5285 NM=$DUMPBIN | |
| 5286 fi | |
| 5287 fi | |
| 5288 test -z "$NM" && NM=nm | |
| 5289 | |
| 5290 | |
| 5291 | |
| 5292 | |
| 5293 | |
| 5294 | |
| 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
| 5296 $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
| 5297 if ${lt_cv_nm_interface+:} false; then : | |
| 5298 $as_echo_n "(cached) " >&6 | |
| 5299 else | |
| 5300 lt_cv_nm_interface="BSD nm" | |
| 5301 echo "int some_variable = 0;" > conftest.$ac_ext | |
| 5302 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
| 5303 (eval "$ac_compile" 2>conftest.err) | |
| 5304 cat conftest.err >&5 | |
| 5305 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
| 5306 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
| 5307 cat conftest.err >&5 | |
| 5308 (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
| 5309 cat conftest.out >&5 | |
| 5310 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
| 5311 lt_cv_nm_interface="MS dumpbin" | |
| 5312 fi | |
| 5313 rm -f conftest* | |
| 5314 fi | |
| 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
| 5316 $as_echo "$lt_cv_nm_interface" >&6; } | |
| 5317 | |
| 5318 # find the maximum length of command line arguments | |
| 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
| 5320 $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
| 5321 if ${lt_cv_sys_max_cmd_len+:} false; then : | |
| 5322 $as_echo_n "(cached) " >&6 | |
| 5323 else | |
| 5324 i=0 | |
| 5325 teststring=ABCD | |
| 5326 | |
| 5327 case $build_os in | |
| 5328 msdosdjgpp*) | |
| 5329 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
| 5330 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
| 5331 # during glob expansion). Even if it were fixed, the result of this | |
| 5332 # check would be larger than it should be. | |
| 5333 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
| 5334 ;; | |
| 5335 | |
| 5336 gnu*) | |
| 5337 # Under GNU Hurd, this test is not required because there is | |
| 5338 # no limit to the length of command line arguments. | |
| 5339 # Libtool will interpret -1 as no limit whatsoever | |
| 5340 lt_cv_sys_max_cmd_len=-1; | |
| 5341 ;; | |
| 5342 | |
| 5343 cygwin* | mingw* | cegcc*) | |
| 5344 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
| 5345 # about 5 minutes as the teststring grows exponentially. | |
| 5346 # Worse, since 9x/ME are not pre-emptively multitasking, | |
| 5347 # you end up with a "frozen" computer, even though with patience | |
| 5348 # the test eventually succeeds (with a max line length of 256k). | |
| 5349 # Instead, let's just punt: use the minimum linelength reported by | |
| 5350 # all of the supported platforms: 8192 (on NT/2K/XP). | |
| 5351 lt_cv_sys_max_cmd_len=8192; | |
| 5352 ;; | |
| 5353 | |
| 5354 mint*) | |
| 5355 # On MiNT this can take a long time and run out of memory. | |
| 5356 lt_cv_sys_max_cmd_len=8192; | |
| 5357 ;; | |
| 5358 | |
| 5359 amigaos*) | |
| 5360 # On AmigaOS with pdksh, this test takes hours, literally. | |
| 5361 # So we just punt and use a minimum line length of 8192. | |
| 5362 lt_cv_sys_max_cmd_len=8192; | |
| 5363 ;; | |
| 5364 | |
| 5365 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) | |
| 5366 # This has been around since 386BSD, at least. Likely further. | |
| 5367 if test -x /sbin/sysctl; then | |
| 5368 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
| 5369 elif test -x /usr/sbin/sysctl; then | |
| 5370 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
| 5371 else | |
| 5372 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
| 5373 fi | |
| 5374 # And add a safety zone | |
| 5375 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
| 5376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
| 5377 ;; | |
| 5378 | |
| 5379 interix*) | |
| 5380 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
| 5381 lt_cv_sys_max_cmd_len=196608 | |
| 5382 ;; | |
| 5383 | |
| 5384 os2*) | |
| 5385 # The test takes a long time on OS/2. | |
| 5386 lt_cv_sys_max_cmd_len=8192 | |
| 5387 ;; | |
| 5388 | |
| 5389 osf*) | |
| 5390 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
| 5391 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
| 5392 # nice to cause kernel panics so lets avoid the loop below. | |
| 5393 # First set a reasonable default. | |
| 5394 lt_cv_sys_max_cmd_len=16384 | |
| 5395 # | |
| 5396 if test -x /sbin/sysconfig; then | |
| 5397 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
| 5398 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
| 5399 esac | |
| 5400 fi | |
| 5401 ;; | |
| 5402 sco3.2v5*) | |
| 5403 lt_cv_sys_max_cmd_len=102400 | |
| 5404 ;; | |
| 5405 sysv5* | sco5v6* | sysv4.2uw2*) | |
| 5406 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
| 5407 if test -n "$kargmax"; then | |
| 5408 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
| 5409 else | |
| 5410 lt_cv_sys_max_cmd_len=32768 | |
| 5411 fi | |
| 5412 ;; | |
| 5413 *) | |
| 5414 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
| 5415 if test -n "$lt_cv_sys_max_cmd_len" && \ | |
| 5416 test undefined != "$lt_cv_sys_max_cmd_len"; then | |
| 5417 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
| 5418 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
| 5419 else | |
| 5420 # Make teststring a little bigger before we do anything with it. | |
| 5421 # a 1K string should be a reasonable start. | |
| 5422 for i in 1 2 3 4 5 6 7 8; do | |
| 5423 teststring=$teststring$teststring | |
| 5424 done | |
| 5425 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
| 5426 # If test is not a shell built-in, we'll probably end up computing a | |
| 5427 # maximum length that is only half of the actual maximum length, but | |
| 5428 # we can't tell. | |
| 5429 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ | |
| 5430 = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
| 5431 test 17 != "$i" # 1/2 MB should be enough | |
| 5432 do | |
| 5433 i=`expr $i + 1` | |
| 5434 teststring=$teststring$teststring | |
| 5435 done | |
| 5436 # Only check the string length outside the loop. | |
| 5437 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
| 5438 teststring= | |
| 5439 # Add a significant safety factor because C++ compilers can tack on | |
| 5440 # massive amounts of additional arguments before passing them to the | |
| 5441 # linker. It appears as though 1/2 is a usable value. | |
| 5442 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
| 5443 fi | |
| 5444 ;; | |
| 5445 esac | |
| 5446 | |
| 5447 fi | |
| 5448 | |
| 5449 if test -n "$lt_cv_sys_max_cmd_len"; then | |
| 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
| 5451 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
| 5452 else | |
| 5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
| 5454 $as_echo "none" >&6; } | |
| 5455 fi | |
| 5456 max_cmd_len=$lt_cv_sys_max_cmd_len | |
| 5457 | |
| 5458 | |
| 5459 | |
| 5460 | |
| 5461 | |
| 5462 | |
| 5463 : ${CP="cp -f"} | |
| 5464 : ${MV="mv -f"} | |
| 5465 : ${RM="rm -f"} | |
| 5466 | |
| 5467 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
| 5468 lt_unset=unset | |
| 5469 else | |
| 5470 lt_unset=false | |
| 5471 fi | |
| 5472 | |
| 5473 | |
| 5474 | |
| 5475 | |
| 5476 | |
| 5477 # test EBCDIC or ASCII | |
| 5478 case `echo X|tr X '\101'` in | |
| 5479 A) # ASCII based system | |
| 5480 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
| 5481 lt_SP2NL='tr \040 \012' | |
| 5482 lt_NL2SP='tr \015\012 \040\040' | |
| 5483 ;; | |
| 5484 *) # EBCDIC based system | |
| 5485 lt_SP2NL='tr \100 \n' | |
| 5486 lt_NL2SP='tr \r\n \100\100' | |
| 5487 ;; | |
| 5488 esac | |
| 5489 | |
| 5490 | |
| 5491 | |
| 5492 | |
| 5493 | |
| 5494 | |
| 5495 | |
| 5496 | |
| 5497 | |
| 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
| 5499 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
| 5500 if ${lt_cv_to_host_file_cmd+:} false; then : | |
| 5501 $as_echo_n "(cached) " >&6 | |
| 5502 else | |
| 5503 case $host in | |
| 5504 *-*-mingw* ) | |
| 5505 case $build in | |
| 5506 *-*-mingw* ) # actually msys | |
| 5507 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
| 5508 ;; | |
| 5509 *-*-cygwin* ) | |
| 5510 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
| 5511 ;; | |
| 5512 * ) # otherwise, assume *nix | |
| 5513 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
| 5514 ;; | |
| 5515 esac | |
| 5516 ;; | |
| 5517 *-*-cygwin* ) | |
| 5518 case $build in | |
| 5519 *-*-mingw* ) # actually msys | |
| 5520 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
| 5521 ;; | |
| 5522 *-*-cygwin* ) | |
| 5523 lt_cv_to_host_file_cmd=func_convert_file_noop | |
| 5524 ;; | |
| 5525 * ) # otherwise, assume *nix | |
| 5526 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
| 5527 ;; | |
| 5528 esac | |
| 5529 ;; | |
| 5530 * ) # unhandled hosts (and "normal" native builds) | |
| 5531 lt_cv_to_host_file_cmd=func_convert_file_noop | |
| 5532 ;; | |
| 5533 esac | |
| 5534 | |
| 5535 fi | |
| 5536 | |
| 5537 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
| 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
| 5539 $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
| 5540 | |
| 5541 | |
| 5542 | |
| 5543 | |
| 5544 | |
| 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
| 5546 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
| 5547 if ${lt_cv_to_tool_file_cmd+:} false; then : | |
| 5548 $as_echo_n "(cached) " >&6 | |
| 5549 else | |
| 5550 #assume ordinary cross tools, or native build. | |
| 5551 lt_cv_to_tool_file_cmd=func_convert_file_noop | |
| 5552 case $host in | |
| 5553 *-*-mingw* ) | |
| 5554 case $build in | |
| 5555 *-*-mingw* ) # actually msys | |
| 5556 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
| 5557 ;; | |
| 5558 esac | |
| 5559 ;; | |
| 5560 esac | |
| 5561 | |
| 5562 fi | |
| 5563 | |
| 5564 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
| 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
| 5566 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
| 5567 | |
| 5568 | |
| 5569 | |
| 5570 | |
| 5571 | |
| 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
| 5573 $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
| 5574 if ${lt_cv_ld_reload_flag+:} false; then : | |
| 5575 $as_echo_n "(cached) " >&6 | |
| 5576 else | |
| 5577 lt_cv_ld_reload_flag='-r' | |
| 5578 fi | |
| 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
| 5580 $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
| 5581 reload_flag=$lt_cv_ld_reload_flag | |
| 5582 case $reload_flag in | |
| 5583 "" | " "*) ;; | |
| 5584 *) reload_flag=" $reload_flag" ;; | |
| 5585 esac | |
| 5586 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
| 5587 case $host_os in | |
| 5588 cygwin* | mingw* | pw32* | cegcc*) | |
| 5589 if test yes != "$GCC"; then | |
| 5590 reload_cmds=false | |
| 5591 fi | |
| 5592 ;; | |
| 5593 darwin*) | |
| 5594 if test yes = "$GCC"; then | |
| 5595 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' | |
| 5596 else | |
| 5597 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
| 5598 fi | |
| 5599 ;; | |
| 5600 esac | |
| 5601 | |
| 5602 | |
| 5603 | |
| 5604 | |
| 5605 | |
| 5606 | |
| 5607 | |
| 5608 | |
| 5609 | |
| 5610 if test -n "$ac_tool_prefix"; then | |
| 5611 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
| 5612 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
| 5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 5614 $as_echo_n "checking for $ac_word... " >&6; } | |
| 5615 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
| 5616 $as_echo_n "(cached) " >&6 | |
| 5617 else | |
| 5618 if test -n "$OBJDUMP"; then | |
| 5619 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
| 5620 else | |
| 5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 5622 for as_dir in $PATH | |
| 5623 do | |
| 5624 IFS=$as_save_IFS | |
| 5625 test -z "$as_dir" && as_dir=. | |
| 5626 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 5627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 5628 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
| 5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 5630 break 2 | |
| 5631 fi | |
| 5632 done | |
| 5633 done | |
| 5634 IFS=$as_save_IFS | |
| 5635 | |
| 5636 fi | |
| 5637 fi | |
| 5638 OBJDUMP=$ac_cv_prog_OBJDUMP | |
| 5639 if test -n "$OBJDUMP"; then | |
| 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
| 5641 $as_echo "$OBJDUMP" >&6; } | |
| 5642 else | |
| 5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 5644 $as_echo "no" >&6; } | |
| 5645 fi | |
| 5646 | |
| 5647 | |
| 5648 fi | |
| 5649 if test -z "$ac_cv_prog_OBJDUMP"; then | |
| 5650 ac_ct_OBJDUMP=$OBJDUMP | |
| 5651 # Extract the first word of "objdump", so it can be a program name with args. | |
| 5652 set dummy objdump; ac_word=$2 | |
| 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 5654 $as_echo_n "checking for $ac_word... " >&6; } | |
| 5655 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
| 5656 $as_echo_n "(cached) " >&6 | |
| 5657 else | |
| 5658 if test -n "$ac_ct_OBJDUMP"; then | |
| 5659 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
| 5660 else | |
| 5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 5662 for as_dir in $PATH | |
| 5663 do | |
| 5664 IFS=$as_save_IFS | |
| 5665 test -z "$as_dir" && as_dir=. | |
| 5666 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 5668 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
| 5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 5670 break 2 | |
| 5671 fi | |
| 5672 done | |
| 5673 done | |
| 5674 IFS=$as_save_IFS | |
| 5675 | |
| 5676 fi | |
| 5677 fi | |
| 5678 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
| 5679 if test -n "$ac_ct_OBJDUMP"; then | |
| 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
| 5681 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
| 5682 else | |
| 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 5684 $as_echo "no" >&6; } | |
| 5685 fi | |
| 5686 | |
| 5687 if test "x$ac_ct_OBJDUMP" = x; then | |
| 5688 OBJDUMP="false" | |
| 5689 else | |
| 5690 case $cross_compiling:$ac_tool_warned in | |
| 5691 yes:) | |
| 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 5693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 5694 ac_tool_warned=yes ;; | |
| 5695 esac | |
| 5696 OBJDUMP=$ac_ct_OBJDUMP | |
| 5697 fi | |
| 5698 else | |
| 5699 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
| 5700 fi | |
| 5701 | |
| 5702 test -z "$OBJDUMP" && OBJDUMP=objdump | |
| 5703 | |
| 5704 | |
| 5705 | |
| 5706 | |
| 5707 | |
| 5708 | |
| 5709 | |
| 5710 | |
| 5711 | |
| 5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
| 5713 $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
| 5714 if ${lt_cv_deplibs_check_method+:} false; then : | |
| 5715 $as_echo_n "(cached) " >&6 | |
| 5716 else | |
| 5717 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
| 5718 lt_cv_file_magic_test_file= | |
| 5719 lt_cv_deplibs_check_method='unknown' | |
| 5720 # Need to set the preceding variable on all platforms that support | |
| 5721 # interlibrary dependencies. | |
| 5722 # 'none' -- dependencies not supported. | |
| 5723 # 'unknown' -- same as none, but documents that we really don't know. | |
| 5724 # 'pass_all' -- all dependencies passed with no checks. | |
| 5725 # 'test_compile' -- check by making test program. | |
| 5726 # 'file_magic [[regex]]' -- check by looking for files in library path | |
| 5727 # that responds to the $file_magic_cmd with a given extended regex. | |
| 5728 # If you have 'file' or equivalent on your system and you're not sure | |
| 5729 # whether 'pass_all' will *always* work, you probably want this one. | |
| 5730 | |
| 5731 case $host_os in | |
| 5732 aix[4-9]*) | |
| 5733 lt_cv_deplibs_check_method=pass_all | |
| 5734 ;; | |
| 5735 | |
| 5736 beos*) | |
| 5737 lt_cv_deplibs_check_method=pass_all | |
| 5738 ;; | |
| 5739 | |
| 5740 bsdi[45]*) | |
| 5741 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
| 5742 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
| 5743 lt_cv_file_magic_test_file=/shlib/libc.so | |
| 5744 ;; | |
| 5745 | |
| 5746 cygwin*) | |
| 5747 # func_win32_libid is a shell function defined in ltmain.sh | |
| 5748 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
| 5749 lt_cv_file_magic_cmd='func_win32_libid' | |
| 5750 ;; | |
| 5751 | |
| 5752 mingw* | pw32*) | |
| 5753 # Base MSYS/MinGW do not provide the 'file' command needed by | |
| 5754 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
| 5755 # unless we find 'file', for example because we are cross-compiling. | |
| 5756 if ( file / ) >/dev/null 2>&1; then | |
| 5757 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
| 5758 lt_cv_file_magic_cmd='func_win32_libid' | |
| 5759 else | |
| 5760 # Keep this pattern in sync with the one in func_win32_libid. | |
| 5761 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
| 5762 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
| 5763 fi | |
| 5764 ;; | |
| 5765 | |
| 5766 cegcc*) | |
| 5767 # use the weaker test based on 'objdump'. See mingw*. | |
| 5768 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
| 5769 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
| 5770 ;; | |
| 5771 | |
| 5772 darwin* | rhapsody*) | |
| 5773 lt_cv_deplibs_check_method=pass_all | |
| 5774 ;; | |
| 5775 | |
| 5776 freebsd* | dragonfly*) | |
| 5777 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
| 5778 case $host_cpu in | |
| 5779 i*86 ) | |
| 5780 # Not sure whether the presence of OpenBSD here was a mistake. | |
| 5781 # Let's accept both of them until this is cleared up. | |
| 5782 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
| 5783 lt_cv_file_magic_cmd=/usr/bin/file | |
| 5784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
| 5785 ;; | |
| 5786 esac | |
| 5787 else | |
| 5788 lt_cv_deplibs_check_method=pass_all | |
| 5789 fi | |
| 5790 ;; | |
| 5791 | |
| 5792 haiku*) | |
| 5793 lt_cv_deplibs_check_method=pass_all | |
| 5794 ;; | |
| 5795 | |
| 5796 hpux10.20* | hpux11*) | |
| 5797 lt_cv_file_magic_cmd=/usr/bin/file | |
| 5798 case $host_cpu in | |
| 5799 ia64*) | |
| 5800 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
| 5801 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
| 5802 ;; | |
| 5803 hppa*64*) | |
| 5804 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]' | |
| 5805 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
| 5806 ;; | |
| 5807 *) | |
| 5808 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
| 5809 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
| 5810 ;; | |
| 5811 esac | |
| 5812 ;; | |
| 5813 | |
| 5814 interix[3-9]*) | |
| 5815 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
| 5816 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
| 5817 ;; | |
| 5818 | |
| 5819 irix5* | irix6* | nonstopux*) | |
| 5820 case $LD in | |
| 5821 *-32|*"-32 ") libmagic=32-bit;; | |
| 5822 *-n32|*"-n32 ") libmagic=N32;; | |
| 5823 *-64|*"-64 ") libmagic=64-bit;; | |
| 5824 *) libmagic=never-match;; | |
| 5825 esac | |
| 5826 lt_cv_deplibs_check_method=pass_all | |
| 5827 ;; | |
| 5828 | |
| 5829 # This must be glibc/ELF. | |
| 5830 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 5831 lt_cv_deplibs_check_method=pass_all | |
| 5832 ;; | |
| 5833 | |
| 5834 netbsd*) | |
| 5835 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
| 5836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
| 5837 else | |
| 5838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
| 5839 fi | |
| 5840 ;; | |
| 5841 | |
| 5842 newos6*) | |
| 5843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
| 5844 lt_cv_file_magic_cmd=/usr/bin/file | |
| 5845 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
| 5846 ;; | |
| 5847 | |
| 5848 *nto* | *qnx*) | |
| 5849 lt_cv_deplibs_check_method=pass_all | |
| 5850 ;; | |
| 5851 | |
| 5852 openbsd* | bitrig*) | |
| 5853 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
| 5854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
| 5855 else | |
| 5856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
| 5857 fi | |
| 5858 ;; | |
| 5859 | |
| 5860 osf3* | osf4* | osf5*) | |
| 5861 lt_cv_deplibs_check_method=pass_all | |
| 5862 ;; | |
| 5863 | |
| 5864 rdos*) | |
| 5865 lt_cv_deplibs_check_method=pass_all | |
| 5866 ;; | |
| 5867 | |
| 5868 solaris*) | |
| 5869 lt_cv_deplibs_check_method=pass_all | |
| 5870 ;; | |
| 5871 | |
| 5872 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
| 5873 lt_cv_deplibs_check_method=pass_all | |
| 5874 ;; | |
| 5875 | |
| 5876 sysv4 | sysv4.3*) | |
| 5877 case $host_vendor in | |
| 5878 motorola) | |
| 5879 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]' | |
| 5880 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
| 5881 ;; | |
| 5882 ncr) | |
| 5883 lt_cv_deplibs_check_method=pass_all | |
| 5884 ;; | |
| 5885 sequent) | |
| 5886 lt_cv_file_magic_cmd='/bin/file' | |
| 5887 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
| 5888 ;; | |
| 5889 sni) | |
| 5890 lt_cv_file_magic_cmd='/bin/file' | |
| 5891 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
| 5892 lt_cv_file_magic_test_file=/lib/libc.so | |
| 5893 ;; | |
| 5894 siemens) | |
| 5895 lt_cv_deplibs_check_method=pass_all | |
| 5896 ;; | |
| 5897 pc) | |
| 5898 lt_cv_deplibs_check_method=pass_all | |
| 5899 ;; | |
| 5900 esac | |
| 5901 ;; | |
| 5902 | |
| 5903 tpf*) | |
| 5904 lt_cv_deplibs_check_method=pass_all | |
| 5905 ;; | |
| 5906 os2*) | |
| 5907 lt_cv_deplibs_check_method=pass_all | |
| 5908 ;; | |
| 5909 esac | |
| 5910 | |
| 5911 fi | |
| 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
| 5913 $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
| 5914 | |
| 5915 file_magic_glob= | |
| 5916 want_nocaseglob=no | |
| 5917 if test "$build" = "$host"; then | |
| 5918 case $host_os in | |
| 5919 mingw* | pw32*) | |
| 5920 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
| 5921 want_nocaseglob=yes | |
| 5922 else | |
| 5923 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
| 5924 fi | |
| 5925 ;; | |
| 5926 esac | |
| 5927 fi | |
| 5928 | |
| 5929 file_magic_cmd=$lt_cv_file_magic_cmd | |
| 5930 deplibs_check_method=$lt_cv_deplibs_check_method | |
| 5931 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
| 5932 | |
| 5933 | |
| 5934 | |
| 5935 | |
| 5936 | |
| 5937 | |
| 5938 | |
| 5939 | |
| 5940 | |
| 5941 | |
| 5942 | |
| 5943 | |
| 5944 | |
| 5945 | |
| 5946 | |
| 5947 | |
| 5948 | |
| 5949 | |
| 5950 | |
| 5951 | |
| 5952 | |
| 5953 | |
| 5954 if test -n "$ac_tool_prefix"; then | |
| 5955 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
| 5956 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
| 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 5958 $as_echo_n "checking for $ac_word... " >&6; } | |
| 5959 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
| 5960 $as_echo_n "(cached) " >&6 | |
| 5961 else | |
| 5962 if test -n "$DLLTOOL"; then | |
| 5963 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
| 5964 else | |
| 5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 5966 for as_dir in $PATH | |
| 5967 do | |
| 5968 IFS=$as_save_IFS | |
| 5969 test -z "$as_dir" && as_dir=. | |
| 5970 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 5972 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
| 5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 5974 break 2 | |
| 5975 fi | |
| 5976 done | |
| 5977 done | |
| 5978 IFS=$as_save_IFS | |
| 5979 | |
| 5980 fi | |
| 5981 fi | |
| 5982 DLLTOOL=$ac_cv_prog_DLLTOOL | |
| 5983 if test -n "$DLLTOOL"; then | |
| 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
| 5985 $as_echo "$DLLTOOL" >&6; } | |
| 5986 else | |
| 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 5988 $as_echo "no" >&6; } | |
| 5989 fi | |
| 5990 | |
| 5991 | |
| 5992 fi | |
| 5993 if test -z "$ac_cv_prog_DLLTOOL"; then | |
| 5994 ac_ct_DLLTOOL=$DLLTOOL | |
| 5995 # Extract the first word of "dlltool", so it can be a program name with args. | |
| 5996 set dummy dlltool; ac_word=$2 | |
| 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 5998 $as_echo_n "checking for $ac_word... " >&6; } | |
| 5999 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
| 6000 $as_echo_n "(cached) " >&6 | |
| 6001 else | |
| 6002 if test -n "$ac_ct_DLLTOOL"; then | |
| 6003 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
| 6004 else | |
| 6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6006 for as_dir in $PATH | |
| 6007 do | |
| 6008 IFS=$as_save_IFS | |
| 6009 test -z "$as_dir" && as_dir=. | |
| 6010 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 6012 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
| 6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 6014 break 2 | |
| 6015 fi | |
| 6016 done | |
| 6017 done | |
| 6018 IFS=$as_save_IFS | |
| 6019 | |
| 6020 fi | |
| 6021 fi | |
| 6022 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
| 6023 if test -n "$ac_ct_DLLTOOL"; then | |
| 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
| 6025 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
| 6026 else | |
| 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6028 $as_echo "no" >&6; } | |
| 6029 fi | |
| 6030 | |
| 6031 if test "x$ac_ct_DLLTOOL" = x; then | |
| 6032 DLLTOOL="false" | |
| 6033 else | |
| 6034 case $cross_compiling:$ac_tool_warned in | |
| 6035 yes:) | |
| 6036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 6037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 6038 ac_tool_warned=yes ;; | |
| 6039 esac | |
| 6040 DLLTOOL=$ac_ct_DLLTOOL | |
| 6041 fi | |
| 6042 else | |
| 6043 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
| 6044 fi | |
| 6045 | |
| 6046 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
| 6047 | |
| 6048 | |
| 6049 | |
| 6050 | |
| 6051 | |
| 6052 | |
| 6053 | |
| 6054 | |
| 6055 | |
| 6056 | |
| 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
| 6058 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
| 6059 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
| 6060 $as_echo_n "(cached) " >&6 | |
| 6061 else | |
| 6062 lt_cv_sharedlib_from_linklib_cmd='unknown' | |
| 6063 | |
| 6064 case $host_os in | |
| 6065 cygwin* | mingw* | pw32* | cegcc*) | |
| 6066 # two different shell functions defined in ltmain.sh; | |
| 6067 # decide which one to use based on capabilities of $DLLTOOL | |
| 6068 case `$DLLTOOL --help 2>&1` in | |
| 6069 *--identify-strict*) | |
| 6070 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
| 6071 ;; | |
| 6072 *) | |
| 6073 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
| 6074 ;; | |
| 6075 esac | |
| 6076 ;; | |
| 6077 *) | |
| 6078 # fallback: assume linklib IS sharedlib | |
| 6079 lt_cv_sharedlib_from_linklib_cmd=$ECHO | |
| 6080 ;; | |
| 6081 esac | |
| 6082 | |
| 6083 fi | |
| 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
| 6085 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
| 6086 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
| 6087 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
| 6088 | |
| 6089 | |
| 6090 | |
| 6091 | |
| 6092 | |
| 6093 | |
| 6094 | |
| 6095 | |
| 6096 if test -n "$ac_tool_prefix"; then | |
| 6097 for ac_prog in ar | |
| 6098 do | |
| 6099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
| 6100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
| 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6102 $as_echo_n "checking for $ac_word... " >&6; } | |
| 6103 if ${ac_cv_prog_AR+:} false; then : | |
| 6104 $as_echo_n "(cached) " >&6 | |
| 6105 else | |
| 6106 if test -n "$AR"; then | |
| 6107 ac_cv_prog_AR="$AR" # Let the user override the test. | |
| 6108 else | |
| 6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6110 for as_dir in $PATH | |
| 6111 do | |
| 6112 IFS=$as_save_IFS | |
| 6113 test -z "$as_dir" && as_dir=. | |
| 6114 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 6116 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
| 6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 6118 break 2 | |
| 6119 fi | |
| 6120 done | |
| 6121 done | |
| 6122 IFS=$as_save_IFS | |
| 6123 | |
| 6124 fi | |
| 6125 fi | |
| 6126 AR=$ac_cv_prog_AR | |
| 6127 if test -n "$AR"; then | |
| 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
| 6129 $as_echo "$AR" >&6; } | |
| 6130 else | |
| 6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6132 $as_echo "no" >&6; } | |
| 6133 fi | |
| 6134 | |
| 6135 | |
| 6136 test -n "$AR" && break | |
| 6137 done | |
| 6138 fi | |
| 6139 if test -z "$AR"; then | |
| 6140 ac_ct_AR=$AR | |
| 6141 for ac_prog in ar | |
| 6142 do | |
| 6143 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
| 6144 set dummy $ac_prog; ac_word=$2 | |
| 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6146 $as_echo_n "checking for $ac_word... " >&6; } | |
| 6147 if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
| 6148 $as_echo_n "(cached) " >&6 | |
| 6149 else | |
| 6150 if test -n "$ac_ct_AR"; then | |
| 6151 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
| 6152 else | |
| 6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6154 for as_dir in $PATH | |
| 6155 do | |
| 6156 IFS=$as_save_IFS | |
| 6157 test -z "$as_dir" && as_dir=. | |
| 6158 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 6160 ac_cv_prog_ac_ct_AR="$ac_prog" | |
| 6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 6162 break 2 | |
| 6163 fi | |
| 6164 done | |
| 6165 done | |
| 6166 IFS=$as_save_IFS | |
| 6167 | |
| 6168 fi | |
| 6169 fi | |
| 6170 ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
| 6171 if test -n "$ac_ct_AR"; then | |
| 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
| 6173 $as_echo "$ac_ct_AR" >&6; } | |
| 6174 else | |
| 6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6176 $as_echo "no" >&6; } | |
| 6177 fi | |
| 6178 | |
| 6179 | |
| 6180 test -n "$ac_ct_AR" && break | |
| 6181 done | |
| 6182 | |
| 6183 if test "x$ac_ct_AR" = x; then | |
| 6184 AR="false" | |
| 6185 else | |
| 6186 case $cross_compiling:$ac_tool_warned in | |
| 6187 yes:) | |
| 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 6189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 6190 ac_tool_warned=yes ;; | |
| 6191 esac | |
| 6192 AR=$ac_ct_AR | |
| 6193 fi | |
| 6194 fi | |
| 6195 | |
| 6196 : ${AR=ar} | |
| 6197 : ${AR_FLAGS=cru} | |
| 6198 | |
| 6199 | |
| 6200 | |
| 6201 | |
| 6202 | |
| 6203 | |
| 6204 | |
| 6205 | |
| 6206 | |
| 6207 | |
| 6208 | |
| 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
| 6210 $as_echo_n "checking for archiver @FILE support... " >&6; } | |
| 6211 if ${lt_cv_ar_at_file+:} false; then : | |
| 6212 $as_echo_n "(cached) " >&6 | |
| 6213 else | |
| 6214 lt_cv_ar_at_file=no | |
| 6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 6216 /* end confdefs.h. */ | |
| 6217 | |
| 6218 int | |
| 6219 main () | |
| 6220 { | |
| 6221 | |
| 6222 ; | |
| 6223 return 0; | |
| 6224 } | |
| 6225 _ACEOF | |
| 6226 if ac_fn_c_try_compile "$LINENO"; then : | |
| 6227 echo conftest.$ac_objext > conftest.lst | |
| 6228 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
| 6229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
| 6230 (eval $lt_ar_try) 2>&5 | |
| 6231 ac_status=$? | |
| 6232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 6233 test $ac_status = 0; } | |
| 6234 if test 0 -eq "$ac_status"; then | |
| 6235 # Ensure the archiver fails upon bogus file names. | |
| 6236 rm -f conftest.$ac_objext libconftest.a | |
| 6237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
| 6238 (eval $lt_ar_try) 2>&5 | |
| 6239 ac_status=$? | |
| 6240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 6241 test $ac_status = 0; } | |
| 6242 if test 0 -ne "$ac_status"; then | |
| 6243 lt_cv_ar_at_file=@ | |
| 6244 fi | |
| 6245 fi | |
| 6246 rm -f conftest.* libconftest.a | |
| 6247 | |
| 6248 fi | |
| 6249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 6250 | |
| 6251 fi | |
| 6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
| 6253 $as_echo "$lt_cv_ar_at_file" >&6; } | |
| 6254 | |
| 6255 if test no = "$lt_cv_ar_at_file"; then | |
| 6256 archiver_list_spec= | |
| 6257 else | |
| 6258 archiver_list_spec=$lt_cv_ar_at_file | |
| 6259 fi | |
| 6260 | |
| 6261 | |
| 6262 | |
| 6263 | |
| 6264 | |
| 6265 | |
| 6266 | |
| 6267 if test -n "$ac_tool_prefix"; then | |
| 6268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
| 6269 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
| 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6271 $as_echo_n "checking for $ac_word... " >&6; } | |
| 6272 if ${ac_cv_prog_STRIP+:} false; then : | |
| 6273 $as_echo_n "(cached) " >&6 | |
| 6274 else | |
| 6275 if test -n "$STRIP"; then | |
| 6276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
| 6277 else | |
| 6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6279 for as_dir in $PATH | |
| 6280 do | |
| 6281 IFS=$as_save_IFS | |
| 6282 test -z "$as_dir" && as_dir=. | |
| 6283 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 6285 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
| 6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 6287 break 2 | |
| 6288 fi | |
| 6289 done | |
| 6290 done | |
| 6291 IFS=$as_save_IFS | |
| 6292 | |
| 6293 fi | |
| 6294 fi | |
| 6295 STRIP=$ac_cv_prog_STRIP | |
| 6296 if test -n "$STRIP"; then | |
| 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
| 6298 $as_echo "$STRIP" >&6; } | |
| 6299 else | |
| 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6301 $as_echo "no" >&6; } | |
| 6302 fi | |
| 6303 | |
| 6304 | |
| 6305 fi | |
| 6306 if test -z "$ac_cv_prog_STRIP"; then | |
| 6307 ac_ct_STRIP=$STRIP | |
| 6308 # Extract the first word of "strip", so it can be a program name with args. | |
| 6309 set dummy strip; ac_word=$2 | |
| 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6311 $as_echo_n "checking for $ac_word... " >&6; } | |
| 6312 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
| 6313 $as_echo_n "(cached) " >&6 | |
| 6314 else | |
| 6315 if test -n "$ac_ct_STRIP"; then | |
| 6316 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
| 6317 else | |
| 6318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6319 for as_dir in $PATH | |
| 6320 do | |
| 6321 IFS=$as_save_IFS | |
| 6322 test -z "$as_dir" && as_dir=. | |
| 6323 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 6325 ac_cv_prog_ac_ct_STRIP="strip" | |
| 6326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 6327 break 2 | |
| 6328 fi | |
| 6329 done | |
| 6330 done | |
| 6331 IFS=$as_save_IFS | |
| 6332 | |
| 6333 fi | |
| 6334 fi | |
| 6335 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
| 6336 if test -n "$ac_ct_STRIP"; then | |
| 6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
| 6338 $as_echo "$ac_ct_STRIP" >&6; } | |
| 6339 else | |
| 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6341 $as_echo "no" >&6; } | |
| 6342 fi | |
| 6343 | |
| 6344 if test "x$ac_ct_STRIP" = x; then | |
| 6345 STRIP=":" | |
| 6346 else | |
| 6347 case $cross_compiling:$ac_tool_warned in | |
| 6348 yes:) | |
| 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 6350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 6351 ac_tool_warned=yes ;; | |
| 6352 esac | |
| 6353 STRIP=$ac_ct_STRIP | |
| 6354 fi | |
| 6355 else | |
| 6356 STRIP="$ac_cv_prog_STRIP" | |
| 6357 fi | |
| 6358 | |
| 6359 test -z "$STRIP" && STRIP=: | |
| 6360 | |
| 6361 | |
| 6362 | |
| 6363 | |
| 6364 | |
| 6365 | |
| 6366 if test -n "$ac_tool_prefix"; then | |
| 6367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
| 6368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
| 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6370 $as_echo_n "checking for $ac_word... " >&6; } | |
| 6371 if ${ac_cv_prog_RANLIB+:} false; then : | |
| 6372 $as_echo_n "(cached) " >&6 | |
| 6373 else | |
| 6374 if test -n "$RANLIB"; then | |
| 6375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
| 6376 else | |
| 6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6378 for as_dir in $PATH | |
| 6379 do | |
| 6380 IFS=$as_save_IFS | |
| 6381 test -z "$as_dir" && as_dir=. | |
| 6382 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 6384 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
| 6385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 6386 break 2 | |
| 6387 fi | |
| 6388 done | |
| 6389 done | |
| 6390 IFS=$as_save_IFS | |
| 6391 | |
| 6392 fi | |
| 6393 fi | |
| 6394 RANLIB=$ac_cv_prog_RANLIB | |
| 6395 if test -n "$RANLIB"; then | |
| 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
| 6397 $as_echo "$RANLIB" >&6; } | |
| 6398 else | |
| 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6400 $as_echo "no" >&6; } | |
| 6401 fi | |
| 6402 | |
| 6403 | |
| 6404 fi | |
| 6405 if test -z "$ac_cv_prog_RANLIB"; then | |
| 6406 ac_ct_RANLIB=$RANLIB | |
| 6407 # Extract the first word of "ranlib", so it can be a program name with args. | |
| 6408 set dummy ranlib; ac_word=$2 | |
| 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 6410 $as_echo_n "checking for $ac_word... " >&6; } | |
| 6411 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
| 6412 $as_echo_n "(cached) " >&6 | |
| 6413 else | |
| 6414 if test -n "$ac_ct_RANLIB"; then | |
| 6415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
| 6416 else | |
| 6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6418 for as_dir in $PATH | |
| 6419 do | |
| 6420 IFS=$as_save_IFS | |
| 6421 test -z "$as_dir" && as_dir=. | |
| 6422 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 6424 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
| 6425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 6426 break 2 | |
| 6427 fi | |
| 6428 done | |
| 6429 done | |
| 6430 IFS=$as_save_IFS | |
| 6431 | |
| 6432 fi | |
| 6433 fi | |
| 6434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
| 6435 if test -n "$ac_ct_RANLIB"; then | |
| 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
| 6437 $as_echo "$ac_ct_RANLIB" >&6; } | |
| 6438 else | |
| 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 6440 $as_echo "no" >&6; } | |
| 6441 fi | |
| 6442 | |
| 6443 if test "x$ac_ct_RANLIB" = x; then | |
| 6444 RANLIB=":" | |
| 6445 else | |
| 6446 case $cross_compiling:$ac_tool_warned in | |
| 6447 yes:) | |
| 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 6449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 6450 ac_tool_warned=yes ;; | |
| 6451 esac | |
| 6452 RANLIB=$ac_ct_RANLIB | |
| 6453 fi | |
| 6454 else | |
| 6455 RANLIB="$ac_cv_prog_RANLIB" | |
| 6456 fi | |
| 6457 | |
| 6458 test -z "$RANLIB" && RANLIB=: | |
| 6459 | |
| 6460 | |
| 6461 | |
| 6462 | |
| 6463 | |
| 6464 | |
| 6465 # Determine commands to create old-style static archives. | |
| 6466 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
| 6467 old_postinstall_cmds='chmod 644 $oldlib' | |
| 6468 old_postuninstall_cmds= | |
| 6469 | |
| 6470 if test -n "$RANLIB"; then | |
| 6471 case $host_os in | |
| 6472 bitrig* | openbsd*) | |
| 6473 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
| 6474 ;; | |
| 6475 *) | |
| 6476 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
| 6477 ;; | |
| 6478 esac | |
| 6479 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
| 6480 fi | |
| 6481 | |
| 6482 case $host_os in | |
| 6483 darwin*) | |
| 6484 lock_old_archive_extraction=yes ;; | |
| 6485 *) | |
| 6486 lock_old_archive_extraction=no ;; | |
| 6487 esac | |
| 6488 | |
| 6489 | |
| 6490 | |
| 6491 | |
| 6492 | |
| 6493 | |
| 6494 | |
| 6495 | |
| 6496 | |
| 6497 | |
| 6498 | |
| 6499 | |
| 6500 | |
| 6501 | |
| 6502 | |
| 6503 | |
| 6504 | |
| 6505 | |
| 6506 | |
| 6507 | |
| 6508 | |
| 6509 | |
| 6510 | |
| 6511 | |
| 6512 | |
| 6513 | |
| 6514 | |
| 6515 | |
| 6516 | |
| 6517 | |
| 6518 | |
| 6519 | |
| 6520 | |
| 6521 | |
| 6522 | |
| 6523 | |
| 6524 | |
| 6525 | |
| 6526 | |
| 6527 # If no C compiler was specified, use CC. | |
| 6528 LTCC=${LTCC-"$CC"} | |
| 6529 | |
| 6530 # If no C compiler flags were specified, use CFLAGS. | |
| 6531 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
| 6532 | |
| 6533 # Allow CC to be a program name with arguments. | |
| 6534 compiler=$CC | |
| 6535 | |
| 6536 | |
| 6537 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
| 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
| 6539 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
| 6540 if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
| 6541 $as_echo_n "(cached) " >&6 | |
| 6542 else | |
| 6543 | |
| 6544 # These are sane defaults that work on at least a few old systems. | |
| 6545 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
| 6546 | |
| 6547 # Character class describing NM global symbol codes. | |
| 6548 symcode='[BCDEGRST]' | |
| 6549 | |
| 6550 # Regexp to match symbols that can be accessed directly from C. | |
| 6551 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
| 6552 | |
| 6553 # Define system-specific variables. | |
| 6554 case $host_os in | |
| 6555 aix*) | |
| 6556 symcode='[BCDT]' | |
| 6557 ;; | |
| 6558 cygwin* | mingw* | pw32* | cegcc*) | |
| 6559 symcode='[ABCDGISTW]' | |
| 6560 ;; | |
| 6561 hpux*) | |
| 6562 if test ia64 = "$host_cpu"; then | |
| 6563 symcode='[ABCDEGRST]' | |
| 6564 fi | |
| 6565 ;; | |
| 6566 irix* | nonstopux*) | |
| 6567 symcode='[BCDEGRST]' | |
| 6568 ;; | |
| 6569 osf*) | |
| 6570 symcode='[BCDEGQRST]' | |
| 6571 ;; | |
| 6572 solaris*) | |
| 6573 symcode='[BDRT]' | |
| 6574 ;; | |
| 6575 sco3.2v5*) | |
| 6576 symcode='[DT]' | |
| 6577 ;; | |
| 6578 sysv4.2uw2*) | |
| 6579 symcode='[DT]' | |
| 6580 ;; | |
| 6581 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
| 6582 symcode='[ABDT]' | |
| 6583 ;; | |
| 6584 sysv4) | |
| 6585 symcode='[DFNSTU]' | |
| 6586 ;; | |
| 6587 esac | |
| 6588 | |
| 6589 # If we're using GNU nm, then use its standard symbol codes. | |
| 6590 case `$NM -V 2>&1` in | |
| 6591 *GNU* | *'with BFD'*) | |
| 6592 symcode='[ABCDGIRSTW]' ;; | |
| 6593 esac | |
| 6594 | |
| 6595 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
| 6596 # Gets list of data symbols to import. | |
| 6597 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" | |
| 6598 # Adjust the below global symbol transforms to fixup imported variables. | |
| 6599 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" | |
| 6600 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" | |
| 6601 lt_c_name_lib_hook="\ | |
| 6602 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ | |
| 6603 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" | |
| 6604 else | |
| 6605 # Disable hooks by default. | |
| 6606 lt_cv_sys_global_symbol_to_import= | |
| 6607 lt_cdecl_hook= | |
| 6608 lt_c_name_hook= | |
| 6609 lt_c_name_lib_hook= | |
| 6610 fi | |
| 6611 | |
| 6612 # Transform an extracted symbol line into a proper C declaration. | |
| 6613 # Some systems (esp. on ia64) link data and code symbols differently, | |
| 6614 # so use this general approach. | |
| 6615 lt_cv_sys_global_symbol_to_cdecl="sed -n"\ | |
| 6616 $lt_cdecl_hook\ | |
| 6617 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ | |
| 6618 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" | |
| 6619 | |
| 6620 # Transform an extracted symbol line into symbol name and symbol address | |
| 6621 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ | |
| 6622 $lt_c_name_hook\ | |
| 6623 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
| 6624 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" | |
| 6625 | |
| 6626 # Transform an extracted symbol line into symbol name with lib prefix and | |
| 6627 # symbol address. | |
| 6628 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ | |
| 6629 $lt_c_name_lib_hook\ | |
| 6630 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ | |
| 6631 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ | |
| 6632 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" | |
| 6633 | |
| 6634 # Handle CRLF in mingw tool chain | |
| 6635 opt_cr= | |
| 6636 case $build_os in | |
| 6637 mingw*) | |
| 6638 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
| 6639 ;; | |
| 6640 esac | |
| 6641 | |
| 6642 # Try without a prefix underscore, then with it. | |
| 6643 for ac_symprfx in "" "_"; do | |
| 6644 | |
| 6645 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
| 6646 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
| 6647 | |
| 6648 # Write the raw and C identifiers. | |
| 6649 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
| 6650 # Fake it for dumpbin and say T for any non-static function, | |
| 6651 # D for any global variable and I for any imported variable. | |
| 6652 # Also find C++ and __fastcall symbols from MSVC++, | |
| 6653 # which start with @ or ?. | |
| 6654 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
| 6655 " {last_section=section; section=\$ 3};"\ | |
| 6656 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
| 6657 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
| 6658 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ | |
| 6659 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ | |
| 6660 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ | |
| 6661 " \$ 0!~/External *\|/{next};"\ | |
| 6662 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
| 6663 " {if(hide[section]) next};"\ | |
| 6664 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ | |
| 6665 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ | |
| 6666 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ | |
| 6667 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ | |
| 6668 " ' prfx=^$ac_symprfx" | |
| 6669 else | |
| 6670 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
| 6671 fi | |
| 6672 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
| 6673 | |
| 6674 # Check to see that the pipe works correctly. | |
| 6675 pipe_works=no | |
| 6676 | |
| 6677 rm -f conftest* | |
| 6678 cat > conftest.$ac_ext <<_LT_EOF | |
| 6679 #ifdef __cplusplus | |
| 6680 extern "C" { | |
| 6681 #endif | |
| 6682 char nm_test_var; | |
| 6683 void nm_test_func(void); | |
| 6684 void nm_test_func(void){} | |
| 6685 #ifdef __cplusplus | |
| 6686 } | |
| 6687 #endif | |
| 6688 int main(){nm_test_var='a';nm_test_func();return(0);} | |
| 6689 _LT_EOF | |
| 6690 | |
| 6691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
| 6692 (eval $ac_compile) 2>&5 | |
| 6693 ac_status=$? | |
| 6694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 6695 test $ac_status = 0; }; then | |
| 6696 # Now try to grab the symbols. | |
| 6697 nlist=conftest.nm | |
| 6698 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
| 6699 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
| 6700 ac_status=$? | |
| 6701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 6702 test $ac_status = 0; } && test -s "$nlist"; then | |
| 6703 # Try sorting and uniquifying the output. | |
| 6704 if sort "$nlist" | uniq > "$nlist"T; then | |
| 6705 mv -f "$nlist"T "$nlist" | |
| 6706 else | |
| 6707 rm -f "$nlist"T | |
| 6708 fi | |
| 6709 | |
| 6710 # Make sure that we snagged all the symbols we need. | |
| 6711 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
| 6712 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
| 6713 cat <<_LT_EOF > conftest.$ac_ext | |
| 6714 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
| 6715 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE | |
| 6716 /* DATA imports from DLLs on WIN32 can't be const, because runtime | |
| 6717 relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
| 6718 # define LT_DLSYM_CONST | |
| 6719 #elif defined __osf__ | |
| 6720 /* This system does not cope well with relocations in const data. */ | |
| 6721 # define LT_DLSYM_CONST | |
| 6722 #else | |
| 6723 # define LT_DLSYM_CONST const | |
| 6724 #endif | |
| 6725 | |
| 6726 #ifdef __cplusplus | |
| 6727 extern "C" { | |
| 6728 #endif | |
| 6729 | |
| 6730 _LT_EOF | |
| 6731 # Now generate the symbol file. | |
| 6732 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
| 6733 | |
| 6734 cat <<_LT_EOF >> conftest.$ac_ext | |
| 6735 | |
| 6736 /* The mapping between symbol names and symbols. */ | |
| 6737 LT_DLSYM_CONST struct { | |
| 6738 const char *name; | |
| 6739 void *address; | |
| 6740 } | |
| 6741 lt__PROGRAM__LTX_preloaded_symbols[] = | |
| 6742 { | |
| 6743 { "@PROGRAM@", (void *) 0 }, | |
| 6744 _LT_EOF | |
| 6745 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
| 6746 cat <<\_LT_EOF >> conftest.$ac_ext | |
| 6747 {0, (void *) 0} | |
| 6748 }; | |
| 6749 | |
| 6750 /* This works around a problem in FreeBSD linker */ | |
| 6751 #ifdef FREEBSD_WORKAROUND | |
| 6752 static const void *lt_preloaded_setup() { | |
| 6753 return lt__PROGRAM__LTX_preloaded_symbols; | |
| 6754 } | |
| 6755 #endif | |
| 6756 | |
| 6757 #ifdef __cplusplus | |
| 6758 } | |
| 6759 #endif | |
| 6760 _LT_EOF | |
| 6761 # Now try linking the two files. | |
| 6762 mv conftest.$ac_objext conftstm.$ac_objext | |
| 6763 lt_globsym_save_LIBS=$LIBS | |
| 6764 lt_globsym_save_CFLAGS=$CFLAGS | |
| 6765 LIBS=conftstm.$ac_objext | |
| 6766 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
| 6767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
| 6768 (eval $ac_link) 2>&5 | |
| 6769 ac_status=$? | |
| 6770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 6771 test $ac_status = 0; } && test -s conftest$ac_exeext; then | |
| 6772 pipe_works=yes | |
| 6773 fi | |
| 6774 LIBS=$lt_globsym_save_LIBS | |
| 6775 CFLAGS=$lt_globsym_save_CFLAGS | |
| 6776 else | |
| 6777 echo "cannot find nm_test_func in $nlist" >&5 | |
| 6778 fi | |
| 6779 else | |
| 6780 echo "cannot find nm_test_var in $nlist" >&5 | |
| 6781 fi | |
| 6782 else | |
| 6783 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
| 6784 fi | |
| 6785 else | |
| 6786 echo "$progname: failed program was:" >&5 | |
| 6787 cat conftest.$ac_ext >&5 | |
| 6788 fi | |
| 6789 rm -rf conftest* conftst* | |
| 6790 | |
| 6791 # Do not use the global_symbol_pipe unless it works. | |
| 6792 if test yes = "$pipe_works"; then | |
| 6793 break | |
| 6794 else | |
| 6795 lt_cv_sys_global_symbol_pipe= | |
| 6796 fi | |
| 6797 done | |
| 6798 | |
| 6799 fi | |
| 6800 | |
| 6801 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
| 6802 lt_cv_sys_global_symbol_to_cdecl= | |
| 6803 fi | |
| 6804 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
| 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
| 6806 $as_echo "failed" >&6; } | |
| 6807 else | |
| 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
| 6809 $as_echo "ok" >&6; } | |
| 6810 fi | |
| 6811 | |
| 6812 # Response file support. | |
| 6813 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
| 6814 nm_file_list_spec='@' | |
| 6815 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
| 6816 nm_file_list_spec='@' | |
| 6817 fi | |
| 6818 | |
| 6819 | |
| 6820 | |
| 6821 | |
| 6822 | |
| 6823 | |
| 6824 | |
| 6825 | |
| 6826 | |
| 6827 | |
| 6828 | |
| 6829 | |
| 6830 | |
| 6831 | |
| 6832 | |
| 6833 | |
| 6834 | |
| 6835 | |
| 6836 | |
| 6837 | |
| 6838 | |
| 6839 | |
| 6840 | |
| 6841 | |
| 6842 | |
| 6843 | |
| 6844 | |
| 6845 | |
| 6846 | |
| 6847 | |
| 6848 | |
| 6849 | |
| 6850 | |
| 6851 | |
| 6852 | |
| 6853 | |
| 6854 | |
| 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
| 6856 $as_echo_n "checking for sysroot... " >&6; } | |
| 6857 | |
| 6858 # Check whether --with-sysroot was given. | |
| 6859 if test "${with_sysroot+set}" = set; then : | |
| 6860 withval=$with_sysroot; | |
| 6861 else | |
| 6862 with_sysroot=no | |
| 6863 fi | |
| 6864 | |
| 6865 | |
| 6866 lt_sysroot= | |
| 6867 case $with_sysroot in #( | |
| 6868 yes) | |
| 6869 if test yes = "$GCC"; then | |
| 6870 lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
| 6871 fi | |
| 6872 ;; #( | |
| 6873 /*) | |
| 6874 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
| 6875 ;; #( | |
| 6876 no|'') | |
| 6877 ;; #( | |
| 6878 *) | |
| 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 | |
| 6880 $as_echo "$with_sysroot" >&6; } | |
| 6881 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
| 6882 ;; | |
| 6883 esac | |
| 6884 | |
| 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
| 6886 $as_echo "${lt_sysroot:-no}" >&6; } | |
| 6887 | |
| 6888 | |
| 6889 | |
| 6890 | |
| 6891 | |
| 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 | |
| 6893 $as_echo_n "checking for a working dd... " >&6; } | |
| 6894 if ${ac_cv_path_lt_DD+:} false; then : | |
| 6895 $as_echo_n "(cached) " >&6 | |
| 6896 else | |
| 6897 printf 0123456789abcdef0123456789abcdef >conftest.i | |
| 6898 cat conftest.i conftest.i >conftest2.i | |
| 6899 : ${lt_DD:=$DD} | |
| 6900 if test -z "$lt_DD"; then | |
| 6901 ac_path_lt_DD_found=false | |
| 6902 # Loop through the user's path and test for each of PROGNAME-LIST | |
| 6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 6904 for as_dir in $PATH | |
| 6905 do | |
| 6906 IFS=$as_save_IFS | |
| 6907 test -z "$as_dir" && as_dir=. | |
| 6908 for ac_prog in dd; do | |
| 6909 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 6910 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" | |
| 6911 as_fn_executable_p "$ac_path_lt_DD" || continue | |
| 6912 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
| 6913 cmp -s conftest.i conftest.out \ | |
| 6914 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: | |
| 6915 fi | |
| 6916 $ac_path_lt_DD_found && break 3 | |
| 6917 done | |
| 6918 done | |
| 6919 done | |
| 6920 IFS=$as_save_IFS | |
| 6921 if test -z "$ac_cv_path_lt_DD"; then | |
| 6922 : | |
| 6923 fi | |
| 6924 else | |
| 6925 ac_cv_path_lt_DD=$lt_DD | |
| 6926 fi | |
| 6927 | |
| 6928 rm -f conftest.i conftest2.i conftest.out | |
| 6929 fi | |
| 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 | |
| 6931 $as_echo "$ac_cv_path_lt_DD" >&6; } | |
| 6932 | |
| 6933 | |
| 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 | |
| 6935 $as_echo_n "checking how to truncate binary pipes... " >&6; } | |
| 6936 if ${lt_cv_truncate_bin+:} false; then : | |
| 6937 $as_echo_n "(cached) " >&6 | |
| 6938 else | |
| 6939 printf 0123456789abcdef0123456789abcdef >conftest.i | |
| 6940 cat conftest.i conftest.i >conftest2.i | |
| 6941 lt_cv_truncate_bin= | |
| 6942 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then | |
| 6943 cmp -s conftest.i conftest.out \ | |
| 6944 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" | |
| 6945 fi | |
| 6946 rm -f conftest.i conftest2.i conftest.out | |
| 6947 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" | |
| 6948 fi | |
| 6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 | |
| 6950 $as_echo "$lt_cv_truncate_bin" >&6; } | |
| 6951 | |
| 6952 | |
| 6953 | |
| 6954 | |
| 6955 | |
| 6956 | |
| 6957 | |
| 6958 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
| 6959 func_cc_basename () | |
| 6960 { | |
| 6961 for cc_temp in $*""; do | |
| 6962 case $cc_temp in | |
| 6963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
| 6964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
| 6965 \-*) ;; | |
| 6966 *) break;; | |
| 6967 esac | |
| 6968 done | |
| 6969 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
| 6970 } | |
| 6971 | |
| 6972 # Check whether --enable-libtool-lock was given. | |
| 6973 if test "${enable_libtool_lock+set}" = set; then : | |
| 6974 enableval=$enable_libtool_lock; | |
| 6975 fi | |
| 6976 | |
| 6977 test no = "$enable_libtool_lock" || enable_libtool_lock=yes | |
| 6978 | |
| 6979 # Some flags need to be propagated to the compiler or linker for good | |
| 6980 # libtool support. | |
| 6981 case $host in | |
| 6982 ia64-*-hpux*) | |
| 6983 # Find out what ABI is being produced by ac_compile, and set mode | |
| 6984 # options accordingly. | |
| 6985 echo 'int i;' > conftest.$ac_ext | |
| 6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
| 6987 (eval $ac_compile) 2>&5 | |
| 6988 ac_status=$? | |
| 6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 6990 test $ac_status = 0; }; then | |
| 6991 case `/usr/bin/file conftest.$ac_objext` in | |
| 6992 *ELF-32*) | |
| 6993 HPUX_IA64_MODE=32 | |
| 6994 ;; | |
| 6995 *ELF-64*) | |
| 6996 HPUX_IA64_MODE=64 | |
| 6997 ;; | |
| 6998 esac | |
| 6999 fi | |
| 7000 rm -rf conftest* | |
| 7001 ;; | |
| 7002 *-*-irix6*) | |
| 7003 # Find out what ABI is being produced by ac_compile, and set linker | |
| 7004 # options accordingly. | |
| 7005 echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
| 7006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
| 7007 (eval $ac_compile) 2>&5 | |
| 7008 ac_status=$? | |
| 7009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 7010 test $ac_status = 0; }; then | |
| 7011 if test yes = "$lt_cv_prog_gnu_ld"; then | |
| 7012 case `/usr/bin/file conftest.$ac_objext` in | |
| 7013 *32-bit*) | |
| 7014 LD="${LD-ld} -melf32bsmip" | |
| 7015 ;; | |
| 7016 *N32*) | |
| 7017 LD="${LD-ld} -melf32bmipn32" | |
| 7018 ;; | |
| 7019 *64-bit*) | |
| 7020 LD="${LD-ld} -melf64bmip" | |
| 7021 ;; | |
| 7022 esac | |
| 7023 else | |
| 7024 case `/usr/bin/file conftest.$ac_objext` in | |
| 7025 *32-bit*) | |
| 7026 LD="${LD-ld} -32" | |
| 7027 ;; | |
| 7028 *N32*) | |
| 7029 LD="${LD-ld} -n32" | |
| 7030 ;; | |
| 7031 *64-bit*) | |
| 7032 LD="${LD-ld} -64" | |
| 7033 ;; | |
| 7034 esac | |
| 7035 fi | |
| 7036 fi | |
| 7037 rm -rf conftest* | |
| 7038 ;; | |
| 7039 | |
| 7040 mips64*-*linux*) | |
| 7041 # Find out what ABI is being produced by ac_compile, and set linker | |
| 7042 # options accordingly. | |
| 7043 echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
| 7044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
| 7045 (eval $ac_compile) 2>&5 | |
| 7046 ac_status=$? | |
| 7047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 7048 test $ac_status = 0; }; then | |
| 7049 emul=elf | |
| 7050 case `/usr/bin/file conftest.$ac_objext` in | |
| 7051 *32-bit*) | |
| 7052 emul="${emul}32" | |
| 7053 ;; | |
| 7054 *64-bit*) | |
| 7055 emul="${emul}64" | |
| 7056 ;; | |
| 7057 esac | |
| 7058 case `/usr/bin/file conftest.$ac_objext` in | |
| 7059 *MSB*) | |
| 7060 emul="${emul}btsmip" | |
| 7061 ;; | |
| 7062 *LSB*) | |
| 7063 emul="${emul}ltsmip" | |
| 7064 ;; | |
| 7065 esac | |
| 7066 case `/usr/bin/file conftest.$ac_objext` in | |
| 7067 *N32*) | |
| 7068 emul="${emul}n32" | |
| 7069 ;; | |
| 7070 esac | |
| 7071 LD="${LD-ld} -m $emul" | |
| 7072 fi | |
| 7073 rm -rf conftest* | |
| 7074 ;; | |
| 7075 | |
| 7076 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
| 7077 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
| 7078 # Find out what ABI is being produced by ac_compile, and set linker | |
| 7079 # options accordingly. Note that the listed cases only cover the | |
| 7080 # situations where additional linker options are needed (such as when | |
| 7081 # doing 32-bit compilation for a host where ld defaults to 64-bit, or | |
| 7082 # vice versa); the common cases where no linker options are needed do | |
| 7083 # not appear in the list. | |
| 7084 echo 'int i;' > conftest.$ac_ext | |
| 7085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
| 7086 (eval $ac_compile) 2>&5 | |
| 7087 ac_status=$? | |
| 7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 7089 test $ac_status = 0; }; then | |
| 7090 case `/usr/bin/file conftest.o` in | |
| 7091 *32-bit*) | |
| 7092 case $host in | |
| 7093 x86_64-*kfreebsd*-gnu) | |
| 7094 LD="${LD-ld} -m elf_i386_fbsd" | |
| 7095 ;; | |
| 7096 x86_64-*linux*) | |
| 7097 case `/usr/bin/file conftest.o` in | |
| 7098 *x86-64*) | |
| 7099 LD="${LD-ld} -m elf32_x86_64" | |
| 7100 ;; | |
| 7101 *) | |
| 7102 LD="${LD-ld} -m elf_i386" | |
| 7103 ;; | |
| 7104 esac | |
| 7105 ;; | |
| 7106 powerpc64le-*linux*) | |
| 7107 LD="${LD-ld} -m elf32lppclinux" | |
| 7108 ;; | |
| 7109 powerpc64-*linux*) | |
| 7110 LD="${LD-ld} -m elf32ppclinux" | |
| 7111 ;; | |
| 7112 s390x-*linux*) | |
| 7113 LD="${LD-ld} -m elf_s390" | |
| 7114 ;; | |
| 7115 sparc64-*linux*) | |
| 7116 LD="${LD-ld} -m elf32_sparc" | |
| 7117 ;; | |
| 7118 esac | |
| 7119 ;; | |
| 7120 *64-bit*) | |
| 7121 case $host in | |
| 7122 x86_64-*kfreebsd*-gnu) | |
| 7123 LD="${LD-ld} -m elf_x86_64_fbsd" | |
| 7124 ;; | |
| 7125 x86_64-*linux*) | |
| 7126 LD="${LD-ld} -m elf_x86_64" | |
| 7127 ;; | |
| 7128 powerpcle-*linux*) | |
| 7129 LD="${LD-ld} -m elf64lppc" | |
| 7130 ;; | |
| 7131 powerpc-*linux*) | |
| 7132 LD="${LD-ld} -m elf64ppc" | |
| 7133 ;; | |
| 7134 s390*-*linux*|s390*-*tpf*) | |
| 7135 LD="${LD-ld} -m elf64_s390" | |
| 7136 ;; | |
| 7137 sparc*-*linux*) | |
| 7138 LD="${LD-ld} -m elf64_sparc" | |
| 7139 ;; | |
| 7140 esac | |
| 7141 ;; | |
| 7142 esac | |
| 7143 fi | |
| 7144 rm -rf conftest* | |
| 7145 ;; | |
| 7146 | |
| 7147 *-*-sco3.2v5*) | |
| 7148 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
| 7149 SAVE_CFLAGS=$CFLAGS | |
| 7150 CFLAGS="$CFLAGS -belf" | |
| 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
| 7152 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
| 7153 if ${lt_cv_cc_needs_belf+:} false; then : | |
| 7154 $as_echo_n "(cached) " >&6 | |
| 7155 else | |
| 7156 ac_ext=c | |
| 7157 ac_cpp='$CPP $CPPFLAGS' | |
| 7158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 7159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 7160 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 7161 | |
| 7162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7163 /* end confdefs.h. */ | |
| 7164 | |
| 7165 int | |
| 7166 main () | |
| 7167 { | |
| 7168 | |
| 7169 ; | |
| 7170 return 0; | |
| 7171 } | |
| 7172 _ACEOF | |
| 7173 if ac_fn_c_try_link "$LINENO"; then : | |
| 7174 lt_cv_cc_needs_belf=yes | |
| 7175 else | |
| 7176 lt_cv_cc_needs_belf=no | |
| 7177 fi | |
| 7178 rm -f core conftest.err conftest.$ac_objext \ | |
| 7179 conftest$ac_exeext conftest.$ac_ext | |
| 7180 ac_ext=c | |
| 7181 ac_cpp='$CPP $CPPFLAGS' | |
| 7182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 7183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 7184 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 7185 | |
| 7186 fi | |
| 7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
| 7188 $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
| 7189 if test yes != "$lt_cv_cc_needs_belf"; then | |
| 7190 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
| 7191 CFLAGS=$SAVE_CFLAGS | |
| 7192 fi | |
| 7193 ;; | |
| 7194 *-*solaris*) | |
| 7195 # Find out what ABI is being produced by ac_compile, and set linker | |
| 7196 # options accordingly. | |
| 7197 echo 'int i;' > conftest.$ac_ext | |
| 7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
| 7199 (eval $ac_compile) 2>&5 | |
| 7200 ac_status=$? | |
| 7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 7202 test $ac_status = 0; }; then | |
| 7203 case `/usr/bin/file conftest.o` in | |
| 7204 *64-bit*) | |
| 7205 case $lt_cv_prog_gnu_ld in | |
| 7206 yes*) | |
| 7207 case $host in | |
| 7208 i?86-*-solaris*|x86_64-*-solaris*) | |
| 7209 LD="${LD-ld} -m elf_x86_64" | |
| 7210 ;; | |
| 7211 sparc*-*-solaris*) | |
| 7212 LD="${LD-ld} -m elf64_sparc" | |
| 7213 ;; | |
| 7214 esac | |
| 7215 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
| 7216 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
| 7217 LD=${LD-ld}_sol2 | |
| 7218 fi | |
| 7219 ;; | |
| 7220 *) | |
| 7221 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
| 7222 LD="${LD-ld} -64" | |
| 7223 fi | |
| 7224 ;; | |
| 7225 esac | |
| 7226 ;; | |
| 7227 esac | |
| 7228 fi | |
| 7229 rm -rf conftest* | |
| 7230 ;; | |
| 7231 esac | |
| 7232 | |
| 7233 need_locks=$enable_libtool_lock | |
| 7234 | |
| 7235 if test -n "$ac_tool_prefix"; then | |
| 7236 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
| 7237 set dummy ${ac_tool_prefix}mt; 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_MANIFEST_TOOL+:} false; then : | |
| 7241 $as_echo_n "(cached) " >&6 | |
| 7242 else | |
| 7243 if test -n "$MANIFEST_TOOL"; then | |
| 7244 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # 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_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
| 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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
| 7264 if test -n "$MANIFEST_TOOL"; then | |
| 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
| 7266 $as_echo "$MANIFEST_TOOL" >&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_MANIFEST_TOOL"; then | |
| 7275 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
| 7276 # Extract the first word of "mt", so it can be a program name with args. | |
| 7277 set dummy mt; 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_MANIFEST_TOOL+:} false; then : | |
| 7281 $as_echo_n "(cached) " >&6 | |
| 7282 else | |
| 7283 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
| 7284 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # 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_MANIFEST_TOOL="mt" | |
| 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_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
| 7304 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
| 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
| 7306 $as_echo "$ac_ct_MANIFEST_TOOL" >&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_MANIFEST_TOOL" = x; then | |
| 7313 MANIFEST_TOOL=":" | |
| 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 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
| 7322 fi | |
| 7323 else | |
| 7324 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
| 7325 fi | |
| 7326 | |
| 7327 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
| 7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
| 7329 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
| 7330 if ${lt_cv_path_mainfest_tool+:} false; then : | |
| 7331 $as_echo_n "(cached) " >&6 | |
| 7332 else | |
| 7333 lt_cv_path_mainfest_tool=no | |
| 7334 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
| 7335 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
| 7336 cat conftest.err >&5 | |
| 7337 if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
| 7338 lt_cv_path_mainfest_tool=yes | |
| 7339 fi | |
| 7340 rm -f conftest* | |
| 7341 fi | |
| 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
| 7343 $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
| 7344 if test yes != "$lt_cv_path_mainfest_tool"; then | |
| 7345 MANIFEST_TOOL=: | |
| 7346 fi | |
| 7347 | |
| 7348 | |
| 7349 | |
| 7350 | |
| 7351 | |
| 7352 | |
| 7353 case $host_os in | |
| 7354 rhapsody* | darwin*) | |
| 7355 if test -n "$ac_tool_prefix"; then | |
| 7356 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
| 7357 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
| 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 7359 $as_echo_n "checking for $ac_word... " >&6; } | |
| 7360 if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
| 7361 $as_echo_n "(cached) " >&6 | |
| 7362 else | |
| 7363 if test -n "$DSYMUTIL"; then | |
| 7364 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
| 7365 else | |
| 7366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 7367 for as_dir in $PATH | |
| 7368 do | |
| 7369 IFS=$as_save_IFS | |
| 7370 test -z "$as_dir" && as_dir=. | |
| 7371 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 7372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 7373 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
| 7374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 7375 break 2 | |
| 7376 fi | |
| 7377 done | |
| 7378 done | |
| 7379 IFS=$as_save_IFS | |
| 7380 | |
| 7381 fi | |
| 7382 fi | |
| 7383 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
| 7384 if test -n "$DSYMUTIL"; then | |
| 7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
| 7386 $as_echo "$DSYMUTIL" >&6; } | |
| 7387 else | |
| 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 7389 $as_echo "no" >&6; } | |
| 7390 fi | |
| 7391 | |
| 7392 | |
| 7393 fi | |
| 7394 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
| 7395 ac_ct_DSYMUTIL=$DSYMUTIL | |
| 7396 # Extract the first word of "dsymutil", so it can be a program name with args. | |
| 7397 set dummy dsymutil; ac_word=$2 | |
| 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 7399 $as_echo_n "checking for $ac_word... " >&6; } | |
| 7400 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
| 7401 $as_echo_n "(cached) " >&6 | |
| 7402 else | |
| 7403 if test -n "$ac_ct_DSYMUTIL"; then | |
| 7404 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
| 7405 else | |
| 7406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 7407 for as_dir in $PATH | |
| 7408 do | |
| 7409 IFS=$as_save_IFS | |
| 7410 test -z "$as_dir" && as_dir=. | |
| 7411 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 7412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 7413 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
| 7414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 7415 break 2 | |
| 7416 fi | |
| 7417 done | |
| 7418 done | |
| 7419 IFS=$as_save_IFS | |
| 7420 | |
| 7421 fi | |
| 7422 fi | |
| 7423 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
| 7424 if test -n "$ac_ct_DSYMUTIL"; then | |
| 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
| 7426 $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
| 7427 else | |
| 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 7429 $as_echo "no" >&6; } | |
| 7430 fi | |
| 7431 | |
| 7432 if test "x$ac_ct_DSYMUTIL" = x; then | |
| 7433 DSYMUTIL=":" | |
| 7434 else | |
| 7435 case $cross_compiling:$ac_tool_warned in | |
| 7436 yes:) | |
| 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 7439 ac_tool_warned=yes ;; | |
| 7440 esac | |
| 7441 DSYMUTIL=$ac_ct_DSYMUTIL | |
| 7442 fi | |
| 7443 else | |
| 7444 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
| 7445 fi | |
| 7446 | |
| 7447 if test -n "$ac_tool_prefix"; then | |
| 7448 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
| 7449 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
| 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 7451 $as_echo_n "checking for $ac_word... " >&6; } | |
| 7452 if ${ac_cv_prog_NMEDIT+:} false; then : | |
| 7453 $as_echo_n "(cached) " >&6 | |
| 7454 else | |
| 7455 if test -n "$NMEDIT"; then | |
| 7456 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
| 7457 else | |
| 7458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 7459 for as_dir in $PATH | |
| 7460 do | |
| 7461 IFS=$as_save_IFS | |
| 7462 test -z "$as_dir" && as_dir=. | |
| 7463 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 7464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 7465 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
| 7466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 7467 break 2 | |
| 7468 fi | |
| 7469 done | |
| 7470 done | |
| 7471 IFS=$as_save_IFS | |
| 7472 | |
| 7473 fi | |
| 7474 fi | |
| 7475 NMEDIT=$ac_cv_prog_NMEDIT | |
| 7476 if test -n "$NMEDIT"; then | |
| 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
| 7478 $as_echo "$NMEDIT" >&6; } | |
| 7479 else | |
| 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 7481 $as_echo "no" >&6; } | |
| 7482 fi | |
| 7483 | |
| 7484 | |
| 7485 fi | |
| 7486 if test -z "$ac_cv_prog_NMEDIT"; then | |
| 7487 ac_ct_NMEDIT=$NMEDIT | |
| 7488 # Extract the first word of "nmedit", so it can be a program name with args. | |
| 7489 set dummy nmedit; ac_word=$2 | |
| 7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 7491 $as_echo_n "checking for $ac_word... " >&6; } | |
| 7492 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
| 7493 $as_echo_n "(cached) " >&6 | |
| 7494 else | |
| 7495 if test -n "$ac_ct_NMEDIT"; then | |
| 7496 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
| 7497 else | |
| 7498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 7499 for as_dir in $PATH | |
| 7500 do | |
| 7501 IFS=$as_save_IFS | |
| 7502 test -z "$as_dir" && as_dir=. | |
| 7503 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 7504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 7505 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
| 7506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 7507 break 2 | |
| 7508 fi | |
| 7509 done | |
| 7510 done | |
| 7511 IFS=$as_save_IFS | |
| 7512 | |
| 7513 fi | |
| 7514 fi | |
| 7515 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
| 7516 if test -n "$ac_ct_NMEDIT"; then | |
| 7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
| 7518 $as_echo "$ac_ct_NMEDIT" >&6; } | |
| 7519 else | |
| 7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 7521 $as_echo "no" >&6; } | |
| 7522 fi | |
| 7523 | |
| 7524 if test "x$ac_ct_NMEDIT" = x; then | |
| 7525 NMEDIT=":" | |
| 7526 else | |
| 7527 case $cross_compiling:$ac_tool_warned in | |
| 7528 yes:) | |
| 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 7530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 7531 ac_tool_warned=yes ;; | |
| 7532 esac | |
| 7533 NMEDIT=$ac_ct_NMEDIT | |
| 7534 fi | |
| 7535 else | |
| 7536 NMEDIT="$ac_cv_prog_NMEDIT" | |
| 7537 fi | |
| 7538 | |
| 7539 if test -n "$ac_tool_prefix"; then | |
| 7540 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
| 7541 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
| 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 7543 $as_echo_n "checking for $ac_word... " >&6; } | |
| 7544 if ${ac_cv_prog_LIPO+:} false; then : | |
| 7545 $as_echo_n "(cached) " >&6 | |
| 7546 else | |
| 7547 if test -n "$LIPO"; then | |
| 7548 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
| 7549 else | |
| 7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 7551 for as_dir in $PATH | |
| 7552 do | |
| 7553 IFS=$as_save_IFS | |
| 7554 test -z "$as_dir" && as_dir=. | |
| 7555 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 7556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 7557 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
| 7558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 7559 break 2 | |
| 7560 fi | |
| 7561 done | |
| 7562 done | |
| 7563 IFS=$as_save_IFS | |
| 7564 | |
| 7565 fi | |
| 7566 fi | |
| 7567 LIPO=$ac_cv_prog_LIPO | |
| 7568 if test -n "$LIPO"; then | |
| 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
| 7570 $as_echo "$LIPO" >&6; } | |
| 7571 else | |
| 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 7573 $as_echo "no" >&6; } | |
| 7574 fi | |
| 7575 | |
| 7576 | |
| 7577 fi | |
| 7578 if test -z "$ac_cv_prog_LIPO"; then | |
| 7579 ac_ct_LIPO=$LIPO | |
| 7580 # Extract the first word of "lipo", so it can be a program name with args. | |
| 7581 set dummy lipo; ac_word=$2 | |
| 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 7583 $as_echo_n "checking for $ac_word... " >&6; } | |
| 7584 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
| 7585 $as_echo_n "(cached) " >&6 | |
| 7586 else | |
| 7587 if test -n "$ac_ct_LIPO"; then | |
| 7588 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
| 7589 else | |
| 7590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 7591 for as_dir in $PATH | |
| 7592 do | |
| 7593 IFS=$as_save_IFS | |
| 7594 test -z "$as_dir" && as_dir=. | |
| 7595 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 7596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 7597 ac_cv_prog_ac_ct_LIPO="lipo" | |
| 7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 7599 break 2 | |
| 7600 fi | |
| 7601 done | |
| 7602 done | |
| 7603 IFS=$as_save_IFS | |
| 7604 | |
| 7605 fi | |
| 7606 fi | |
| 7607 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
| 7608 if test -n "$ac_ct_LIPO"; then | |
| 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
| 7610 $as_echo "$ac_ct_LIPO" >&6; } | |
| 7611 else | |
| 7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 7613 $as_echo "no" >&6; } | |
| 7614 fi | |
| 7615 | |
| 7616 if test "x$ac_ct_LIPO" = x; then | |
| 7617 LIPO=":" | |
| 7618 else | |
| 7619 case $cross_compiling:$ac_tool_warned in | |
| 7620 yes:) | |
| 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 7622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 7623 ac_tool_warned=yes ;; | |
| 7624 esac | |
| 7625 LIPO=$ac_ct_LIPO | |
| 7626 fi | |
| 7627 else | |
| 7628 LIPO="$ac_cv_prog_LIPO" | |
| 7629 fi | |
| 7630 | |
| 7631 if test -n "$ac_tool_prefix"; then | |
| 7632 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
| 7633 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
| 7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 7635 $as_echo_n "checking for $ac_word... " >&6; } | |
| 7636 if ${ac_cv_prog_OTOOL+:} false; then : | |
| 7637 $as_echo_n "(cached) " >&6 | |
| 7638 else | |
| 7639 if test -n "$OTOOL"; then | |
| 7640 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
| 7641 else | |
| 7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 7643 for as_dir in $PATH | |
| 7644 do | |
| 7645 IFS=$as_save_IFS | |
| 7646 test -z "$as_dir" && as_dir=. | |
| 7647 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 7648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 7649 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
| 7650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 7651 break 2 | |
| 7652 fi | |
| 7653 done | |
| 7654 done | |
| 7655 IFS=$as_save_IFS | |
| 7656 | |
| 7657 fi | |
| 7658 fi | |
| 7659 OTOOL=$ac_cv_prog_OTOOL | |
| 7660 if test -n "$OTOOL"; then | |
| 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
| 7662 $as_echo "$OTOOL" >&6; } | |
| 7663 else | |
| 7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 7665 $as_echo "no" >&6; } | |
| 7666 fi | |
| 7667 | |
| 7668 | |
| 7669 fi | |
| 7670 if test -z "$ac_cv_prog_OTOOL"; then | |
| 7671 ac_ct_OTOOL=$OTOOL | |
| 7672 # Extract the first word of "otool", so it can be a program name with args. | |
| 7673 set dummy otool; ac_word=$2 | |
| 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 7675 $as_echo_n "checking for $ac_word... " >&6; } | |
| 7676 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
| 7677 $as_echo_n "(cached) " >&6 | |
| 7678 else | |
| 7679 if test -n "$ac_ct_OTOOL"; then | |
| 7680 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
| 7681 else | |
| 7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 7683 for as_dir in $PATH | |
| 7684 do | |
| 7685 IFS=$as_save_IFS | |
| 7686 test -z "$as_dir" && as_dir=. | |
| 7687 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 7688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 7689 ac_cv_prog_ac_ct_OTOOL="otool" | |
| 7690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 7691 break 2 | |
| 7692 fi | |
| 7693 done | |
| 7694 done | |
| 7695 IFS=$as_save_IFS | |
| 7696 | |
| 7697 fi | |
| 7698 fi | |
| 7699 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
| 7700 if test -n "$ac_ct_OTOOL"; then | |
| 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
| 7702 $as_echo "$ac_ct_OTOOL" >&6; } | |
| 7703 else | |
| 7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 7705 $as_echo "no" >&6; } | |
| 7706 fi | |
| 7707 | |
| 7708 if test "x$ac_ct_OTOOL" = x; then | |
| 7709 OTOOL=":" | |
| 7710 else | |
| 7711 case $cross_compiling:$ac_tool_warned in | |
| 7712 yes:) | |
| 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 7714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 7715 ac_tool_warned=yes ;; | |
| 7716 esac | |
| 7717 OTOOL=$ac_ct_OTOOL | |
| 7718 fi | |
| 7719 else | |
| 7720 OTOOL="$ac_cv_prog_OTOOL" | |
| 7721 fi | |
| 7722 | |
| 7723 if test -n "$ac_tool_prefix"; then | |
| 7724 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
| 7725 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
| 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 7727 $as_echo_n "checking for $ac_word... " >&6; } | |
| 7728 if ${ac_cv_prog_OTOOL64+:} false; then : | |
| 7729 $as_echo_n "(cached) " >&6 | |
| 7730 else | |
| 7731 if test -n "$OTOOL64"; then | |
| 7732 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
| 7733 else | |
| 7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 7735 for as_dir in $PATH | |
| 7736 do | |
| 7737 IFS=$as_save_IFS | |
| 7738 test -z "$as_dir" && as_dir=. | |
| 7739 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 7740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 7741 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
| 7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 7743 break 2 | |
| 7744 fi | |
| 7745 done | |
| 7746 done | |
| 7747 IFS=$as_save_IFS | |
| 7748 | |
| 7749 fi | |
| 7750 fi | |
| 7751 OTOOL64=$ac_cv_prog_OTOOL64 | |
| 7752 if test -n "$OTOOL64"; then | |
| 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
| 7754 $as_echo "$OTOOL64" >&6; } | |
| 7755 else | |
| 7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 7757 $as_echo "no" >&6; } | |
| 7758 fi | |
| 7759 | |
| 7760 | |
| 7761 fi | |
| 7762 if test -z "$ac_cv_prog_OTOOL64"; then | |
| 7763 ac_ct_OTOOL64=$OTOOL64 | |
| 7764 # Extract the first word of "otool64", so it can be a program name with args. | |
| 7765 set dummy otool64; ac_word=$2 | |
| 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 7767 $as_echo_n "checking for $ac_word... " >&6; } | |
| 7768 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
| 7769 $as_echo_n "(cached) " >&6 | |
| 7770 else | |
| 7771 if test -n "$ac_ct_OTOOL64"; then | |
| 7772 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
| 7773 else | |
| 7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 7775 for as_dir in $PATH | |
| 7776 do | |
| 7777 IFS=$as_save_IFS | |
| 7778 test -z "$as_dir" && as_dir=. | |
| 7779 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 7781 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
| 7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 7783 break 2 | |
| 7784 fi | |
| 7785 done | |
| 7786 done | |
| 7787 IFS=$as_save_IFS | |
| 7788 | |
| 7789 fi | |
| 7790 fi | |
| 7791 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
| 7792 if test -n "$ac_ct_OTOOL64"; then | |
| 7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
| 7794 $as_echo "$ac_ct_OTOOL64" >&6; } | |
| 7795 else | |
| 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 7797 $as_echo "no" >&6; } | |
| 7798 fi | |
| 7799 | |
| 7800 if test "x$ac_ct_OTOOL64" = x; then | |
| 7801 OTOOL64=":" | |
| 7802 else | |
| 7803 case $cross_compiling:$ac_tool_warned in | |
| 7804 yes:) | |
| 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
| 7806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
| 7807 ac_tool_warned=yes ;; | |
| 7808 esac | |
| 7809 OTOOL64=$ac_ct_OTOOL64 | |
| 7810 fi | |
| 7811 else | |
| 7812 OTOOL64="$ac_cv_prog_OTOOL64" | |
| 7813 fi | |
| 7814 | |
| 7815 | |
| 7816 | |
| 7817 | |
| 7818 | |
| 7819 | |
| 7820 | |
| 7821 | |
| 7822 | |
| 7823 | |
| 7824 | |
| 7825 | |
| 7826 | |
| 7827 | |
| 7828 | |
| 7829 | |
| 7830 | |
| 7831 | |
| 7832 | |
| 7833 | |
| 7834 | |
| 7835 | |
| 7836 | |
| 7837 | |
| 7838 | |
| 7839 | |
| 7840 | |
| 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
| 7842 $as_echo_n "checking for -single_module linker flag... " >&6; } | |
| 7843 if ${lt_cv_apple_cc_single_mod+:} false; then : | |
| 7844 $as_echo_n "(cached) " >&6 | |
| 7845 else | |
| 7846 lt_cv_apple_cc_single_mod=no | |
| 7847 if test -z "$LT_MULTI_MODULE"; then | |
| 7848 # By default we will add the -single_module flag. You can override | |
| 7849 # by either setting the environment variable LT_MULTI_MODULE | |
| 7850 # non-empty at configure time, or by adding -multi_module to the | |
| 7851 # link flags. | |
| 7852 rm -rf libconftest.dylib* | |
| 7853 echo "int foo(void){return 1;}" > conftest.c | |
| 7854 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
| 7855 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
| 7856 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
| 7857 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
| 7858 _lt_result=$? | |
| 7859 # If there is a non-empty error log, and "single_module" | |
| 7860 # appears in it, assume the flag caused a linker warning | |
| 7861 if test -s conftest.err && $GREP single_module conftest.err; then | |
| 7862 cat conftest.err >&5 | |
| 7863 # Otherwise, if the output was created with a 0 exit code from | |
| 7864 # the compiler, it worked. | |
| 7865 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then | |
| 7866 lt_cv_apple_cc_single_mod=yes | |
| 7867 else | |
| 7868 cat conftest.err >&5 | |
| 7869 fi | |
| 7870 rm -rf libconftest.dylib* | |
| 7871 rm -f conftest.* | |
| 7872 fi | |
| 7873 fi | |
| 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
| 7875 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
| 7876 | |
| 7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
| 7878 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
| 7879 if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
| 7880 $as_echo_n "(cached) " >&6 | |
| 7881 else | |
| 7882 lt_cv_ld_exported_symbols_list=no | |
| 7883 save_LDFLAGS=$LDFLAGS | |
| 7884 echo "_main" > conftest.sym | |
| 7885 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
| 7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 7887 /* end confdefs.h. */ | |
| 7888 | |
| 7889 int | |
| 7890 main () | |
| 7891 { | |
| 7892 | |
| 7893 ; | |
| 7894 return 0; | |
| 7895 } | |
| 7896 _ACEOF | |
| 7897 if ac_fn_c_try_link "$LINENO"; then : | |
| 7898 lt_cv_ld_exported_symbols_list=yes | |
| 7899 else | |
| 7900 lt_cv_ld_exported_symbols_list=no | |
| 7901 fi | |
| 7902 rm -f core conftest.err conftest.$ac_objext \ | |
| 7903 conftest$ac_exeext conftest.$ac_ext | |
| 7904 LDFLAGS=$save_LDFLAGS | |
| 7905 | |
| 7906 fi | |
| 7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
| 7908 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
| 7909 | |
| 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
| 7911 $as_echo_n "checking for -force_load linker flag... " >&6; } | |
| 7912 if ${lt_cv_ld_force_load+:} false; then : | |
| 7913 $as_echo_n "(cached) " >&6 | |
| 7914 else | |
| 7915 lt_cv_ld_force_load=no | |
| 7916 cat > conftest.c << _LT_EOF | |
| 7917 int forced_loaded() { return 2;} | |
| 7918 _LT_EOF | |
| 7919 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
| 7920 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
| 7921 echo "$AR cru libconftest.a conftest.o" >&5 | |
| 7922 $AR cru libconftest.a conftest.o 2>&5 | |
| 7923 echo "$RANLIB libconftest.a" >&5 | |
| 7924 $RANLIB libconftest.a 2>&5 | |
| 7925 cat > conftest.c << _LT_EOF | |
| 7926 int main() { return 0;} | |
| 7927 _LT_EOF | |
| 7928 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
| 7929 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
| 7930 _lt_result=$? | |
| 7931 if test -s conftest.err && $GREP force_load conftest.err; then | |
| 7932 cat conftest.err >&5 | |
| 7933 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then | |
| 7934 lt_cv_ld_force_load=yes | |
| 7935 else | |
| 7936 cat conftest.err >&5 | |
| 7937 fi | |
| 7938 rm -f conftest.err libconftest.a conftest conftest.c | |
| 7939 rm -rf conftest.dSYM | |
| 7940 | |
| 7941 fi | |
| 7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
| 7943 $as_echo "$lt_cv_ld_force_load" >&6; } | |
| 7944 case $host_os in | |
| 7945 rhapsody* | darwin1.[012]) | |
| 7946 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; | |
| 7947 darwin1.*) | |
| 7948 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
| 7949 darwin*) # darwin 5.x on | |
| 7950 # if running on 10.5 or later, the deployment target defaults | |
| 7951 # to the OS version, if on x86, and 10.4, the deployment | |
| 7952 # target defaults to 10.4. Don't you love it? | |
| 7953 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
| 7954 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
| 7955 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
| 7956 10.[012][,.]*) | |
| 7957 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; | |
| 7958 10.*) | |
| 7959 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; | |
| 7960 esac | |
| 7961 ;; | |
| 7962 esac | |
| 7963 if test yes = "$lt_cv_apple_cc_single_mod"; then | |
| 7964 _lt_dar_single_mod='$single_module' | |
| 7965 fi | |
| 7966 if test yes = "$lt_cv_ld_exported_symbols_list"; then | |
| 7967 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' | |
| 7968 else | |
| 7969 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' | |
| 7970 fi | |
| 7971 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then | |
| 7972 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
| 7973 else | |
| 7974 _lt_dsymutil= | |
| 7975 fi | |
| 7976 ;; | |
| 7977 esac | |
| 7978 | |
| 7979 # func_munge_path_list VARIABLE PATH | |
| 7980 # ----------------------------------- | |
| 7981 # VARIABLE is name of variable containing _space_ separated list of | |
| 7982 # directories to be munged by the contents of PATH, which is string | |
| 7983 # having a format: | |
| 7984 # "DIR[:DIR]:" | |
| 7985 # string "DIR[ DIR]" will be prepended to VARIABLE | |
| 7986 # ":DIR[:DIR]" | |
| 7987 # string "DIR[ DIR]" will be appended to VARIABLE | |
| 7988 # "DIRP[:DIRP]::[DIRA:]DIRA" | |
| 7989 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
| 7990 # "DIRA[ DIRA]" will be appended to VARIABLE | |
| 7991 # "DIR[:DIR]" | |
| 7992 # VARIABLE will be replaced by "DIR[ DIR]" | |
| 7993 func_munge_path_list () | |
| 7994 { | |
| 7995 case x$2 in | |
| 7996 x) | |
| 7997 ;; | |
| 7998 *:) | |
| 7999 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \S|@1\" | |
| 8000 ;; | |
| 8001 x:*) | |
| 8002 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
| 8003 ;; | |
| 8004 *::*) | |
| 8005 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
| 8006 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
| 8007 ;; | |
| 8008 *) | |
| 8009 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
| 8010 ;; | |
| 8011 esac | |
| 8012 } | |
| 8013 | |
| 8014 | |
| 8015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
| 8016 $as_echo_n "checking for ANSI C header files... " >&6; } | |
| 8017 if ${ac_cv_header_stdc+:} false; then : | |
| 8018 $as_echo_n "(cached) " >&6 | |
| 8019 else | |
| 8020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8021 /* end confdefs.h. */ | |
| 8022 #include <stdlib.h> | |
| 8023 #include <stdarg.h> | |
| 8024 #include <string.h> | |
| 8025 #include <float.h> | |
| 8026 | |
| 8027 int | |
| 8028 main () | |
| 8029 { | |
| 8030 | |
| 8031 ; | |
| 8032 return 0; | |
| 8033 } | |
| 8034 _ACEOF | |
| 8035 if ac_fn_c_try_compile "$LINENO"; then : | |
| 8036 ac_cv_header_stdc=yes | |
| 8037 else | |
| 8038 ac_cv_header_stdc=no | |
| 8039 fi | |
| 8040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 8041 | |
| 8042 if test $ac_cv_header_stdc = yes; then | |
| 8043 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
| 8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8045 /* end confdefs.h. */ | |
| 8046 #include <string.h> | |
| 8047 | |
| 8048 _ACEOF | |
| 8049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
| 8050 $EGREP "memchr" >/dev/null 2>&1; then : | |
| 8051 | |
| 8052 else | |
| 8053 ac_cv_header_stdc=no | |
| 8054 fi | |
| 8055 rm -f conftest* | |
| 8056 | |
| 8057 fi | |
| 8058 | |
| 8059 if test $ac_cv_header_stdc = yes; then | |
| 8060 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
| 8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8062 /* end confdefs.h. */ | |
| 8063 #include <stdlib.h> | |
| 8064 | |
| 8065 _ACEOF | |
| 8066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
| 8067 $EGREP "free" >/dev/null 2>&1; then : | |
| 8068 | |
| 8069 else | |
| 8070 ac_cv_header_stdc=no | |
| 8071 fi | |
| 8072 rm -f conftest* | |
| 8073 | |
| 8074 fi | |
| 8075 | |
| 8076 if test $ac_cv_header_stdc = yes; then | |
| 8077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
| 8078 if test "$cross_compiling" = yes; then : | |
| 8079 : | |
| 8080 else | |
| 8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 8082 /* end confdefs.h. */ | |
| 8083 #include <ctype.h> | |
| 8084 #include <stdlib.h> | |
| 8085 #if ((' ' & 0x0FF) == 0x020) | |
| 8086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
| 8087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
| 8088 #else | |
| 8089 # define ISLOWER(c) \ | |
| 8090 (('a' <= (c) && (c) <= 'i') \ | |
| 8091 || ('j' <= (c) && (c) <= 'r') \ | |
| 8092 || ('s' <= (c) && (c) <= 'z')) | |
| 8093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
| 8094 #endif | |
| 8095 | |
| 8096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
| 8097 int | |
| 8098 main () | |
| 8099 { | |
| 8100 int i; | |
| 8101 for (i = 0; i < 256; i++) | |
| 8102 if (XOR (islower (i), ISLOWER (i)) | |
| 8103 || toupper (i) != TOUPPER (i)) | |
| 8104 return 2; | |
| 8105 return 0; | |
| 8106 } | |
| 8107 _ACEOF | |
| 8108 if ac_fn_c_try_run "$LINENO"; then : | |
| 8109 | |
| 8110 else | |
| 8111 ac_cv_header_stdc=no | |
| 8112 fi | |
| 8113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
| 8114 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 8115 fi | |
| 8116 | |
| 8117 fi | |
| 8118 fi | |
| 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
| 8120 $as_echo "$ac_cv_header_stdc" >&6; } | |
| 8121 if test $ac_cv_header_stdc = yes; then | |
| 8122 | |
| 8123 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
| 8124 | |
| 8125 fi | |
| 8126 | |
| 8127 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
| 8128 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
| 8129 inttypes.h stdint.h unistd.h | |
| 8130 do : | |
| 8131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
| 8132 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
| 8133 " | |
| 8134 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
| 8135 cat >>confdefs.h <<_ACEOF | |
| 8136 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 8137 _ACEOF | |
| 8138 | |
| 8139 fi | |
| 8140 | |
| 8141 done | |
| 8142 | |
| 8143 | |
| 8144 for ac_header in dlfcn.h | |
| 8145 do : | |
| 8146 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
| 8147 " | |
| 8148 if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
| 8149 cat >>confdefs.h <<_ACEOF | |
| 8150 #define HAVE_DLFCN_H 1 | |
| 8151 _ACEOF | |
| 8152 | |
| 8153 fi | |
| 8154 | |
| 8155 done | |
| 8156 | |
| 8157 | |
| 8158 | |
| 8159 | |
| 8160 func_stripname_cnf () | |
| 8161 { | |
| 8162 case $2 in | |
| 8163 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; | |
| 8164 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; | |
| 8165 esac | |
| 8166 } # func_stripname_cnf | |
| 8167 | |
| 8168 | |
| 8169 | |
| 8170 | |
| 8171 | |
| 8172 # Set options | |
| 8173 | |
| 8174 | |
| 8175 | |
| 8176 enable_dlopen=no | |
| 8177 | |
| 8178 | |
| 8179 enable_win32_dll=no | |
| 8180 | |
| 8181 | |
| 8182 # Check whether --enable-shared was given. | |
| 8183 if test "${enable_shared+set}" = set; then : | |
| 8184 enableval=$enable_shared; p=${PACKAGE-default} | |
| 8185 case $enableval in | |
| 8186 yes) enable_shared=yes ;; | |
| 8187 no) enable_shared=no ;; | |
| 8188 *) | |
| 8189 enable_shared=no | |
| 8190 # Look at the argument we got. We use all the common list separators. | |
| 8191 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
| 8192 for pkg in $enableval; do | |
| 8193 IFS=$lt_save_ifs | |
| 8194 if test "X$pkg" = "X$p"; then | |
| 8195 enable_shared=yes | |
| 8196 fi | |
| 8197 done | |
| 8198 IFS=$lt_save_ifs | |
| 8199 ;; | |
| 8200 esac | |
| 8201 else | |
| 8202 enable_shared=yes | |
| 8203 fi | |
| 8204 | |
| 8205 | |
| 8206 | |
| 8207 | |
| 8208 | |
| 8209 | |
| 8210 | |
| 8211 | |
| 8212 | |
| 8213 # Check whether --enable-static was given. | |
| 8214 if test "${enable_static+set}" = set; then : | |
| 8215 enableval=$enable_static; p=${PACKAGE-default} | |
| 8216 case $enableval in | |
| 8217 yes) enable_static=yes ;; | |
| 8218 no) enable_static=no ;; | |
| 8219 *) | |
| 8220 enable_static=no | |
| 8221 # Look at the argument we got. We use all the common list separators. | |
| 8222 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
| 8223 for pkg in $enableval; do | |
| 8224 IFS=$lt_save_ifs | |
| 8225 if test "X$pkg" = "X$p"; then | |
| 8226 enable_static=yes | |
| 8227 fi | |
| 8228 done | |
| 8229 IFS=$lt_save_ifs | |
| 8230 ;; | |
| 8231 esac | |
| 8232 else | |
| 8233 enable_static=yes | |
| 8234 fi | |
| 8235 | |
| 8236 | |
| 8237 | |
| 8238 | |
| 8239 | |
| 8240 | |
| 8241 | |
| 8242 | |
| 8243 | |
| 8244 | |
| 8245 # Check whether --with-pic was given. | |
| 8246 if test "${with_pic+set}" = set; then : | |
| 8247 withval=$with_pic; lt_p=${PACKAGE-default} | |
| 8248 case $withval in | |
| 8249 yes|no) pic_mode=$withval ;; | |
| 8250 *) | |
| 8251 pic_mode=default | |
| 8252 # Look at the argument we got. We use all the common list separators. | |
| 8253 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
| 8254 for lt_pkg in $withval; do | |
| 8255 IFS=$lt_save_ifs | |
| 8256 if test "X$lt_pkg" = "X$lt_p"; then | |
| 8257 pic_mode=yes | |
| 8258 fi | |
| 8259 done | |
| 8260 IFS=$lt_save_ifs | |
| 8261 ;; | |
| 8262 esac | |
| 8263 else | |
| 8264 pic_mode=default | |
| 8265 fi | |
| 8266 | |
| 8267 | |
| 8268 | |
| 8269 | |
| 8270 | |
| 8271 | |
| 8272 | |
| 8273 | |
| 8274 # Check whether --enable-fast-install was given. | |
| 8275 if test "${enable_fast_install+set}" = set; then : | |
| 8276 enableval=$enable_fast_install; p=${PACKAGE-default} | |
| 8277 case $enableval in | |
| 8278 yes) enable_fast_install=yes ;; | |
| 8279 no) enable_fast_install=no ;; | |
| 8280 *) | |
| 8281 enable_fast_install=no | |
| 8282 # Look at the argument we got. We use all the common list separators. | |
| 8283 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, | |
| 8284 for pkg in $enableval; do | |
| 8285 IFS=$lt_save_ifs | |
| 8286 if test "X$pkg" = "X$p"; then | |
| 8287 enable_fast_install=yes | |
| 8288 fi | |
| 8289 done | |
| 8290 IFS=$lt_save_ifs | |
| 8291 ;; | |
| 8292 esac | |
| 8293 else | |
| 8294 enable_fast_install=yes | |
| 8295 fi | |
| 8296 | |
| 8297 | |
| 8298 | |
| 8299 | |
| 8300 | |
| 8301 | |
| 8302 | |
| 8303 | |
| 8304 shared_archive_member_spec= | |
| 8305 case $host,$enable_shared in | |
| 8306 power*-*-aix[5-9]*,yes) | |
| 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 | |
| 8308 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; } | |
| 8309 | |
| 8310 # Check whether --with-aix-soname was given. | |
| 8311 if test "${with_aix_soname+set}" = set; then : | |
| 8312 withval=$with_aix_soname; case $withval in | |
| 8313 aix|svr4|both) | |
| 8314 ;; | |
| 8315 *) | |
| 8316 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 | |
| 8317 ;; | |
| 8318 esac | |
| 8319 lt_cv_with_aix_soname=$with_aix_soname | |
| 8320 else | |
| 8321 if ${lt_cv_with_aix_soname+:} false; then : | |
| 8322 $as_echo_n "(cached) " >&6 | |
| 8323 else | |
| 8324 lt_cv_with_aix_soname=aix | |
| 8325 fi | |
| 8326 | |
| 8327 with_aix_soname=$lt_cv_with_aix_soname | |
| 8328 fi | |
| 8329 | |
| 8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 | |
| 8331 $as_echo "$with_aix_soname" >&6; } | |
| 8332 if test aix != "$with_aix_soname"; then | |
| 8333 # For the AIX way of multilib, we name the shared archive member | |
| 8334 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', | |
| 8335 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. | |
| 8336 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, | |
| 8337 # the AIX toolchain works better with OBJECT_MODE set (default 32). | |
| 8338 if test 64 = "${OBJECT_MODE-32}"; then | |
| 8339 shared_archive_member_spec=shr_64 | |
| 8340 else | |
| 8341 shared_archive_member_spec=shr | |
| 8342 fi | |
| 8343 fi | |
| 8344 ;; | |
| 8345 *) | |
| 8346 with_aix_soname=aix | |
| 8347 ;; | |
| 8348 esac | |
| 8349 | |
| 8350 | |
| 8351 | |
| 8352 | |
| 8353 | |
| 8354 | |
| 8355 | |
| 8356 | |
| 8357 | |
| 8358 | |
| 8359 # This can be used to rebuild libtool when needed | |
| 8360 LIBTOOL_DEPS=$ltmain | |
| 8361 | |
| 8362 # Always use our own libtool. | |
| 8363 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
| 8364 | |
| 8365 | |
| 8366 | |
| 8367 | |
| 8368 | |
| 8369 | |
| 8370 | |
| 8371 | |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | |
| 8376 | |
| 8377 | |
| 8378 | |
| 8379 | |
| 8380 | |
| 8381 | |
| 8382 | |
| 8383 | |
| 8384 | |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | |
| 8389 | |
| 8390 | |
| 8391 | |
| 8392 | |
| 8393 | |
| 8394 test -z "$LN_S" && LN_S="ln -s" | |
| 8395 | |
| 8396 | |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
| 8403 | |
| 8404 | |
| 8405 | |
| 8406 | |
| 8407 | |
| 8408 | |
| 8409 if test -n "${ZSH_VERSION+set}"; then | |
| 8410 setopt NO_GLOB_SUBST | |
| 8411 fi | |
| 8412 | |
| 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
| 8414 $as_echo_n "checking for objdir... " >&6; } | |
| 8415 if ${lt_cv_objdir+:} false; then : | |
| 8416 $as_echo_n "(cached) " >&6 | |
| 8417 else | |
| 8418 rm -f .libs 2>/dev/null | |
| 8419 mkdir .libs 2>/dev/null | |
| 8420 if test -d .libs; then | |
| 8421 lt_cv_objdir=.libs | |
| 8422 else | |
| 8423 # MS-DOS does not allow filenames that begin with a dot. | |
| 8424 lt_cv_objdir=_libs | |
| 8425 fi | |
| 8426 rmdir .libs 2>/dev/null | |
| 8427 fi | |
| 8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
| 8429 $as_echo "$lt_cv_objdir" >&6; } | |
| 8430 objdir=$lt_cv_objdir | |
| 8431 | |
| 8432 | |
| 8433 | |
| 8434 | |
| 8435 | |
| 8436 cat >>confdefs.h <<_ACEOF | |
| 8437 #define LT_OBJDIR "$lt_cv_objdir/" | |
| 8438 _ACEOF | |
| 8439 | |
| 8440 | |
| 8441 | |
| 8442 | |
| 8443 case $host_os in | |
| 8444 aix3*) | |
| 8445 # AIX sometimes has problems with the GCC collect2 program. For some | |
| 8446 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
| 8447 # vanish in a puff of smoke. | |
| 8448 if test set != "${COLLECT_NAMES+set}"; then | |
| 8449 COLLECT_NAMES= | |
| 8450 export COLLECT_NAMES | |
| 8451 fi | |
| 8452 ;; | |
| 8453 esac | |
| 8454 | |
| 8455 # Global variables: | |
| 8456 ofile=libtool | |
| 8457 can_build_shared=yes | |
| 8458 | |
| 8459 # All known linkers require a '.a' archive for static linking (except MSVC, | |
| 8460 # which needs '.lib'). | |
| 8461 libext=a | |
| 8462 | |
| 8463 with_gnu_ld=$lt_cv_prog_gnu_ld | |
| 8464 | |
| 8465 old_CC=$CC | |
| 8466 old_CFLAGS=$CFLAGS | |
| 8467 | |
| 8468 # Set sane defaults for various variables | |
| 8469 test -z "$CC" && CC=cc | |
| 8470 test -z "$LTCC" && LTCC=$CC | |
| 8471 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
| 8472 test -z "$LD" && LD=ld | |
| 8473 test -z "$ac_objext" && ac_objext=o | |
| 8474 | |
| 8475 func_cc_basename $compiler | |
| 8476 cc_basename=$func_cc_basename_result | |
| 8477 | |
| 8478 | |
| 8479 # Only perform the check for file, if the check method requires it | |
| 8480 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
| 8481 case $deplibs_check_method in | |
| 8482 file_magic*) | |
| 8483 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
| 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
| 8485 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
| 8486 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
| 8487 $as_echo_n "(cached) " >&6 | |
| 8488 else | |
| 8489 case $MAGIC_CMD in | |
| 8490 [\\/*] | ?:[\\/]*) | |
| 8491 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
| 8492 ;; | |
| 8493 *) | |
| 8494 lt_save_MAGIC_CMD=$MAGIC_CMD | |
| 8495 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
| 8496 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
| 8497 for ac_dir in $ac_dummy; do | |
| 8498 IFS=$lt_save_ifs | |
| 8499 test -z "$ac_dir" && ac_dir=. | |
| 8500 if test -f "$ac_dir/${ac_tool_prefix}file"; then | |
| 8501 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" | |
| 8502 if test -n "$file_magic_test_file"; then | |
| 8503 case $deplibs_check_method in | |
| 8504 "file_magic "*) | |
| 8505 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
| 8506 MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
| 8507 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
| 8508 $EGREP "$file_magic_regex" > /dev/null; then | |
| 8509 : | |
| 8510 else | |
| 8511 cat <<_LT_EOF 1>&2 | |
| 8512 | |
| 8513 *** Warning: the command libtool uses to detect shared libraries, | |
| 8514 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
| 8515 *** The result is that libtool may fail to recognize shared libraries | |
| 8516 *** as such. This will affect the creation of libtool libraries that | |
| 8517 *** depend on shared libraries, but programs linked with such libtool | |
| 8518 *** libraries will work regardless of this problem. Nevertheless, you | |
| 8519 *** may want to report the problem to your system manager and/or to | |
| 8520 *** bug-libtool@gnu.org | |
| 8521 | |
| 8522 _LT_EOF | |
| 8523 fi ;; | |
| 8524 esac | |
| 8525 fi | |
| 8526 break | |
| 8527 fi | |
| 8528 done | |
| 8529 IFS=$lt_save_ifs | |
| 8530 MAGIC_CMD=$lt_save_MAGIC_CMD | |
| 8531 ;; | |
| 8532 esac | |
| 8533 fi | |
| 8534 | |
| 8535 MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
| 8536 if test -n "$MAGIC_CMD"; then | |
| 8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
| 8538 $as_echo "$MAGIC_CMD" >&6; } | |
| 8539 else | |
| 8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 8541 $as_echo "no" >&6; } | |
| 8542 fi | |
| 8543 | |
| 8544 | |
| 8545 | |
| 8546 | |
| 8547 | |
| 8548 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
| 8549 if test -n "$ac_tool_prefix"; then | |
| 8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
| 8551 $as_echo_n "checking for file... " >&6; } | |
| 8552 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
| 8553 $as_echo_n "(cached) " >&6 | |
| 8554 else | |
| 8555 case $MAGIC_CMD in | |
| 8556 [\\/*] | ?:[\\/]*) | |
| 8557 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. | |
| 8558 ;; | |
| 8559 *) | |
| 8560 lt_save_MAGIC_CMD=$MAGIC_CMD | |
| 8561 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
| 8562 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
| 8563 for ac_dir in $ac_dummy; do | |
| 8564 IFS=$lt_save_ifs | |
| 8565 test -z "$ac_dir" && ac_dir=. | |
| 8566 if test -f "$ac_dir/file"; then | |
| 8567 lt_cv_path_MAGIC_CMD=$ac_dir/"file" | |
| 8568 if test -n "$file_magic_test_file"; then | |
| 8569 case $deplibs_check_method in | |
| 8570 "file_magic "*) | |
| 8571 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
| 8572 MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
| 8573 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
| 8574 $EGREP "$file_magic_regex" > /dev/null; then | |
| 8575 : | |
| 8576 else | |
| 8577 cat <<_LT_EOF 1>&2 | |
| 8578 | |
| 8579 *** Warning: the command libtool uses to detect shared libraries, | |
| 8580 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
| 8581 *** The result is that libtool may fail to recognize shared libraries | |
| 8582 *** as such. This will affect the creation of libtool libraries that | |
| 8583 *** depend on shared libraries, but programs linked with such libtool | |
| 8584 *** libraries will work regardless of this problem. Nevertheless, you | |
| 8585 *** may want to report the problem to your system manager and/or to | |
| 8586 *** bug-libtool@gnu.org | |
| 8587 | |
| 8588 _LT_EOF | |
| 8589 fi ;; | |
| 8590 esac | |
| 8591 fi | |
| 8592 break | |
| 8593 fi | |
| 8594 done | |
| 8595 IFS=$lt_save_ifs | |
| 8596 MAGIC_CMD=$lt_save_MAGIC_CMD | |
| 8597 ;; | |
| 8598 esac | |
| 8599 fi | |
| 8600 | |
| 8601 MAGIC_CMD=$lt_cv_path_MAGIC_CMD | |
| 8602 if test -n "$MAGIC_CMD"; then | |
| 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
| 8604 $as_echo "$MAGIC_CMD" >&6; } | |
| 8605 else | |
| 8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 8607 $as_echo "no" >&6; } | |
| 8608 fi | |
| 8609 | |
| 8610 | |
| 8611 else | |
| 8612 MAGIC_CMD=: | |
| 8613 fi | |
| 8614 fi | |
| 8615 | |
| 8616 fi | |
| 8617 ;; | |
| 8618 esac | |
| 8619 | |
| 8620 # Use C for the default configuration in the libtool script | |
| 8621 | |
| 8622 lt_save_CC=$CC | |
| 8623 ac_ext=c | |
| 8624 ac_cpp='$CPP $CPPFLAGS' | |
| 8625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 8626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 8627 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 8628 | |
| 8629 | |
| 8630 # Source file extension for C test sources. | |
| 8631 ac_ext=c | |
| 8632 | |
| 8633 # Object file extension for compiled C test sources. | |
| 8634 objext=o | |
| 8635 objext=$objext | |
| 8636 | |
| 8637 # Code to be used in simple compile tests | |
| 8638 lt_simple_compile_test_code="int some_variable = 0;" | |
| 8639 | |
| 8640 # Code to be used in simple link tests | |
| 8641 lt_simple_link_test_code='int main(){return(0);}' | |
| 8642 | |
| 8643 | |
| 8644 | |
| 8645 | |
| 8646 | |
| 8647 | |
| 8648 | |
| 8649 # If no C compiler was specified, use CC. | |
| 8650 LTCC=${LTCC-"$CC"} | |
| 8651 | |
| 8652 # If no C compiler flags were specified, use CFLAGS. | |
| 8653 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
| 8654 | |
| 8655 # Allow CC to be a program name with arguments. | |
| 8656 compiler=$CC | |
| 8657 | |
| 8658 # Save the default compiler, since it gets overwritten when the other | |
| 8659 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
| 8660 compiler_DEFAULT=$CC | |
| 8661 | |
| 8662 # save warnings/boilerplate of simple test code | |
| 8663 ac_outfile=conftest.$ac_objext | |
| 8664 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
| 8665 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
| 8666 _lt_compiler_boilerplate=`cat conftest.err` | |
| 8667 $RM conftest* | |
| 8668 | |
| 8669 ac_outfile=conftest.$ac_objext | |
| 8670 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
| 8671 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
| 8672 _lt_linker_boilerplate=`cat conftest.err` | |
| 8673 $RM -r conftest* | |
| 8674 | |
| 8675 | |
| 8676 ## CAVEAT EMPTOR: | |
| 8677 ## There is no encapsulation within the following macros, do not change | |
| 8678 ## the running order or otherwise move them around unless you know exactly | |
| 8679 ## what you are doing... | |
| 8680 if test -n "$compiler"; then | |
| 8681 | |
| 8682 lt_prog_compiler_no_builtin_flag= | |
| 8683 | |
| 8684 if test yes = "$GCC"; then | |
| 8685 case $cc_basename in | |
| 8686 nvcc*) | |
| 8687 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
| 8688 *) | |
| 8689 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
| 8690 esac | |
| 8691 | |
| 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
| 8693 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
| 8694 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
| 8695 $as_echo_n "(cached) " >&6 | |
| 8696 else | |
| 8697 lt_cv_prog_compiler_rtti_exceptions=no | |
| 8698 ac_outfile=conftest.$ac_objext | |
| 8699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 8700 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment | |
| 8701 # Insert the option either (1) after the last *FLAGS variable, or | |
| 8702 # (2) before a word containing "conftest.", or (3) at the end. | |
| 8703 # Note that $ac_compile itself does not contain backslashes and begins | |
| 8704 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
| 8705 # The option is referenced via a variable to avoid confusing sed. | |
| 8706 lt_compile=`echo "$ac_compile" | $SED \ | |
| 8707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
| 8708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
| 8709 -e 's:$: $lt_compiler_flag:'` | |
| 8710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
| 8711 (eval "$lt_compile" 2>conftest.err) | |
| 8712 ac_status=$? | |
| 8713 cat conftest.err >&5 | |
| 8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 8715 if (exit $ac_status) && test -s "$ac_outfile"; then | |
| 8716 # The compiler can only warn and ignore the option if not recognized | |
| 8717 # So say no if there are warnings other than the usual output. | |
| 8718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
| 8719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 8720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
| 8721 lt_cv_prog_compiler_rtti_exceptions=yes | |
| 8722 fi | |
| 8723 fi | |
| 8724 $RM conftest* | |
| 8725 | |
| 8726 fi | |
| 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
| 8728 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
| 8729 | |
| 8730 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then | |
| 8731 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
| 8732 else | |
| 8733 : | |
| 8734 fi | |
| 8735 | |
| 8736 fi | |
| 8737 | |
| 8738 | |
| 8739 | |
| 8740 | |
| 8741 | |
| 8742 | |
| 8743 lt_prog_compiler_wl= | |
| 8744 lt_prog_compiler_pic= | |
| 8745 lt_prog_compiler_static= | |
| 8746 | |
| 8747 | |
| 8748 if test yes = "$GCC"; then | |
| 8749 lt_prog_compiler_wl='-Wl,' | |
| 8750 lt_prog_compiler_static='-static' | |
| 8751 | |
| 8752 case $host_os in | |
| 8753 aix*) | |
| 8754 # All AIX code is PIC. | |
| 8755 if test ia64 = "$host_cpu"; then | |
| 8756 # AIX 5 now supports IA64 processor | |
| 8757 lt_prog_compiler_static='-Bstatic' | |
| 8758 fi | |
| 8759 lt_prog_compiler_pic='-fPIC' | |
| 8760 ;; | |
| 8761 | |
| 8762 amigaos*) | |
| 8763 case $host_cpu in | |
| 8764 powerpc) | |
| 8765 # see comment about AmigaOS4 .so support | |
| 8766 lt_prog_compiler_pic='-fPIC' | |
| 8767 ;; | |
| 8768 m68k) | |
| 8769 # FIXME: we need at least 68020 code to build shared libraries, but | |
| 8770 # adding the '-m68020' flag to GCC prevents building anything better, | |
| 8771 # like '-m68040'. | |
| 8772 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
| 8773 ;; | |
| 8774 esac | |
| 8775 ;; | |
| 8776 | |
| 8777 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
| 8778 # PIC is the default for these OSes. | |
| 8779 ;; | |
| 8780 | |
| 8781 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
| 8782 # This hack is so that the source file can tell whether it is being | |
| 8783 # built for inclusion in a dll (and should export symbols for example). | |
| 8784 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
| 8785 # (--disable-auto-import) libraries | |
| 8786 lt_prog_compiler_pic='-DDLL_EXPORT' | |
| 8787 case $host_os in | |
| 8788 os2*) | |
| 8789 lt_prog_compiler_static='$wl-static' | |
| 8790 ;; | |
| 8791 esac | |
| 8792 ;; | |
| 8793 | |
| 8794 darwin* | rhapsody*) | |
| 8795 # PIC is the default on this platform | |
| 8796 # Common symbols not allowed in MH_DYLIB files | |
| 8797 lt_prog_compiler_pic='-fno-common' | |
| 8798 ;; | |
| 8799 | |
| 8800 haiku*) | |
| 8801 # PIC is the default for Haiku. | |
| 8802 # The "-static" flag exists, but is broken. | |
| 8803 lt_prog_compiler_static= | |
| 8804 ;; | |
| 8805 | |
| 8806 hpux*) | |
| 8807 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
| 8808 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
| 8809 # sets the default TLS model and affects inlining. | |
| 8810 case $host_cpu in | |
| 8811 hppa*64*) | |
| 8812 # +Z the default | |
| 8813 ;; | |
| 8814 *) | |
| 8815 lt_prog_compiler_pic='-fPIC' | |
| 8816 ;; | |
| 8817 esac | |
| 8818 ;; | |
| 8819 | |
| 8820 interix[3-9]*) | |
| 8821 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
| 8822 # Instead, we relocate shared libraries at runtime. | |
| 8823 ;; | |
| 8824 | |
| 8825 msdosdjgpp*) | |
| 8826 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
| 8827 # on systems that don't support them. | |
| 8828 lt_prog_compiler_can_build_shared=no | |
| 8829 enable_shared=no | |
| 8830 ;; | |
| 8831 | |
| 8832 *nto* | *qnx*) | |
| 8833 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
| 8834 # it will coredump. | |
| 8835 lt_prog_compiler_pic='-fPIC -shared' | |
| 8836 ;; | |
| 8837 | |
| 8838 sysv4*MP*) | |
| 8839 if test -d /usr/nec; then | |
| 8840 lt_prog_compiler_pic=-Kconform_pic | |
| 8841 fi | |
| 8842 ;; | |
| 8843 | |
| 8844 *) | |
| 8845 lt_prog_compiler_pic='-fPIC' | |
| 8846 ;; | |
| 8847 esac | |
| 8848 | |
| 8849 case $cc_basename in | |
| 8850 nvcc*) # Cuda Compiler Driver 2.2 | |
| 8851 lt_prog_compiler_wl='-Xlinker ' | |
| 8852 if test -n "$lt_prog_compiler_pic"; then | |
| 8853 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
| 8854 fi | |
| 8855 ;; | |
| 8856 esac | |
| 8857 else | |
| 8858 # PORTME Check for flag to pass linker flags through the system compiler. | |
| 8859 case $host_os in | |
| 8860 aix*) | |
| 8861 lt_prog_compiler_wl='-Wl,' | |
| 8862 if test ia64 = "$host_cpu"; then | |
| 8863 # AIX 5 now supports IA64 processor | |
| 8864 lt_prog_compiler_static='-Bstatic' | |
| 8865 else | |
| 8866 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
| 8867 fi | |
| 8868 ;; | |
| 8869 | |
| 8870 darwin* | rhapsody*) | |
| 8871 # PIC is the default on this platform | |
| 8872 # Common symbols not allowed in MH_DYLIB files | |
| 8873 lt_prog_compiler_pic='-fno-common' | |
| 8874 case $cc_basename in | |
| 8875 nagfor*) | |
| 8876 # NAG Fortran compiler | |
| 8877 lt_prog_compiler_wl='-Wl,-Wl,,' | |
| 8878 lt_prog_compiler_pic='-PIC' | |
| 8879 lt_prog_compiler_static='-Bstatic' | |
| 8880 ;; | |
| 8881 esac | |
| 8882 ;; | |
| 8883 | |
| 8884 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
| 8885 # This hack is so that the source file can tell whether it is being | |
| 8886 # built for inclusion in a dll (and should export symbols for example). | |
| 8887 lt_prog_compiler_pic='-DDLL_EXPORT' | |
| 8888 case $host_os in | |
| 8889 os2*) | |
| 8890 lt_prog_compiler_static='$wl-static' | |
| 8891 ;; | |
| 8892 esac | |
| 8893 ;; | |
| 8894 | |
| 8895 hpux9* | hpux10* | hpux11*) | |
| 8896 lt_prog_compiler_wl='-Wl,' | |
| 8897 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
| 8898 # not for PA HP-UX. | |
| 8899 case $host_cpu in | |
| 8900 hppa*64*|ia64*) | |
| 8901 # +Z the default | |
| 8902 ;; | |
| 8903 *) | |
| 8904 lt_prog_compiler_pic='+Z' | |
| 8905 ;; | |
| 8906 esac | |
| 8907 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
| 8908 lt_prog_compiler_static='$wl-a ${wl}archive' | |
| 8909 ;; | |
| 8910 | |
| 8911 irix5* | irix6* | nonstopux*) | |
| 8912 lt_prog_compiler_wl='-Wl,' | |
| 8913 # PIC (with -KPIC) is the default. | |
| 8914 lt_prog_compiler_static='-non_shared' | |
| 8915 ;; | |
| 8916 | |
| 8917 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 8918 case $cc_basename in | |
| 8919 # old Intel for x86_64, which still supported -KPIC. | |
| 8920 ecc*) | |
| 8921 lt_prog_compiler_wl='-Wl,' | |
| 8922 lt_prog_compiler_pic='-KPIC' | |
| 8923 lt_prog_compiler_static='-static' | |
| 8924 ;; | |
| 8925 # icc used to be incompatible with GCC. | |
| 8926 # ICC 10 doesn't accept -KPIC any more. | |
| 8927 icc* | ifort*) | |
| 8928 lt_prog_compiler_wl='-Wl,' | |
| 8929 lt_prog_compiler_pic='-fPIC' | |
| 8930 lt_prog_compiler_static='-static' | |
| 8931 ;; | |
| 8932 # Lahey Fortran 8.1. | |
| 8933 lf95*) | |
| 8934 lt_prog_compiler_wl='-Wl,' | |
| 8935 lt_prog_compiler_pic='--shared' | |
| 8936 lt_prog_compiler_static='--static' | |
| 8937 ;; | |
| 8938 nagfor*) | |
| 8939 # NAG Fortran compiler | |
| 8940 lt_prog_compiler_wl='-Wl,-Wl,,' | |
| 8941 lt_prog_compiler_pic='-PIC' | |
| 8942 lt_prog_compiler_static='-Bstatic' | |
| 8943 ;; | |
| 8944 tcc*) | |
| 8945 # Fabrice Bellard et al's Tiny C Compiler | |
| 8946 lt_prog_compiler_wl='-Wl,' | |
| 8947 lt_prog_compiler_pic='-fPIC' | |
| 8948 lt_prog_compiler_static='-static' | |
| 8949 ;; | |
| 8950 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
| 8951 # Portland Group compilers (*not* the Pentium gcc compiler, | |
| 8952 # which looks to be a dead project) | |
| 8953 lt_prog_compiler_wl='-Wl,' | |
| 8954 lt_prog_compiler_pic='-fpic' | |
| 8955 lt_prog_compiler_static='-Bstatic' | |
| 8956 ;; | |
| 8957 ccc*) | |
| 8958 lt_prog_compiler_wl='-Wl,' | |
| 8959 # All Alpha code is PIC. | |
| 8960 lt_prog_compiler_static='-non_shared' | |
| 8961 ;; | |
| 8962 xl* | bgxl* | bgf* | mpixl*) | |
| 8963 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
| 8964 lt_prog_compiler_wl='-Wl,' | |
| 8965 lt_prog_compiler_pic='-qpic' | |
| 8966 lt_prog_compiler_static='-qstaticlink' | |
| 8967 ;; | |
| 8968 *) | |
| 8969 case `$CC -V 2>&1 | sed 5q` in | |
| 8970 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
| 8971 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
| 8972 lt_prog_compiler_pic='-KPIC' | |
| 8973 lt_prog_compiler_static='-Bstatic' | |
| 8974 lt_prog_compiler_wl='' | |
| 8975 ;; | |
| 8976 *Sun\ F* | *Sun*Fortran*) | |
| 8977 lt_prog_compiler_pic='-KPIC' | |
| 8978 lt_prog_compiler_static='-Bstatic' | |
| 8979 lt_prog_compiler_wl='-Qoption ld ' | |
| 8980 ;; | |
| 8981 *Sun\ C*) | |
| 8982 # Sun C 5.9 | |
| 8983 lt_prog_compiler_pic='-KPIC' | |
| 8984 lt_prog_compiler_static='-Bstatic' | |
| 8985 lt_prog_compiler_wl='-Wl,' | |
| 8986 ;; | |
| 8987 *Intel*\ [CF]*Compiler*) | |
| 8988 lt_prog_compiler_wl='-Wl,' | |
| 8989 lt_prog_compiler_pic='-fPIC' | |
| 8990 lt_prog_compiler_static='-static' | |
| 8991 ;; | |
| 8992 *Portland\ Group*) | |
| 8993 lt_prog_compiler_wl='-Wl,' | |
| 8994 lt_prog_compiler_pic='-fpic' | |
| 8995 lt_prog_compiler_static='-Bstatic' | |
| 8996 ;; | |
| 8997 esac | |
| 8998 ;; | |
| 8999 esac | |
| 9000 ;; | |
| 9001 | |
| 9002 newsos6) | |
| 9003 lt_prog_compiler_pic='-KPIC' | |
| 9004 lt_prog_compiler_static='-Bstatic' | |
| 9005 ;; | |
| 9006 | |
| 9007 *nto* | *qnx*) | |
| 9008 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
| 9009 # it will coredump. | |
| 9010 lt_prog_compiler_pic='-fPIC -shared' | |
| 9011 ;; | |
| 9012 | |
| 9013 osf3* | osf4* | osf5*) | |
| 9014 lt_prog_compiler_wl='-Wl,' | |
| 9015 # All OSF/1 code is PIC. | |
| 9016 lt_prog_compiler_static='-non_shared' | |
| 9017 ;; | |
| 9018 | |
| 9019 rdos*) | |
| 9020 lt_prog_compiler_static='-non_shared' | |
| 9021 ;; | |
| 9022 | |
| 9023 solaris*) | |
| 9024 lt_prog_compiler_pic='-KPIC' | |
| 9025 lt_prog_compiler_static='-Bstatic' | |
| 9026 case $cc_basename in | |
| 9027 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
| 9028 lt_prog_compiler_wl='-Qoption ld ';; | |
| 9029 *) | |
| 9030 lt_prog_compiler_wl='-Wl,';; | |
| 9031 esac | |
| 9032 ;; | |
| 9033 | |
| 9034 sunos4*) | |
| 9035 lt_prog_compiler_wl='-Qoption ld ' | |
| 9036 lt_prog_compiler_pic='-PIC' | |
| 9037 lt_prog_compiler_static='-Bstatic' | |
| 9038 ;; | |
| 9039 | |
| 9040 sysv4 | sysv4.2uw2* | sysv4.3*) | |
| 9041 lt_prog_compiler_wl='-Wl,' | |
| 9042 lt_prog_compiler_pic='-KPIC' | |
| 9043 lt_prog_compiler_static='-Bstatic' | |
| 9044 ;; | |
| 9045 | |
| 9046 sysv4*MP*) | |
| 9047 if test -d /usr/nec; then | |
| 9048 lt_prog_compiler_pic='-Kconform_pic' | |
| 9049 lt_prog_compiler_static='-Bstatic' | |
| 9050 fi | |
| 9051 ;; | |
| 9052 | |
| 9053 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
| 9054 lt_prog_compiler_wl='-Wl,' | |
| 9055 lt_prog_compiler_pic='-KPIC' | |
| 9056 lt_prog_compiler_static='-Bstatic' | |
| 9057 ;; | |
| 9058 | |
| 9059 unicos*) | |
| 9060 lt_prog_compiler_wl='-Wl,' | |
| 9061 lt_prog_compiler_can_build_shared=no | |
| 9062 ;; | |
| 9063 | |
| 9064 uts4*) | |
| 9065 lt_prog_compiler_pic='-pic' | |
| 9066 lt_prog_compiler_static='-Bstatic' | |
| 9067 ;; | |
| 9068 | |
| 9069 *) | |
| 9070 lt_prog_compiler_can_build_shared=no | |
| 9071 ;; | |
| 9072 esac | |
| 9073 fi | |
| 9074 | |
| 9075 case $host_os in | |
| 9076 # For platforms that do not support PIC, -DPIC is meaningless: | |
| 9077 *djgpp*) | |
| 9078 lt_prog_compiler_pic= | |
| 9079 ;; | |
| 9080 *) | |
| 9081 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
| 9082 ;; | |
| 9083 esac | |
| 9084 | |
| 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
| 9086 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
| 9087 if ${lt_cv_prog_compiler_pic+:} false; then : | |
| 9088 $as_echo_n "(cached) " >&6 | |
| 9089 else | |
| 9090 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
| 9091 fi | |
| 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
| 9093 $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
| 9094 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
| 9095 | |
| 9096 # | |
| 9097 # Check to make sure the PIC flag actually works. | |
| 9098 # | |
| 9099 if test -n "$lt_prog_compiler_pic"; then | |
| 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
| 9101 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
| 9102 if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
| 9103 $as_echo_n "(cached) " >&6 | |
| 9104 else | |
| 9105 lt_cv_prog_compiler_pic_works=no | |
| 9106 ac_outfile=conftest.$ac_objext | |
| 9107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 9108 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
| 9109 # Insert the option either (1) after the last *FLAGS variable, or | |
| 9110 # (2) before a word containing "conftest.", or (3) at the end. | |
| 9111 # Note that $ac_compile itself does not contain backslashes and begins | |
| 9112 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
| 9113 # The option is referenced via a variable to avoid confusing sed. | |
| 9114 lt_compile=`echo "$ac_compile" | $SED \ | |
| 9115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
| 9116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
| 9117 -e 's:$: $lt_compiler_flag:'` | |
| 9118 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
| 9119 (eval "$lt_compile" 2>conftest.err) | |
| 9120 ac_status=$? | |
| 9121 cat conftest.err >&5 | |
| 9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 9123 if (exit $ac_status) && test -s "$ac_outfile"; then | |
| 9124 # The compiler can only warn and ignore the option if not recognized | |
| 9125 # So say no if there are warnings other than the usual output. | |
| 9126 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
| 9127 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 9128 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
| 9129 lt_cv_prog_compiler_pic_works=yes | |
| 9130 fi | |
| 9131 fi | |
| 9132 $RM conftest* | |
| 9133 | |
| 9134 fi | |
| 9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
| 9136 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
| 9137 | |
| 9138 if test yes = "$lt_cv_prog_compiler_pic_works"; then | |
| 9139 case $lt_prog_compiler_pic in | |
| 9140 "" | " "*) ;; | |
| 9141 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
| 9142 esac | |
| 9143 else | |
| 9144 lt_prog_compiler_pic= | |
| 9145 lt_prog_compiler_can_build_shared=no | |
| 9146 fi | |
| 9147 | |
| 9148 fi | |
| 9149 | |
| 9150 | |
| 9151 | |
| 9152 | |
| 9153 | |
| 9154 | |
| 9155 | |
| 9156 | |
| 9157 | |
| 9158 | |
| 9159 | |
| 9160 # | |
| 9161 # Check to make sure the static flag actually works. | |
| 9162 # | |
| 9163 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
| 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
| 9165 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
| 9166 if ${lt_cv_prog_compiler_static_works+:} false; then : | |
| 9167 $as_echo_n "(cached) " >&6 | |
| 9168 else | |
| 9169 lt_cv_prog_compiler_static_works=no | |
| 9170 save_LDFLAGS=$LDFLAGS | |
| 9171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
| 9172 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
| 9173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
| 9174 # The linker can only warn and ignore the option if not recognized | |
| 9175 # So say no if there are warnings | |
| 9176 if test -s conftest.err; then | |
| 9177 # Append any errors to the config.log. | |
| 9178 cat conftest.err 1>&5 | |
| 9179 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
| 9180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 9181 if diff conftest.exp conftest.er2 >/dev/null; then | |
| 9182 lt_cv_prog_compiler_static_works=yes | |
| 9183 fi | |
| 9184 else | |
| 9185 lt_cv_prog_compiler_static_works=yes | |
| 9186 fi | |
| 9187 fi | |
| 9188 $RM -r conftest* | |
| 9189 LDFLAGS=$save_LDFLAGS | |
| 9190 | |
| 9191 fi | |
| 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
| 9193 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
| 9194 | |
| 9195 if test yes = "$lt_cv_prog_compiler_static_works"; then | |
| 9196 : | |
| 9197 else | |
| 9198 lt_prog_compiler_static= | |
| 9199 fi | |
| 9200 | |
| 9201 | |
| 9202 | |
| 9203 | |
| 9204 | |
| 9205 | |
| 9206 | |
| 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
| 9208 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
| 9209 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
| 9210 $as_echo_n "(cached) " >&6 | |
| 9211 else | |
| 9212 lt_cv_prog_compiler_c_o=no | |
| 9213 $RM -r conftest 2>/dev/null | |
| 9214 mkdir conftest | |
| 9215 cd conftest | |
| 9216 mkdir out | |
| 9217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 9218 | |
| 9219 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
| 9220 # Insert the option either (1) after the last *FLAGS variable, or | |
| 9221 # (2) before a word containing "conftest.", or (3) at the end. | |
| 9222 # Note that $ac_compile itself does not contain backslashes and begins | |
| 9223 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
| 9224 lt_compile=`echo "$ac_compile" | $SED \ | |
| 9225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
| 9226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
| 9227 -e 's:$: $lt_compiler_flag:'` | |
| 9228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
| 9229 (eval "$lt_compile" 2>out/conftest.err) | |
| 9230 ac_status=$? | |
| 9231 cat out/conftest.err >&5 | |
| 9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 9233 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
| 9234 then | |
| 9235 # The compiler can only warn and ignore the option if not recognized | |
| 9236 # So say no if there are warnings | |
| 9237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
| 9238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
| 9239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
| 9240 lt_cv_prog_compiler_c_o=yes | |
| 9241 fi | |
| 9242 fi | |
| 9243 chmod u+w . 2>&5 | |
| 9244 $RM conftest* | |
| 9245 # SGI C++ compiler will create directory out/ii_files/ for | |
| 9246 # template instantiation | |
| 9247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
| 9248 $RM out/* && rmdir out | |
| 9249 cd .. | |
| 9250 $RM -r conftest | |
| 9251 $RM conftest* | |
| 9252 | |
| 9253 fi | |
| 9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
| 9255 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
| 9256 | |
| 9257 | |
| 9258 | |
| 9259 | |
| 9260 | |
| 9261 | |
| 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
| 9263 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
| 9264 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
| 9265 $as_echo_n "(cached) " >&6 | |
| 9266 else | |
| 9267 lt_cv_prog_compiler_c_o=no | |
| 9268 $RM -r conftest 2>/dev/null | |
| 9269 mkdir conftest | |
| 9270 cd conftest | |
| 9271 mkdir out | |
| 9272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 9273 | |
| 9274 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
| 9275 # Insert the option either (1) after the last *FLAGS variable, or | |
| 9276 # (2) before a word containing "conftest.", or (3) at the end. | |
| 9277 # Note that $ac_compile itself does not contain backslashes and begins | |
| 9278 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
| 9279 lt_compile=`echo "$ac_compile" | $SED \ | |
| 9280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
| 9281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
| 9282 -e 's:$: $lt_compiler_flag:'` | |
| 9283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
| 9284 (eval "$lt_compile" 2>out/conftest.err) | |
| 9285 ac_status=$? | |
| 9286 cat out/conftest.err >&5 | |
| 9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 9288 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
| 9289 then | |
| 9290 # The compiler can only warn and ignore the option if not recognized | |
| 9291 # So say no if there are warnings | |
| 9292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
| 9293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
| 9294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
| 9295 lt_cv_prog_compiler_c_o=yes | |
| 9296 fi | |
| 9297 fi | |
| 9298 chmod u+w . 2>&5 | |
| 9299 $RM conftest* | |
| 9300 # SGI C++ compiler will create directory out/ii_files/ for | |
| 9301 # template instantiation | |
| 9302 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
| 9303 $RM out/* && rmdir out | |
| 9304 cd .. | |
| 9305 $RM -r conftest | |
| 9306 $RM conftest* | |
| 9307 | |
| 9308 fi | |
| 9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
| 9310 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
| 9311 | |
| 9312 | |
| 9313 | |
| 9314 | |
| 9315 hard_links=nottested | |
| 9316 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then | |
| 9317 # do not overwrite the value of need_locks provided by the user | |
| 9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
| 9319 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
| 9320 hard_links=yes | |
| 9321 $RM conftest* | |
| 9322 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
| 9323 touch conftest.a | |
| 9324 ln conftest.a conftest.b 2>&5 || hard_links=no | |
| 9325 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
| 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
| 9327 $as_echo "$hard_links" >&6; } | |
| 9328 if test no = "$hard_links"; then | |
| 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
| 9330 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
| 9331 need_locks=warn | |
| 9332 fi | |
| 9333 else | |
| 9334 need_locks=no | |
| 9335 fi | |
| 9336 | |
| 9337 | |
| 9338 | |
| 9339 | |
| 9340 | |
| 9341 | |
| 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
| 9343 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
| 9344 | |
| 9345 runpath_var= | |
| 9346 allow_undefined_flag= | |
| 9347 always_export_symbols=no | |
| 9348 archive_cmds= | |
| 9349 archive_expsym_cmds= | |
| 9350 compiler_needs_object=no | |
| 9351 enable_shared_with_static_runtimes=no | |
| 9352 export_dynamic_flag_spec= | |
| 9353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
| 9354 hardcode_automatic=no | |
| 9355 hardcode_direct=no | |
| 9356 hardcode_direct_absolute=no | |
| 9357 hardcode_libdir_flag_spec= | |
| 9358 hardcode_libdir_separator= | |
| 9359 hardcode_minus_L=no | |
| 9360 hardcode_shlibpath_var=unsupported | |
| 9361 inherit_rpath=no | |
| 9362 link_all_deplibs=unknown | |
| 9363 module_cmds= | |
| 9364 module_expsym_cmds= | |
| 9365 old_archive_from_new_cmds= | |
| 9366 old_archive_from_expsyms_cmds= | |
| 9367 thread_safe_flag_spec= | |
| 9368 whole_archive_flag_spec= | |
| 9369 # include_expsyms should be a list of space-separated symbols to be *always* | |
| 9370 # included in the symbol list | |
| 9371 include_expsyms= | |
| 9372 # exclude_expsyms can be an extended regexp of symbols to exclude | |
| 9373 # it will be wrapped by ' (' and ')$', so one must not match beginning or | |
| 9374 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', | |
| 9375 # as well as any symbol that contains 'd'. | |
| 9376 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
| 9377 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
| 9378 # platforms (ab)use it in PIC code, but their linkers get confused if | |
| 9379 # the symbol is explicitly referenced. Since portable code cannot | |
| 9380 # rely on this symbol name, it's probably fine to never include it in | |
| 9381 # preloaded symbol tables. | |
| 9382 # Exclude shared library initialization/finalization symbols. | |
| 9383 extract_expsyms_cmds= | |
| 9384 | |
| 9385 case $host_os in | |
| 9386 cygwin* | mingw* | pw32* | cegcc*) | |
| 9387 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
| 9388 # When not using gcc, we currently assume that we are using | |
| 9389 # Microsoft Visual C++. | |
| 9390 if test yes != "$GCC"; then | |
| 9391 with_gnu_ld=no | |
| 9392 fi | |
| 9393 ;; | |
| 9394 interix*) | |
| 9395 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
| 9396 with_gnu_ld=yes | |
| 9397 ;; | |
| 9398 openbsd* | bitrig*) | |
| 9399 with_gnu_ld=no | |
| 9400 ;; | |
| 9401 esac | |
| 9402 | |
| 9403 ld_shlibs=yes | |
| 9404 | |
| 9405 # On some targets, GNU ld is compatible enough with the native linker | |
| 9406 # that we're better off using the native interface for both. | |
| 9407 lt_use_gnu_ld_interface=no | |
| 9408 if test yes = "$with_gnu_ld"; then | |
| 9409 case $host_os in | |
| 9410 aix*) | |
| 9411 # The AIX port of GNU ld has always aspired to compatibility | |
| 9412 # with the native linker. However, as the warning in the GNU ld | |
| 9413 # block says, versions before 2.19.5* couldn't really create working | |
| 9414 # shared libraries, regardless of the interface used. | |
| 9415 case `$LD -v 2>&1` in | |
| 9416 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
| 9417 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
| 9418 *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
| 9419 *) | |
| 9420 lt_use_gnu_ld_interface=yes | |
| 9421 ;; | |
| 9422 esac | |
| 9423 ;; | |
| 9424 *) | |
| 9425 lt_use_gnu_ld_interface=yes | |
| 9426 ;; | |
| 9427 esac | |
| 9428 fi | |
| 9429 | |
| 9430 if test yes = "$lt_use_gnu_ld_interface"; then | |
| 9431 # If archive_cmds runs LD, not CC, wlarc should be empty | |
| 9432 wlarc='$wl' | |
| 9433 | |
| 9434 # Set some defaults for GNU ld with shared library support. These | |
| 9435 # are reset later if shared libraries are not supported. Putting them | |
| 9436 # here allows them to be overridden if necessary. | |
| 9437 runpath_var=LD_RUN_PATH | |
| 9438 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
| 9439 export_dynamic_flag_spec='$wl--export-dynamic' | |
| 9440 # ancient GNU ld didn't support --whole-archive et. al. | |
| 9441 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
| 9442 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
| 9443 else | |
| 9444 whole_archive_flag_spec= | |
| 9445 fi | |
| 9446 supports_anon_versioning=no | |
| 9447 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in | |
| 9448 *GNU\ gold*) supports_anon_versioning=yes ;; | |
| 9449 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
| 9450 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
| 9451 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
| 9452 *\ 2.11.*) ;; # other 2.11 versions | |
| 9453 *) supports_anon_versioning=yes ;; | |
| 9454 esac | |
| 9455 | |
| 9456 # See if GNU ld supports shared libraries. | |
| 9457 case $host_os in | |
| 9458 aix[3-9]*) | |
| 9459 # On AIX/PPC, the GNU linker is very broken | |
| 9460 if test ia64 != "$host_cpu"; then | |
| 9461 ld_shlibs=no | |
| 9462 cat <<_LT_EOF 1>&2 | |
| 9463 | |
| 9464 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
| 9465 *** to be unable to reliably create shared libraries on AIX. | |
| 9466 *** Therefore, libtool is disabling shared libraries support. If you | |
| 9467 *** really care for shared libraries, you may want to install binutils | |
| 9468 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
| 9469 *** You will then need to restart the configuration process. | |
| 9470 | |
| 9471 _LT_EOF | |
| 9472 fi | |
| 9473 ;; | |
| 9474 | |
| 9475 amigaos*) | |
| 9476 case $host_cpu in | |
| 9477 powerpc) | |
| 9478 # see comment about AmigaOS4 .so support | |
| 9479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 9480 archive_expsym_cmds='' | |
| 9481 ;; | |
| 9482 m68k) | |
| 9483 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)' | |
| 9484 hardcode_libdir_flag_spec='-L$libdir' | |
| 9485 hardcode_minus_L=yes | |
| 9486 ;; | |
| 9487 esac | |
| 9488 ;; | |
| 9489 | |
| 9490 beos*) | |
| 9491 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
| 9492 allow_undefined_flag=unsupported | |
| 9493 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
| 9494 # support --undefined. This deserves some investigation. FIXME | |
| 9495 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 9496 else | |
| 9497 ld_shlibs=no | |
| 9498 fi | |
| 9499 ;; | |
| 9500 | |
| 9501 cygwin* | mingw* | pw32* | cegcc*) | |
| 9502 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
| 9503 # as there is no search path for DLLs. | |
| 9504 hardcode_libdir_flag_spec='-L$libdir' | |
| 9505 export_dynamic_flag_spec='$wl--export-all-symbols' | |
| 9506 allow_undefined_flag=unsupported | |
| 9507 always_export_symbols=no | |
| 9508 enable_shared_with_static_runtimes=yes | |
| 9509 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' | |
| 9510 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
| 9511 | |
| 9512 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
| 9513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
| 9514 # If the export-symbols file already is a .def file, use it as | |
| 9515 # is; otherwise, prepend EXPORTS... | |
| 9516 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
| 9517 cp $export_symbols $output_objdir/$soname.def; | |
| 9518 else | |
| 9519 echo EXPORTS > $output_objdir/$soname.def; | |
| 9520 cat $export_symbols >> $output_objdir/$soname.def; | |
| 9521 fi~ | |
| 9522 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
| 9523 else | |
| 9524 ld_shlibs=no | |
| 9525 fi | |
| 9526 ;; | |
| 9527 | |
| 9528 haiku*) | |
| 9529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 9530 link_all_deplibs=yes | |
| 9531 ;; | |
| 9532 | |
| 9533 os2*) | |
| 9534 hardcode_libdir_flag_spec='-L$libdir' | |
| 9535 hardcode_minus_L=yes | |
| 9536 allow_undefined_flag=unsupported | |
| 9537 shrext_cmds=.dll | |
| 9538 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 9539 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 9540 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 9541 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 9542 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
| 9543 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 9544 emximp -o $lib $output_objdir/$libname.def' | |
| 9545 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 9546 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 9547 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 9548 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 9549 prefix_cmds="$SED"~ | |
| 9550 if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
| 9551 prefix_cmds="$prefix_cmds -e 1d"; | |
| 9552 fi~ | |
| 9553 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
| 9554 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
| 9555 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 9556 emximp -o $lib $output_objdir/$libname.def' | |
| 9557 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
| 9558 enable_shared_with_static_runtimes=yes | |
| 9559 ;; | |
| 9560 | |
| 9561 interix[3-9]*) | |
| 9562 hardcode_direct=no | |
| 9563 hardcode_shlibpath_var=no | |
| 9564 hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
| 9565 export_dynamic_flag_spec='$wl-E' | |
| 9566 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
| 9567 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
| 9568 # default) and relocated if they conflict, which is a slow very memory | |
| 9569 # consuming and fragmenting process. To avoid this, we pick a random, | |
| 9570 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
| 9571 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
| 9572 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
| 9573 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' | |
| 9574 ;; | |
| 9575 | |
| 9576 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
| 9577 tmp_diet=no | |
| 9578 if test linux-dietlibc = "$host_os"; then | |
| 9579 case $cc_basename in | |
| 9580 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
| 9581 esac | |
| 9582 fi | |
| 9583 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
| 9584 && test no = "$tmp_diet" | |
| 9585 then | |
| 9586 tmp_addflag=' $pic_flag' | |
| 9587 tmp_sharedflag='-shared' | |
| 9588 case $cc_basename,$host_cpu in | |
| 9589 pgcc*) # Portland Group C compiler | |
| 9590 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' | |
| 9591 tmp_addflag=' $pic_flag' | |
| 9592 ;; | |
| 9593 pgf77* | pgf90* | pgf95* | pgfortran*) | |
| 9594 # Portland Group f77 and f90 compilers | |
| 9595 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' | |
| 9596 tmp_addflag=' $pic_flag -Mnomain' ;; | |
| 9597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
| 9598 tmp_addflag=' -i_dynamic' ;; | |
| 9599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
| 9600 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
| 9601 ifc* | ifort*) # Intel Fortran compiler | |
| 9602 tmp_addflag=' -nofor_main' ;; | |
| 9603 lf95*) # Lahey Fortran 8.1 | |
| 9604 whole_archive_flag_spec= | |
| 9605 tmp_sharedflag='--shared' ;; | |
| 9606 nagfor*) # NAGFOR 5.3 | |
| 9607 tmp_sharedflag='-Wl,-shared' ;; | |
| 9608 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
| 9609 tmp_sharedflag='-qmkshrobj' | |
| 9610 tmp_addflag= ;; | |
| 9611 nvcc*) # Cuda Compiler Driver 2.2 | |
| 9612 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' | |
| 9613 compiler_needs_object=yes | |
| 9614 ;; | |
| 9615 esac | |
| 9616 case `$CC -V 2>&1 | sed 5q` in | |
| 9617 *Sun\ C*) # Sun C 5.9 | |
| 9618 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' | |
| 9619 compiler_needs_object=yes | |
| 9620 tmp_sharedflag='-G' ;; | |
| 9621 *Sun\ F*) # Sun Fortran 8.3 | |
| 9622 tmp_sharedflag='-G' ;; | |
| 9623 esac | |
| 9624 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 9625 | |
| 9626 if test yes = "$supports_anon_versioning"; then | |
| 9627 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
| 9628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
| 9629 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
| 9630 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
| 9631 fi | |
| 9632 | |
| 9633 case $cc_basename in | |
| 9634 tcc*) | |
| 9635 export_dynamic_flag_spec='-rdynamic' | |
| 9636 ;; | |
| 9637 xlf* | bgf* | bgxlf* | mpixlf*) | |
| 9638 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
| 9639 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
| 9640 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
| 9641 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
| 9642 if test yes = "$supports_anon_versioning"; then | |
| 9643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
| 9644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
| 9645 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
| 9646 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
| 9647 fi | |
| 9648 ;; | |
| 9649 esac | |
| 9650 else | |
| 9651 ld_shlibs=no | |
| 9652 fi | |
| 9653 ;; | |
| 9654 | |
| 9655 netbsd*) | |
| 9656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
| 9657 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
| 9658 wlarc= | |
| 9659 else | |
| 9660 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 9661 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
| 9662 fi | |
| 9663 ;; | |
| 9664 | |
| 9665 solaris*) | |
| 9666 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
| 9667 ld_shlibs=no | |
| 9668 cat <<_LT_EOF 1>&2 | |
| 9669 | |
| 9670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
| 9671 *** create shared libraries on Solaris systems. Therefore, libtool | |
| 9672 *** is disabling shared libraries support. We urge you to upgrade GNU | |
| 9673 *** binutils to release 2.9.1 or newer. Another option is to modify | |
| 9674 *** your PATH or compiler configuration so that the native linker is | |
| 9675 *** used, and then restart. | |
| 9676 | |
| 9677 _LT_EOF | |
| 9678 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
| 9679 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 9680 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
| 9681 else | |
| 9682 ld_shlibs=no | |
| 9683 fi | |
| 9684 ;; | |
| 9685 | |
| 9686 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
| 9687 case `$LD -v 2>&1` in | |
| 9688 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
| 9689 ld_shlibs=no | |
| 9690 cat <<_LT_EOF 1>&2 | |
| 9691 | |
| 9692 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot | |
| 9693 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
| 9694 *** is disabling shared libraries support. We urge you to upgrade GNU | |
| 9695 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
| 9696 *** your PATH or compiler configuration so that the native linker is | |
| 9697 *** used, and then restart. | |
| 9698 | |
| 9699 _LT_EOF | |
| 9700 ;; | |
| 9701 *) | |
| 9702 # For security reasons, it is highly recommended that you always | |
| 9703 # use absolute paths for naming shared libraries, and exclude the | |
| 9704 # DT_RUNPATH tag from executables and libraries. But doing so | |
| 9705 # requires that you compile everything twice, which is a pain. | |
| 9706 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
| 9707 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
| 9708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 9709 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
| 9710 else | |
| 9711 ld_shlibs=no | |
| 9712 fi | |
| 9713 ;; | |
| 9714 esac | |
| 9715 ;; | |
| 9716 | |
| 9717 sunos4*) | |
| 9718 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
| 9719 wlarc= | |
| 9720 hardcode_direct=yes | |
| 9721 hardcode_shlibpath_var=no | |
| 9722 ;; | |
| 9723 | |
| 9724 *) | |
| 9725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
| 9726 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 9727 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' | |
| 9728 else | |
| 9729 ld_shlibs=no | |
| 9730 fi | |
| 9731 ;; | |
| 9732 esac | |
| 9733 | |
| 9734 if test no = "$ld_shlibs"; then | |
| 9735 runpath_var= | |
| 9736 hardcode_libdir_flag_spec= | |
| 9737 export_dynamic_flag_spec= | |
| 9738 whole_archive_flag_spec= | |
| 9739 fi | |
| 9740 else | |
| 9741 # PORTME fill in a description of your system's linker (not GNU ld) | |
| 9742 case $host_os in | |
| 9743 aix3*) | |
| 9744 allow_undefined_flag=unsupported | |
| 9745 always_export_symbols=yes | |
| 9746 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' | |
| 9747 # Note: this linker hardcodes the directories in LIBPATH if there | |
| 9748 # are no directories specified by -L. | |
| 9749 hardcode_minus_L=yes | |
| 9750 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then | |
| 9751 # Neither direct hardcoding nor static linking is supported with a | |
| 9752 # broken collect2. | |
| 9753 hardcode_direct=unsupported | |
| 9754 fi | |
| 9755 ;; | |
| 9756 | |
| 9757 aix[4-9]*) | |
| 9758 if test ia64 = "$host_cpu"; then | |
| 9759 # On IA64, the linker does run time linking by default, so we don't | |
| 9760 # have to do anything special. | |
| 9761 aix_use_runtimelinking=no | |
| 9762 exp_sym_flag='-Bexport' | |
| 9763 no_entry_flag= | |
| 9764 else | |
| 9765 # If we're using GNU nm, then we don't want the "-C" option. | |
| 9766 # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
| 9767 # Without the "-l" option, or with the "-B" option, AIX nm treats | |
| 9768 # weak defined symbols like other global defined symbols, whereas | |
| 9769 # GNU nm marks them as "W". | |
| 9770 # While the 'weak' keyword is ignored in the Export File, we need | |
| 9771 # it in the Import File for the 'aix-soname' feature, so we have | |
| 9772 # to replace the "-B" option with "-P" for AIX nm. | |
| 9773 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
| 9774 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' | |
| 9775 else | |
| 9776 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' | |
| 9777 fi | |
| 9778 aix_use_runtimelinking=no | |
| 9779 | |
| 9780 # Test if we are trying to use run time linking or normal | |
| 9781 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
| 9782 # have runtime linking enabled, and use it for executables. | |
| 9783 # For shared libraries, we enable/disable runtime linking | |
| 9784 # depending on the kind of the shared library created - | |
| 9785 # when "with_aix_soname,aix_use_runtimelinking" is: | |
| 9786 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
| 9787 # "aix,yes" lib.so shared, rtl:yes, for executables | |
| 9788 # lib.a static archive | |
| 9789 # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
| 9790 # lib.a(lib.so.V) shared, rtl:no, for executables | |
| 9791 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
| 9792 # lib.a(lib.so.V) shared, rtl:no | |
| 9793 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
| 9794 # lib.a static archive | |
| 9795 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
| 9796 for ld_flag in $LDFLAGS; do | |
| 9797 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then | |
| 9798 aix_use_runtimelinking=yes | |
| 9799 break | |
| 9800 fi | |
| 9801 done | |
| 9802 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
| 9803 # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
| 9804 # so we don't have lib.a shared libs to link our executables. | |
| 9805 # We have to force runtime linking in this case. | |
| 9806 aix_use_runtimelinking=yes | |
| 9807 LDFLAGS="$LDFLAGS -Wl,-brtl" | |
| 9808 fi | |
| 9809 ;; | |
| 9810 esac | |
| 9811 | |
| 9812 exp_sym_flag='-bexport' | |
| 9813 no_entry_flag='-bnoentry' | |
| 9814 fi | |
| 9815 | |
| 9816 # When large executables or shared objects are built, AIX ld can | |
| 9817 # have problems creating the table of contents. If linking a library | |
| 9818 # or program results in "error TOC overflow" add -mminimal-toc to | |
| 9819 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
| 9820 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
| 9821 | |
| 9822 archive_cmds='' | |
| 9823 hardcode_direct=yes | |
| 9824 hardcode_direct_absolute=yes | |
| 9825 hardcode_libdir_separator=':' | |
| 9826 link_all_deplibs=yes | |
| 9827 file_list_spec='$wl-f,' | |
| 9828 case $with_aix_soname,$aix_use_runtimelinking in | |
| 9829 aix,*) ;; # traditional, no import file | |
| 9830 svr4,* | *,yes) # use import file | |
| 9831 # The Import File defines what to hardcode. | |
| 9832 hardcode_direct=no | |
| 9833 hardcode_direct_absolute=no | |
| 9834 ;; | |
| 9835 esac | |
| 9836 | |
| 9837 if test yes = "$GCC"; then | |
| 9838 case $host_os in aix4.[012]|aix4.[012].*) | |
| 9839 # We only want to do this on AIX 4.2 and lower, the check | |
| 9840 # below for broken collect2 doesn't work under 4.3+ | |
| 9841 collect2name=`$CC -print-prog-name=collect2` | |
| 9842 if test -f "$collect2name" && | |
| 9843 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
| 9844 then | |
| 9845 # We have reworked collect2 | |
| 9846 : | |
| 9847 else | |
| 9848 # We have old collect2 | |
| 9849 hardcode_direct=unsupported | |
| 9850 # It fails to find uninstalled libraries when the uninstalled | |
| 9851 # path is not listed in the libpath. Setting hardcode_minus_L | |
| 9852 # to unsupported forces relinking | |
| 9853 hardcode_minus_L=yes | |
| 9854 hardcode_libdir_flag_spec='-L$libdir' | |
| 9855 hardcode_libdir_separator= | |
| 9856 fi | |
| 9857 ;; | |
| 9858 esac | |
| 9859 shared_flag='-shared' | |
| 9860 if test yes = "$aix_use_runtimelinking"; then | |
| 9861 shared_flag="$shared_flag "'$wl-G' | |
| 9862 fi | |
| 9863 # Need to ensure runtime linking is disabled for the traditional | |
| 9864 # shared library, or the linker may eventually find shared libraries | |
| 9865 # /with/ Import File - we do not want to mix them. | |
| 9866 shared_flag_aix='-shared' | |
| 9867 shared_flag_svr4='-shared $wl-G' | |
| 9868 else | |
| 9869 # not using gcc | |
| 9870 if test ia64 = "$host_cpu"; then | |
| 9871 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
| 9872 # chokes on -Wl,-G. The following line is correct: | |
| 9873 shared_flag='-G' | |
| 9874 else | |
| 9875 if test yes = "$aix_use_runtimelinking"; then | |
| 9876 shared_flag='$wl-G' | |
| 9877 else | |
| 9878 shared_flag='$wl-bM:SRE' | |
| 9879 fi | |
| 9880 shared_flag_aix='$wl-bM:SRE' | |
| 9881 shared_flag_svr4='$wl-G' | |
| 9882 fi | |
| 9883 fi | |
| 9884 | |
| 9885 export_dynamic_flag_spec='$wl-bexpall' | |
| 9886 # It seems that -bexpall does not export symbols beginning with | |
| 9887 # underscore (_), so it is better to generate a list of symbols to export. | |
| 9888 always_export_symbols=yes | |
| 9889 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
| 9890 # Warning - without using the other runtime loading flags (-brtl), | |
| 9891 # -berok will link without error, but may produce a broken library. | |
| 9892 allow_undefined_flag='-berok' | |
| 9893 # Determine the default libpath from the value encoded in an | |
| 9894 # empty executable. | |
| 9895 if test set = "${lt_cv_aix_libpath+set}"; then | |
| 9896 aix_libpath=$lt_cv_aix_libpath | |
| 9897 else | |
| 9898 if ${lt_cv_aix_libpath_+:} false; then : | |
| 9899 $as_echo_n "(cached) " >&6 | |
| 9900 else | |
| 9901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 9902 /* end confdefs.h. */ | |
| 9903 | |
| 9904 int | |
| 9905 main () | |
| 9906 { | |
| 9907 | |
| 9908 ; | |
| 9909 return 0; | |
| 9910 } | |
| 9911 _ACEOF | |
| 9912 if ac_fn_c_try_link "$LINENO"; then : | |
| 9913 | |
| 9914 lt_aix_libpath_sed=' | |
| 9915 /Import File Strings/,/^$/ { | |
| 9916 /^0/ { | |
| 9917 s/^0 *\([^ ]*\) *$/\1/ | |
| 9918 p | |
| 9919 } | |
| 9920 }' | |
| 9921 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
| 9922 # Check for a 64-bit object if we didn't find anything. | |
| 9923 if test -z "$lt_cv_aix_libpath_"; then | |
| 9924 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
| 9925 fi | |
| 9926 fi | |
| 9927 rm -f core conftest.err conftest.$ac_objext \ | |
| 9928 conftest$ac_exeext conftest.$ac_ext | |
| 9929 if test -z "$lt_cv_aix_libpath_"; then | |
| 9930 lt_cv_aix_libpath_=/usr/lib:/lib | |
| 9931 fi | |
| 9932 | |
| 9933 fi | |
| 9934 | |
| 9935 aix_libpath=$lt_cv_aix_libpath_ | |
| 9936 fi | |
| 9937 | |
| 9938 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
| 9939 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
| 9940 else | |
| 9941 if test ia64 = "$host_cpu"; then | |
| 9942 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' | |
| 9943 allow_undefined_flag="-z nodefs" | |
| 9944 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" | |
| 9945 else | |
| 9946 # Determine the default libpath from the value encoded in an | |
| 9947 # empty executable. | |
| 9948 if test set = "${lt_cv_aix_libpath+set}"; then | |
| 9949 aix_libpath=$lt_cv_aix_libpath | |
| 9950 else | |
| 9951 if ${lt_cv_aix_libpath_+:} false; then : | |
| 9952 $as_echo_n "(cached) " >&6 | |
| 9953 else | |
| 9954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 9955 /* end confdefs.h. */ | |
| 9956 | |
| 9957 int | |
| 9958 main () | |
| 9959 { | |
| 9960 | |
| 9961 ; | |
| 9962 return 0; | |
| 9963 } | |
| 9964 _ACEOF | |
| 9965 if ac_fn_c_try_link "$LINENO"; then : | |
| 9966 | |
| 9967 lt_aix_libpath_sed=' | |
| 9968 /Import File Strings/,/^$/ { | |
| 9969 /^0/ { | |
| 9970 s/^0 *\([^ ]*\) *$/\1/ | |
| 9971 p | |
| 9972 } | |
| 9973 }' | |
| 9974 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
| 9975 # Check for a 64-bit object if we didn't find anything. | |
| 9976 if test -z "$lt_cv_aix_libpath_"; then | |
| 9977 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
| 9978 fi | |
| 9979 fi | |
| 9980 rm -f core conftest.err conftest.$ac_objext \ | |
| 9981 conftest$ac_exeext conftest.$ac_ext | |
| 9982 if test -z "$lt_cv_aix_libpath_"; then | |
| 9983 lt_cv_aix_libpath_=/usr/lib:/lib | |
| 9984 fi | |
| 9985 | |
| 9986 fi | |
| 9987 | |
| 9988 aix_libpath=$lt_cv_aix_libpath_ | |
| 9989 fi | |
| 9990 | |
| 9991 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" | |
| 9992 # Warning - without using the other run time loading flags, | |
| 9993 # -berok will link without error, but may produce a broken library. | |
| 9994 no_undefined_flag=' $wl-bernotok' | |
| 9995 allow_undefined_flag=' $wl-berok' | |
| 9996 if test yes = "$with_gnu_ld"; then | |
| 9997 # We only use this code for GNU lds that support --whole-archive. | |
| 9998 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' | |
| 9999 else | |
| 10000 # Exported symbols can be pulled into shared objects from archives | |
| 10001 whole_archive_flag_spec='$convenience' | |
| 10002 fi | |
| 10003 archive_cmds_need_lc=yes | |
| 10004 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
| 10005 # -brtl affects multiple linker settings, -berok does not and is overridden later | |
| 10006 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
| 10007 if test svr4 != "$with_aix_soname"; then | |
| 10008 # This is similar to how AIX traditionally builds its shared libraries. | |
| 10009 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
| 10010 fi | |
| 10011 if test aix != "$with_aix_soname"; then | |
| 10012 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
| 10013 else | |
| 10014 # used by -dlpreopen to get the symbols | |
| 10015 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
| 10016 fi | |
| 10017 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' | |
| 10018 fi | |
| 10019 fi | |
| 10020 ;; | |
| 10021 | |
| 10022 amigaos*) | |
| 10023 case $host_cpu in | |
| 10024 powerpc) | |
| 10025 # see comment about AmigaOS4 .so support | |
| 10026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 10027 archive_expsym_cmds='' | |
| 10028 ;; | |
| 10029 m68k) | |
| 10030 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)' | |
| 10031 hardcode_libdir_flag_spec='-L$libdir' | |
| 10032 hardcode_minus_L=yes | |
| 10033 ;; | |
| 10034 esac | |
| 10035 ;; | |
| 10036 | |
| 10037 bsdi[45]*) | |
| 10038 export_dynamic_flag_spec=-rdynamic | |
| 10039 ;; | |
| 10040 | |
| 10041 cygwin* | mingw* | pw32* | cegcc*) | |
| 10042 # When not using gcc, we currently assume that we are using | |
| 10043 # Microsoft Visual C++. | |
| 10044 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
| 10045 # no search path for DLLs. | |
| 10046 case $cc_basename in | |
| 10047 cl*) | |
| 10048 # Native MSVC | |
| 10049 hardcode_libdir_flag_spec=' ' | |
| 10050 allow_undefined_flag=unsupported | |
| 10051 always_export_symbols=yes | |
| 10052 file_list_spec='@' | |
| 10053 # Tell ltmain to make .lib files, not .a files. | |
| 10054 libext=lib | |
| 10055 # Tell ltmain to make .dll files, not .so files. | |
| 10056 shrext_cmds=.dll | |
| 10057 # FIXME: Setting linknames here is a bad hack. | |
| 10058 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
| 10059 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
| 10060 cp "$export_symbols" "$output_objdir/$soname.def"; | |
| 10061 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
| 10062 else | |
| 10063 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
| 10064 fi~ | |
| 10065 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
| 10066 linknames=' | |
| 10067 # The linker will not automatically build a static lib if we build a DLL. | |
| 10068 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
| 10069 enable_shared_with_static_runtimes=yes | |
| 10070 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
| 10071 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
| 10072 # Don't use ranlib | |
| 10073 old_postinstall_cmds='chmod 644 $oldlib' | |
| 10074 postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
| 10075 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
| 10076 case $lt_outputfile in | |
| 10077 *.exe|*.EXE) ;; | |
| 10078 *) | |
| 10079 lt_outputfile=$lt_outputfile.exe | |
| 10080 lt_tool_outputfile=$lt_tool_outputfile.exe | |
| 10081 ;; | |
| 10082 esac~ | |
| 10083 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
| 10084 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
| 10085 $RM "$lt_outputfile.manifest"; | |
| 10086 fi' | |
| 10087 ;; | |
| 10088 *) | |
| 10089 # Assume MSVC wrapper | |
| 10090 hardcode_libdir_flag_spec=' ' | |
| 10091 allow_undefined_flag=unsupported | |
| 10092 # Tell ltmain to make .lib files, not .a files. | |
| 10093 libext=lib | |
| 10094 # Tell ltmain to make .dll files, not .so files. | |
| 10095 shrext_cmds=.dll | |
| 10096 # FIXME: Setting linknames here is a bad hack. | |
| 10097 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
| 10098 # The linker will automatically build a .lib file if we build a DLL. | |
| 10099 old_archive_from_new_cmds='true' | |
| 10100 # FIXME: Should let the user specify the lib program. | |
| 10101 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
| 10102 enable_shared_with_static_runtimes=yes | |
| 10103 ;; | |
| 10104 esac | |
| 10105 ;; | |
| 10106 | |
| 10107 darwin* | rhapsody*) | |
| 10108 | |
| 10109 | |
| 10110 archive_cmds_need_lc=no | |
| 10111 hardcode_direct=no | |
| 10112 hardcode_automatic=yes | |
| 10113 hardcode_shlibpath_var=unsupported | |
| 10114 if test yes = "$lt_cv_ld_force_load"; then | |
| 10115 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\"`' | |
| 10116 | |
| 10117 else | |
| 10118 whole_archive_flag_spec='' | |
| 10119 fi | |
| 10120 link_all_deplibs=yes | |
| 10121 allow_undefined_flag=$_lt_dar_allow_undefined | |
| 10122 case $cc_basename in | |
| 10123 ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
| 10124 *) _lt_dar_can_shared=$GCC ;; | |
| 10125 esac | |
| 10126 if test yes = "$_lt_dar_can_shared"; then | |
| 10127 output_verbose_link_cmd=func_echo_all | |
| 10128 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" | |
| 10129 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
| 10130 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" | |
| 10131 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" | |
| 10132 | |
| 10133 else | |
| 10134 ld_shlibs=no | |
| 10135 fi | |
| 10136 | |
| 10137 ;; | |
| 10138 | |
| 10139 dgux*) | |
| 10140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 10141 hardcode_libdir_flag_spec='-L$libdir' | |
| 10142 hardcode_shlibpath_var=no | |
| 10143 ;; | |
| 10144 | |
| 10145 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
| 10146 # support. Future versions do this automatically, but an explicit c++rt0.o | |
| 10147 # does not break anything, and helps significantly (at the cost of a little | |
| 10148 # extra space). | |
| 10149 freebsd2.2*) | |
| 10150 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
| 10151 hardcode_libdir_flag_spec='-R$libdir' | |
| 10152 hardcode_direct=yes | |
| 10153 hardcode_shlibpath_var=no | |
| 10154 ;; | |
| 10155 | |
| 10156 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
| 10157 freebsd2.*) | |
| 10158 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
| 10159 hardcode_direct=yes | |
| 10160 hardcode_minus_L=yes | |
| 10161 hardcode_shlibpath_var=no | |
| 10162 ;; | |
| 10163 | |
| 10164 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
| 10165 freebsd* | dragonfly*) | |
| 10166 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
| 10167 hardcode_libdir_flag_spec='-R$libdir' | |
| 10168 hardcode_direct=yes | |
| 10169 hardcode_shlibpath_var=no | |
| 10170 ;; | |
| 10171 | |
| 10172 hpux9*) | |
| 10173 if test yes = "$GCC"; then | |
| 10174 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
| 10175 else | |
| 10176 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
| 10177 fi | |
| 10178 hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
| 10179 hardcode_libdir_separator=: | |
| 10180 hardcode_direct=yes | |
| 10181 | |
| 10182 # hardcode_minus_L: Not really in the search PATH, | |
| 10183 # but as the default location of the library. | |
| 10184 hardcode_minus_L=yes | |
| 10185 export_dynamic_flag_spec='$wl-E' | |
| 10186 ;; | |
| 10187 | |
| 10188 hpux10*) | |
| 10189 if test yes,no = "$GCC,$with_gnu_ld"; then | |
| 10190 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
| 10191 else | |
| 10192 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
| 10193 fi | |
| 10194 if test no = "$with_gnu_ld"; then | |
| 10195 hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
| 10196 hardcode_libdir_separator=: | |
| 10197 hardcode_direct=yes | |
| 10198 hardcode_direct_absolute=yes | |
| 10199 export_dynamic_flag_spec='$wl-E' | |
| 10200 # hardcode_minus_L: Not really in the search PATH, | |
| 10201 # but as the default location of the library. | |
| 10202 hardcode_minus_L=yes | |
| 10203 fi | |
| 10204 ;; | |
| 10205 | |
| 10206 hpux11*) | |
| 10207 if test yes,no = "$GCC,$with_gnu_ld"; then | |
| 10208 case $host_cpu in | |
| 10209 hppa*64*) | |
| 10210 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10211 ;; | |
| 10212 ia64*) | |
| 10213 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
| 10214 ;; | |
| 10215 *) | |
| 10216 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
| 10217 ;; | |
| 10218 esac | |
| 10219 else | |
| 10220 case $host_cpu in | |
| 10221 hppa*64*) | |
| 10222 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10223 ;; | |
| 10224 ia64*) | |
| 10225 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
| 10226 ;; | |
| 10227 *) | |
| 10228 | |
| 10229 # Older versions of the 11.00 compiler do not understand -b yet | |
| 10230 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
| 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
| 10232 $as_echo_n "checking if $CC understands -b... " >&6; } | |
| 10233 if ${lt_cv_prog_compiler__b+:} false; then : | |
| 10234 $as_echo_n "(cached) " >&6 | |
| 10235 else | |
| 10236 lt_cv_prog_compiler__b=no | |
| 10237 save_LDFLAGS=$LDFLAGS | |
| 10238 LDFLAGS="$LDFLAGS -b" | |
| 10239 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
| 10240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
| 10241 # The linker can only warn and ignore the option if not recognized | |
| 10242 # So say no if there are warnings | |
| 10243 if test -s conftest.err; then | |
| 10244 # Append any errors to the config.log. | |
| 10245 cat conftest.err 1>&5 | |
| 10246 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
| 10247 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 10248 if diff conftest.exp conftest.er2 >/dev/null; then | |
| 10249 lt_cv_prog_compiler__b=yes | |
| 10250 fi | |
| 10251 else | |
| 10252 lt_cv_prog_compiler__b=yes | |
| 10253 fi | |
| 10254 fi | |
| 10255 $RM -r conftest* | |
| 10256 LDFLAGS=$save_LDFLAGS | |
| 10257 | |
| 10258 fi | |
| 10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
| 10260 $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
| 10261 | |
| 10262 if test yes = "$lt_cv_prog_compiler__b"; then | |
| 10263 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
| 10264 else | |
| 10265 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
| 10266 fi | |
| 10267 | |
| 10268 ;; | |
| 10269 esac | |
| 10270 fi | |
| 10271 if test no = "$with_gnu_ld"; then | |
| 10272 hardcode_libdir_flag_spec='$wl+b $wl$libdir' | |
| 10273 hardcode_libdir_separator=: | |
| 10274 | |
| 10275 case $host_cpu in | |
| 10276 hppa*64*|ia64*) | |
| 10277 hardcode_direct=no | |
| 10278 hardcode_shlibpath_var=no | |
| 10279 ;; | |
| 10280 *) | |
| 10281 hardcode_direct=yes | |
| 10282 hardcode_direct_absolute=yes | |
| 10283 export_dynamic_flag_spec='$wl-E' | |
| 10284 | |
| 10285 # hardcode_minus_L: Not really in the search PATH, | |
| 10286 # but as the default location of the library. | |
| 10287 hardcode_minus_L=yes | |
| 10288 ;; | |
| 10289 esac | |
| 10290 fi | |
| 10291 ;; | |
| 10292 | |
| 10293 irix5* | irix6* | nonstopux*) | |
| 10294 if test yes = "$GCC"; then | |
| 10295 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' | |
| 10296 # Try to use the -exported_symbol ld option, if it does not | |
| 10297 # work, assume that -exports_file does not work either and | |
| 10298 # implicitly export all symbols. | |
| 10299 # This should be the same for all languages, so no per-tag cache variable. | |
| 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
| 10301 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
| 10302 if ${lt_cv_irix_exported_symbol+:} false; then : | |
| 10303 $as_echo_n "(cached) " >&6 | |
| 10304 else | |
| 10305 save_LDFLAGS=$LDFLAGS | |
| 10306 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" | |
| 10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 10308 /* end confdefs.h. */ | |
| 10309 int foo (void) { return 0; } | |
| 10310 _ACEOF | |
| 10311 if ac_fn_c_try_link "$LINENO"; then : | |
| 10312 lt_cv_irix_exported_symbol=yes | |
| 10313 else | |
| 10314 lt_cv_irix_exported_symbol=no | |
| 10315 fi | |
| 10316 rm -f core conftest.err conftest.$ac_objext \ | |
| 10317 conftest$ac_exeext conftest.$ac_ext | |
| 10318 LDFLAGS=$save_LDFLAGS | |
| 10319 fi | |
| 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
| 10321 $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
| 10322 if test yes = "$lt_cv_irix_exported_symbol"; then | |
| 10323 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' | |
| 10324 fi | |
| 10325 else | |
| 10326 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' | |
| 10327 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' | |
| 10328 fi | |
| 10329 archive_cmds_need_lc='no' | |
| 10330 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
| 10331 hardcode_libdir_separator=: | |
| 10332 inherit_rpath=yes | |
| 10333 link_all_deplibs=yes | |
| 10334 ;; | |
| 10335 | |
| 10336 linux*) | |
| 10337 case $cc_basename in | |
| 10338 tcc*) | |
| 10339 # Fabrice Bellard et al's Tiny C Compiler | |
| 10340 ld_shlibs=yes | |
| 10341 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
| 10342 ;; | |
| 10343 esac | |
| 10344 ;; | |
| 10345 | |
| 10346 netbsd*) | |
| 10347 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
| 10348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
| 10349 else | |
| 10350 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
| 10351 fi | |
| 10352 hardcode_libdir_flag_spec='-R$libdir' | |
| 10353 hardcode_direct=yes | |
| 10354 hardcode_shlibpath_var=no | |
| 10355 ;; | |
| 10356 | |
| 10357 newsos6) | |
| 10358 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 10359 hardcode_direct=yes | |
| 10360 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
| 10361 hardcode_libdir_separator=: | |
| 10362 hardcode_shlibpath_var=no | |
| 10363 ;; | |
| 10364 | |
| 10365 *nto* | *qnx*) | |
| 10366 ;; | |
| 10367 | |
| 10368 openbsd* | bitrig*) | |
| 10369 if test -f /usr/libexec/ld.so; then | |
| 10370 hardcode_direct=yes | |
| 10371 hardcode_shlibpath_var=no | |
| 10372 hardcode_direct_absolute=yes | |
| 10373 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
| 10374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
| 10375 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' | |
| 10376 hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
| 10377 export_dynamic_flag_spec='$wl-E' | |
| 10378 else | |
| 10379 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
| 10380 hardcode_libdir_flag_spec='$wl-rpath,$libdir' | |
| 10381 fi | |
| 10382 else | |
| 10383 ld_shlibs=no | |
| 10384 fi | |
| 10385 ;; | |
| 10386 | |
| 10387 os2*) | |
| 10388 hardcode_libdir_flag_spec='-L$libdir' | |
| 10389 hardcode_minus_L=yes | |
| 10390 allow_undefined_flag=unsupported | |
| 10391 shrext_cmds=.dll | |
| 10392 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 10393 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 10394 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 10395 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 10396 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
| 10397 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 10398 emximp -o $lib $output_objdir/$libname.def' | |
| 10399 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 10400 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 10401 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 10402 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 10403 prefix_cmds="$SED"~ | |
| 10404 if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
| 10405 prefix_cmds="$prefix_cmds -e 1d"; | |
| 10406 fi~ | |
| 10407 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
| 10408 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
| 10409 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 10410 emximp -o $lib $output_objdir/$libname.def' | |
| 10411 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
| 10412 enable_shared_with_static_runtimes=yes | |
| 10413 ;; | |
| 10414 | |
| 10415 osf3*) | |
| 10416 if test yes = "$GCC"; then | |
| 10417 allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
| 10418 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' | |
| 10419 else | |
| 10420 allow_undefined_flag=' -expect_unresolved \*' | |
| 10421 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' | |
| 10422 fi | |
| 10423 archive_cmds_need_lc='no' | |
| 10424 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
| 10425 hardcode_libdir_separator=: | |
| 10426 ;; | |
| 10427 | |
| 10428 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
| 10429 if test yes = "$GCC"; then | |
| 10430 allow_undefined_flag=' $wl-expect_unresolved $wl\*' | |
| 10431 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' | |
| 10432 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' | |
| 10433 else | |
| 10434 allow_undefined_flag=' -expect_unresolved \*' | |
| 10435 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' | |
| 10436 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~ | |
| 10437 $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' | |
| 10438 | |
| 10439 # Both c and cxx compiler support -rpath directly | |
| 10440 hardcode_libdir_flag_spec='-rpath $libdir' | |
| 10441 fi | |
| 10442 archive_cmds_need_lc='no' | |
| 10443 hardcode_libdir_separator=: | |
| 10444 ;; | |
| 10445 | |
| 10446 solaris*) | |
| 10447 no_undefined_flag=' -z defs' | |
| 10448 if test yes = "$GCC"; then | |
| 10449 wlarc='$wl' | |
| 10450 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 10452 $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' | |
| 10453 else | |
| 10454 case `$CC -V 2>&1` in | |
| 10455 *"Compilers 5.0"*) | |
| 10456 wlarc='' | |
| 10457 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 10458 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 10459 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
| 10460 ;; | |
| 10461 *) | |
| 10462 wlarc='$wl' | |
| 10463 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10464 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 10465 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
| 10466 ;; | |
| 10467 esac | |
| 10468 fi | |
| 10469 hardcode_libdir_flag_spec='-R$libdir' | |
| 10470 hardcode_shlibpath_var=no | |
| 10471 case $host_os in | |
| 10472 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
| 10473 *) | |
| 10474 # The compiler driver will combine and reorder linker options, | |
| 10475 # but understands '-z linker_flag'. GCC discards it without '$wl', | |
| 10476 # but is careful enough not to reorder. | |
| 10477 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
| 10478 if test yes = "$GCC"; then | |
| 10479 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
| 10480 else | |
| 10481 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
| 10482 fi | |
| 10483 ;; | |
| 10484 esac | |
| 10485 link_all_deplibs=yes | |
| 10486 ;; | |
| 10487 | |
| 10488 sunos4*) | |
| 10489 if test sequent = "$host_vendor"; then | |
| 10490 # Use $CC to link under sequent, because it throws in some extra .o | |
| 10491 # files that make .init and .fini sections work. | |
| 10492 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10493 else | |
| 10494 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
| 10495 fi | |
| 10496 hardcode_libdir_flag_spec='-L$libdir' | |
| 10497 hardcode_direct=yes | |
| 10498 hardcode_minus_L=yes | |
| 10499 hardcode_shlibpath_var=no | |
| 10500 ;; | |
| 10501 | |
| 10502 sysv4) | |
| 10503 case $host_vendor in | |
| 10504 sni) | |
| 10505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 10506 hardcode_direct=yes # is this really true??? | |
| 10507 ;; | |
| 10508 siemens) | |
| 10509 ## LD is ld it makes a PLAMLIB | |
| 10510 ## CC just makes a GrossModule. | |
| 10511 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
| 10512 reload_cmds='$CC -r -o $output$reload_objs' | |
| 10513 hardcode_direct=no | |
| 10514 ;; | |
| 10515 motorola) | |
| 10516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 10517 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
| 10518 ;; | |
| 10519 esac | |
| 10520 runpath_var='LD_RUN_PATH' | |
| 10521 hardcode_shlibpath_var=no | |
| 10522 ;; | |
| 10523 | |
| 10524 sysv4.3*) | |
| 10525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 10526 hardcode_shlibpath_var=no | |
| 10527 export_dynamic_flag_spec='-Bexport' | |
| 10528 ;; | |
| 10529 | |
| 10530 sysv4*MP*) | |
| 10531 if test -d /usr/nec; then | |
| 10532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 10533 hardcode_shlibpath_var=no | |
| 10534 runpath_var=LD_RUN_PATH | |
| 10535 hardcode_runpath_var=yes | |
| 10536 ld_shlibs=yes | |
| 10537 fi | |
| 10538 ;; | |
| 10539 | |
| 10540 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
| 10541 no_undefined_flag='$wl-z,text' | |
| 10542 archive_cmds_need_lc=no | |
| 10543 hardcode_shlibpath_var=no | |
| 10544 runpath_var='LD_RUN_PATH' | |
| 10545 | |
| 10546 if test yes = "$GCC"; then | |
| 10547 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10548 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10549 else | |
| 10550 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10551 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10552 fi | |
| 10553 ;; | |
| 10554 | |
| 10555 sysv5* | sco3.2v5* | sco5v6*) | |
| 10556 # Note: We CANNOT use -z defs as we might desire, because we do not | |
| 10557 # link with -lc, and that would cause any symbols used from libc to | |
| 10558 # always be unresolved, which means just about no library would | |
| 10559 # ever link correctly. If we're not using GNU ld we use -z text | |
| 10560 # though, which does catch some bad symbols but isn't as heavy-handed | |
| 10561 # as -z defs. | |
| 10562 no_undefined_flag='$wl-z,text' | |
| 10563 allow_undefined_flag='$wl-z,nodefs' | |
| 10564 archive_cmds_need_lc=no | |
| 10565 hardcode_shlibpath_var=no | |
| 10566 hardcode_libdir_flag_spec='$wl-R,$libdir' | |
| 10567 hardcode_libdir_separator=':' | |
| 10568 link_all_deplibs=yes | |
| 10569 export_dynamic_flag_spec='$wl-Bexport' | |
| 10570 runpath_var='LD_RUN_PATH' | |
| 10571 | |
| 10572 if test yes = "$GCC"; then | |
| 10573 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10574 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10575 else | |
| 10576 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10577 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 10578 fi | |
| 10579 ;; | |
| 10580 | |
| 10581 uts4*) | |
| 10582 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
| 10583 hardcode_libdir_flag_spec='-L$libdir' | |
| 10584 hardcode_shlibpath_var=no | |
| 10585 ;; | |
| 10586 | |
| 10587 *) | |
| 10588 ld_shlibs=no | |
| 10589 ;; | |
| 10590 esac | |
| 10591 | |
| 10592 if test sni = "$host_vendor"; then | |
| 10593 case $host in | |
| 10594 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
| 10595 export_dynamic_flag_spec='$wl-Blargedynsym' | |
| 10596 ;; | |
| 10597 esac | |
| 10598 fi | |
| 10599 fi | |
| 10600 | |
| 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
| 10602 $as_echo "$ld_shlibs" >&6; } | |
| 10603 test no = "$ld_shlibs" && can_build_shared=no | |
| 10604 | |
| 10605 with_gnu_ld=$with_gnu_ld | |
| 10606 | |
| 10607 | |
| 10608 | |
| 10609 | |
| 10610 | |
| 10611 | |
| 10612 | |
| 10613 | |
| 10614 | |
| 10615 | |
| 10616 | |
| 10617 | |
| 10618 | |
| 10619 | |
| 10620 | |
| 10621 # | |
| 10622 # Do we need to explicitly link libc? | |
| 10623 # | |
| 10624 case "x$archive_cmds_need_lc" in | |
| 10625 x|xyes) | |
| 10626 # Assume -lc should be added | |
| 10627 archive_cmds_need_lc=yes | |
| 10628 | |
| 10629 if test yes,yes = "$GCC,$enable_shared"; then | |
| 10630 case $archive_cmds in | |
| 10631 *'~'*) | |
| 10632 # FIXME: we may have to deal with multi-command sequences. | |
| 10633 ;; | |
| 10634 '$CC '*) | |
| 10635 # Test whether the compiler implicitly links with -lc since on some | |
| 10636 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
| 10637 # to ld, don't add -lc before -lgcc. | |
| 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
| 10639 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
| 10640 if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
| 10641 $as_echo_n "(cached) " >&6 | |
| 10642 else | |
| 10643 $RM conftest* | |
| 10644 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 10645 | |
| 10646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
| 10647 (eval $ac_compile) 2>&5 | |
| 10648 ac_status=$? | |
| 10649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 10650 test $ac_status = 0; } 2>conftest.err; then | |
| 10651 soname=conftest | |
| 10652 lib=conftest | |
| 10653 libobjs=conftest.$ac_objext | |
| 10654 deplibs= | |
| 10655 wl=$lt_prog_compiler_wl | |
| 10656 pic_flag=$lt_prog_compiler_pic | |
| 10657 compiler_flags=-v | |
| 10658 linker_flags=-v | |
| 10659 verstring= | |
| 10660 output_objdir=. | |
| 10661 libname=conftest | |
| 10662 lt_save_allow_undefined_flag=$allow_undefined_flag | |
| 10663 allow_undefined_flag= | |
| 10664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
| 10665 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
| 10666 ac_status=$? | |
| 10667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 10668 test $ac_status = 0; } | |
| 10669 then | |
| 10670 lt_cv_archive_cmds_need_lc=no | |
| 10671 else | |
| 10672 lt_cv_archive_cmds_need_lc=yes | |
| 10673 fi | |
| 10674 allow_undefined_flag=$lt_save_allow_undefined_flag | |
| 10675 else | |
| 10676 cat conftest.err 1>&5 | |
| 10677 fi | |
| 10678 $RM conftest* | |
| 10679 | |
| 10680 fi | |
| 10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
| 10682 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
| 10683 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
| 10684 ;; | |
| 10685 esac | |
| 10686 fi | |
| 10687 ;; | |
| 10688 esac | |
| 10689 | |
| 10690 | |
| 10691 | |
| 10692 | |
| 10693 | |
| 10694 | |
| 10695 | |
| 10696 | |
| 10697 | |
| 10698 | |
| 10699 | |
| 10700 | |
| 10701 | |
| 10702 | |
| 10703 | |
| 10704 | |
| 10705 | |
| 10706 | |
| 10707 | |
| 10708 | |
| 10709 | |
| 10710 | |
| 10711 | |
| 10712 | |
| 10713 | |
| 10714 | |
| 10715 | |
| 10716 | |
| 10717 | |
| 10718 | |
| 10719 | |
| 10720 | |
| 10721 | |
| 10722 | |
| 10723 | |
| 10724 | |
| 10725 | |
| 10726 | |
| 10727 | |
| 10728 | |
| 10729 | |
| 10730 | |
| 10731 | |
| 10732 | |
| 10733 | |
| 10734 | |
| 10735 | |
| 10736 | |
| 10737 | |
| 10738 | |
| 10739 | |
| 10740 | |
| 10741 | |
| 10742 | |
| 10743 | |
| 10744 | |
| 10745 | |
| 10746 | |
| 10747 | |
| 10748 | |
| 10749 | |
| 10750 | |
| 10751 | |
| 10752 | |
| 10753 | |
| 10754 | |
| 10755 | |
| 10756 | |
| 10757 | |
| 10758 | |
| 10759 | |
| 10760 | |
| 10761 | |
| 10762 | |
| 10763 | |
| 10764 | |
| 10765 | |
| 10766 | |
| 10767 | |
| 10768 | |
| 10769 | |
| 10770 | |
| 10771 | |
| 10772 | |
| 10773 | |
| 10774 | |
| 10775 | |
| 10776 | |
| 10777 | |
| 10778 | |
| 10779 | |
| 10780 | |
| 10781 | |
| 10782 | |
| 10783 | |
| 10784 | |
| 10785 | |
| 10786 | |
| 10787 | |
| 10788 | |
| 10789 | |
| 10790 | |
| 10791 | |
| 10792 | |
| 10793 | |
| 10794 | |
| 10795 | |
| 10796 | |
| 10797 | |
| 10798 | |
| 10799 | |
| 10800 | |
| 10801 | |
| 10802 | |
| 10803 | |
| 10804 | |
| 10805 | |
| 10806 | |
| 10807 | |
| 10808 | |
| 10809 | |
| 10810 | |
| 10811 | |
| 10812 | |
| 10813 | |
| 10814 | |
| 10815 | |
| 10816 | |
| 10817 | |
| 10818 | |
| 10819 | |
| 10820 | |
| 10821 | |
| 10822 | |
| 10823 | |
| 10824 | |
| 10825 | |
| 10826 | |
| 10827 | |
| 10828 | |
| 10829 | |
| 10830 | |
| 10831 | |
| 10832 | |
| 10833 | |
| 10834 | |
| 10835 | |
| 10836 | |
| 10837 | |
| 10838 | |
| 10839 | |
| 10840 | |
| 10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
| 10842 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
| 10843 | |
| 10844 if test yes = "$GCC"; then | |
| 10845 case $host_os in | |
| 10846 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; | |
| 10847 *) lt_awk_arg='/^libraries:/' ;; | |
| 10848 esac | |
| 10849 case $host_os in | |
| 10850 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; | |
| 10851 *) lt_sed_strip_eq='s|=/|/|g' ;; | |
| 10852 esac | |
| 10853 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
| 10854 case $lt_search_path_spec in | |
| 10855 *\;*) | |
| 10856 # if the path contains ";" then we assume it to be the separator | |
| 10857 # otherwise default to the standard path separator (i.e. ":") - it is | |
| 10858 # assumed that no part of a normal pathname contains ";" but that should | |
| 10859 # okay in the real world where ";" in dirpaths is itself problematic. | |
| 10860 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
| 10861 ;; | |
| 10862 *) | |
| 10863 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
| 10864 ;; | |
| 10865 esac | |
| 10866 # Ok, now we have the path, separated by spaces, we can step through it | |
| 10867 # and add multilib dir if necessary... | |
| 10868 lt_tmp_lt_search_path_spec= | |
| 10869 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
| 10870 # ...but if some path component already ends with the multilib dir we assume | |
| 10871 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). | |
| 10872 case "$lt_multi_os_dir; $lt_search_path_spec " in | |
| 10873 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) | |
| 10874 lt_multi_os_dir= | |
| 10875 ;; | |
| 10876 esac | |
| 10877 for lt_sys_path in $lt_search_path_spec; do | |
| 10878 if test -d "$lt_sys_path$lt_multi_os_dir"; then | |
| 10879 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" | |
| 10880 elif test -n "$lt_multi_os_dir"; then | |
| 10881 test -d "$lt_sys_path" && \ | |
| 10882 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
| 10883 fi | |
| 10884 done | |
| 10885 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
| 10886 BEGIN {RS = " "; FS = "/|\n";} { | |
| 10887 lt_foo = ""; | |
| 10888 lt_count = 0; | |
| 10889 for (lt_i = NF; lt_i > 0; lt_i--) { | |
| 10890 if ($lt_i != "" && $lt_i != ".") { | |
| 10891 if ($lt_i == "..") { | |
| 10892 lt_count++; | |
| 10893 } else { | |
| 10894 if (lt_count == 0) { | |
| 10895 lt_foo = "/" $lt_i lt_foo; | |
| 10896 } else { | |
| 10897 lt_count--; | |
| 10898 } | |
| 10899 } | |
| 10900 } | |
| 10901 } | |
| 10902 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
| 10903 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
| 10904 }'` | |
| 10905 # AWK program above erroneously prepends '/' to C:/dos/paths | |
| 10906 # for these hosts. | |
| 10907 case $host_os in | |
| 10908 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
| 10909 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; | |
| 10910 esac | |
| 10911 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
| 10912 else | |
| 10913 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
| 10914 fi | |
| 10915 library_names_spec= | |
| 10916 libname_spec='lib$name' | |
| 10917 soname_spec= | |
| 10918 shrext_cmds=.so | |
| 10919 postinstall_cmds= | |
| 10920 postuninstall_cmds= | |
| 10921 finish_cmds= | |
| 10922 finish_eval= | |
| 10923 shlibpath_var= | |
| 10924 shlibpath_overrides_runpath=unknown | |
| 10925 version_type=none | |
| 10926 dynamic_linker="$host_os ld.so" | |
| 10927 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
| 10928 need_lib_prefix=unknown | |
| 10929 hardcode_into_libs=no | |
| 10930 | |
| 10931 # when you set need_version to no, make sure it does not cause -set_version | |
| 10932 # flags to be left without arguments | |
| 10933 need_version=unknown | |
| 10934 | |
| 10935 | |
| 10936 | |
| 10937 case $host_os in | |
| 10938 aix3*) | |
| 10939 version_type=linux # correct to gnu/linux during the next big refactor | |
| 10940 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
| 10941 shlibpath_var=LIBPATH | |
| 10942 | |
| 10943 # AIX 3 has no versioning support, so we append a major version to the name. | |
| 10944 soname_spec='$libname$release$shared_ext$major' | |
| 10945 ;; | |
| 10946 | |
| 10947 aix[4-9]*) | |
| 10948 version_type=linux # correct to gnu/linux during the next big refactor | |
| 10949 need_lib_prefix=no | |
| 10950 need_version=no | |
| 10951 hardcode_into_libs=yes | |
| 10952 if test ia64 = "$host_cpu"; then | |
| 10953 # AIX 5 supports IA64 | |
| 10954 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
| 10955 shlibpath_var=LD_LIBRARY_PATH | |
| 10956 else | |
| 10957 # With GCC up to 2.95.x, collect2 would create an import file | |
| 10958 # for dependence libraries. The import file would start with | |
| 10959 # the line '#! .'. This would cause the generated library to | |
| 10960 # depend on '.', always an invalid library. This was fixed in | |
| 10961 # development snapshots of GCC prior to 3.0. | |
| 10962 case $host_os in | |
| 10963 aix4 | aix4.[01] | aix4.[01].*) | |
| 10964 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
| 10965 echo ' yes ' | |
| 10966 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
| 10967 : | |
| 10968 else | |
| 10969 can_build_shared=no | |
| 10970 fi | |
| 10971 ;; | |
| 10972 esac | |
| 10973 # Using Import Files as archive members, it is possible to support | |
| 10974 # filename-based versioning of shared library archives on AIX. While | |
| 10975 # this would work for both with and without runtime linking, it will | |
| 10976 # prevent static linking of such archives. So we do filename-based | |
| 10977 # shared library versioning with .so extension only, which is used | |
| 10978 # when both runtime linking and shared linking is enabled. | |
| 10979 # Unfortunately, runtime linking may impact performance, so we do | |
| 10980 # not want this to be the default eventually. Also, we use the | |
| 10981 # versioned .so libs for executables only if there is the -brtl | |
| 10982 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
| 10983 # To allow for filename-based versioning support, we need to create | |
| 10984 # libNAME.so.V as an archive file, containing: | |
| 10985 # *) an Import File, referring to the versioned filename of the | |
| 10986 # archive as well as the shared archive member, telling the | |
| 10987 # bitwidth (32 or 64) of that shared object, and providing the | |
| 10988 # list of exported symbols of that shared object, eventually | |
| 10989 # decorated with the 'weak' keyword | |
| 10990 # *) the shared object with the F_LOADONLY flag set, to really avoid | |
| 10991 # it being seen by the linker. | |
| 10992 # At run time we better use the real file rather than another symlink, | |
| 10993 # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
| 10994 | |
| 10995 case $with_aix_soname,$aix_use_runtimelinking in | |
| 10996 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
| 10997 # soname into executable. Probably we can add versioning support to | |
| 10998 # collect2, so additional links can be useful in future. | |
| 10999 aix,yes) # traditional libtool | |
| 11000 dynamic_linker='AIX unversionable lib.so' | |
| 11001 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
| 11002 # instead of lib<name>.a to let people know that these are not | |
| 11003 # typical AIX shared libraries. | |
| 11004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11005 ;; | |
| 11006 aix,no) # traditional AIX only | |
| 11007 dynamic_linker='AIX lib.a(lib.so.V)' | |
| 11008 # We preserve .a as extension for shared libraries through AIX4.2 | |
| 11009 # and later when we are not doing run time linking. | |
| 11010 library_names_spec='$libname$release.a $libname.a' | |
| 11011 soname_spec='$libname$release$shared_ext$major' | |
| 11012 ;; | |
| 11013 svr4,*) # full svr4 only | |
| 11014 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
| 11015 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
| 11016 # We do not specify a path in Import Files, so LIBPATH fires. | |
| 11017 shlibpath_overrides_runpath=yes | |
| 11018 ;; | |
| 11019 *,yes) # both, prefer svr4 | |
| 11020 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
| 11021 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
| 11022 # unpreferred sharedlib libNAME.a needs extra handling | |
| 11023 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
| 11024 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
| 11025 # We do not specify a path in Import Files, so LIBPATH fires. | |
| 11026 shlibpath_overrides_runpath=yes | |
| 11027 ;; | |
| 11028 *,no) # both, prefer aix | |
| 11029 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
| 11030 library_names_spec='$libname$release.a $libname.a' | |
| 11031 soname_spec='$libname$release$shared_ext$major' | |
| 11032 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
| 11033 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
| 11034 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
| 11035 ;; | |
| 11036 esac | |
| 11037 shlibpath_var=LIBPATH | |
| 11038 fi | |
| 11039 ;; | |
| 11040 | |
| 11041 amigaos*) | |
| 11042 case $host_cpu in | |
| 11043 powerpc) | |
| 11044 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
| 11045 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
| 11046 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11047 ;; | |
| 11048 m68k) | |
| 11049 library_names_spec='$libname.ixlibrary $libname.a' | |
| 11050 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
| 11051 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
| 11052 ;; | |
| 11053 esac | |
| 11054 ;; | |
| 11055 | |
| 11056 beos*) | |
| 11057 library_names_spec='$libname$shared_ext' | |
| 11058 dynamic_linker="$host_os ld.so" | |
| 11059 shlibpath_var=LIBRARY_PATH | |
| 11060 ;; | |
| 11061 | |
| 11062 bsdi[45]*) | |
| 11063 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11064 need_version=no | |
| 11065 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11066 soname_spec='$libname$release$shared_ext$major' | |
| 11067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
| 11068 shlibpath_var=LD_LIBRARY_PATH | |
| 11069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
| 11070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
| 11071 # the default ld.so.conf also contains /usr/contrib/lib and | |
| 11072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
| 11073 # libtool to hard-code these into programs | |
| 11074 ;; | |
| 11075 | |
| 11076 cygwin* | mingw* | pw32* | cegcc*) | |
| 11077 version_type=windows | |
| 11078 shrext_cmds=.dll | |
| 11079 need_version=no | |
| 11080 need_lib_prefix=no | |
| 11081 | |
| 11082 case $GCC,$cc_basename in | |
| 11083 yes,*) | |
| 11084 # gcc | |
| 11085 library_names_spec='$libname.dll.a' | |
| 11086 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
| 11087 postinstall_cmds='base_file=`basename \$file`~ | |
| 11088 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
| 11089 dldir=$destdir/`dirname \$dlpath`~ | |
| 11090 test -d \$dldir || mkdir -p \$dldir~ | |
| 11091 $install_prog $dir/$dlname \$dldir/$dlname~ | |
| 11092 chmod a+x \$dldir/$dlname~ | |
| 11093 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
| 11094 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
| 11095 fi' | |
| 11096 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
| 11097 dlpath=$dir/\$dldll~ | |
| 11098 $RM \$dlpath' | |
| 11099 shlibpath_overrides_runpath=yes | |
| 11100 | |
| 11101 case $host_os in | |
| 11102 cygwin*) | |
| 11103 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
| 11104 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
| 11105 | |
| 11106 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
| 11107 ;; | |
| 11108 mingw* | cegcc*) | |
| 11109 # MinGW DLLs use traditional 'lib' prefix | |
| 11110 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
| 11111 ;; | |
| 11112 pw32*) | |
| 11113 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
| 11114 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
| 11115 ;; | |
| 11116 esac | |
| 11117 dynamic_linker='Win32 ld.exe' | |
| 11118 ;; | |
| 11119 | |
| 11120 *,cl*) | |
| 11121 # Native MSVC | |
| 11122 libname_spec='$name' | |
| 11123 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
| 11124 library_names_spec='$libname.dll.lib' | |
| 11125 | |
| 11126 case $build_os in | |
| 11127 mingw*) | |
| 11128 sys_lib_search_path_spec= | |
| 11129 lt_save_ifs=$IFS | |
| 11130 IFS=';' | |
| 11131 for lt_path in $LIB | |
| 11132 do | |
| 11133 IFS=$lt_save_ifs | |
| 11134 # Let DOS variable expansion print the short 8.3 style file name. | |
| 11135 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
| 11136 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
| 11137 done | |
| 11138 IFS=$lt_save_ifs | |
| 11139 # Convert to MSYS style. | |
| 11140 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
| 11141 ;; | |
| 11142 cygwin*) | |
| 11143 # Convert to unix form, then to dos form, then back to unix form | |
| 11144 # but this time dos style (no spaces!) so that the unix form looks | |
| 11145 # like /cygdrive/c/PROGRA~1:/cygdr... | |
| 11146 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
| 11147 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
| 11148 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
| 11149 ;; | |
| 11150 *) | |
| 11151 sys_lib_search_path_spec=$LIB | |
| 11152 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
| 11153 # It is most probably a Windows format PATH. | |
| 11154 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
| 11155 else | |
| 11156 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
| 11157 fi | |
| 11158 # FIXME: find the short name or the path components, as spaces are | |
| 11159 # common. (e.g. "Program Files" -> "PROGRA~1") | |
| 11160 ;; | |
| 11161 esac | |
| 11162 | |
| 11163 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
| 11164 postinstall_cmds='base_file=`basename \$file`~ | |
| 11165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
| 11166 dldir=$destdir/`dirname \$dlpath`~ | |
| 11167 test -d \$dldir || mkdir -p \$dldir~ | |
| 11168 $install_prog $dir/$dlname \$dldir/$dlname' | |
| 11169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
| 11170 dlpath=$dir/\$dldll~ | |
| 11171 $RM \$dlpath' | |
| 11172 shlibpath_overrides_runpath=yes | |
| 11173 dynamic_linker='Win32 link.exe' | |
| 11174 ;; | |
| 11175 | |
| 11176 *) | |
| 11177 # Assume MSVC wrapper | |
| 11178 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
| 11179 dynamic_linker='Win32 ld.exe' | |
| 11180 ;; | |
| 11181 esac | |
| 11182 # FIXME: first we should search . and the directory the executable is in | |
| 11183 shlibpath_var=PATH | |
| 11184 ;; | |
| 11185 | |
| 11186 darwin* | rhapsody*) | |
| 11187 dynamic_linker="$host_os dyld" | |
| 11188 version_type=darwin | |
| 11189 need_lib_prefix=no | |
| 11190 need_version=no | |
| 11191 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
| 11192 soname_spec='$libname$release$major$shared_ext' | |
| 11193 shlibpath_overrides_runpath=yes | |
| 11194 shlibpath_var=DYLD_LIBRARY_PATH | |
| 11195 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
| 11196 | |
| 11197 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
| 11198 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
| 11199 ;; | |
| 11200 | |
| 11201 dgux*) | |
| 11202 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11203 need_lib_prefix=no | |
| 11204 need_version=no | |
| 11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11206 soname_spec='$libname$release$shared_ext$major' | |
| 11207 shlibpath_var=LD_LIBRARY_PATH | |
| 11208 ;; | |
| 11209 | |
| 11210 freebsd* | dragonfly*) | |
| 11211 # DragonFly does not have aout. When/if they implement a new | |
| 11212 # versioning mechanism, adjust this. | |
| 11213 if test -x /usr/bin/objformat; then | |
| 11214 objformat=`/usr/bin/objformat` | |
| 11215 else | |
| 11216 case $host_os in | |
| 11217 freebsd[23].*) objformat=aout ;; | |
| 11218 *) objformat=elf ;; | |
| 11219 esac | |
| 11220 fi | |
| 11221 version_type=freebsd-$objformat | |
| 11222 case $version_type in | |
| 11223 freebsd-elf*) | |
| 11224 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11225 soname_spec='$libname$release$shared_ext$major' | |
| 11226 need_version=no | |
| 11227 need_lib_prefix=no | |
| 11228 ;; | |
| 11229 freebsd-*) | |
| 11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 11231 need_version=yes | |
| 11232 ;; | |
| 11233 esac | |
| 11234 shlibpath_var=LD_LIBRARY_PATH | |
| 11235 case $host_os in | |
| 11236 freebsd2.*) | |
| 11237 shlibpath_overrides_runpath=yes | |
| 11238 ;; | |
| 11239 freebsd3.[01]* | freebsdelf3.[01]*) | |
| 11240 shlibpath_overrides_runpath=yes | |
| 11241 hardcode_into_libs=yes | |
| 11242 ;; | |
| 11243 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
| 11244 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
| 11245 shlibpath_overrides_runpath=no | |
| 11246 hardcode_into_libs=yes | |
| 11247 ;; | |
| 11248 *) # from 4.6 on, and DragonFly | |
| 11249 shlibpath_overrides_runpath=yes | |
| 11250 hardcode_into_libs=yes | |
| 11251 ;; | |
| 11252 esac | |
| 11253 ;; | |
| 11254 | |
| 11255 haiku*) | |
| 11256 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11257 need_lib_prefix=no | |
| 11258 need_version=no | |
| 11259 dynamic_linker="$host_os runtime_loader" | |
| 11260 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11261 soname_spec='$libname$release$shared_ext$major' | |
| 11262 shlibpath_var=LIBRARY_PATH | |
| 11263 shlibpath_overrides_runpath=no | |
| 11264 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
| 11265 hardcode_into_libs=yes | |
| 11266 ;; | |
| 11267 | |
| 11268 hpux9* | hpux10* | hpux11*) | |
| 11269 # Give a soname corresponding to the major version so that dld.sl refuses to | |
| 11270 # link against other versions. | |
| 11271 version_type=sunos | |
| 11272 need_lib_prefix=no | |
| 11273 need_version=no | |
| 11274 case $host_cpu in | |
| 11275 ia64*) | |
| 11276 shrext_cmds='.so' | |
| 11277 hardcode_into_libs=yes | |
| 11278 dynamic_linker="$host_os dld.so" | |
| 11279 shlibpath_var=LD_LIBRARY_PATH | |
| 11280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
| 11281 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11282 soname_spec='$libname$release$shared_ext$major' | |
| 11283 if test 32 = "$HPUX_IA64_MODE"; then | |
| 11284 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
| 11285 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
| 11286 else | |
| 11287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
| 11288 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
| 11289 fi | |
| 11290 ;; | |
| 11291 hppa*64*) | |
| 11292 shrext_cmds='.sl' | |
| 11293 hardcode_into_libs=yes | |
| 11294 dynamic_linker="$host_os dld.sl" | |
| 11295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
| 11296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
| 11297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11298 soname_spec='$libname$release$shared_ext$major' | |
| 11299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
| 11300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
| 11301 ;; | |
| 11302 *) | |
| 11303 shrext_cmds='.sl' | |
| 11304 dynamic_linker="$host_os dld.sl" | |
| 11305 shlibpath_var=SHLIB_PATH | |
| 11306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
| 11307 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11308 soname_spec='$libname$release$shared_ext$major' | |
| 11309 ;; | |
| 11310 esac | |
| 11311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
| 11312 postinstall_cmds='chmod 555 $lib' | |
| 11313 # or fails outright, so override atomically: | |
| 11314 install_override_mode=555 | |
| 11315 ;; | |
| 11316 | |
| 11317 interix[3-9]*) | |
| 11318 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11319 need_lib_prefix=no | |
| 11320 need_version=no | |
| 11321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11322 soname_spec='$libname$release$shared_ext$major' | |
| 11323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
| 11324 shlibpath_var=LD_LIBRARY_PATH | |
| 11325 shlibpath_overrides_runpath=no | |
| 11326 hardcode_into_libs=yes | |
| 11327 ;; | |
| 11328 | |
| 11329 irix5* | irix6* | nonstopux*) | |
| 11330 case $host_os in | |
| 11331 nonstopux*) version_type=nonstopux ;; | |
| 11332 *) | |
| 11333 if test yes = "$lt_cv_prog_gnu_ld"; then | |
| 11334 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11335 else | |
| 11336 version_type=irix | |
| 11337 fi ;; | |
| 11338 esac | |
| 11339 need_lib_prefix=no | |
| 11340 need_version=no | |
| 11341 soname_spec='$libname$release$shared_ext$major' | |
| 11342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
| 11343 case $host_os in | |
| 11344 irix5* | nonstopux*) | |
| 11345 libsuff= shlibsuff= | |
| 11346 ;; | |
| 11347 *) | |
| 11348 case $LD in # libtool.m4 will add one of these switches to LD | |
| 11349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
| 11350 libsuff= shlibsuff= libmagic=32-bit;; | |
| 11351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
| 11352 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
| 11353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
| 11354 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
| 11355 *) libsuff= shlibsuff= libmagic=never-match;; | |
| 11356 esac | |
| 11357 ;; | |
| 11358 esac | |
| 11359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
| 11360 shlibpath_overrides_runpath=no | |
| 11361 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
| 11362 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
| 11363 hardcode_into_libs=yes | |
| 11364 ;; | |
| 11365 | |
| 11366 # No shared lib support for Linux oldld, aout, or coff. | |
| 11367 linux*oldld* | linux*aout* | linux*coff*) | |
| 11368 dynamic_linker=no | |
| 11369 ;; | |
| 11370 | |
| 11371 linux*android*) | |
| 11372 version_type=none # Android doesn't support versioned libraries. | |
| 11373 need_lib_prefix=no | |
| 11374 need_version=no | |
| 11375 library_names_spec='$libname$release$shared_ext' | |
| 11376 soname_spec='$libname$release$shared_ext' | |
| 11377 finish_cmds= | |
| 11378 shlibpath_var=LD_LIBRARY_PATH | |
| 11379 shlibpath_overrides_runpath=yes | |
| 11380 | |
| 11381 # This implies no fast_install, which is unacceptable. | |
| 11382 # Some rework will be needed to allow for fast_install | |
| 11383 # before this can be enabled. | |
| 11384 hardcode_into_libs=yes | |
| 11385 | |
| 11386 dynamic_linker='Android linker' | |
| 11387 # Don't embed -rpath directories since the linker doesn't support them. | |
| 11388 hardcode_libdir_flag_spec='-L$libdir' | |
| 11389 ;; | |
| 11390 | |
| 11391 # This must be glibc/ELF. | |
| 11392 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 11393 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11394 need_lib_prefix=no | |
| 11395 need_version=no | |
| 11396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11397 soname_spec='$libname$release$shared_ext$major' | |
| 11398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
| 11399 shlibpath_var=LD_LIBRARY_PATH | |
| 11400 shlibpath_overrides_runpath=no | |
| 11401 | |
| 11402 # Some binutils ld are patched to set DT_RUNPATH | |
| 11403 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
| 11404 $as_echo_n "(cached) " >&6 | |
| 11405 else | |
| 11406 lt_cv_shlibpath_overrides_runpath=no | |
| 11407 save_LDFLAGS=$LDFLAGS | |
| 11408 save_libdir=$libdir | |
| 11409 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
| 11410 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
| 11411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 11412 /* end confdefs.h. */ | |
| 11413 | |
| 11414 int | |
| 11415 main () | |
| 11416 { | |
| 11417 | |
| 11418 ; | |
| 11419 return 0; | |
| 11420 } | |
| 11421 _ACEOF | |
| 11422 if ac_fn_c_try_link "$LINENO"; then : | |
| 11423 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
| 11424 lt_cv_shlibpath_overrides_runpath=yes | |
| 11425 fi | |
| 11426 fi | |
| 11427 rm -f core conftest.err conftest.$ac_objext \ | |
| 11428 conftest$ac_exeext conftest.$ac_ext | |
| 11429 LDFLAGS=$save_LDFLAGS | |
| 11430 libdir=$save_libdir | |
| 11431 | |
| 11432 fi | |
| 11433 | |
| 11434 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
| 11435 | |
| 11436 # This implies no fast_install, which is unacceptable. | |
| 11437 # Some rework will be needed to allow for fast_install | |
| 11438 # before this can be enabled. | |
| 11439 hardcode_into_libs=yes | |
| 11440 | |
| 11441 # Ideally, we could use ldconfig to report *all* directores which are | |
| 11442 # searched for libraries, however this is still not possible. Aside from not | |
| 11443 # being certain /sbin/ldconfig is available, command | |
| 11444 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
| 11445 # even though it is searched at run-time. Try to do the best guess by | |
| 11446 # appending ld.so.conf contents (and includes) to the search path. | |
| 11447 if test -f /etc/ld.so.conf; then | |
| 11448 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' ' '` | |
| 11449 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
| 11450 fi | |
| 11451 | |
| 11452 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
| 11453 # powerpc, because MkLinux only supported shared libraries with the | |
| 11454 # GNU dynamic linker. Since this was broken with cross compilers, | |
| 11455 # most powerpc-linux boxes support dynamic linking these days and | |
| 11456 # people can always --disable-shared, the test was removed, and we | |
| 11457 # assume the GNU/Linux dynamic linker is in use. | |
| 11458 dynamic_linker='GNU/Linux ld.so' | |
| 11459 ;; | |
| 11460 | |
| 11461 netbsd*) | |
| 11462 version_type=sunos | |
| 11463 need_lib_prefix=no | |
| 11464 need_version=no | |
| 11465 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
| 11466 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 11467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
| 11468 dynamic_linker='NetBSD (a.out) ld.so' | |
| 11469 else | |
| 11470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11471 soname_spec='$libname$release$shared_ext$major' | |
| 11472 dynamic_linker='NetBSD ld.elf_so' | |
| 11473 fi | |
| 11474 shlibpath_var=LD_LIBRARY_PATH | |
| 11475 shlibpath_overrides_runpath=yes | |
| 11476 hardcode_into_libs=yes | |
| 11477 ;; | |
| 11478 | |
| 11479 newsos6) | |
| 11480 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11482 shlibpath_var=LD_LIBRARY_PATH | |
| 11483 shlibpath_overrides_runpath=yes | |
| 11484 ;; | |
| 11485 | |
| 11486 *nto* | *qnx*) | |
| 11487 version_type=qnx | |
| 11488 need_lib_prefix=no | |
| 11489 need_version=no | |
| 11490 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11491 soname_spec='$libname$release$shared_ext$major' | |
| 11492 shlibpath_var=LD_LIBRARY_PATH | |
| 11493 shlibpath_overrides_runpath=no | |
| 11494 hardcode_into_libs=yes | |
| 11495 dynamic_linker='ldqnx.so' | |
| 11496 ;; | |
| 11497 | |
| 11498 openbsd* | bitrig*) | |
| 11499 version_type=sunos | |
| 11500 sys_lib_dlsearch_path_spec=/usr/lib | |
| 11501 need_lib_prefix=no | |
| 11502 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
| 11503 need_version=no | |
| 11504 else | |
| 11505 need_version=yes | |
| 11506 fi | |
| 11507 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 11508 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
| 11509 shlibpath_var=LD_LIBRARY_PATH | |
| 11510 shlibpath_overrides_runpath=yes | |
| 11511 ;; | |
| 11512 | |
| 11513 os2*) | |
| 11514 libname_spec='$name' | |
| 11515 version_type=windows | |
| 11516 shrext_cmds=.dll | |
| 11517 need_version=no | |
| 11518 need_lib_prefix=no | |
| 11519 # OS/2 can only load a DLL with a base name of 8 characters or less. | |
| 11520 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
| 11521 v=$($ECHO $release$versuffix | tr -d .-); | |
| 11522 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
| 11523 $ECHO $n$v`$shared_ext' | |
| 11524 library_names_spec='${libname}_dll.$libext' | |
| 11525 dynamic_linker='OS/2 ld.exe' | |
| 11526 shlibpath_var=BEGINLIBPATH | |
| 11527 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
| 11528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
| 11529 postinstall_cmds='base_file=`basename \$file`~ | |
| 11530 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
| 11531 dldir=$destdir/`dirname \$dlpath`~ | |
| 11532 test -d \$dldir || mkdir -p \$dldir~ | |
| 11533 $install_prog $dir/$dlname \$dldir/$dlname~ | |
| 11534 chmod a+x \$dldir/$dlname~ | |
| 11535 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
| 11536 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
| 11537 fi' | |
| 11538 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
| 11539 dlpath=$dir/\$dldll~ | |
| 11540 $RM \$dlpath' | |
| 11541 ;; | |
| 11542 | |
| 11543 osf3* | osf4* | osf5*) | |
| 11544 version_type=osf | |
| 11545 need_lib_prefix=no | |
| 11546 need_version=no | |
| 11547 soname_spec='$libname$release$shared_ext$major' | |
| 11548 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11549 shlibpath_var=LD_LIBRARY_PATH | |
| 11550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
| 11551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
| 11552 ;; | |
| 11553 | |
| 11554 rdos*) | |
| 11555 dynamic_linker=no | |
| 11556 ;; | |
| 11557 | |
| 11558 solaris*) | |
| 11559 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11560 need_lib_prefix=no | |
| 11561 need_version=no | |
| 11562 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11563 soname_spec='$libname$release$shared_ext$major' | |
| 11564 shlibpath_var=LD_LIBRARY_PATH | |
| 11565 shlibpath_overrides_runpath=yes | |
| 11566 hardcode_into_libs=yes | |
| 11567 # ldd complains unless libraries are executable | |
| 11568 postinstall_cmds='chmod +x $lib' | |
| 11569 ;; | |
| 11570 | |
| 11571 sunos4*) | |
| 11572 version_type=sunos | |
| 11573 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 11574 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
| 11575 shlibpath_var=LD_LIBRARY_PATH | |
| 11576 shlibpath_overrides_runpath=yes | |
| 11577 if test yes = "$with_gnu_ld"; then | |
| 11578 need_lib_prefix=no | |
| 11579 fi | |
| 11580 need_version=yes | |
| 11581 ;; | |
| 11582 | |
| 11583 sysv4 | sysv4.3*) | |
| 11584 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11585 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11586 soname_spec='$libname$release$shared_ext$major' | |
| 11587 shlibpath_var=LD_LIBRARY_PATH | |
| 11588 case $host_vendor in | |
| 11589 sni) | |
| 11590 shlibpath_overrides_runpath=no | |
| 11591 need_lib_prefix=no | |
| 11592 runpath_var=LD_RUN_PATH | |
| 11593 ;; | |
| 11594 siemens) | |
| 11595 need_lib_prefix=no | |
| 11596 ;; | |
| 11597 motorola) | |
| 11598 need_lib_prefix=no | |
| 11599 need_version=no | |
| 11600 shlibpath_overrides_runpath=no | |
| 11601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
| 11602 ;; | |
| 11603 esac | |
| 11604 ;; | |
| 11605 | |
| 11606 sysv4*MP*) | |
| 11607 if test -d /usr/nec; then | |
| 11608 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11609 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
| 11610 soname_spec='$libname$shared_ext.$major' | |
| 11611 shlibpath_var=LD_LIBRARY_PATH | |
| 11612 fi | |
| 11613 ;; | |
| 11614 | |
| 11615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
| 11616 version_type=sco | |
| 11617 need_lib_prefix=no | |
| 11618 need_version=no | |
| 11619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
| 11620 soname_spec='$libname$release$shared_ext$major' | |
| 11621 shlibpath_var=LD_LIBRARY_PATH | |
| 11622 shlibpath_overrides_runpath=yes | |
| 11623 hardcode_into_libs=yes | |
| 11624 if test yes = "$with_gnu_ld"; then | |
| 11625 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
| 11626 else | |
| 11627 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
| 11628 case $host_os in | |
| 11629 sco3.2v5*) | |
| 11630 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
| 11631 ;; | |
| 11632 esac | |
| 11633 fi | |
| 11634 sys_lib_dlsearch_path_spec='/usr/lib' | |
| 11635 ;; | |
| 11636 | |
| 11637 tpf*) | |
| 11638 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
| 11639 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11640 need_lib_prefix=no | |
| 11641 need_version=no | |
| 11642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11643 shlibpath_var=LD_LIBRARY_PATH | |
| 11644 shlibpath_overrides_runpath=no | |
| 11645 hardcode_into_libs=yes | |
| 11646 ;; | |
| 11647 | |
| 11648 uts4*) | |
| 11649 version_type=linux # correct to gnu/linux during the next big refactor | |
| 11650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 11651 soname_spec='$libname$release$shared_ext$major' | |
| 11652 shlibpath_var=LD_LIBRARY_PATH | |
| 11653 ;; | |
| 11654 | |
| 11655 *) | |
| 11656 dynamic_linker=no | |
| 11657 ;; | |
| 11658 esac | |
| 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
| 11660 $as_echo "$dynamic_linker" >&6; } | |
| 11661 test no = "$dynamic_linker" && can_build_shared=no | |
| 11662 | |
| 11663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
| 11664 if test yes = "$GCC"; then | |
| 11665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
| 11666 fi | |
| 11667 | |
| 11668 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
| 11669 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
| 11670 fi | |
| 11671 | |
| 11672 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
| 11673 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
| 11674 fi | |
| 11675 | |
| 11676 # lt_cv_sys_lib... is unaugmented for libtool script decls... | |
| 11677 lt_cv_sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec | |
| 11678 | |
| 11679 # ..but sys_lib_... needs LT_SYS_LIBRARY_PATH munging for | |
| 11680 # LT_SYS_DLSEARCH_PATH macro in ltdl.m4 to work with the correct paths: | |
| 11681 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
| 11682 | |
| 11683 | |
| 11684 | |
| 11685 | |
| 11686 | |
| 11687 | |
| 11688 | |
| 11689 | |
| 11690 | |
| 11691 | |
| 11692 | |
| 11693 | |
| 11694 | |
| 11695 | |
| 11696 | |
| 11697 | |
| 11698 | |
| 11699 | |
| 11700 | |
| 11701 | |
| 11702 | |
| 11703 | |
| 11704 | |
| 11705 | |
| 11706 | |
| 11707 | |
| 11708 | |
| 11709 | |
| 11710 | |
| 11711 | |
| 11712 | |
| 11713 | |
| 11714 | |
| 11715 | |
| 11716 | |
| 11717 | |
| 11718 | |
| 11719 | |
| 11720 | |
| 11721 | |
| 11722 | |
| 11723 | |
| 11724 | |
| 11725 | |
| 11726 | |
| 11727 | |
| 11728 | |
| 11729 | |
| 11730 | |
| 11731 | |
| 11732 | |
| 11733 | |
| 11734 | |
| 11735 | |
| 11736 | |
| 11737 | |
| 11738 | |
| 11739 | |
| 11740 | |
| 11741 | |
| 11742 | |
| 11743 | |
| 11744 | |
| 11745 | |
| 11746 | |
| 11747 | |
| 11748 | |
| 11749 | |
| 11750 | |
| 11751 | |
| 11752 | |
| 11753 | |
| 11754 | |
| 11755 | |
| 11756 | |
| 11757 | |
| 11758 | |
| 11759 | |
| 11760 | |
| 11761 | |
| 11762 | |
| 11763 | |
| 11764 | |
| 11765 | |
| 11766 | |
| 11767 | |
| 11768 | |
| 11769 | |
| 11770 | |
| 11771 | |
| 11772 | |
| 11773 | |
| 11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
| 11775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
| 11776 hardcode_action= | |
| 11777 if test -n "$hardcode_libdir_flag_spec" || | |
| 11778 test -n "$runpath_var" || | |
| 11779 test yes = "$hardcode_automatic"; then | |
| 11780 | |
| 11781 # We can hardcode non-existent directories. | |
| 11782 if test no != "$hardcode_direct" && | |
| 11783 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
| 11784 # have to relink, otherwise we might link with an installed library | |
| 11785 # when we should be linking with a yet-to-be-installed one | |
| 11786 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && | |
| 11787 test no != "$hardcode_minus_L"; then | |
| 11788 # Linking always hardcodes the temporary library directory. | |
| 11789 hardcode_action=relink | |
| 11790 else | |
| 11791 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
| 11792 hardcode_action=immediate | |
| 11793 fi | |
| 11794 else | |
| 11795 # We cannot hardcode anything, or else we can only hardcode existing | |
| 11796 # directories. | |
| 11797 hardcode_action=unsupported | |
| 11798 fi | |
| 11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
| 11800 $as_echo "$hardcode_action" >&6; } | |
| 11801 | |
| 11802 if test relink = "$hardcode_action" || | |
| 11803 test yes = "$inherit_rpath"; then | |
| 11804 # Fast installation is not supported | |
| 11805 enable_fast_install=no | |
| 11806 elif test yes = "$shlibpath_overrides_runpath" || | |
| 11807 test no = "$enable_shared"; then | |
| 11808 # Fast installation is not necessary | |
| 11809 enable_fast_install=needless | |
| 11810 fi | |
| 11811 | |
| 11812 | |
| 11813 | |
| 11814 | |
| 11815 | |
| 11816 | |
| 11817 if test yes != "$enable_dlopen"; then | |
| 11818 enable_dlopen=unknown | |
| 11819 enable_dlopen_self=unknown | |
| 11820 enable_dlopen_self_static=unknown | |
| 11821 else | |
| 11822 lt_cv_dlopen=no | |
| 11823 lt_cv_dlopen_libs= | |
| 11824 | |
| 11825 case $host_os in | |
| 11826 beos*) | |
| 11827 lt_cv_dlopen=load_add_on | |
| 11828 lt_cv_dlopen_libs= | |
| 11829 lt_cv_dlopen_self=yes | |
| 11830 ;; | |
| 11831 | |
| 11832 mingw* | pw32* | cegcc*) | |
| 11833 lt_cv_dlopen=LoadLibrary | |
| 11834 lt_cv_dlopen_libs= | |
| 11835 ;; | |
| 11836 | |
| 11837 cygwin*) | |
| 11838 lt_cv_dlopen=dlopen | |
| 11839 lt_cv_dlopen_libs= | |
| 11840 ;; | |
| 11841 | |
| 11842 darwin*) | |
| 11843 # if libdl is installed we need to link against it | |
| 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
| 11845 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
| 11846 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
| 11847 $as_echo_n "(cached) " >&6 | |
| 11848 else | |
| 11849 ac_check_lib_save_LIBS=$LIBS | |
| 11850 LIBS="-ldl $LIBS" | |
| 11851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 11852 /* end confdefs.h. */ | |
| 11853 | |
| 11854 /* Override any GCC internal prototype to avoid an error. | |
| 11855 Use char because int might match the return type of a GCC | |
| 11856 builtin and then its argument prototype would still apply. */ | |
| 11857 #ifdef __cplusplus | |
| 11858 extern "C" | |
| 11859 #endif | |
| 11860 char dlopen (); | |
| 11861 int | |
| 11862 main () | |
| 11863 { | |
| 11864 return dlopen (); | |
| 11865 ; | |
| 11866 return 0; | |
| 11867 } | |
| 11868 _ACEOF | |
| 11869 if ac_fn_c_try_link "$LINENO"; then : | |
| 11870 ac_cv_lib_dl_dlopen=yes | |
| 11871 else | |
| 11872 ac_cv_lib_dl_dlopen=no | |
| 11873 fi | |
| 11874 rm -f core conftest.err conftest.$ac_objext \ | |
| 11875 conftest$ac_exeext conftest.$ac_ext | |
| 11876 LIBS=$ac_check_lib_save_LIBS | |
| 11877 fi | |
| 11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
| 11879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
| 11880 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
| 11881 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
| 11882 else | |
| 11883 | |
| 11884 lt_cv_dlopen=dyld | |
| 11885 lt_cv_dlopen_libs= | |
| 11886 lt_cv_dlopen_self=yes | |
| 11887 | |
| 11888 fi | |
| 11889 | |
| 11890 ;; | |
| 11891 | |
| 11892 tpf*) | |
| 11893 # Don't try to run any link tests for TPF. We know it's impossible | |
| 11894 # because TPF is a cross-compiler, and we know how we open DSOs. | |
| 11895 lt_cv_dlopen=dlopen | |
| 11896 lt_cv_dlopen_libs= | |
| 11897 lt_cv_dlopen_self=no | |
| 11898 ;; | |
| 11899 | |
| 11900 *) | |
| 11901 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
| 11902 if test "x$ac_cv_func_shl_load" = xyes; then : | |
| 11903 lt_cv_dlopen=shl_load | |
| 11904 else | |
| 11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
| 11906 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
| 11907 if ${ac_cv_lib_dld_shl_load+:} false; then : | |
| 11908 $as_echo_n "(cached) " >&6 | |
| 11909 else | |
| 11910 ac_check_lib_save_LIBS=$LIBS | |
| 11911 LIBS="-ldld $LIBS" | |
| 11912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 11913 /* end confdefs.h. */ | |
| 11914 | |
| 11915 /* Override any GCC internal prototype to avoid an error. | |
| 11916 Use char because int might match the return type of a GCC | |
| 11917 builtin and then its argument prototype would still apply. */ | |
| 11918 #ifdef __cplusplus | |
| 11919 extern "C" | |
| 11920 #endif | |
| 11921 char shl_load (); | |
| 11922 int | |
| 11923 main () | |
| 11924 { | |
| 11925 return shl_load (); | |
| 11926 ; | |
| 11927 return 0; | |
| 11928 } | |
| 11929 _ACEOF | |
| 11930 if ac_fn_c_try_link "$LINENO"; then : | |
| 11931 ac_cv_lib_dld_shl_load=yes | |
| 11932 else | |
| 11933 ac_cv_lib_dld_shl_load=no | |
| 11934 fi | |
| 11935 rm -f core conftest.err conftest.$ac_objext \ | |
| 11936 conftest$ac_exeext conftest.$ac_ext | |
| 11937 LIBS=$ac_check_lib_save_LIBS | |
| 11938 fi | |
| 11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
| 11940 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
| 11941 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
| 11942 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld | |
| 11943 else | |
| 11944 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
| 11945 if test "x$ac_cv_func_dlopen" = xyes; then : | |
| 11946 lt_cv_dlopen=dlopen | |
| 11947 else | |
| 11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
| 11949 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
| 11950 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
| 11951 $as_echo_n "(cached) " >&6 | |
| 11952 else | |
| 11953 ac_check_lib_save_LIBS=$LIBS | |
| 11954 LIBS="-ldl $LIBS" | |
| 11955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 11956 /* end confdefs.h. */ | |
| 11957 | |
| 11958 /* Override any GCC internal prototype to avoid an error. | |
| 11959 Use char because int might match the return type of a GCC | |
| 11960 builtin and then its argument prototype would still apply. */ | |
| 11961 #ifdef __cplusplus | |
| 11962 extern "C" | |
| 11963 #endif | |
| 11964 char dlopen (); | |
| 11965 int | |
| 11966 main () | |
| 11967 { | |
| 11968 return dlopen (); | |
| 11969 ; | |
| 11970 return 0; | |
| 11971 } | |
| 11972 _ACEOF | |
| 11973 if ac_fn_c_try_link "$LINENO"; then : | |
| 11974 ac_cv_lib_dl_dlopen=yes | |
| 11975 else | |
| 11976 ac_cv_lib_dl_dlopen=no | |
| 11977 fi | |
| 11978 rm -f core conftest.err conftest.$ac_objext \ | |
| 11979 conftest$ac_exeext conftest.$ac_ext | |
| 11980 LIBS=$ac_check_lib_save_LIBS | |
| 11981 fi | |
| 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
| 11983 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
| 11984 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
| 11985 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl | |
| 11986 else | |
| 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
| 11988 $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
| 11989 if ${ac_cv_lib_svld_dlopen+:} false; then : | |
| 11990 $as_echo_n "(cached) " >&6 | |
| 11991 else | |
| 11992 ac_check_lib_save_LIBS=$LIBS | |
| 11993 LIBS="-lsvld $LIBS" | |
| 11994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 11995 /* end confdefs.h. */ | |
| 11996 | |
| 11997 /* Override any GCC internal prototype to avoid an error. | |
| 11998 Use char because int might match the return type of a GCC | |
| 11999 builtin and then its argument prototype would still apply. */ | |
| 12000 #ifdef __cplusplus | |
| 12001 extern "C" | |
| 12002 #endif | |
| 12003 char dlopen (); | |
| 12004 int | |
| 12005 main () | |
| 12006 { | |
| 12007 return dlopen (); | |
| 12008 ; | |
| 12009 return 0; | |
| 12010 } | |
| 12011 _ACEOF | |
| 12012 if ac_fn_c_try_link "$LINENO"; then : | |
| 12013 ac_cv_lib_svld_dlopen=yes | |
| 12014 else | |
| 12015 ac_cv_lib_svld_dlopen=no | |
| 12016 fi | |
| 12017 rm -f core conftest.err conftest.$ac_objext \ | |
| 12018 conftest$ac_exeext conftest.$ac_ext | |
| 12019 LIBS=$ac_check_lib_save_LIBS | |
| 12020 fi | |
| 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
| 12022 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
| 12023 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
| 12024 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld | |
| 12025 else | |
| 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
| 12027 $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
| 12028 if ${ac_cv_lib_dld_dld_link+:} false; then : | |
| 12029 $as_echo_n "(cached) " >&6 | |
| 12030 else | |
| 12031 ac_check_lib_save_LIBS=$LIBS | |
| 12032 LIBS="-ldld $LIBS" | |
| 12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 12034 /* end confdefs.h. */ | |
| 12035 | |
| 12036 /* Override any GCC internal prototype to avoid an error. | |
| 12037 Use char because int might match the return type of a GCC | |
| 12038 builtin and then its argument prototype would still apply. */ | |
| 12039 #ifdef __cplusplus | |
| 12040 extern "C" | |
| 12041 #endif | |
| 12042 char dld_link (); | |
| 12043 int | |
| 12044 main () | |
| 12045 { | |
| 12046 return dld_link (); | |
| 12047 ; | |
| 12048 return 0; | |
| 12049 } | |
| 12050 _ACEOF | |
| 12051 if ac_fn_c_try_link "$LINENO"; then : | |
| 12052 ac_cv_lib_dld_dld_link=yes | |
| 12053 else | |
| 12054 ac_cv_lib_dld_dld_link=no | |
| 12055 fi | |
| 12056 rm -f core conftest.err conftest.$ac_objext \ | |
| 12057 conftest$ac_exeext conftest.$ac_ext | |
| 12058 LIBS=$ac_check_lib_save_LIBS | |
| 12059 fi | |
| 12060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
| 12061 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
| 12062 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
| 12063 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld | |
| 12064 fi | |
| 12065 | |
| 12066 | |
| 12067 fi | |
| 12068 | |
| 12069 | |
| 12070 fi | |
| 12071 | |
| 12072 | |
| 12073 fi | |
| 12074 | |
| 12075 | |
| 12076 fi | |
| 12077 | |
| 12078 | |
| 12079 fi | |
| 12080 | |
| 12081 ;; | |
| 12082 esac | |
| 12083 | |
| 12084 if test no = "$lt_cv_dlopen"; then | |
| 12085 enable_dlopen=no | |
| 12086 else | |
| 12087 enable_dlopen=yes | |
| 12088 fi | |
| 12089 | |
| 12090 case $lt_cv_dlopen in | |
| 12091 dlopen) | |
| 12092 save_CPPFLAGS=$CPPFLAGS | |
| 12093 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
| 12094 | |
| 12095 save_LDFLAGS=$LDFLAGS | |
| 12096 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
| 12097 | |
| 12098 save_LIBS=$LIBS | |
| 12099 LIBS="$lt_cv_dlopen_libs $LIBS" | |
| 12100 | |
| 12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
| 12102 $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
| 12103 if ${lt_cv_dlopen_self+:} false; then : | |
| 12104 $as_echo_n "(cached) " >&6 | |
| 12105 else | |
| 12106 if test yes = "$cross_compiling"; then : | |
| 12107 lt_cv_dlopen_self=cross | |
| 12108 else | |
| 12109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
| 12110 lt_status=$lt_dlunknown | |
| 12111 cat > conftest.$ac_ext <<_LT_EOF | |
| 12112 #line $LINENO "configure" | |
| 12113 #include "confdefs.h" | |
| 12114 | |
| 12115 #if HAVE_DLFCN_H | |
| 12116 #include <dlfcn.h> | |
| 12117 #endif | |
| 12118 | |
| 12119 #include <stdio.h> | |
| 12120 | |
| 12121 #ifdef RTLD_GLOBAL | |
| 12122 # define LT_DLGLOBAL RTLD_GLOBAL | |
| 12123 #else | |
| 12124 # ifdef DL_GLOBAL | |
| 12125 # define LT_DLGLOBAL DL_GLOBAL | |
| 12126 # else | |
| 12127 # define LT_DLGLOBAL 0 | |
| 12128 # endif | |
| 12129 #endif | |
| 12130 | |
| 12131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
| 12132 find out it does not work in some platform. */ | |
| 12133 #ifndef LT_DLLAZY_OR_NOW | |
| 12134 # ifdef RTLD_LAZY | |
| 12135 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
| 12136 # else | |
| 12137 # ifdef DL_LAZY | |
| 12138 # define LT_DLLAZY_OR_NOW DL_LAZY | |
| 12139 # else | |
| 12140 # ifdef RTLD_NOW | |
| 12141 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
| 12142 # else | |
| 12143 # ifdef DL_NOW | |
| 12144 # define LT_DLLAZY_OR_NOW DL_NOW | |
| 12145 # else | |
| 12146 # define LT_DLLAZY_OR_NOW 0 | |
| 12147 # endif | |
| 12148 # endif | |
| 12149 # endif | |
| 12150 # endif | |
| 12151 #endif | |
| 12152 | |
| 12153 /* When -fvisibility=hidden is used, assume the code has been annotated | |
| 12154 correspondingly for the symbols needed. */ | |
| 12155 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
| 12156 int fnord () __attribute__((visibility("default"))); | |
| 12157 #endif | |
| 12158 | |
| 12159 int fnord () { return 42; } | |
| 12160 int main () | |
| 12161 { | |
| 12162 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
| 12163 int status = $lt_dlunknown; | |
| 12164 | |
| 12165 if (self) | |
| 12166 { | |
| 12167 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
| 12168 else | |
| 12169 { | |
| 12170 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
| 12171 else puts (dlerror ()); | |
| 12172 } | |
| 12173 /* dlclose (self); */ | |
| 12174 } | |
| 12175 else | |
| 12176 puts (dlerror ()); | |
| 12177 | |
| 12178 return status; | |
| 12179 } | |
| 12180 _LT_EOF | |
| 12181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
| 12182 (eval $ac_link) 2>&5 | |
| 12183 ac_status=$? | |
| 12184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 12185 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
| 12186 (./conftest; exit; ) >&5 2>/dev/null | |
| 12187 lt_status=$? | |
| 12188 case x$lt_status in | |
| 12189 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
| 12190 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
| 12191 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
| 12192 esac | |
| 12193 else : | |
| 12194 # compilation failed | |
| 12195 lt_cv_dlopen_self=no | |
| 12196 fi | |
| 12197 fi | |
| 12198 rm -fr conftest* | |
| 12199 | |
| 12200 | |
| 12201 fi | |
| 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
| 12203 $as_echo "$lt_cv_dlopen_self" >&6; } | |
| 12204 | |
| 12205 if test yes = "$lt_cv_dlopen_self"; then | |
| 12206 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
| 12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
| 12208 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
| 12209 if ${lt_cv_dlopen_self_static+:} false; then : | |
| 12210 $as_echo_n "(cached) " >&6 | |
| 12211 else | |
| 12212 if test yes = "$cross_compiling"; then : | |
| 12213 lt_cv_dlopen_self_static=cross | |
| 12214 else | |
| 12215 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
| 12216 lt_status=$lt_dlunknown | |
| 12217 cat > conftest.$ac_ext <<_LT_EOF | |
| 12218 #line $LINENO "configure" | |
| 12219 #include "confdefs.h" | |
| 12220 | |
| 12221 #if HAVE_DLFCN_H | |
| 12222 #include <dlfcn.h> | |
| 12223 #endif | |
| 12224 | |
| 12225 #include <stdio.h> | |
| 12226 | |
| 12227 #ifdef RTLD_GLOBAL | |
| 12228 # define LT_DLGLOBAL RTLD_GLOBAL | |
| 12229 #else | |
| 12230 # ifdef DL_GLOBAL | |
| 12231 # define LT_DLGLOBAL DL_GLOBAL | |
| 12232 # else | |
| 12233 # define LT_DLGLOBAL 0 | |
| 12234 # endif | |
| 12235 #endif | |
| 12236 | |
| 12237 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
| 12238 find out it does not work in some platform. */ | |
| 12239 #ifndef LT_DLLAZY_OR_NOW | |
| 12240 # ifdef RTLD_LAZY | |
| 12241 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
| 12242 # else | |
| 12243 # ifdef DL_LAZY | |
| 12244 # define LT_DLLAZY_OR_NOW DL_LAZY | |
| 12245 # else | |
| 12246 # ifdef RTLD_NOW | |
| 12247 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
| 12248 # else | |
| 12249 # ifdef DL_NOW | |
| 12250 # define LT_DLLAZY_OR_NOW DL_NOW | |
| 12251 # else | |
| 12252 # define LT_DLLAZY_OR_NOW 0 | |
| 12253 # endif | |
| 12254 # endif | |
| 12255 # endif | |
| 12256 # endif | |
| 12257 #endif | |
| 12258 | |
| 12259 /* When -fvisibility=hidden is used, assume the code has been annotated | |
| 12260 correspondingly for the symbols needed. */ | |
| 12261 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
| 12262 int fnord () __attribute__((visibility("default"))); | |
| 12263 #endif | |
| 12264 | |
| 12265 int fnord () { return 42; } | |
| 12266 int main () | |
| 12267 { | |
| 12268 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
| 12269 int status = $lt_dlunknown; | |
| 12270 | |
| 12271 if (self) | |
| 12272 { | |
| 12273 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
| 12274 else | |
| 12275 { | |
| 12276 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
| 12277 else puts (dlerror ()); | |
| 12278 } | |
| 12279 /* dlclose (self); */ | |
| 12280 } | |
| 12281 else | |
| 12282 puts (dlerror ()); | |
| 12283 | |
| 12284 return status; | |
| 12285 } | |
| 12286 _LT_EOF | |
| 12287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
| 12288 (eval $ac_link) 2>&5 | |
| 12289 ac_status=$? | |
| 12290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 12291 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then | |
| 12292 (./conftest; exit; ) >&5 2>/dev/null | |
| 12293 lt_status=$? | |
| 12294 case x$lt_status in | |
| 12295 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
| 12296 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
| 12297 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
| 12298 esac | |
| 12299 else : | |
| 12300 # compilation failed | |
| 12301 lt_cv_dlopen_self_static=no | |
| 12302 fi | |
| 12303 fi | |
| 12304 rm -fr conftest* | |
| 12305 | |
| 12306 | |
| 12307 fi | |
| 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
| 12309 $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
| 12310 fi | |
| 12311 | |
| 12312 CPPFLAGS=$save_CPPFLAGS | |
| 12313 LDFLAGS=$save_LDFLAGS | |
| 12314 LIBS=$save_LIBS | |
| 12315 ;; | |
| 12316 esac | |
| 12317 | |
| 12318 case $lt_cv_dlopen_self in | |
| 12319 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
| 12320 *) enable_dlopen_self=unknown ;; | |
| 12321 esac | |
| 12322 | |
| 12323 case $lt_cv_dlopen_self_static in | |
| 12324 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
| 12325 *) enable_dlopen_self_static=unknown ;; | |
| 12326 esac | |
| 12327 fi | |
| 12328 | |
| 12329 | |
| 12330 | |
| 12331 | |
| 12332 | |
| 12333 | |
| 12334 | |
| 12335 | |
| 12336 | |
| 12337 | |
| 12338 | |
| 12339 | |
| 12340 | |
| 12341 | |
| 12342 | |
| 12343 | |
| 12344 | |
| 12345 striplib= | |
| 12346 old_striplib= | |
| 12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
| 12348 $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
| 12349 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
| 12350 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
| 12351 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
| 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 12353 $as_echo "yes" >&6; } | |
| 12354 else | |
| 12355 # FIXME - insert some real tests, host_os isn't really good enough | |
| 12356 case $host_os in | |
| 12357 darwin*) | |
| 12358 if test -n "$STRIP"; then | |
| 12359 striplib="$STRIP -x" | |
| 12360 old_striplib="$STRIP -S" | |
| 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 12362 $as_echo "yes" >&6; } | |
| 12363 else | |
| 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 12365 $as_echo "no" >&6; } | |
| 12366 fi | |
| 12367 ;; | |
| 12368 *) | |
| 12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 12370 $as_echo "no" >&6; } | |
| 12371 ;; | |
| 12372 esac | |
| 12373 fi | |
| 12374 | |
| 12375 | |
| 12376 | |
| 12377 | |
| 12378 | |
| 12379 | |
| 12380 | |
| 12381 | |
| 12382 | |
| 12383 | |
| 12384 | |
| 12385 | |
| 12386 # Report what library types will actually be built | |
| 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
| 12388 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
| 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
| 12390 $as_echo "$can_build_shared" >&6; } | |
| 12391 | |
| 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
| 12393 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
| 12394 test no = "$can_build_shared" && enable_shared=no | |
| 12395 | |
| 12396 # On AIX, shared libraries and static libraries use the same namespace, and | |
| 12397 # are all built from PIC. | |
| 12398 case $host_os in | |
| 12399 aix3*) | |
| 12400 test yes = "$enable_shared" && enable_static=no | |
| 12401 if test -n "$RANLIB"; then | |
| 12402 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
| 12403 postinstall_cmds='$RANLIB $lib' | |
| 12404 fi | |
| 12405 ;; | |
| 12406 | |
| 12407 aix[4-9]*) | |
| 12408 if test ia64 != "$host_cpu"; then | |
| 12409 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in | |
| 12410 yes,aix,yes) ;; # shared object as lib.so file only | |
| 12411 yes,svr4,*) ;; # shared object as lib.so archive member only | |
| 12412 yes,*) enable_static=no ;; # shared object in lib.a archive as well | |
| 12413 esac | |
| 12414 fi | |
| 12415 ;; | |
| 12416 esac | |
| 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
| 12418 $as_echo "$enable_shared" >&6; } | |
| 12419 | |
| 12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
| 12421 $as_echo_n "checking whether to build static libraries... " >&6; } | |
| 12422 # Make sure either enable_shared or enable_static is yes. | |
| 12423 test yes = "$enable_shared" || enable_static=yes | |
| 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
| 12425 $as_echo "$enable_static" >&6; } | |
| 12426 | |
| 12427 | |
| 12428 | |
| 12429 | |
| 12430 fi | |
| 12431 ac_ext=c | |
| 12432 ac_cpp='$CPP $CPPFLAGS' | |
| 12433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 12434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 12435 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 12436 | |
| 12437 CC=$lt_save_CC | |
| 12438 | |
| 12439 if test -n "$CXX" && ( test no != "$CXX" && | |
| 12440 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || | |
| 12441 (test g++ != "$CXX"))); then | |
| 12442 ac_ext=cpp | |
| 12443 ac_cpp='$CXXCPP $CPPFLAGS' | |
| 12444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 12445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 12446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
| 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
| 12448 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
| 12449 if test -z "$CXXCPP"; then | |
| 12450 if ${ac_cv_prog_CXXCPP+:} false; then : | |
| 12451 $as_echo_n "(cached) " >&6 | |
| 12452 else | |
| 12453 # Double quotes because CXXCPP needs to be expanded | |
| 12454 for CXXCPP in "$CXX -E" "/lib/cpp" | |
| 12455 do | |
| 12456 ac_preproc_ok=false | |
| 12457 for ac_cxx_preproc_warn_flag in '' yes | |
| 12458 do | |
| 12459 # Use a header file that comes with gcc, so configuring glibc | |
| 12460 # with a fresh cross-compiler works. | |
| 12461 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
| 12462 # <limits.h> exists even on freestanding compilers. | |
| 12463 # On the NeXT, cc -E runs the code through the compiler's parser, | |
| 12464 # not just through cpp. "Syntax error" is here to catch this case. | |
| 12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 12466 /* end confdefs.h. */ | |
| 12467 #ifdef __STDC__ | |
| 12468 # include <limits.h> | |
| 12469 #else | |
| 12470 # include <assert.h> | |
| 12471 #endif | |
| 12472 Syntax error | |
| 12473 _ACEOF | |
| 12474 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
| 12475 | |
| 12476 else | |
| 12477 # Broken: fails on valid input. | |
| 12478 continue | |
| 12479 fi | |
| 12480 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 12481 | |
| 12482 # OK, works on sane cases. Now check whether nonexistent headers | |
| 12483 # can be detected and how. | |
| 12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 12485 /* end confdefs.h. */ | |
| 12486 #include <ac_nonexistent.h> | |
| 12487 _ACEOF | |
| 12488 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
| 12489 # Broken: success on invalid input. | |
| 12490 continue | |
| 12491 else | |
| 12492 # Passes both tests. | |
| 12493 ac_preproc_ok=: | |
| 12494 break | |
| 12495 fi | |
| 12496 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 12497 | |
| 12498 done | |
| 12499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
| 12500 rm -f conftest.i conftest.err conftest.$ac_ext | |
| 12501 if $ac_preproc_ok; then : | |
| 12502 break | |
| 12503 fi | |
| 12504 | |
| 12505 done | |
| 12506 ac_cv_prog_CXXCPP=$CXXCPP | |
| 12507 | |
| 12508 fi | |
| 12509 CXXCPP=$ac_cv_prog_CXXCPP | |
| 12510 else | |
| 12511 ac_cv_prog_CXXCPP=$CXXCPP | |
| 12512 fi | |
| 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
| 12514 $as_echo "$CXXCPP" >&6; } | |
| 12515 ac_preproc_ok=false | |
| 12516 for ac_cxx_preproc_warn_flag in '' yes | |
| 12517 do | |
| 12518 # Use a header file that comes with gcc, so configuring glibc | |
| 12519 # with a fresh cross-compiler works. | |
| 12520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
| 12521 # <limits.h> exists even on freestanding compilers. | |
| 12522 # On the NeXT, cc -E runs the code through the compiler's parser, | |
| 12523 # not just through cpp. "Syntax error" is here to catch this case. | |
| 12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 12525 /* end confdefs.h. */ | |
| 12526 #ifdef __STDC__ | |
| 12527 # include <limits.h> | |
| 12528 #else | |
| 12529 # include <assert.h> | |
| 12530 #endif | |
| 12531 Syntax error | |
| 12532 _ACEOF | |
| 12533 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
| 12534 | |
| 12535 else | |
| 12536 # Broken: fails on valid input. | |
| 12537 continue | |
| 12538 fi | |
| 12539 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 12540 | |
| 12541 # OK, works on sane cases. Now check whether nonexistent headers | |
| 12542 # can be detected and how. | |
| 12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 12544 /* end confdefs.h. */ | |
| 12545 #include <ac_nonexistent.h> | |
| 12546 _ACEOF | |
| 12547 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
| 12548 # Broken: success on invalid input. | |
| 12549 continue | |
| 12550 else | |
| 12551 # Passes both tests. | |
| 12552 ac_preproc_ok=: | |
| 12553 break | |
| 12554 fi | |
| 12555 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 12556 | |
| 12557 done | |
| 12558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
| 12559 rm -f conftest.i conftest.err conftest.$ac_ext | |
| 12560 if $ac_preproc_ok; then : | |
| 12561 | |
| 12562 else | |
| 12563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
| 12564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
| 12565 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
| 12566 See \`config.log' for more details" "$LINENO" 5; } | |
| 12567 fi | |
| 12568 | |
| 12569 ac_ext=c | |
| 12570 ac_cpp='$CPP $CPPFLAGS' | |
| 12571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 12572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 12573 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 12574 | |
| 12575 else | |
| 12576 _lt_caught_CXX_error=yes | |
| 12577 fi | |
| 12578 | |
| 12579 ac_ext=cpp | |
| 12580 ac_cpp='$CXXCPP $CPPFLAGS' | |
| 12581 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 12582 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 12583 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
| 12584 | |
| 12585 archive_cmds_need_lc_CXX=no | |
| 12586 allow_undefined_flag_CXX= | |
| 12587 always_export_symbols_CXX=no | |
| 12588 archive_expsym_cmds_CXX= | |
| 12589 compiler_needs_object_CXX=no | |
| 12590 export_dynamic_flag_spec_CXX= | |
| 12591 hardcode_direct_CXX=no | |
| 12592 hardcode_direct_absolute_CXX=no | |
| 12593 hardcode_libdir_flag_spec_CXX= | |
| 12594 hardcode_libdir_separator_CXX= | |
| 12595 hardcode_minus_L_CXX=no | |
| 12596 hardcode_shlibpath_var_CXX=unsupported | |
| 12597 hardcode_automatic_CXX=no | |
| 12598 inherit_rpath_CXX=no | |
| 12599 module_cmds_CXX= | |
| 12600 module_expsym_cmds_CXX= | |
| 12601 link_all_deplibs_CXX=unknown | |
| 12602 old_archive_cmds_CXX=$old_archive_cmds | |
| 12603 reload_flag_CXX=$reload_flag | |
| 12604 reload_cmds_CXX=$reload_cmds | |
| 12605 no_undefined_flag_CXX= | |
| 12606 whole_archive_flag_spec_CXX= | |
| 12607 enable_shared_with_static_runtimes_CXX=no | |
| 12608 | |
| 12609 # Source file extension for C++ test sources. | |
| 12610 ac_ext=cpp | |
| 12611 | |
| 12612 # Object file extension for compiled C++ test sources. | |
| 12613 objext=o | |
| 12614 objext_CXX=$objext | |
| 12615 | |
| 12616 # No sense in running all these tests if we already determined that | |
| 12617 # the CXX compiler isn't working. Some variables (like enable_shared) | |
| 12618 # are currently assumed to apply to all compilers on this platform, | |
| 12619 # and will be corrupted by setting them based on a non-working compiler. | |
| 12620 if test yes != "$_lt_caught_CXX_error"; then | |
| 12621 # Code to be used in simple compile tests | |
| 12622 lt_simple_compile_test_code="int some_variable = 0;" | |
| 12623 | |
| 12624 # Code to be used in simple link tests | |
| 12625 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
| 12626 | |
| 12627 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
| 12628 | |
| 12629 | |
| 12630 | |
| 12631 | |
| 12632 | |
| 12633 | |
| 12634 # If no C compiler was specified, use CC. | |
| 12635 LTCC=${LTCC-"$CC"} | |
| 12636 | |
| 12637 # If no C compiler flags were specified, use CFLAGS. | |
| 12638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
| 12639 | |
| 12640 # Allow CC to be a program name with arguments. | |
| 12641 compiler=$CC | |
| 12642 | |
| 12643 | |
| 12644 # save warnings/boilerplate of simple test code | |
| 12645 ac_outfile=conftest.$ac_objext | |
| 12646 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
| 12647 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
| 12648 _lt_compiler_boilerplate=`cat conftest.err` | |
| 12649 $RM conftest* | |
| 12650 | |
| 12651 ac_outfile=conftest.$ac_objext | |
| 12652 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
| 12653 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
| 12654 _lt_linker_boilerplate=`cat conftest.err` | |
| 12655 $RM -r conftest* | |
| 12656 | |
| 12657 | |
| 12658 # Allow CC to be a program name with arguments. | |
| 12659 lt_save_CC=$CC | |
| 12660 lt_save_CFLAGS=$CFLAGS | |
| 12661 lt_save_LD=$LD | |
| 12662 lt_save_GCC=$GCC | |
| 12663 GCC=$GXX | |
| 12664 lt_save_with_gnu_ld=$with_gnu_ld | |
| 12665 lt_save_path_LD=$lt_cv_path_LD | |
| 12666 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
| 12667 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
| 12668 else | |
| 12669 $as_unset lt_cv_prog_gnu_ld | |
| 12670 fi | |
| 12671 if test -n "${lt_cv_path_LDCXX+set}"; then | |
| 12672 lt_cv_path_LD=$lt_cv_path_LDCXX | |
| 12673 else | |
| 12674 $as_unset lt_cv_path_LD | |
| 12675 fi | |
| 12676 test -z "${LDCXX+set}" || LD=$LDCXX | |
| 12677 CC=${CXX-"c++"} | |
| 12678 CFLAGS=$CXXFLAGS | |
| 12679 compiler=$CC | |
| 12680 compiler_CXX=$CC | |
| 12681 func_cc_basename $compiler | |
| 12682 cc_basename=$func_cc_basename_result | |
| 12683 | |
| 12684 | |
| 12685 if test -n "$compiler"; then | |
| 12686 # We don't want -fno-exception when compiling C++ code, so set the | |
| 12687 # no_builtin_flag separately | |
| 12688 if test yes = "$GXX"; then | |
| 12689 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
| 12690 else | |
| 12691 lt_prog_compiler_no_builtin_flag_CXX= | |
| 12692 fi | |
| 12693 | |
| 12694 if test yes = "$GXX"; then | |
| 12695 # Set up default GNU C++ configuration | |
| 12696 | |
| 12697 | |
| 12698 | |
| 12699 # Check whether --with-gnu-ld was given. | |
| 12700 if test "${with_gnu_ld+set}" = set; then : | |
| 12701 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes | |
| 12702 else | |
| 12703 with_gnu_ld=no | |
| 12704 fi | |
| 12705 | |
| 12706 ac_prog=ld | |
| 12707 if test yes = "$GCC"; then | |
| 12708 # Check if gcc -print-prog-name=ld gives a path. | |
| 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
| 12710 $as_echo_n "checking for ld used by $CC... " >&6; } | |
| 12711 case $host in | |
| 12712 *-*-mingw*) | |
| 12713 # gcc leaves a trailing carriage return, which upsets mingw | |
| 12714 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
| 12715 *) | |
| 12716 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
| 12717 esac | |
| 12718 case $ac_prog in | |
| 12719 # Accept absolute paths. | |
| 12720 [\\/]* | ?:[\\/]*) | |
| 12721 re_direlt='/[^/][^/]*/\.\./' | |
| 12722 # Canonicalize the pathname of ld | |
| 12723 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
| 12724 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
| 12725 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
| 12726 done | |
| 12727 test -z "$LD" && LD=$ac_prog | |
| 12728 ;; | |
| 12729 "") | |
| 12730 # If it fails, then pretend we aren't using GCC. | |
| 12731 ac_prog=ld | |
| 12732 ;; | |
| 12733 *) | |
| 12734 # If it is relative, then search for the first ld in PATH. | |
| 12735 with_gnu_ld=unknown | |
| 12736 ;; | |
| 12737 esac | |
| 12738 elif test yes = "$with_gnu_ld"; then | |
| 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
| 12740 $as_echo_n "checking for GNU ld... " >&6; } | |
| 12741 else | |
| 12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
| 12743 $as_echo_n "checking for non-GNU ld... " >&6; } | |
| 12744 fi | |
| 12745 if ${lt_cv_path_LD+:} false; then : | |
| 12746 $as_echo_n "(cached) " >&6 | |
| 12747 else | |
| 12748 if test -z "$LD"; then | |
| 12749 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR | |
| 12750 for ac_dir in $PATH; do | |
| 12751 IFS=$lt_save_ifs | |
| 12752 test -z "$ac_dir" && ac_dir=. | |
| 12753 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
| 12754 lt_cv_path_LD=$ac_dir/$ac_prog | |
| 12755 # Check to see if the program is GNU ld. I'd rather use --version, | |
| 12756 # but apparently some variants of GNU ld only accept -v. | |
| 12757 # Break only if it was the GNU/non-GNU ld that we prefer. | |
| 12758 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
| 12759 *GNU* | *'with BFD'*) | |
| 12760 test no != "$with_gnu_ld" && break | |
| 12761 ;; | |
| 12762 *) | |
| 12763 test yes != "$with_gnu_ld" && break | |
| 12764 ;; | |
| 12765 esac | |
| 12766 fi | |
| 12767 done | |
| 12768 IFS=$lt_save_ifs | |
| 12769 else | |
| 12770 lt_cv_path_LD=$LD # Let the user override the test with a path. | |
| 12771 fi | |
| 12772 fi | |
| 12773 | |
| 12774 LD=$lt_cv_path_LD | |
| 12775 if test -n "$LD"; then | |
| 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
| 12777 $as_echo "$LD" >&6; } | |
| 12778 else | |
| 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 12780 $as_echo "no" >&6; } | |
| 12781 fi | |
| 12782 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
| 12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
| 12784 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
| 12785 if ${lt_cv_prog_gnu_ld+:} false; then : | |
| 12786 $as_echo_n "(cached) " >&6 | |
| 12787 else | |
| 12788 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
| 12789 case `$LD -v 2>&1 </dev/null` in | |
| 12790 *GNU* | *'with BFD'*) | |
| 12791 lt_cv_prog_gnu_ld=yes | |
| 12792 ;; | |
| 12793 *) | |
| 12794 lt_cv_prog_gnu_ld=no | |
| 12795 ;; | |
| 12796 esac | |
| 12797 fi | |
| 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
| 12799 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
| 12800 with_gnu_ld=$lt_cv_prog_gnu_ld | |
| 12801 | |
| 12802 | |
| 12803 | |
| 12804 | |
| 12805 | |
| 12806 | |
| 12807 | |
| 12808 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
| 12809 # archiving commands below assume that GNU ld is being used. | |
| 12810 if test yes = "$with_gnu_ld"; then | |
| 12811 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 12812 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' | |
| 12813 | |
| 12814 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
| 12815 export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
| 12816 | |
| 12817 # If archive_cmds runs LD, not CC, wlarc should be empty | |
| 12818 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
| 12819 # investigate it a little bit more. (MM) | |
| 12820 wlarc='$wl' | |
| 12821 | |
| 12822 # ancient GNU ld didn't support --whole-archive et. al. | |
| 12823 if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
| 12824 $GREP 'no-whole-archive' > /dev/null; then | |
| 12825 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
| 12826 else | |
| 12827 whole_archive_flag_spec_CXX= | |
| 12828 fi | |
| 12829 else | |
| 12830 with_gnu_ld=no | |
| 12831 wlarc= | |
| 12832 | |
| 12833 # A generic and very simple default shared library creation | |
| 12834 # command for GNU C++ for the case where it uses the native | |
| 12835 # linker, instead of GNU ld. If possible, this setting should | |
| 12836 # overridden to take advantage of the native linker features on | |
| 12837 # the platform it is being used on. | |
| 12838 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
| 12839 fi | |
| 12840 | |
| 12841 # Commands to make compiler produce verbose output that lists | |
| 12842 # what "hidden" libraries, object files and flags are used when | |
| 12843 # linking a shared library. | |
| 12844 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
| 12845 | |
| 12846 else | |
| 12847 GXX=no | |
| 12848 with_gnu_ld=no | |
| 12849 wlarc= | |
| 12850 fi | |
| 12851 | |
| 12852 # PORTME: fill in a description of your system's C++ link characteristics | |
| 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
| 12854 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
| 12855 ld_shlibs_CXX=yes | |
| 12856 case $host_os in | |
| 12857 aix3*) | |
| 12858 # FIXME: insert proper C++ library support | |
| 12859 ld_shlibs_CXX=no | |
| 12860 ;; | |
| 12861 aix[4-9]*) | |
| 12862 if test ia64 = "$host_cpu"; then | |
| 12863 # On IA64, the linker does run time linking by default, so we don't | |
| 12864 # have to do anything special. | |
| 12865 aix_use_runtimelinking=no | |
| 12866 exp_sym_flag='-Bexport' | |
| 12867 no_entry_flag= | |
| 12868 else | |
| 12869 aix_use_runtimelinking=no | |
| 12870 | |
| 12871 # Test if we are trying to use run time linking or normal | |
| 12872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
| 12873 # have runtime linking enabled, and use it for executables. | |
| 12874 # For shared libraries, we enable/disable runtime linking | |
| 12875 # depending on the kind of the shared library created - | |
| 12876 # when "with_aix_soname,aix_use_runtimelinking" is: | |
| 12877 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables | |
| 12878 # "aix,yes" lib.so shared, rtl:yes, for executables | |
| 12879 # lib.a static archive | |
| 12880 # "both,no" lib.so.V(shr.o) shared, rtl:yes | |
| 12881 # lib.a(lib.so.V) shared, rtl:no, for executables | |
| 12882 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables | |
| 12883 # lib.a(lib.so.V) shared, rtl:no | |
| 12884 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables | |
| 12885 # lib.a static archive | |
| 12886 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
| 12887 for ld_flag in $LDFLAGS; do | |
| 12888 case $ld_flag in | |
| 12889 *-brtl*) | |
| 12890 aix_use_runtimelinking=yes | |
| 12891 break | |
| 12892 ;; | |
| 12893 esac | |
| 12894 done | |
| 12895 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then | |
| 12896 # With aix-soname=svr4, we create the lib.so.V shared archives only, | |
| 12897 # so we don't have lib.a shared libs to link our executables. | |
| 12898 # We have to force runtime linking in this case. | |
| 12899 aix_use_runtimelinking=yes | |
| 12900 LDFLAGS="$LDFLAGS -Wl,-brtl" | |
| 12901 fi | |
| 12902 ;; | |
| 12903 esac | |
| 12904 | |
| 12905 exp_sym_flag='-bexport' | |
| 12906 no_entry_flag='-bnoentry' | |
| 12907 fi | |
| 12908 | |
| 12909 # When large executables or shared objects are built, AIX ld can | |
| 12910 # have problems creating the table of contents. If linking a library | |
| 12911 # or program results in "error TOC overflow" add -mminimal-toc to | |
| 12912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
| 12913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
| 12914 | |
| 12915 archive_cmds_CXX='' | |
| 12916 hardcode_direct_CXX=yes | |
| 12917 hardcode_direct_absolute_CXX=yes | |
| 12918 hardcode_libdir_separator_CXX=':' | |
| 12919 link_all_deplibs_CXX=yes | |
| 12920 file_list_spec_CXX='$wl-f,' | |
| 12921 case $with_aix_soname,$aix_use_runtimelinking in | |
| 12922 aix,*) ;; # no import file | |
| 12923 svr4,* | *,yes) # use import file | |
| 12924 # The Import File defines what to hardcode. | |
| 12925 hardcode_direct_CXX=no | |
| 12926 hardcode_direct_absolute_CXX=no | |
| 12927 ;; | |
| 12928 esac | |
| 12929 | |
| 12930 if test yes = "$GXX"; then | |
| 12931 case $host_os in aix4.[012]|aix4.[012].*) | |
| 12932 # We only want to do this on AIX 4.2 and lower, the check | |
| 12933 # below for broken collect2 doesn't work under 4.3+ | |
| 12934 collect2name=`$CC -print-prog-name=collect2` | |
| 12935 if test -f "$collect2name" && | |
| 12936 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
| 12937 then | |
| 12938 # We have reworked collect2 | |
| 12939 : | |
| 12940 else | |
| 12941 # We have old collect2 | |
| 12942 hardcode_direct_CXX=unsupported | |
| 12943 # It fails to find uninstalled libraries when the uninstalled | |
| 12944 # path is not listed in the libpath. Setting hardcode_minus_L | |
| 12945 # to unsupported forces relinking | |
| 12946 hardcode_minus_L_CXX=yes | |
| 12947 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
| 12948 hardcode_libdir_separator_CXX= | |
| 12949 fi | |
| 12950 esac | |
| 12951 shared_flag='-shared' | |
| 12952 if test yes = "$aix_use_runtimelinking"; then | |
| 12953 shared_flag=$shared_flag' $wl-G' | |
| 12954 fi | |
| 12955 # Need to ensure runtime linking is disabled for the traditional | |
| 12956 # shared library, or the linker may eventually find shared libraries | |
| 12957 # /with/ Import File - we do not want to mix them. | |
| 12958 shared_flag_aix='-shared' | |
| 12959 shared_flag_svr4='-shared $wl-G' | |
| 12960 else | |
| 12961 # not using gcc | |
| 12962 if test ia64 = "$host_cpu"; then | |
| 12963 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
| 12964 # chokes on -Wl,-G. The following line is correct: | |
| 12965 shared_flag='-G' | |
| 12966 else | |
| 12967 if test yes = "$aix_use_runtimelinking"; then | |
| 12968 shared_flag='$wl-G' | |
| 12969 else | |
| 12970 shared_flag='$wl-bM:SRE' | |
| 12971 fi | |
| 12972 shared_flag_aix='$wl-bM:SRE' | |
| 12973 shared_flag_svr4='$wl-G' | |
| 12974 fi | |
| 12975 fi | |
| 12976 | |
| 12977 export_dynamic_flag_spec_CXX='$wl-bexpall' | |
| 12978 # It seems that -bexpall does not export symbols beginning with | |
| 12979 # underscore (_), so it is better to generate a list of symbols to | |
| 12980 # export. | |
| 12981 always_export_symbols_CXX=yes | |
| 12982 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then | |
| 12983 # Warning - without using the other runtime loading flags (-brtl), | |
| 12984 # -berok will link without error, but may produce a broken library. | |
| 12985 # The "-G" linker flag allows undefined symbols. | |
| 12986 no_undefined_flag_CXX='-bernotok' | |
| 12987 # Determine the default libpath from the value encoded in an empty | |
| 12988 # executable. | |
| 12989 if test set = "${lt_cv_aix_libpath+set}"; then | |
| 12990 aix_libpath=$lt_cv_aix_libpath | |
| 12991 else | |
| 12992 if ${lt_cv_aix_libpath__CXX+:} false; then : | |
| 12993 $as_echo_n "(cached) " >&6 | |
| 12994 else | |
| 12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 12996 /* end confdefs.h. */ | |
| 12997 | |
| 12998 int | |
| 12999 main () | |
| 13000 { | |
| 13001 | |
| 13002 ; | |
| 13003 return 0; | |
| 13004 } | |
| 13005 _ACEOF | |
| 13006 if ac_fn_cxx_try_link "$LINENO"; then : | |
| 13007 | |
| 13008 lt_aix_libpath_sed=' | |
| 13009 /Import File Strings/,/^$/ { | |
| 13010 /^0/ { | |
| 13011 s/^0 *\([^ ]*\) *$/\1/ | |
| 13012 p | |
| 13013 } | |
| 13014 }' | |
| 13015 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
| 13016 # Check for a 64-bit object if we didn't find anything. | |
| 13017 if test -z "$lt_cv_aix_libpath__CXX"; then | |
| 13018 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
| 13019 fi | |
| 13020 fi | |
| 13021 rm -f core conftest.err conftest.$ac_objext \ | |
| 13022 conftest$ac_exeext conftest.$ac_ext | |
| 13023 if test -z "$lt_cv_aix_libpath__CXX"; then | |
| 13024 lt_cv_aix_libpath__CXX=/usr/lib:/lib | |
| 13025 fi | |
| 13026 | |
| 13027 fi | |
| 13028 | |
| 13029 aix_libpath=$lt_cv_aix_libpath__CXX | |
| 13030 fi | |
| 13031 | |
| 13032 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" | |
| 13033 | |
| 13034 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag | |
| 13035 else | |
| 13036 if test ia64 = "$host_cpu"; then | |
| 13037 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' | |
| 13038 allow_undefined_flag_CXX="-z nodefs" | |
| 13039 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" | |
| 13040 else | |
| 13041 # Determine the default libpath from the value encoded in an | |
| 13042 # empty executable. | |
| 13043 if test set = "${lt_cv_aix_libpath+set}"; then | |
| 13044 aix_libpath=$lt_cv_aix_libpath | |
| 13045 else | |
| 13046 if ${lt_cv_aix_libpath__CXX+:} false; then : | |
| 13047 $as_echo_n "(cached) " >&6 | |
| 13048 else | |
| 13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 13050 /* end confdefs.h. */ | |
| 13051 | |
| 13052 int | |
| 13053 main () | |
| 13054 { | |
| 13055 | |
| 13056 ; | |
| 13057 return 0; | |
| 13058 } | |
| 13059 _ACEOF | |
| 13060 if ac_fn_cxx_try_link "$LINENO"; then : | |
| 13061 | |
| 13062 lt_aix_libpath_sed=' | |
| 13063 /Import File Strings/,/^$/ { | |
| 13064 /^0/ { | |
| 13065 s/^0 *\([^ ]*\) *$/\1/ | |
| 13066 p | |
| 13067 } | |
| 13068 }' | |
| 13069 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
| 13070 # Check for a 64-bit object if we didn't find anything. | |
| 13071 if test -z "$lt_cv_aix_libpath__CXX"; then | |
| 13072 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
| 13073 fi | |
| 13074 fi | |
| 13075 rm -f core conftest.err conftest.$ac_objext \ | |
| 13076 conftest$ac_exeext conftest.$ac_ext | |
| 13077 if test -z "$lt_cv_aix_libpath__CXX"; then | |
| 13078 lt_cv_aix_libpath__CXX=/usr/lib:/lib | |
| 13079 fi | |
| 13080 | |
| 13081 fi | |
| 13082 | |
| 13083 aix_libpath=$lt_cv_aix_libpath__CXX | |
| 13084 fi | |
| 13085 | |
| 13086 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" | |
| 13087 # Warning - without using the other run time loading flags, | |
| 13088 # -berok will link without error, but may produce a broken library. | |
| 13089 no_undefined_flag_CXX=' $wl-bernotok' | |
| 13090 allow_undefined_flag_CXX=' $wl-berok' | |
| 13091 if test yes = "$with_gnu_ld"; then | |
| 13092 # We only use this code for GNU lds that support --whole-archive. | |
| 13093 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' | |
| 13094 else | |
| 13095 # Exported symbols can be pulled into shared objects from archives | |
| 13096 whole_archive_flag_spec_CXX='$convenience' | |
| 13097 fi | |
| 13098 archive_cmds_need_lc_CXX=yes | |
| 13099 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' | |
| 13100 # -brtl affects multiple linker settings, -berok does not and is overridden later | |
| 13101 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' | |
| 13102 if test svr4 != "$with_aix_soname"; then | |
| 13103 # This is similar to how AIX traditionally builds its shared | |
| 13104 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. | |
| 13105 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' | |
| 13106 fi | |
| 13107 if test aix != "$with_aix_soname"; then | |
| 13108 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' | |
| 13109 else | |
| 13110 # used by -dlpreopen to get the symbols | |
| 13111 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' | |
| 13112 fi | |
| 13113 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' | |
| 13114 fi | |
| 13115 fi | |
| 13116 ;; | |
| 13117 | |
| 13118 beos*) | |
| 13119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
| 13120 allow_undefined_flag_CXX=unsupported | |
| 13121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
| 13122 # support --undefined. This deserves some investigation. FIXME | |
| 13123 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 13124 else | |
| 13125 ld_shlibs_CXX=no | |
| 13126 fi | |
| 13127 ;; | |
| 13128 | |
| 13129 chorus*) | |
| 13130 case $cc_basename in | |
| 13131 *) | |
| 13132 # FIXME: insert proper C++ library support | |
| 13133 ld_shlibs_CXX=no | |
| 13134 ;; | |
| 13135 esac | |
| 13136 ;; | |
| 13137 | |
| 13138 cygwin* | mingw* | pw32* | cegcc*) | |
| 13139 case $GXX,$cc_basename in | |
| 13140 ,cl* | no,cl*) | |
| 13141 # Native MSVC | |
| 13142 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
| 13143 # no search path for DLLs. | |
| 13144 hardcode_libdir_flag_spec_CXX=' ' | |
| 13145 allow_undefined_flag_CXX=unsupported | |
| 13146 always_export_symbols_CXX=yes | |
| 13147 file_list_spec_CXX='@' | |
| 13148 # Tell ltmain to make .lib files, not .a files. | |
| 13149 libext=lib | |
| 13150 # Tell ltmain to make .dll files, not .so files. | |
| 13151 shrext_cmds=.dll | |
| 13152 # FIXME: Setting linknames here is a bad hack. | |
| 13153 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' | |
| 13154 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
| 13155 cp "$export_symbols" "$output_objdir/$soname.def"; | |
| 13156 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; | |
| 13157 else | |
| 13158 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; | |
| 13159 fi~ | |
| 13160 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
| 13161 linknames=' | |
| 13162 # The linker will not automatically build a static lib if we build a DLL. | |
| 13163 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
| 13164 enable_shared_with_static_runtimes_CXX=yes | |
| 13165 # Don't use ranlib | |
| 13166 old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
| 13167 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
| 13168 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
| 13169 case $lt_outputfile in | |
| 13170 *.exe|*.EXE) ;; | |
| 13171 *) | |
| 13172 lt_outputfile=$lt_outputfile.exe | |
| 13173 lt_tool_outputfile=$lt_tool_outputfile.exe | |
| 13174 ;; | |
| 13175 esac~ | |
| 13176 func_to_tool_file "$lt_outputfile"~ | |
| 13177 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then | |
| 13178 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
| 13179 $RM "$lt_outputfile.manifest"; | |
| 13180 fi' | |
| 13181 ;; | |
| 13182 *) | |
| 13183 # g++ | |
| 13184 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
| 13185 # as there is no search path for DLLs. | |
| 13186 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
| 13187 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' | |
| 13188 allow_undefined_flag_CXX=unsupported | |
| 13189 always_export_symbols_CXX=no | |
| 13190 enable_shared_with_static_runtimes_CXX=yes | |
| 13191 | |
| 13192 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
| 13193 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' | |
| 13194 # If the export-symbols file already is a .def file, use it as | |
| 13195 # is; otherwise, prepend EXPORTS... | |
| 13196 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then | |
| 13197 cp $export_symbols $output_objdir/$soname.def; | |
| 13198 else | |
| 13199 echo EXPORTS > $output_objdir/$soname.def; | |
| 13200 cat $export_symbols >> $output_objdir/$soname.def; | |
| 13201 fi~ | |
| 13202 $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' | |
| 13203 else | |
| 13204 ld_shlibs_CXX=no | |
| 13205 fi | |
| 13206 ;; | |
| 13207 esac | |
| 13208 ;; | |
| 13209 darwin* | rhapsody*) | |
| 13210 | |
| 13211 | |
| 13212 archive_cmds_need_lc_CXX=no | |
| 13213 hardcode_direct_CXX=no | |
| 13214 hardcode_automatic_CXX=yes | |
| 13215 hardcode_shlibpath_var_CXX=unsupported | |
| 13216 if test yes = "$lt_cv_ld_force_load"; then | |
| 13217 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\"`' | |
| 13218 | |
| 13219 else | |
| 13220 whole_archive_flag_spec_CXX='' | |
| 13221 fi | |
| 13222 link_all_deplibs_CXX=yes | |
| 13223 allow_undefined_flag_CXX=$_lt_dar_allow_undefined | |
| 13224 case $cc_basename in | |
| 13225 ifort*|nagfor*) _lt_dar_can_shared=yes ;; | |
| 13226 *) _lt_dar_can_shared=$GCC ;; | |
| 13227 esac | |
| 13228 if test yes = "$_lt_dar_can_shared"; then | |
| 13229 output_verbose_link_cmd=func_echo_all | |
| 13230 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" | |
| 13231 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" | |
| 13232 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" | |
| 13233 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" | |
| 13234 if test yes != "$lt_cv_apple_cc_single_mod"; then | |
| 13235 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" | |
| 13236 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" | |
| 13237 fi | |
| 13238 | |
| 13239 else | |
| 13240 ld_shlibs_CXX=no | |
| 13241 fi | |
| 13242 | |
| 13243 ;; | |
| 13244 | |
| 13245 os2*) | |
| 13246 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
| 13247 hardcode_minus_L_CXX=yes | |
| 13248 allow_undefined_flag_CXX=unsupported | |
| 13249 shrext_cmds=.dll | |
| 13250 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 13251 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 13252 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 13253 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 13254 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ | |
| 13255 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 13256 emximp -o $lib $output_objdir/$libname.def' | |
| 13257 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ | |
| 13258 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ | |
| 13259 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ | |
| 13260 $ECHO EXPORTS >> $output_objdir/$libname.def~ | |
| 13261 prefix_cmds="$SED"~ | |
| 13262 if test EXPORTS = "`$SED 1q $export_symbols`"; then | |
| 13263 prefix_cmds="$prefix_cmds -e 1d"; | |
| 13264 fi~ | |
| 13265 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ | |
| 13266 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ | |
| 13267 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ | |
| 13268 emximp -o $lib $output_objdir/$libname.def' | |
| 13269 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' | |
| 13270 enable_shared_with_static_runtimes_CXX=yes | |
| 13271 ;; | |
| 13272 | |
| 13273 dgux*) | |
| 13274 case $cc_basename in | |
| 13275 ec++*) | |
| 13276 # FIXME: insert proper C++ library support | |
| 13277 ld_shlibs_CXX=no | |
| 13278 ;; | |
| 13279 ghcx*) | |
| 13280 # Green Hills C++ Compiler | |
| 13281 # FIXME: insert proper C++ library support | |
| 13282 ld_shlibs_CXX=no | |
| 13283 ;; | |
| 13284 *) | |
| 13285 # FIXME: insert proper C++ library support | |
| 13286 ld_shlibs_CXX=no | |
| 13287 ;; | |
| 13288 esac | |
| 13289 ;; | |
| 13290 | |
| 13291 freebsd2.*) | |
| 13292 # C++ shared libraries reported to be fairly broken before | |
| 13293 # switch to ELF | |
| 13294 ld_shlibs_CXX=no | |
| 13295 ;; | |
| 13296 | |
| 13297 freebsd-elf*) | |
| 13298 archive_cmds_need_lc_CXX=no | |
| 13299 ;; | |
| 13300 | |
| 13301 freebsd* | dragonfly*) | |
| 13302 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
| 13303 # conventions | |
| 13304 ld_shlibs_CXX=yes | |
| 13305 ;; | |
| 13306 | |
| 13307 haiku*) | |
| 13308 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 13309 link_all_deplibs_CXX=yes | |
| 13310 ;; | |
| 13311 | |
| 13312 hpux9*) | |
| 13313 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' | |
| 13314 hardcode_libdir_separator_CXX=: | |
| 13315 export_dynamic_flag_spec_CXX='$wl-E' | |
| 13316 hardcode_direct_CXX=yes | |
| 13317 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
| 13318 # but as the default | |
| 13319 # location of the library. | |
| 13320 | |
| 13321 case $cc_basename in | |
| 13322 CC*) | |
| 13323 # FIXME: insert proper C++ library support | |
| 13324 ld_shlibs_CXX=no | |
| 13325 ;; | |
| 13326 aCC*) | |
| 13327 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
| 13328 # Commands to make compiler produce verbose output that lists | |
| 13329 # what "hidden" libraries, object files and flags are used when | |
| 13330 # linking a shared library. | |
| 13331 # | |
| 13332 # There doesn't appear to be a way to prevent this compiler from | |
| 13333 # explicitly linking system object files so we need to strip them | |
| 13334 # from the output so that they don't get included in the library | |
| 13335 # dependencies. | |
| 13336 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"' | |
| 13337 ;; | |
| 13338 *) | |
| 13339 if test yes = "$GXX"; then | |
| 13340 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' | |
| 13341 else | |
| 13342 # FIXME: insert proper C++ library support | |
| 13343 ld_shlibs_CXX=no | |
| 13344 fi | |
| 13345 ;; | |
| 13346 esac | |
| 13347 ;; | |
| 13348 | |
| 13349 hpux10*|hpux11*) | |
| 13350 if test no = "$with_gnu_ld"; then | |
| 13351 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' | |
| 13352 hardcode_libdir_separator_CXX=: | |
| 13353 | |
| 13354 case $host_cpu in | |
| 13355 hppa*64*|ia64*) | |
| 13356 ;; | |
| 13357 *) | |
| 13358 export_dynamic_flag_spec_CXX='$wl-E' | |
| 13359 ;; | |
| 13360 esac | |
| 13361 fi | |
| 13362 case $host_cpu in | |
| 13363 hppa*64*|ia64*) | |
| 13364 hardcode_direct_CXX=no | |
| 13365 hardcode_shlibpath_var_CXX=no | |
| 13366 ;; | |
| 13367 *) | |
| 13368 hardcode_direct_CXX=yes | |
| 13369 hardcode_direct_absolute_CXX=yes | |
| 13370 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
| 13371 # but as the default | |
| 13372 # location of the library. | |
| 13373 ;; | |
| 13374 esac | |
| 13375 | |
| 13376 case $cc_basename in | |
| 13377 CC*) | |
| 13378 # FIXME: insert proper C++ library support | |
| 13379 ld_shlibs_CXX=no | |
| 13380 ;; | |
| 13381 aCC*) | |
| 13382 case $host_cpu in | |
| 13383 hppa*64*) | |
| 13384 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 13385 ;; | |
| 13386 ia64*) | |
| 13387 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 13388 ;; | |
| 13389 *) | |
| 13390 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 13391 ;; | |
| 13392 esac | |
| 13393 # Commands to make compiler produce verbose output that lists | |
| 13394 # what "hidden" libraries, object files and flags are used when | |
| 13395 # linking a shared library. | |
| 13396 # | |
| 13397 # There doesn't appear to be a way to prevent this compiler from | |
| 13398 # explicitly linking system object files so we need to strip them | |
| 13399 # from the output so that they don't get included in the library | |
| 13400 # dependencies. | |
| 13401 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"' | |
| 13402 ;; | |
| 13403 *) | |
| 13404 if test yes = "$GXX"; then | |
| 13405 if test no = "$with_gnu_ld"; then | |
| 13406 case $host_cpu in | |
| 13407 hppa*64*) | |
| 13408 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 13409 ;; | |
| 13410 ia64*) | |
| 13411 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 13412 ;; | |
| 13413 *) | |
| 13414 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' | |
| 13415 ;; | |
| 13416 esac | |
| 13417 fi | |
| 13418 else | |
| 13419 # FIXME: insert proper C++ library support | |
| 13420 ld_shlibs_CXX=no | |
| 13421 fi | |
| 13422 ;; | |
| 13423 esac | |
| 13424 ;; | |
| 13425 | |
| 13426 interix[3-9]*) | |
| 13427 hardcode_direct_CXX=no | |
| 13428 hardcode_shlibpath_var_CXX=no | |
| 13429 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
| 13430 export_dynamic_flag_spec_CXX='$wl-E' | |
| 13431 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
| 13432 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
| 13433 # default) and relocated if they conflict, which is a slow very memory | |
| 13434 # consuming and fragmenting process. To avoid this, we pick a random, | |
| 13435 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
| 13436 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
| 13437 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' | |
| 13438 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' | |
| 13439 ;; | |
| 13440 irix5* | irix6*) | |
| 13441 case $cc_basename in | |
| 13442 CC*) | |
| 13443 # SGI C++ | |
| 13444 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' | |
| 13445 | |
| 13446 # Archives containing C++ object files must be created using | |
| 13447 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
| 13448 # necessary to make sure instantiated templates are included | |
| 13449 # in the archive. | |
| 13450 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
| 13451 ;; | |
| 13452 *) | |
| 13453 if test yes = "$GXX"; then | |
| 13454 if test no = "$with_gnu_ld"; then | |
| 13455 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' | |
| 13456 else | |
| 13457 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' | |
| 13458 fi | |
| 13459 fi | |
| 13460 link_all_deplibs_CXX=yes | |
| 13461 ;; | |
| 13462 esac | |
| 13463 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
| 13464 hardcode_libdir_separator_CXX=: | |
| 13465 inherit_rpath_CXX=yes | |
| 13466 ;; | |
| 13467 | |
| 13468 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 13469 case $cc_basename in | |
| 13470 KCC*) | |
| 13471 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
| 13472 | |
| 13473 # KCC will only create a shared library if the output file | |
| 13474 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
| 13475 # to its proper name (with version) after linking. | |
| 13476 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' | |
| 13477 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' | |
| 13478 # Commands to make compiler produce verbose output that lists | |
| 13479 # what "hidden" libraries, object files and flags are used when | |
| 13480 # linking a shared library. | |
| 13481 # | |
| 13482 # There doesn't appear to be a way to prevent this compiler from | |
| 13483 # explicitly linking system object files so we need to strip them | |
| 13484 # from the output so that they don't get included in the library | |
| 13485 # dependencies. | |
| 13486 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"' | |
| 13487 | |
| 13488 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
| 13489 export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
| 13490 | |
| 13491 # Archives containing C++ object files must be created using | |
| 13492 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
| 13493 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
| 13494 ;; | |
| 13495 icpc* | ecpc* ) | |
| 13496 # Intel C++ | |
| 13497 with_gnu_ld=yes | |
| 13498 # version 8.0 and above of icpc choke on multiply defined symbols | |
| 13499 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
| 13500 # earlier do not add the objects themselves. | |
| 13501 case `$CC -V 2>&1` in | |
| 13502 *"Version 7."*) | |
| 13503 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 13504 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' | |
| 13505 ;; | |
| 13506 *) # Version 8.0 or newer | |
| 13507 tmp_idyn= | |
| 13508 case $host_cpu in | |
| 13509 ia64*) tmp_idyn=' -i_dynamic';; | |
| 13510 esac | |
| 13511 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 13512 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' | |
| 13513 ;; | |
| 13514 esac | |
| 13515 archive_cmds_need_lc_CXX=no | |
| 13516 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
| 13517 export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
| 13518 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' | |
| 13519 ;; | |
| 13520 pgCC* | pgcpp*) | |
| 13521 # Portland Group C++ compiler | |
| 13522 case `$CC -V` in | |
| 13523 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
| 13524 prelink_cmds_CXX='tpldir=Template.dir~ | |
| 13525 rm -rf $tpldir~ | |
| 13526 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
| 13527 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
| 13528 old_archive_cmds_CXX='tpldir=Template.dir~ | |
| 13529 rm -rf $tpldir~ | |
| 13530 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
| 13531 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
| 13532 $RANLIB $oldlib' | |
| 13533 archive_cmds_CXX='tpldir=Template.dir~ | |
| 13534 rm -rf $tpldir~ | |
| 13535 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
| 13536 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 13537 archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
| 13538 rm -rf $tpldir~ | |
| 13539 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
| 13540 $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' | |
| 13541 ;; | |
| 13542 *) # Version 6 and above use weak symbols | |
| 13543 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 13544 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' | |
| 13545 ;; | |
| 13546 esac | |
| 13547 | |
| 13548 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' | |
| 13549 export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
| 13550 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' | |
| 13551 ;; | |
| 13552 cxx*) | |
| 13553 # Compaq C++ | |
| 13554 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 13555 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' | |
| 13556 | |
| 13557 runpath_var=LD_RUN_PATH | |
| 13558 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
| 13559 hardcode_libdir_separator_CXX=: | |
| 13560 | |
| 13561 # Commands to make compiler produce verbose output that lists | |
| 13562 # what "hidden" libraries, object files and flags are used when | |
| 13563 # linking a shared library. | |
| 13564 # | |
| 13565 # There doesn't appear to be a way to prevent this compiler from | |
| 13566 # explicitly linking system object files so we need to strip them | |
| 13567 # from the output so that they don't get included in the library | |
| 13568 # dependencies. | |
| 13569 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' | |
| 13570 ;; | |
| 13571 xl* | mpixl* | bgxl*) | |
| 13572 # IBM XL 8.0 on PPC, with GNU ld | |
| 13573 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
| 13574 export_dynamic_flag_spec_CXX='$wl--export-dynamic' | |
| 13575 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' | |
| 13576 if test yes = "$supports_anon_versioning"; then | |
| 13577 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
| 13578 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
| 13579 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
| 13580 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' | |
| 13581 fi | |
| 13582 ;; | |
| 13583 *) | |
| 13584 case `$CC -V 2>&1 | sed 5q` in | |
| 13585 *Sun\ C*) | |
| 13586 # Sun C++ 5.9 | |
| 13587 no_undefined_flag_CXX=' -zdefs' | |
| 13588 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 13589 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' | |
| 13590 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
| 13591 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' | |
| 13592 compiler_needs_object_CXX=yes | |
| 13593 | |
| 13594 # Not sure whether something based on | |
| 13595 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
| 13596 # would be better. | |
| 13597 output_verbose_link_cmd='func_echo_all' | |
| 13598 | |
| 13599 # Archives containing C++ object files must be created using | |
| 13600 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
| 13601 # necessary to make sure instantiated templates are included | |
| 13602 # in the archive. | |
| 13603 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
| 13604 ;; | |
| 13605 esac | |
| 13606 ;; | |
| 13607 esac | |
| 13608 ;; | |
| 13609 | |
| 13610 lynxos*) | |
| 13611 # FIXME: insert proper C++ library support | |
| 13612 ld_shlibs_CXX=no | |
| 13613 ;; | |
| 13614 | |
| 13615 m88k*) | |
| 13616 # FIXME: insert proper C++ library support | |
| 13617 ld_shlibs_CXX=no | |
| 13618 ;; | |
| 13619 | |
| 13620 mvs*) | |
| 13621 case $cc_basename in | |
| 13622 cxx*) | |
| 13623 # FIXME: insert proper C++ library support | |
| 13624 ld_shlibs_CXX=no | |
| 13625 ;; | |
| 13626 *) | |
| 13627 # FIXME: insert proper C++ library support | |
| 13628 ld_shlibs_CXX=no | |
| 13629 ;; | |
| 13630 esac | |
| 13631 ;; | |
| 13632 | |
| 13633 netbsd*) | |
| 13634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
| 13635 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
| 13636 wlarc= | |
| 13637 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
| 13638 hardcode_direct_CXX=yes | |
| 13639 hardcode_shlibpath_var_CXX=no | |
| 13640 fi | |
| 13641 # Workaround some broken pre-1.5 toolchains | |
| 13642 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
| 13643 ;; | |
| 13644 | |
| 13645 *nto* | *qnx*) | |
| 13646 ld_shlibs_CXX=yes | |
| 13647 ;; | |
| 13648 | |
| 13649 openbsd* | bitrig*) | |
| 13650 if test -f /usr/libexec/ld.so; then | |
| 13651 hardcode_direct_CXX=yes | |
| 13652 hardcode_shlibpath_var_CXX=no | |
| 13653 hardcode_direct_absolute_CXX=yes | |
| 13654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
| 13655 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
| 13656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then | |
| 13657 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' | |
| 13658 export_dynamic_flag_spec_CXX='$wl-E' | |
| 13659 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' | |
| 13660 fi | |
| 13661 output_verbose_link_cmd=func_echo_all | |
| 13662 else | |
| 13663 ld_shlibs_CXX=no | |
| 13664 fi | |
| 13665 ;; | |
| 13666 | |
| 13667 osf3* | osf4* | osf5*) | |
| 13668 case $cc_basename in | |
| 13669 KCC*) | |
| 13670 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
| 13671 | |
| 13672 # KCC will only create a shared library if the output file | |
| 13673 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
| 13674 # to its proper name (with version) after linking. | |
| 13675 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' | |
| 13676 | |
| 13677 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' | |
| 13678 hardcode_libdir_separator_CXX=: | |
| 13679 | |
| 13680 # Archives containing C++ object files must be created using | |
| 13681 # the KAI C++ compiler. | |
| 13682 case $host in | |
| 13683 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
| 13684 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
| 13685 esac | |
| 13686 ;; | |
| 13687 RCC*) | |
| 13688 # Rational C++ 2.4.1 | |
| 13689 # FIXME: insert proper C++ library support | |
| 13690 ld_shlibs_CXX=no | |
| 13691 ;; | |
| 13692 cxx*) | |
| 13693 case $host in | |
| 13694 osf3*) | |
| 13695 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' | |
| 13696 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' | |
| 13697 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
| 13698 ;; | |
| 13699 *) | |
| 13700 allow_undefined_flag_CXX=' -expect_unresolved \*' | |
| 13701 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' | |
| 13702 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
| 13703 echo "-hidden">> $lib.exp~ | |
| 13704 $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~ | |
| 13705 $RM $lib.exp' | |
| 13706 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
| 13707 ;; | |
| 13708 esac | |
| 13709 | |
| 13710 hardcode_libdir_separator_CXX=: | |
| 13711 | |
| 13712 # Commands to make compiler produce verbose output that lists | |
| 13713 # what "hidden" libraries, object files and flags are used when | |
| 13714 # linking a shared library. | |
| 13715 # | |
| 13716 # There doesn't appear to be a way to prevent this compiler from | |
| 13717 # explicitly linking system object files so we need to strip them | |
| 13718 # from the output so that they don't get included in the library | |
| 13719 # dependencies. | |
| 13720 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"' | |
| 13721 ;; | |
| 13722 *) | |
| 13723 if test yes,no = "$GXX,$with_gnu_ld"; then | |
| 13724 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' | |
| 13725 case $host in | |
| 13726 osf3*) | |
| 13727 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' | |
| 13728 ;; | |
| 13729 *) | |
| 13730 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' | |
| 13731 ;; | |
| 13732 esac | |
| 13733 | |
| 13734 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' | |
| 13735 hardcode_libdir_separator_CXX=: | |
| 13736 | |
| 13737 # Commands to make compiler produce verbose output that lists | |
| 13738 # what "hidden" libraries, object files and flags are used when | |
| 13739 # linking a shared library. | |
| 13740 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
| 13741 | |
| 13742 else | |
| 13743 # FIXME: insert proper C++ library support | |
| 13744 ld_shlibs_CXX=no | |
| 13745 fi | |
| 13746 ;; | |
| 13747 esac | |
| 13748 ;; | |
| 13749 | |
| 13750 psos*) | |
| 13751 # FIXME: insert proper C++ library support | |
| 13752 ld_shlibs_CXX=no | |
| 13753 ;; | |
| 13754 | |
| 13755 sunos4*) | |
| 13756 case $cc_basename in | |
| 13757 CC*) | |
| 13758 # Sun C++ 4.x | |
| 13759 # FIXME: insert proper C++ library support | |
| 13760 ld_shlibs_CXX=no | |
| 13761 ;; | |
| 13762 lcc*) | |
| 13763 # Lucid | |
| 13764 # FIXME: insert proper C++ library support | |
| 13765 ld_shlibs_CXX=no | |
| 13766 ;; | |
| 13767 *) | |
| 13768 # FIXME: insert proper C++ library support | |
| 13769 ld_shlibs_CXX=no | |
| 13770 ;; | |
| 13771 esac | |
| 13772 ;; | |
| 13773 | |
| 13774 solaris*) | |
| 13775 case $cc_basename in | |
| 13776 CC* | sunCC*) | |
| 13777 # Sun C++ 4.2, 5.x and Centerline C++ | |
| 13778 archive_cmds_need_lc_CXX=yes | |
| 13779 no_undefined_flag_CXX=' -zdefs' | |
| 13780 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
| 13781 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 13782 $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' | |
| 13783 | |
| 13784 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
| 13785 hardcode_shlibpath_var_CXX=no | |
| 13786 case $host_os in | |
| 13787 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
| 13788 *) | |
| 13789 # The compiler driver will combine and reorder linker options, | |
| 13790 # but understands '-z linker_flag'. | |
| 13791 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
| 13792 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
| 13793 ;; | |
| 13794 esac | |
| 13795 link_all_deplibs_CXX=yes | |
| 13796 | |
| 13797 output_verbose_link_cmd='func_echo_all' | |
| 13798 | |
| 13799 # Archives containing C++ object files must be created using | |
| 13800 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
| 13801 # necessary to make sure instantiated templates are included | |
| 13802 # in the archive. | |
| 13803 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
| 13804 ;; | |
| 13805 gcx*) | |
| 13806 # Green Hills C++ Compiler | |
| 13807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
| 13808 | |
| 13809 # The C++ compiler must be used to create the archive. | |
| 13810 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
| 13811 ;; | |
| 13812 *) | |
| 13813 # GNU C++ compiler with Solaris linker | |
| 13814 if test yes,no = "$GXX,$with_gnu_ld"; then | |
| 13815 no_undefined_flag_CXX=' $wl-z ${wl}defs' | |
| 13816 if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
| 13817 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
| 13818 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 13819 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
| 13820 | |
| 13821 # Commands to make compiler produce verbose output that lists | |
| 13822 # what "hidden" libraries, object files and flags are used when | |
| 13823 # linking a shared library. | |
| 13824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
| 13825 else | |
| 13826 # g++ 2.7 appears to require '-G' NOT '-shared' on this | |
| 13827 # platform. | |
| 13828 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' | |
| 13829 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
| 13830 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
| 13831 | |
| 13832 # Commands to make compiler produce verbose output that lists | |
| 13833 # what "hidden" libraries, object files and flags are used when | |
| 13834 # linking a shared library. | |
| 13835 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
| 13836 fi | |
| 13837 | |
| 13838 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' | |
| 13839 case $host_os in | |
| 13840 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
| 13841 *) | |
| 13842 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' | |
| 13843 ;; | |
| 13844 esac | |
| 13845 fi | |
| 13846 ;; | |
| 13847 esac | |
| 13848 ;; | |
| 13849 | |
| 13850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
| 13851 no_undefined_flag_CXX='$wl-z,text' | |
| 13852 archive_cmds_need_lc_CXX=no | |
| 13853 hardcode_shlibpath_var_CXX=no | |
| 13854 runpath_var='LD_RUN_PATH' | |
| 13855 | |
| 13856 case $cc_basename in | |
| 13857 CC*) | |
| 13858 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 13859 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 13860 ;; | |
| 13861 *) | |
| 13862 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 13863 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 13864 ;; | |
| 13865 esac | |
| 13866 ;; | |
| 13867 | |
| 13868 sysv5* | sco3.2v5* | sco5v6*) | |
| 13869 # Note: We CANNOT use -z defs as we might desire, because we do not | |
| 13870 # link with -lc, and that would cause any symbols used from libc to | |
| 13871 # always be unresolved, which means just about no library would | |
| 13872 # ever link correctly. If we're not using GNU ld we use -z text | |
| 13873 # though, which does catch some bad symbols but isn't as heavy-handed | |
| 13874 # as -z defs. | |
| 13875 no_undefined_flag_CXX='$wl-z,text' | |
| 13876 allow_undefined_flag_CXX='$wl-z,nodefs' | |
| 13877 archive_cmds_need_lc_CXX=no | |
| 13878 hardcode_shlibpath_var_CXX=no | |
| 13879 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' | |
| 13880 hardcode_libdir_separator_CXX=':' | |
| 13881 link_all_deplibs_CXX=yes | |
| 13882 export_dynamic_flag_spec_CXX='$wl-Bexport' | |
| 13883 runpath_var='LD_RUN_PATH' | |
| 13884 | |
| 13885 case $cc_basename in | |
| 13886 CC*) | |
| 13887 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 13888 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 13889 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
| 13890 '"$old_archive_cmds_CXX" | |
| 13891 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
| 13892 '"$reload_cmds_CXX" | |
| 13893 ;; | |
| 13894 *) | |
| 13895 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 13896 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
| 13897 ;; | |
| 13898 esac | |
| 13899 ;; | |
| 13900 | |
| 13901 tandem*) | |
| 13902 case $cc_basename in | |
| 13903 NCC*) | |
| 13904 # NonStop-UX NCC 3.20 | |
| 13905 # FIXME: insert proper C++ library support | |
| 13906 ld_shlibs_CXX=no | |
| 13907 ;; | |
| 13908 *) | |
| 13909 # FIXME: insert proper C++ library support | |
| 13910 ld_shlibs_CXX=no | |
| 13911 ;; | |
| 13912 esac | |
| 13913 ;; | |
| 13914 | |
| 13915 vxworks*) | |
| 13916 # FIXME: insert proper C++ library support | |
| 13917 ld_shlibs_CXX=no | |
| 13918 ;; | |
| 13919 | |
| 13920 *) | |
| 13921 # FIXME: insert proper C++ library support | |
| 13922 ld_shlibs_CXX=no | |
| 13923 ;; | |
| 13924 esac | |
| 13925 | |
| 13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
| 13927 $as_echo "$ld_shlibs_CXX" >&6; } | |
| 13928 test no = "$ld_shlibs_CXX" && can_build_shared=no | |
| 13929 | |
| 13930 GCC_CXX=$GXX | |
| 13931 LD_CXX=$LD | |
| 13932 | |
| 13933 ## CAVEAT EMPTOR: | |
| 13934 ## There is no encapsulation within the following macros, do not change | |
| 13935 ## the running order or otherwise move them around unless you know exactly | |
| 13936 ## what you are doing... | |
| 13937 # Dependencies to place before and after the object being linked: | |
| 13938 predep_objects_CXX= | |
| 13939 postdep_objects_CXX= | |
| 13940 predeps_CXX= | |
| 13941 postdeps_CXX= | |
| 13942 compiler_lib_search_path_CXX= | |
| 13943 | |
| 13944 cat > conftest.$ac_ext <<_LT_EOF | |
| 13945 class Foo | |
| 13946 { | |
| 13947 public: | |
| 13948 Foo (void) { a = 0; } | |
| 13949 private: | |
| 13950 int a; | |
| 13951 }; | |
| 13952 _LT_EOF | |
| 13953 | |
| 13954 | |
| 13955 _lt_libdeps_save_CFLAGS=$CFLAGS | |
| 13956 case "$CC $CFLAGS " in #( | |
| 13957 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
| 13958 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
| 13959 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; | |
| 13960 esac | |
| 13961 | |
| 13962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
| 13963 (eval $ac_compile) 2>&5 | |
| 13964 ac_status=$? | |
| 13965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 13966 test $ac_status = 0; }; then | |
| 13967 # Parse the compiler output and extract the necessary | |
| 13968 # objects, libraries and library flags. | |
| 13969 | |
| 13970 # Sentinel used to keep track of whether or not we are before | |
| 13971 # the conftest object file. | |
| 13972 pre_test_object_deps_done=no | |
| 13973 | |
| 13974 for p in `eval "$output_verbose_link_cmd"`; do | |
| 13975 case $prev$p in | |
| 13976 | |
| 13977 -L* | -R* | -l*) | |
| 13978 # Some compilers place space between "-{L,R}" and the path. | |
| 13979 # Remove the space. | |
| 13980 if test x-L = "$p" || | |
| 13981 test x-R = "$p"; then | |
| 13982 prev=$p | |
| 13983 continue | |
| 13984 fi | |
| 13985 | |
| 13986 # Expand the sysroot to ease extracting the directories later. | |
| 13987 if test -z "$prev"; then | |
| 13988 case $p in | |
| 13989 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
| 13990 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
| 13991 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
| 13992 esac | |
| 13993 fi | |
| 13994 case $p in | |
| 13995 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
| 13996 esac | |
| 13997 if test no = "$pre_test_object_deps_done"; then | |
| 13998 case $prev in | |
| 13999 -L | -R) | |
| 14000 # Internal compiler library paths should come after those | |
| 14001 # provided the user. The postdeps already come after the | |
| 14002 # user supplied libs so there is no need to process them. | |
| 14003 if test -z "$compiler_lib_search_path_CXX"; then | |
| 14004 compiler_lib_search_path_CXX=$prev$p | |
| 14005 else | |
| 14006 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" | |
| 14007 fi | |
| 14008 ;; | |
| 14009 # The "-l" case would never come before the object being | |
| 14010 # linked, so don't bother handling this case. | |
| 14011 esac | |
| 14012 else | |
| 14013 if test -z "$postdeps_CXX"; then | |
| 14014 postdeps_CXX=$prev$p | |
| 14015 else | |
| 14016 postdeps_CXX="${postdeps_CXX} $prev$p" | |
| 14017 fi | |
| 14018 fi | |
| 14019 prev= | |
| 14020 ;; | |
| 14021 | |
| 14022 *.lto.$objext) ;; # Ignore GCC LTO objects | |
| 14023 *.$objext) | |
| 14024 # This assumes that the test object file only shows up | |
| 14025 # once in the compiler output. | |
| 14026 if test "$p" = "conftest.$objext"; then | |
| 14027 pre_test_object_deps_done=yes | |
| 14028 continue | |
| 14029 fi | |
| 14030 | |
| 14031 if test no = "$pre_test_object_deps_done"; then | |
| 14032 if test -z "$predep_objects_CXX"; then | |
| 14033 predep_objects_CXX=$p | |
| 14034 else | |
| 14035 predep_objects_CXX="$predep_objects_CXX $p" | |
| 14036 fi | |
| 14037 else | |
| 14038 if test -z "$postdep_objects_CXX"; then | |
| 14039 postdep_objects_CXX=$p | |
| 14040 else | |
| 14041 postdep_objects_CXX="$postdep_objects_CXX $p" | |
| 14042 fi | |
| 14043 fi | |
| 14044 ;; | |
| 14045 | |
| 14046 *) ;; # Ignore the rest. | |
| 14047 | |
| 14048 esac | |
| 14049 done | |
| 14050 | |
| 14051 # Clean up. | |
| 14052 rm -f a.out a.exe | |
| 14053 else | |
| 14054 echo "libtool.m4: error: problem compiling CXX test program" | |
| 14055 fi | |
| 14056 | |
| 14057 $RM -f confest.$objext | |
| 14058 CFLAGS=$_lt_libdeps_save_CFLAGS | |
| 14059 | |
| 14060 # PORTME: override above test on systems where it is broken | |
| 14061 case $host_os in | |
| 14062 interix[3-9]*) | |
| 14063 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
| 14064 # hack all around it, let's just trust "g++" to DTRT. | |
| 14065 predep_objects_CXX= | |
| 14066 postdep_objects_CXX= | |
| 14067 postdeps_CXX= | |
| 14068 ;; | |
| 14069 esac | |
| 14070 | |
| 14071 | |
| 14072 case " $postdeps_CXX " in | |
| 14073 *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
| 14074 esac | |
| 14075 compiler_lib_search_dirs_CXX= | |
| 14076 if test -n "${compiler_lib_search_path_CXX}"; then | |
| 14077 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` | |
| 14078 fi | |
| 14079 | |
| 14080 | |
| 14081 | |
| 14082 | |
| 14083 | |
| 14084 | |
| 14085 | |
| 14086 | |
| 14087 | |
| 14088 | |
| 14089 | |
| 14090 | |
| 14091 | |
| 14092 | |
| 14093 | |
| 14094 | |
| 14095 | |
| 14096 | |
| 14097 | |
| 14098 | |
| 14099 | |
| 14100 | |
| 14101 | |
| 14102 | |
| 14103 | |
| 14104 | |
| 14105 | |
| 14106 | |
| 14107 | |
| 14108 | |
| 14109 | |
| 14110 lt_prog_compiler_wl_CXX= | |
| 14111 lt_prog_compiler_pic_CXX= | |
| 14112 lt_prog_compiler_static_CXX= | |
| 14113 | |
| 14114 | |
| 14115 # C++ specific cases for pic, static, wl, etc. | |
| 14116 if test yes = "$GXX"; then | |
| 14117 lt_prog_compiler_wl_CXX='-Wl,' | |
| 14118 lt_prog_compiler_static_CXX='-static' | |
| 14119 | |
| 14120 case $host_os in | |
| 14121 aix*) | |
| 14122 # All AIX code is PIC. | |
| 14123 if test ia64 = "$host_cpu"; then | |
| 14124 # AIX 5 now supports IA64 processor | |
| 14125 lt_prog_compiler_static_CXX='-Bstatic' | |
| 14126 fi | |
| 14127 lt_prog_compiler_pic_CXX='-fPIC' | |
| 14128 ;; | |
| 14129 | |
| 14130 amigaos*) | |
| 14131 case $host_cpu in | |
| 14132 powerpc) | |
| 14133 # see comment about AmigaOS4 .so support | |
| 14134 lt_prog_compiler_pic_CXX='-fPIC' | |
| 14135 ;; | |
| 14136 m68k) | |
| 14137 # FIXME: we need at least 68020 code to build shared libraries, but | |
| 14138 # adding the '-m68020' flag to GCC prevents building anything better, | |
| 14139 # like '-m68040'. | |
| 14140 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
| 14141 ;; | |
| 14142 esac | |
| 14143 ;; | |
| 14144 | |
| 14145 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
| 14146 # PIC is the default for these OSes. | |
| 14147 ;; | |
| 14148 mingw* | cygwin* | os2* | pw32* | cegcc*) | |
| 14149 # This hack is so that the source file can tell whether it is being | |
| 14150 # built for inclusion in a dll (and should export symbols for example). | |
| 14151 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
| 14152 # (--disable-auto-import) libraries | |
| 14153 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
| 14154 case $host_os in | |
| 14155 os2*) | |
| 14156 lt_prog_compiler_static_CXX='$wl-static' | |
| 14157 ;; | |
| 14158 esac | |
| 14159 ;; | |
| 14160 darwin* | rhapsody*) | |
| 14161 # PIC is the default on this platform | |
| 14162 # Common symbols not allowed in MH_DYLIB files | |
| 14163 lt_prog_compiler_pic_CXX='-fno-common' | |
| 14164 ;; | |
| 14165 *djgpp*) | |
| 14166 # DJGPP does not support shared libraries at all | |
| 14167 lt_prog_compiler_pic_CXX= | |
| 14168 ;; | |
| 14169 haiku*) | |
| 14170 # PIC is the default for Haiku. | |
| 14171 # The "-static" flag exists, but is broken. | |
| 14172 lt_prog_compiler_static_CXX= | |
| 14173 ;; | |
| 14174 interix[3-9]*) | |
| 14175 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
| 14176 # Instead, we relocate shared libraries at runtime. | |
| 14177 ;; | |
| 14178 sysv4*MP*) | |
| 14179 if test -d /usr/nec; then | |
| 14180 lt_prog_compiler_pic_CXX=-Kconform_pic | |
| 14181 fi | |
| 14182 ;; | |
| 14183 hpux*) | |
| 14184 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
| 14185 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
| 14186 # sets the default TLS model and affects inlining. | |
| 14187 case $host_cpu in | |
| 14188 hppa*64*) | |
| 14189 ;; | |
| 14190 *) | |
| 14191 lt_prog_compiler_pic_CXX='-fPIC' | |
| 14192 ;; | |
| 14193 esac | |
| 14194 ;; | |
| 14195 *qnx* | *nto*) | |
| 14196 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
| 14197 # it will coredump. | |
| 14198 lt_prog_compiler_pic_CXX='-fPIC -shared' | |
| 14199 ;; | |
| 14200 *) | |
| 14201 lt_prog_compiler_pic_CXX='-fPIC' | |
| 14202 ;; | |
| 14203 esac | |
| 14204 else | |
| 14205 case $host_os in | |
| 14206 aix[4-9]*) | |
| 14207 # All AIX code is PIC. | |
| 14208 if test ia64 = "$host_cpu"; then | |
| 14209 # AIX 5 now supports IA64 processor | |
| 14210 lt_prog_compiler_static_CXX='-Bstatic' | |
| 14211 else | |
| 14212 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
| 14213 fi | |
| 14214 ;; | |
| 14215 chorus*) | |
| 14216 case $cc_basename in | |
| 14217 cxch68*) | |
| 14218 # Green Hills C++ Compiler | |
| 14219 # _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" | |
| 14220 ;; | |
| 14221 esac | |
| 14222 ;; | |
| 14223 mingw* | cygwin* | os2* | pw32* | cegcc*) | |
| 14224 # This hack is so that the source file can tell whether it is being | |
| 14225 # built for inclusion in a dll (and should export symbols for example). | |
| 14226 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
| 14227 ;; | |
| 14228 dgux*) | |
| 14229 case $cc_basename in | |
| 14230 ec++*) | |
| 14231 lt_prog_compiler_pic_CXX='-KPIC' | |
| 14232 ;; | |
| 14233 ghcx*) | |
| 14234 # Green Hills C++ Compiler | |
| 14235 lt_prog_compiler_pic_CXX='-pic' | |
| 14236 ;; | |
| 14237 *) | |
| 14238 ;; | |
| 14239 esac | |
| 14240 ;; | |
| 14241 freebsd* | dragonfly*) | |
| 14242 # FreeBSD uses GNU C++ | |
| 14243 ;; | |
| 14244 hpux9* | hpux10* | hpux11*) | |
| 14245 case $cc_basename in | |
| 14246 CC*) | |
| 14247 lt_prog_compiler_wl_CXX='-Wl,' | |
| 14248 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' | |
| 14249 if test ia64 != "$host_cpu"; then | |
| 14250 lt_prog_compiler_pic_CXX='+Z' | |
| 14251 fi | |
| 14252 ;; | |
| 14253 aCC*) | |
| 14254 lt_prog_compiler_wl_CXX='-Wl,' | |
| 14255 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' | |
| 14256 case $host_cpu in | |
| 14257 hppa*64*|ia64*) | |
| 14258 # +Z the default | |
| 14259 ;; | |
| 14260 *) | |
| 14261 lt_prog_compiler_pic_CXX='+Z' | |
| 14262 ;; | |
| 14263 esac | |
| 14264 ;; | |
| 14265 *) | |
| 14266 ;; | |
| 14267 esac | |
| 14268 ;; | |
| 14269 interix*) | |
| 14270 # This is c89, which is MS Visual C++ (no shared libs) | |
| 14271 # Anyone wants to do a port? | |
| 14272 ;; | |
| 14273 irix5* | irix6* | nonstopux*) | |
| 14274 case $cc_basename in | |
| 14275 CC*) | |
| 14276 lt_prog_compiler_wl_CXX='-Wl,' | |
| 14277 lt_prog_compiler_static_CXX='-non_shared' | |
| 14278 # CC pic flag -KPIC is the default. | |
| 14279 ;; | |
| 14280 *) | |
| 14281 ;; | |
| 14282 esac | |
| 14283 ;; | |
| 14284 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 14285 case $cc_basename in | |
| 14286 KCC*) | |
| 14287 # KAI C++ Compiler | |
| 14288 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
| 14289 lt_prog_compiler_pic_CXX='-fPIC' | |
| 14290 ;; | |
| 14291 ecpc* ) | |
| 14292 # old Intel C++ for x86_64, which still supported -KPIC. | |
| 14293 lt_prog_compiler_wl_CXX='-Wl,' | |
| 14294 lt_prog_compiler_pic_CXX='-KPIC' | |
| 14295 lt_prog_compiler_static_CXX='-static' | |
| 14296 ;; | |
| 14297 icpc* ) | |
| 14298 # Intel C++, used to be incompatible with GCC. | |
| 14299 # ICC 10 doesn't accept -KPIC any more. | |
| 14300 lt_prog_compiler_wl_CXX='-Wl,' | |
| 14301 lt_prog_compiler_pic_CXX='-fPIC' | |
| 14302 lt_prog_compiler_static_CXX='-static' | |
| 14303 ;; | |
| 14304 pgCC* | pgcpp*) | |
| 14305 # Portland Group C++ compiler | |
| 14306 lt_prog_compiler_wl_CXX='-Wl,' | |
| 14307 lt_prog_compiler_pic_CXX='-fpic' | |
| 14308 lt_prog_compiler_static_CXX='-Bstatic' | |
| 14309 ;; | |
| 14310 cxx*) | |
| 14311 # Compaq C++ | |
| 14312 # Make sure the PIC flag is empty. It appears that all Alpha | |
| 14313 # Linux and Compaq Tru64 Unix objects are PIC. | |
| 14314 lt_prog_compiler_pic_CXX= | |
| 14315 lt_prog_compiler_static_CXX='-non_shared' | |
| 14316 ;; | |
| 14317 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
| 14318 # IBM XL 8.0, 9.0 on PPC and BlueGene | |
| 14319 lt_prog_compiler_wl_CXX='-Wl,' | |
| 14320 lt_prog_compiler_pic_CXX='-qpic' | |
| 14321 lt_prog_compiler_static_CXX='-qstaticlink' | |
| 14322 ;; | |
| 14323 *) | |
| 14324 case `$CC -V 2>&1 | sed 5q` in | |
| 14325 *Sun\ C*) | |
| 14326 # Sun C++ 5.9 | |
| 14327 lt_prog_compiler_pic_CXX='-KPIC' | |
| 14328 lt_prog_compiler_static_CXX='-Bstatic' | |
| 14329 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
| 14330 ;; | |
| 14331 esac | |
| 14332 ;; | |
| 14333 esac | |
| 14334 ;; | |
| 14335 lynxos*) | |
| 14336 ;; | |
| 14337 m88k*) | |
| 14338 ;; | |
| 14339 mvs*) | |
| 14340 case $cc_basename in | |
| 14341 cxx*) | |
| 14342 lt_prog_compiler_pic_CXX='-W c,exportall' | |
| 14343 ;; | |
| 14344 *) | |
| 14345 ;; | |
| 14346 esac | |
| 14347 ;; | |
| 14348 netbsd*) | |
| 14349 ;; | |
| 14350 *qnx* | *nto*) | |
| 14351 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
| 14352 # it will coredump. | |
| 14353 lt_prog_compiler_pic_CXX='-fPIC -shared' | |
| 14354 ;; | |
| 14355 osf3* | osf4* | osf5*) | |
| 14356 case $cc_basename in | |
| 14357 KCC*) | |
| 14358 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
| 14359 ;; | |
| 14360 RCC*) | |
| 14361 # Rational C++ 2.4.1 | |
| 14362 lt_prog_compiler_pic_CXX='-pic' | |
| 14363 ;; | |
| 14364 cxx*) | |
| 14365 # Digital/Compaq C++ | |
| 14366 lt_prog_compiler_wl_CXX='-Wl,' | |
| 14367 # Make sure the PIC flag is empty. It appears that all Alpha | |
| 14368 # Linux and Compaq Tru64 Unix objects are PIC. | |
| 14369 lt_prog_compiler_pic_CXX= | |
| 14370 lt_prog_compiler_static_CXX='-non_shared' | |
| 14371 ;; | |
| 14372 *) | |
| 14373 ;; | |
| 14374 esac | |
| 14375 ;; | |
| 14376 psos*) | |
| 14377 ;; | |
| 14378 solaris*) | |
| 14379 case $cc_basename in | |
| 14380 CC* | sunCC*) | |
| 14381 # Sun C++ 4.2, 5.x and Centerline C++ | |
| 14382 lt_prog_compiler_pic_CXX='-KPIC' | |
| 14383 lt_prog_compiler_static_CXX='-Bstatic' | |
| 14384 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
| 14385 ;; | |
| 14386 gcx*) | |
| 14387 # Green Hills C++ Compiler | |
| 14388 lt_prog_compiler_pic_CXX='-PIC' | |
| 14389 ;; | |
| 14390 *) | |
| 14391 ;; | |
| 14392 esac | |
| 14393 ;; | |
| 14394 sunos4*) | |
| 14395 case $cc_basename in | |
| 14396 CC*) | |
| 14397 # Sun C++ 4.x | |
| 14398 lt_prog_compiler_pic_CXX='-pic' | |
| 14399 lt_prog_compiler_static_CXX='-Bstatic' | |
| 14400 ;; | |
| 14401 lcc*) | |
| 14402 # Lucid | |
| 14403 lt_prog_compiler_pic_CXX='-pic' | |
| 14404 ;; | |
| 14405 *) | |
| 14406 ;; | |
| 14407 esac | |
| 14408 ;; | |
| 14409 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
| 14410 case $cc_basename in | |
| 14411 CC*) | |
| 14412 lt_prog_compiler_wl_CXX='-Wl,' | |
| 14413 lt_prog_compiler_pic_CXX='-KPIC' | |
| 14414 lt_prog_compiler_static_CXX='-Bstatic' | |
| 14415 ;; | |
| 14416 esac | |
| 14417 ;; | |
| 14418 tandem*) | |
| 14419 case $cc_basename in | |
| 14420 NCC*) | |
| 14421 # NonStop-UX NCC 3.20 | |
| 14422 lt_prog_compiler_pic_CXX='-KPIC' | |
| 14423 ;; | |
| 14424 *) | |
| 14425 ;; | |
| 14426 esac | |
| 14427 ;; | |
| 14428 vxworks*) | |
| 14429 ;; | |
| 14430 *) | |
| 14431 lt_prog_compiler_can_build_shared_CXX=no | |
| 14432 ;; | |
| 14433 esac | |
| 14434 fi | |
| 14435 | |
| 14436 case $host_os in | |
| 14437 # For platforms that do not support PIC, -DPIC is meaningless: | |
| 14438 *djgpp*) | |
| 14439 lt_prog_compiler_pic_CXX= | |
| 14440 ;; | |
| 14441 *) | |
| 14442 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
| 14443 ;; | |
| 14444 esac | |
| 14445 | |
| 14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
| 14447 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
| 14448 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
| 14449 $as_echo_n "(cached) " >&6 | |
| 14450 else | |
| 14451 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
| 14452 fi | |
| 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
| 14454 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
| 14455 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
| 14456 | |
| 14457 # | |
| 14458 # Check to make sure the PIC flag actually works. | |
| 14459 # | |
| 14460 if test -n "$lt_prog_compiler_pic_CXX"; then | |
| 14461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
| 14462 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
| 14463 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : | |
| 14464 $as_echo_n "(cached) " >&6 | |
| 14465 else | |
| 14466 lt_cv_prog_compiler_pic_works_CXX=no | |
| 14467 ac_outfile=conftest.$ac_objext | |
| 14468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 14469 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment | |
| 14470 # Insert the option either (1) after the last *FLAGS variable, or | |
| 14471 # (2) before a word containing "conftest.", or (3) at the end. | |
| 14472 # Note that $ac_compile itself does not contain backslashes and begins | |
| 14473 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
| 14474 # The option is referenced via a variable to avoid confusing sed. | |
| 14475 lt_compile=`echo "$ac_compile" | $SED \ | |
| 14476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
| 14477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
| 14478 -e 's:$: $lt_compiler_flag:'` | |
| 14479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
| 14480 (eval "$lt_compile" 2>conftest.err) | |
| 14481 ac_status=$? | |
| 14482 cat conftest.err >&5 | |
| 14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 14484 if (exit $ac_status) && test -s "$ac_outfile"; then | |
| 14485 # The compiler can only warn and ignore the option if not recognized | |
| 14486 # So say no if there are warnings other than the usual output. | |
| 14487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
| 14488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 14489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
| 14490 lt_cv_prog_compiler_pic_works_CXX=yes | |
| 14491 fi | |
| 14492 fi | |
| 14493 $RM conftest* | |
| 14494 | |
| 14495 fi | |
| 14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
| 14497 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
| 14498 | |
| 14499 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then | |
| 14500 case $lt_prog_compiler_pic_CXX in | |
| 14501 "" | " "*) ;; | |
| 14502 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
| 14503 esac | |
| 14504 else | |
| 14505 lt_prog_compiler_pic_CXX= | |
| 14506 lt_prog_compiler_can_build_shared_CXX=no | |
| 14507 fi | |
| 14508 | |
| 14509 fi | |
| 14510 | |
| 14511 | |
| 14512 | |
| 14513 | |
| 14514 | |
| 14515 # | |
| 14516 # Check to make sure the static flag actually works. | |
| 14517 # | |
| 14518 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
| 14519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
| 14520 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
| 14521 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : | |
| 14522 $as_echo_n "(cached) " >&6 | |
| 14523 else | |
| 14524 lt_cv_prog_compiler_static_works_CXX=no | |
| 14525 save_LDFLAGS=$LDFLAGS | |
| 14526 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
| 14527 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
| 14528 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
| 14529 # The linker can only warn and ignore the option if not recognized | |
| 14530 # So say no if there are warnings | |
| 14531 if test -s conftest.err; then | |
| 14532 # Append any errors to the config.log. | |
| 14533 cat conftest.err 1>&5 | |
| 14534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
| 14535 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
| 14536 if diff conftest.exp conftest.er2 >/dev/null; then | |
| 14537 lt_cv_prog_compiler_static_works_CXX=yes | |
| 14538 fi | |
| 14539 else | |
| 14540 lt_cv_prog_compiler_static_works_CXX=yes | |
| 14541 fi | |
| 14542 fi | |
| 14543 $RM -r conftest* | |
| 14544 LDFLAGS=$save_LDFLAGS | |
| 14545 | |
| 14546 fi | |
| 14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
| 14548 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
| 14549 | |
| 14550 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then | |
| 14551 : | |
| 14552 else | |
| 14553 lt_prog_compiler_static_CXX= | |
| 14554 fi | |
| 14555 | |
| 14556 | |
| 14557 | |
| 14558 | |
| 14559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
| 14560 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
| 14561 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | |
| 14562 $as_echo_n "(cached) " >&6 | |
| 14563 else | |
| 14564 lt_cv_prog_compiler_c_o_CXX=no | |
| 14565 $RM -r conftest 2>/dev/null | |
| 14566 mkdir conftest | |
| 14567 cd conftest | |
| 14568 mkdir out | |
| 14569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 14570 | |
| 14571 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
| 14572 # Insert the option either (1) after the last *FLAGS variable, or | |
| 14573 # (2) before a word containing "conftest.", or (3) at the end. | |
| 14574 # Note that $ac_compile itself does not contain backslashes and begins | |
| 14575 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
| 14576 lt_compile=`echo "$ac_compile" | $SED \ | |
| 14577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
| 14578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
| 14579 -e 's:$: $lt_compiler_flag:'` | |
| 14580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
| 14581 (eval "$lt_compile" 2>out/conftest.err) | |
| 14582 ac_status=$? | |
| 14583 cat out/conftest.err >&5 | |
| 14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 14585 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
| 14586 then | |
| 14587 # The compiler can only warn and ignore the option if not recognized | |
| 14588 # So say no if there are warnings | |
| 14589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
| 14590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
| 14591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
| 14592 lt_cv_prog_compiler_c_o_CXX=yes | |
| 14593 fi | |
| 14594 fi | |
| 14595 chmod u+w . 2>&5 | |
| 14596 $RM conftest* | |
| 14597 # SGI C++ compiler will create directory out/ii_files/ for | |
| 14598 # template instantiation | |
| 14599 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
| 14600 $RM out/* && rmdir out | |
| 14601 cd .. | |
| 14602 $RM -r conftest | |
| 14603 $RM conftest* | |
| 14604 | |
| 14605 fi | |
| 14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
| 14607 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
| 14608 | |
| 14609 | |
| 14610 | |
| 14611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
| 14612 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
| 14613 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | |
| 14614 $as_echo_n "(cached) " >&6 | |
| 14615 else | |
| 14616 lt_cv_prog_compiler_c_o_CXX=no | |
| 14617 $RM -r conftest 2>/dev/null | |
| 14618 mkdir conftest | |
| 14619 cd conftest | |
| 14620 mkdir out | |
| 14621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 14622 | |
| 14623 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
| 14624 # Insert the option either (1) after the last *FLAGS variable, or | |
| 14625 # (2) before a word containing "conftest.", or (3) at the end. | |
| 14626 # Note that $ac_compile itself does not contain backslashes and begins | |
| 14627 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
| 14628 lt_compile=`echo "$ac_compile" | $SED \ | |
| 14629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
| 14630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
| 14631 -e 's:$: $lt_compiler_flag:'` | |
| 14632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
| 14633 (eval "$lt_compile" 2>out/conftest.err) | |
| 14634 ac_status=$? | |
| 14635 cat out/conftest.err >&5 | |
| 14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
| 14637 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
| 14638 then | |
| 14639 # The compiler can only warn and ignore the option if not recognized | |
| 14640 # So say no if there are warnings | |
| 14641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
| 14642 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
| 14643 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
| 14644 lt_cv_prog_compiler_c_o_CXX=yes | |
| 14645 fi | |
| 14646 fi | |
| 14647 chmod u+w . 2>&5 | |
| 14648 $RM conftest* | |
| 14649 # SGI C++ compiler will create directory out/ii_files/ for | |
| 14650 # template instantiation | |
| 14651 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
| 14652 $RM out/* && rmdir out | |
| 14653 cd .. | |
| 14654 $RM -r conftest | |
| 14655 $RM conftest* | |
| 14656 | |
| 14657 fi | |
| 14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
| 14659 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
| 14660 | |
| 14661 | |
| 14662 | |
| 14663 | |
| 14664 hard_links=nottested | |
| 14665 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then | |
| 14666 # do not overwrite the value of need_locks provided by the user | |
| 14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
| 14668 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
| 14669 hard_links=yes | |
| 14670 $RM conftest* | |
| 14671 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
| 14672 touch conftest.a | |
| 14673 ln conftest.a conftest.b 2>&5 || hard_links=no | |
| 14674 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
| 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
| 14676 $as_echo "$hard_links" >&6; } | |
| 14677 if test no = "$hard_links"; then | |
| 14678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 | |
| 14679 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} | |
| 14680 need_locks=warn | |
| 14681 fi | |
| 14682 else | |
| 14683 need_locks=no | |
| 14684 fi | |
| 14685 | |
| 14686 | |
| 14687 | |
| 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
| 14689 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
| 14690 | |
| 14691 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
| 14692 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
| 14693 case $host_os in | |
| 14694 aix[4-9]*) | |
| 14695 # If we're using GNU nm, then we don't want the "-C" option. | |
| 14696 # -C means demangle to GNU nm, but means don't demangle to AIX nm. | |
| 14697 # Without the "-l" option, or with the "-B" option, AIX nm treats | |
| 14698 # weak defined symbols like other global defined symbols, whereas | |
| 14699 # GNU nm marks them as "W". | |
| 14700 # While the 'weak' keyword is ignored in the Export File, we need | |
| 14701 # it in the Import File for the 'aix-soname' feature, so we have | |
| 14702 # to replace the "-B" option with "-P" for AIX nm. | |
| 14703 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
| 14704 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' | |
| 14705 else | |
| 14706 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' | |
| 14707 fi | |
| 14708 ;; | |
| 14709 pw32*) | |
| 14710 export_symbols_cmds_CXX=$ltdll_cmds | |
| 14711 ;; | |
| 14712 cygwin* | mingw* | cegcc*) | |
| 14713 case $cc_basename in | |
| 14714 cl*) | |
| 14715 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
| 14716 ;; | |
| 14717 *) | |
| 14718 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' | |
| 14719 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
| 14720 ;; | |
| 14721 esac | |
| 14722 ;; | |
| 14723 *) | |
| 14724 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
| 14725 ;; | |
| 14726 esac | |
| 14727 | |
| 14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
| 14729 $as_echo "$ld_shlibs_CXX" >&6; } | |
| 14730 test no = "$ld_shlibs_CXX" && can_build_shared=no | |
| 14731 | |
| 14732 with_gnu_ld_CXX=$with_gnu_ld | |
| 14733 | |
| 14734 | |
| 14735 | |
| 14736 | |
| 14737 | |
| 14738 | |
| 14739 # | |
| 14740 # Do we need to explicitly link libc? | |
| 14741 # | |
| 14742 case "x$archive_cmds_need_lc_CXX" in | |
| 14743 x|xyes) | |
| 14744 # Assume -lc should be added | |
| 14745 archive_cmds_need_lc_CXX=yes | |
| 14746 | |
| 14747 if test yes,yes = "$GCC,$enable_shared"; then | |
| 14748 case $archive_cmds_CXX in | |
| 14749 *'~'*) | |
| 14750 # FIXME: we may have to deal with multi-command sequences. | |
| 14751 ;; | |
| 14752 '$CC '*) | |
| 14753 # Test whether the compiler implicitly links with -lc since on some | |
| 14754 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
| 14755 # to ld, don't add -lc before -lgcc. | |
| 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
| 14757 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
| 14758 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : | |
| 14759 $as_echo_n "(cached) " >&6 | |
| 14760 else | |
| 14761 $RM conftest* | |
| 14762 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
| 14763 | |
| 14764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
| 14765 (eval $ac_compile) 2>&5 | |
| 14766 ac_status=$? | |
| 14767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 14768 test $ac_status = 0; } 2>conftest.err; then | |
| 14769 soname=conftest | |
| 14770 lib=conftest | |
| 14771 libobjs=conftest.$ac_objext | |
| 14772 deplibs= | |
| 14773 wl=$lt_prog_compiler_wl_CXX | |
| 14774 pic_flag=$lt_prog_compiler_pic_CXX | |
| 14775 compiler_flags=-v | |
| 14776 linker_flags=-v | |
| 14777 verstring= | |
| 14778 output_objdir=. | |
| 14779 libname=conftest | |
| 14780 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
| 14781 allow_undefined_flag_CXX= | |
| 14782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
| 14783 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
| 14784 ac_status=$? | |
| 14785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
| 14786 test $ac_status = 0; } | |
| 14787 then | |
| 14788 lt_cv_archive_cmds_need_lc_CXX=no | |
| 14789 else | |
| 14790 lt_cv_archive_cmds_need_lc_CXX=yes | |
| 14791 fi | |
| 14792 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
| 14793 else | |
| 14794 cat conftest.err 1>&5 | |
| 14795 fi | |
| 14796 $RM conftest* | |
| 14797 | |
| 14798 fi | |
| 14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
| 14800 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
| 14801 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
| 14802 ;; | |
| 14803 esac | |
| 14804 fi | |
| 14805 ;; | |
| 14806 esac | |
| 14807 | |
| 14808 | |
| 14809 | |
| 14810 | |
| 14811 | |
| 14812 | |
| 14813 | |
| 14814 | |
| 14815 | |
| 14816 | |
| 14817 | |
| 14818 | |
| 14819 | |
| 14820 | |
| 14821 | |
| 14822 | |
| 14823 | |
| 14824 | |
| 14825 | |
| 14826 | |
| 14827 | |
| 14828 | |
| 14829 | |
| 14830 | |
| 14831 | |
| 14832 | |
| 14833 | |
| 14834 | |
| 14835 | |
| 14836 | |
| 14837 | |
| 14838 | |
| 14839 | |
| 14840 | |
| 14841 | |
| 14842 | |
| 14843 | |
| 14844 | |
| 14845 | |
| 14846 | |
| 14847 | |
| 14848 | |
| 14849 | |
| 14850 | |
| 14851 | |
| 14852 | |
| 14853 | |
| 14854 | |
| 14855 | |
| 14856 | |
| 14857 | |
| 14858 | |
| 14859 | |
| 14860 | |
| 14861 | |
| 14862 | |
| 14863 | |
| 14864 | |
| 14865 | |
| 14866 | |
| 14867 | |
| 14868 | |
| 14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
| 14870 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
| 14871 | |
| 14872 library_names_spec= | |
| 14873 libname_spec='lib$name' | |
| 14874 soname_spec= | |
| 14875 shrext_cmds=.so | |
| 14876 postinstall_cmds= | |
| 14877 postuninstall_cmds= | |
| 14878 finish_cmds= | |
| 14879 finish_eval= | |
| 14880 shlibpath_var= | |
| 14881 shlibpath_overrides_runpath=unknown | |
| 14882 version_type=none | |
| 14883 dynamic_linker="$host_os ld.so" | |
| 14884 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
| 14885 need_lib_prefix=unknown | |
| 14886 hardcode_into_libs=no | |
| 14887 | |
| 14888 # when you set need_version to no, make sure it does not cause -set_version | |
| 14889 # flags to be left without arguments | |
| 14890 need_version=unknown | |
| 14891 | |
| 14892 | |
| 14893 | |
| 14894 case $host_os in | |
| 14895 aix3*) | |
| 14896 version_type=linux # correct to gnu/linux during the next big refactor | |
| 14897 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' | |
| 14898 shlibpath_var=LIBPATH | |
| 14899 | |
| 14900 # AIX 3 has no versioning support, so we append a major version to the name. | |
| 14901 soname_spec='$libname$release$shared_ext$major' | |
| 14902 ;; | |
| 14903 | |
| 14904 aix[4-9]*) | |
| 14905 version_type=linux # correct to gnu/linux during the next big refactor | |
| 14906 need_lib_prefix=no | |
| 14907 need_version=no | |
| 14908 hardcode_into_libs=yes | |
| 14909 if test ia64 = "$host_cpu"; then | |
| 14910 # AIX 5 supports IA64 | |
| 14911 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' | |
| 14912 shlibpath_var=LD_LIBRARY_PATH | |
| 14913 else | |
| 14914 # With GCC up to 2.95.x, collect2 would create an import file | |
| 14915 # for dependence libraries. The import file would start with | |
| 14916 # the line '#! .'. This would cause the generated library to | |
| 14917 # depend on '.', always an invalid library. This was fixed in | |
| 14918 # development snapshots of GCC prior to 3.0. | |
| 14919 case $host_os in | |
| 14920 aix4 | aix4.[01] | aix4.[01].*) | |
| 14921 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
| 14922 echo ' yes ' | |
| 14923 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then | |
| 14924 : | |
| 14925 else | |
| 14926 can_build_shared=no | |
| 14927 fi | |
| 14928 ;; | |
| 14929 esac | |
| 14930 # Using Import Files as archive members, it is possible to support | |
| 14931 # filename-based versioning of shared library archives on AIX. While | |
| 14932 # this would work for both with and without runtime linking, it will | |
| 14933 # prevent static linking of such archives. So we do filename-based | |
| 14934 # shared library versioning with .so extension only, which is used | |
| 14935 # when both runtime linking and shared linking is enabled. | |
| 14936 # Unfortunately, runtime linking may impact performance, so we do | |
| 14937 # not want this to be the default eventually. Also, we use the | |
| 14938 # versioned .so libs for executables only if there is the -brtl | |
| 14939 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. | |
| 14940 # To allow for filename-based versioning support, we need to create | |
| 14941 # libNAME.so.V as an archive file, containing: | |
| 14942 # *) an Import File, referring to the versioned filename of the | |
| 14943 # archive as well as the shared archive member, telling the | |
| 14944 # bitwidth (32 or 64) of that shared object, and providing the | |
| 14945 # list of exported symbols of that shared object, eventually | |
| 14946 # decorated with the 'weak' keyword | |
| 14947 # *) the shared object with the F_LOADONLY flag set, to really avoid | |
| 14948 # it being seen by the linker. | |
| 14949 # At run time we better use the real file rather than another symlink, | |
| 14950 # but for link time we create the symlink libNAME.so -> libNAME.so.V | |
| 14951 | |
| 14952 case $with_aix_soname,$aix_use_runtimelinking in | |
| 14953 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct | |
| 14954 # soname into executable. Probably we can add versioning support to | |
| 14955 # collect2, so additional links can be useful in future. | |
| 14956 aix,yes) # traditional libtool | |
| 14957 dynamic_linker='AIX unversionable lib.so' | |
| 14958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
| 14959 # instead of lib<name>.a to let people know that these are not | |
| 14960 # typical AIX shared libraries. | |
| 14961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 14962 ;; | |
| 14963 aix,no) # traditional AIX only | |
| 14964 dynamic_linker='AIX lib.a(lib.so.V)' | |
| 14965 # We preserve .a as extension for shared libraries through AIX4.2 | |
| 14966 # and later when we are not doing run time linking. | |
| 14967 library_names_spec='$libname$release.a $libname.a' | |
| 14968 soname_spec='$libname$release$shared_ext$major' | |
| 14969 ;; | |
| 14970 svr4,*) # full svr4 only | |
| 14971 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" | |
| 14972 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
| 14973 # We do not specify a path in Import Files, so LIBPATH fires. | |
| 14974 shlibpath_overrides_runpath=yes | |
| 14975 ;; | |
| 14976 *,yes) # both, prefer svr4 | |
| 14977 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" | |
| 14978 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' | |
| 14979 # unpreferred sharedlib libNAME.a needs extra handling | |
| 14980 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' | |
| 14981 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' | |
| 14982 # We do not specify a path in Import Files, so LIBPATH fires. | |
| 14983 shlibpath_overrides_runpath=yes | |
| 14984 ;; | |
| 14985 *,no) # both, prefer aix | |
| 14986 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" | |
| 14987 library_names_spec='$libname$release.a $libname.a' | |
| 14988 soname_spec='$libname$release$shared_ext$major' | |
| 14989 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling | |
| 14990 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' | |
| 14991 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' | |
| 14992 ;; | |
| 14993 esac | |
| 14994 shlibpath_var=LIBPATH | |
| 14995 fi | |
| 14996 ;; | |
| 14997 | |
| 14998 amigaos*) | |
| 14999 case $host_cpu in | |
| 15000 powerpc) | |
| 15001 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
| 15002 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
| 15003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15004 ;; | |
| 15005 m68k) | |
| 15006 library_names_spec='$libname.ixlibrary $libname.a' | |
| 15007 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
| 15008 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
| 15009 ;; | |
| 15010 esac | |
| 15011 ;; | |
| 15012 | |
| 15013 beos*) | |
| 15014 library_names_spec='$libname$shared_ext' | |
| 15015 dynamic_linker="$host_os ld.so" | |
| 15016 shlibpath_var=LIBRARY_PATH | |
| 15017 ;; | |
| 15018 | |
| 15019 bsdi[45]*) | |
| 15020 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15021 need_version=no | |
| 15022 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15023 soname_spec='$libname$release$shared_ext$major' | |
| 15024 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
| 15025 shlibpath_var=LD_LIBRARY_PATH | |
| 15026 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
| 15027 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
| 15028 # the default ld.so.conf also contains /usr/contrib/lib and | |
| 15029 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
| 15030 # libtool to hard-code these into programs | |
| 15031 ;; | |
| 15032 | |
| 15033 cygwin* | mingw* | pw32* | cegcc*) | |
| 15034 version_type=windows | |
| 15035 shrext_cmds=.dll | |
| 15036 need_version=no | |
| 15037 need_lib_prefix=no | |
| 15038 | |
| 15039 case $GCC,$cc_basename in | |
| 15040 yes,*) | |
| 15041 # gcc | |
| 15042 library_names_spec='$libname.dll.a' | |
| 15043 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
| 15044 postinstall_cmds='base_file=`basename \$file`~ | |
| 15045 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
| 15046 dldir=$destdir/`dirname \$dlpath`~ | |
| 15047 test -d \$dldir || mkdir -p \$dldir~ | |
| 15048 $install_prog $dir/$dlname \$dldir/$dlname~ | |
| 15049 chmod a+x \$dldir/$dlname~ | |
| 15050 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
| 15051 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
| 15052 fi' | |
| 15053 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
| 15054 dlpath=$dir/\$dldll~ | |
| 15055 $RM \$dlpath' | |
| 15056 shlibpath_overrides_runpath=yes | |
| 15057 | |
| 15058 case $host_os in | |
| 15059 cygwin*) | |
| 15060 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
| 15061 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
| 15062 | |
| 15063 ;; | |
| 15064 mingw* | cegcc*) | |
| 15065 # MinGW DLLs use traditional 'lib' prefix | |
| 15066 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
| 15067 ;; | |
| 15068 pw32*) | |
| 15069 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
| 15070 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
| 15071 ;; | |
| 15072 esac | |
| 15073 dynamic_linker='Win32 ld.exe' | |
| 15074 ;; | |
| 15075 | |
| 15076 *,cl*) | |
| 15077 # Native MSVC | |
| 15078 libname_spec='$name' | |
| 15079 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' | |
| 15080 library_names_spec='$libname.dll.lib' | |
| 15081 | |
| 15082 case $build_os in | |
| 15083 mingw*) | |
| 15084 sys_lib_search_path_spec= | |
| 15085 lt_save_ifs=$IFS | |
| 15086 IFS=';' | |
| 15087 for lt_path in $LIB | |
| 15088 do | |
| 15089 IFS=$lt_save_ifs | |
| 15090 # Let DOS variable expansion print the short 8.3 style file name. | |
| 15091 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
| 15092 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
| 15093 done | |
| 15094 IFS=$lt_save_ifs | |
| 15095 # Convert to MSYS style. | |
| 15096 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
| 15097 ;; | |
| 15098 cygwin*) | |
| 15099 # Convert to unix form, then to dos form, then back to unix form | |
| 15100 # but this time dos style (no spaces!) so that the unix form looks | |
| 15101 # like /cygdrive/c/PROGRA~1:/cygdr... | |
| 15102 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
| 15103 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
| 15104 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
| 15105 ;; | |
| 15106 *) | |
| 15107 sys_lib_search_path_spec=$LIB | |
| 15108 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
| 15109 # It is most probably a Windows format PATH. | |
| 15110 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
| 15111 else | |
| 15112 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
| 15113 fi | |
| 15114 # FIXME: find the short name or the path components, as spaces are | |
| 15115 # common. (e.g. "Program Files" -> "PROGRA~1") | |
| 15116 ;; | |
| 15117 esac | |
| 15118 | |
| 15119 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
| 15120 postinstall_cmds='base_file=`basename \$file`~ | |
| 15121 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ | |
| 15122 dldir=$destdir/`dirname \$dlpath`~ | |
| 15123 test -d \$dldir || mkdir -p \$dldir~ | |
| 15124 $install_prog $dir/$dlname \$dldir/$dlname' | |
| 15125 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
| 15126 dlpath=$dir/\$dldll~ | |
| 15127 $RM \$dlpath' | |
| 15128 shlibpath_overrides_runpath=yes | |
| 15129 dynamic_linker='Win32 link.exe' | |
| 15130 ;; | |
| 15131 | |
| 15132 *) | |
| 15133 # Assume MSVC wrapper | |
| 15134 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' | |
| 15135 dynamic_linker='Win32 ld.exe' | |
| 15136 ;; | |
| 15137 esac | |
| 15138 # FIXME: first we should search . and the directory the executable is in | |
| 15139 shlibpath_var=PATH | |
| 15140 ;; | |
| 15141 | |
| 15142 darwin* | rhapsody*) | |
| 15143 dynamic_linker="$host_os dyld" | |
| 15144 version_type=darwin | |
| 15145 need_lib_prefix=no | |
| 15146 need_version=no | |
| 15147 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' | |
| 15148 soname_spec='$libname$release$major$shared_ext' | |
| 15149 shlibpath_overrides_runpath=yes | |
| 15150 shlibpath_var=DYLD_LIBRARY_PATH | |
| 15151 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
| 15152 | |
| 15153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
| 15154 ;; | |
| 15155 | |
| 15156 dgux*) | |
| 15157 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15158 need_lib_prefix=no | |
| 15159 need_version=no | |
| 15160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15161 soname_spec='$libname$release$shared_ext$major' | |
| 15162 shlibpath_var=LD_LIBRARY_PATH | |
| 15163 ;; | |
| 15164 | |
| 15165 freebsd* | dragonfly*) | |
| 15166 # DragonFly does not have aout. When/if they implement a new | |
| 15167 # versioning mechanism, adjust this. | |
| 15168 if test -x /usr/bin/objformat; then | |
| 15169 objformat=`/usr/bin/objformat` | |
| 15170 else | |
| 15171 case $host_os in | |
| 15172 freebsd[23].*) objformat=aout ;; | |
| 15173 *) objformat=elf ;; | |
| 15174 esac | |
| 15175 fi | |
| 15176 version_type=freebsd-$objformat | |
| 15177 case $version_type in | |
| 15178 freebsd-elf*) | |
| 15179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15180 soname_spec='$libname$release$shared_ext$major' | |
| 15181 need_version=no | |
| 15182 need_lib_prefix=no | |
| 15183 ;; | |
| 15184 freebsd-*) | |
| 15185 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 15186 need_version=yes | |
| 15187 ;; | |
| 15188 esac | |
| 15189 shlibpath_var=LD_LIBRARY_PATH | |
| 15190 case $host_os in | |
| 15191 freebsd2.*) | |
| 15192 shlibpath_overrides_runpath=yes | |
| 15193 ;; | |
| 15194 freebsd3.[01]* | freebsdelf3.[01]*) | |
| 15195 shlibpath_overrides_runpath=yes | |
| 15196 hardcode_into_libs=yes | |
| 15197 ;; | |
| 15198 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
| 15199 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
| 15200 shlibpath_overrides_runpath=no | |
| 15201 hardcode_into_libs=yes | |
| 15202 ;; | |
| 15203 *) # from 4.6 on, and DragonFly | |
| 15204 shlibpath_overrides_runpath=yes | |
| 15205 hardcode_into_libs=yes | |
| 15206 ;; | |
| 15207 esac | |
| 15208 ;; | |
| 15209 | |
| 15210 haiku*) | |
| 15211 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15212 need_lib_prefix=no | |
| 15213 need_version=no | |
| 15214 dynamic_linker="$host_os runtime_loader" | |
| 15215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15216 soname_spec='$libname$release$shared_ext$major' | |
| 15217 shlibpath_var=LIBRARY_PATH | |
| 15218 shlibpath_overrides_runpath=no | |
| 15219 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
| 15220 hardcode_into_libs=yes | |
| 15221 ;; | |
| 15222 | |
| 15223 hpux9* | hpux10* | hpux11*) | |
| 15224 # Give a soname corresponding to the major version so that dld.sl refuses to | |
| 15225 # link against other versions. | |
| 15226 version_type=sunos | |
| 15227 need_lib_prefix=no | |
| 15228 need_version=no | |
| 15229 case $host_cpu in | |
| 15230 ia64*) | |
| 15231 shrext_cmds='.so' | |
| 15232 hardcode_into_libs=yes | |
| 15233 dynamic_linker="$host_os dld.so" | |
| 15234 shlibpath_var=LD_LIBRARY_PATH | |
| 15235 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
| 15236 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15237 soname_spec='$libname$release$shared_ext$major' | |
| 15238 if test 32 = "$HPUX_IA64_MODE"; then | |
| 15239 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
| 15240 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 | |
| 15241 else | |
| 15242 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
| 15243 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 | |
| 15244 fi | |
| 15245 ;; | |
| 15246 hppa*64*) | |
| 15247 shrext_cmds='.sl' | |
| 15248 hardcode_into_libs=yes | |
| 15249 dynamic_linker="$host_os dld.sl" | |
| 15250 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
| 15251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
| 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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
| 15255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
| 15256 ;; | |
| 15257 *) | |
| 15258 shrext_cmds='.sl' | |
| 15259 dynamic_linker="$host_os dld.sl" | |
| 15260 shlibpath_var=SHLIB_PATH | |
| 15261 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
| 15262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15263 soname_spec='$libname$release$shared_ext$major' | |
| 15264 ;; | |
| 15265 esac | |
| 15266 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
| 15267 postinstall_cmds='chmod 555 $lib' | |
| 15268 # or fails outright, so override atomically: | |
| 15269 install_override_mode=555 | |
| 15270 ;; | |
| 15271 | |
| 15272 interix[3-9]*) | |
| 15273 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15274 need_lib_prefix=no | |
| 15275 need_version=no | |
| 15276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15277 soname_spec='$libname$release$shared_ext$major' | |
| 15278 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
| 15279 shlibpath_var=LD_LIBRARY_PATH | |
| 15280 shlibpath_overrides_runpath=no | |
| 15281 hardcode_into_libs=yes | |
| 15282 ;; | |
| 15283 | |
| 15284 irix5* | irix6* | nonstopux*) | |
| 15285 case $host_os in | |
| 15286 nonstopux*) version_type=nonstopux ;; | |
| 15287 *) | |
| 15288 if test yes = "$lt_cv_prog_gnu_ld"; then | |
| 15289 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15290 else | |
| 15291 version_type=irix | |
| 15292 fi ;; | |
| 15293 esac | |
| 15294 need_lib_prefix=no | |
| 15295 need_version=no | |
| 15296 soname_spec='$libname$release$shared_ext$major' | |
| 15297 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' | |
| 15298 case $host_os in | |
| 15299 irix5* | nonstopux*) | |
| 15300 libsuff= shlibsuff= | |
| 15301 ;; | |
| 15302 *) | |
| 15303 case $LD in # libtool.m4 will add one of these switches to LD | |
| 15304 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
| 15305 libsuff= shlibsuff= libmagic=32-bit;; | |
| 15306 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
| 15307 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
| 15308 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
| 15309 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
| 15310 *) libsuff= shlibsuff= libmagic=never-match;; | |
| 15311 esac | |
| 15312 ;; | |
| 15313 esac | |
| 15314 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
| 15315 shlibpath_overrides_runpath=no | |
| 15316 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" | |
| 15317 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" | |
| 15318 hardcode_into_libs=yes | |
| 15319 ;; | |
| 15320 | |
| 15321 # No shared lib support for Linux oldld, aout, or coff. | |
| 15322 linux*oldld* | linux*aout* | linux*coff*) | |
| 15323 dynamic_linker=no | |
| 15324 ;; | |
| 15325 | |
| 15326 linux*android*) | |
| 15327 version_type=none # Android doesn't support versioned libraries. | |
| 15328 need_lib_prefix=no | |
| 15329 need_version=no | |
| 15330 library_names_spec='$libname$release$shared_ext' | |
| 15331 soname_spec='$libname$release$shared_ext' | |
| 15332 finish_cmds= | |
| 15333 shlibpath_var=LD_LIBRARY_PATH | |
| 15334 shlibpath_overrides_runpath=yes | |
| 15335 | |
| 15336 # This implies no fast_install, which is unacceptable. | |
| 15337 # Some rework will be needed to allow for fast_install | |
| 15338 # before this can be enabled. | |
| 15339 hardcode_into_libs=yes | |
| 15340 | |
| 15341 dynamic_linker='Android linker' | |
| 15342 # Don't embed -rpath directories since the linker doesn't support them. | |
| 15343 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
| 15344 ;; | |
| 15345 | |
| 15346 # This must be glibc/ELF. | |
| 15347 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
| 15348 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15349 need_lib_prefix=no | |
| 15350 need_version=no | |
| 15351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15352 soname_spec='$libname$release$shared_ext$major' | |
| 15353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
| 15354 shlibpath_var=LD_LIBRARY_PATH | |
| 15355 shlibpath_overrides_runpath=no | |
| 15356 | |
| 15357 # Some binutils ld are patched to set DT_RUNPATH | |
| 15358 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
| 15359 $as_echo_n "(cached) " >&6 | |
| 15360 else | |
| 15361 lt_cv_shlibpath_overrides_runpath=no | |
| 15362 save_LDFLAGS=$LDFLAGS | |
| 15363 save_libdir=$libdir | |
| 15364 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
| 15365 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
| 15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 15367 /* end confdefs.h. */ | |
| 15368 | |
| 15369 int | |
| 15370 main () | |
| 15371 { | |
| 15372 | |
| 15373 ; | |
| 15374 return 0; | |
| 15375 } | |
| 15376 _ACEOF | |
| 15377 if ac_fn_cxx_try_link "$LINENO"; then : | |
| 15378 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
| 15379 lt_cv_shlibpath_overrides_runpath=yes | |
| 15380 fi | |
| 15381 fi | |
| 15382 rm -f core conftest.err conftest.$ac_objext \ | |
| 15383 conftest$ac_exeext conftest.$ac_ext | |
| 15384 LDFLAGS=$save_LDFLAGS | |
| 15385 libdir=$save_libdir | |
| 15386 | |
| 15387 fi | |
| 15388 | |
| 15389 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
| 15390 | |
| 15391 # This implies no fast_install, which is unacceptable. | |
| 15392 # Some rework will be needed to allow for fast_install | |
| 15393 # before this can be enabled. | |
| 15394 hardcode_into_libs=yes | |
| 15395 | |
| 15396 # Ideally, we could use ldconfig to report *all* directores which are | |
| 15397 # searched for libraries, however this is still not possible. Aside from not | |
| 15398 # being certain /sbin/ldconfig is available, command | |
| 15399 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, | |
| 15400 # even though it is searched at run-time. Try to do the best guess by | |
| 15401 # appending ld.so.conf contents (and includes) to the search path. | |
| 15402 if test -f /etc/ld.so.conf; then | |
| 15403 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' ' '` | |
| 15404 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
| 15405 fi | |
| 15406 | |
| 15407 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
| 15408 # powerpc, because MkLinux only supported shared libraries with the | |
| 15409 # GNU dynamic linker. Since this was broken with cross compilers, | |
| 15410 # most powerpc-linux boxes support dynamic linking these days and | |
| 15411 # people can always --disable-shared, the test was removed, and we | |
| 15412 # assume the GNU/Linux dynamic linker is in use. | |
| 15413 dynamic_linker='GNU/Linux ld.so' | |
| 15414 ;; | |
| 15415 | |
| 15416 netbsd*) | |
| 15417 version_type=sunos | |
| 15418 need_lib_prefix=no | |
| 15419 need_version=no | |
| 15420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
| 15421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 15422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
| 15423 dynamic_linker='NetBSD (a.out) ld.so' | |
| 15424 else | |
| 15425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15426 soname_spec='$libname$release$shared_ext$major' | |
| 15427 dynamic_linker='NetBSD ld.elf_so' | |
| 15428 fi | |
| 15429 shlibpath_var=LD_LIBRARY_PATH | |
| 15430 shlibpath_overrides_runpath=yes | |
| 15431 hardcode_into_libs=yes | |
| 15432 ;; | |
| 15433 | |
| 15434 newsos6) | |
| 15435 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15437 shlibpath_var=LD_LIBRARY_PATH | |
| 15438 shlibpath_overrides_runpath=yes | |
| 15439 ;; | |
| 15440 | |
| 15441 *nto* | *qnx*) | |
| 15442 version_type=qnx | |
| 15443 need_lib_prefix=no | |
| 15444 need_version=no | |
| 15445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15446 soname_spec='$libname$release$shared_ext$major' | |
| 15447 shlibpath_var=LD_LIBRARY_PATH | |
| 15448 shlibpath_overrides_runpath=no | |
| 15449 hardcode_into_libs=yes | |
| 15450 dynamic_linker='ldqnx.so' | |
| 15451 ;; | |
| 15452 | |
| 15453 openbsd* | bitrig*) | |
| 15454 version_type=sunos | |
| 15455 sys_lib_dlsearch_path_spec=/usr/lib | |
| 15456 need_lib_prefix=no | |
| 15457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then | |
| 15458 need_version=no | |
| 15459 else | |
| 15460 need_version=yes | |
| 15461 fi | |
| 15462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 15463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
| 15464 shlibpath_var=LD_LIBRARY_PATH | |
| 15465 shlibpath_overrides_runpath=yes | |
| 15466 ;; | |
| 15467 | |
| 15468 os2*) | |
| 15469 libname_spec='$name' | |
| 15470 version_type=windows | |
| 15471 shrext_cmds=.dll | |
| 15472 need_version=no | |
| 15473 need_lib_prefix=no | |
| 15474 # OS/2 can only load a DLL with a base name of 8 characters or less. | |
| 15475 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; | |
| 15476 v=$($ECHO $release$versuffix | tr -d .-); | |
| 15477 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); | |
| 15478 $ECHO $n$v`$shared_ext' | |
| 15479 library_names_spec='${libname}_dll.$libext' | |
| 15480 dynamic_linker='OS/2 ld.exe' | |
| 15481 shlibpath_var=BEGINLIBPATH | |
| 15482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
| 15483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
| 15484 postinstall_cmds='base_file=`basename \$file`~ | |
| 15485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ | |
| 15486 dldir=$destdir/`dirname \$dlpath`~ | |
| 15487 test -d \$dldir || mkdir -p \$dldir~ | |
| 15488 $install_prog $dir/$dlname \$dldir/$dlname~ | |
| 15489 chmod a+x \$dldir/$dlname~ | |
| 15490 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
| 15491 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
| 15492 fi' | |
| 15493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ | |
| 15494 dlpath=$dir/\$dldll~ | |
| 15495 $RM \$dlpath' | |
| 15496 ;; | |
| 15497 | |
| 15498 osf3* | osf4* | osf5*) | |
| 15499 version_type=osf | |
| 15500 need_lib_prefix=no | |
| 15501 need_version=no | |
| 15502 soname_spec='$libname$release$shared_ext$major' | |
| 15503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15504 shlibpath_var=LD_LIBRARY_PATH | |
| 15505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
| 15506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
| 15507 ;; | |
| 15508 | |
| 15509 rdos*) | |
| 15510 dynamic_linker=no | |
| 15511 ;; | |
| 15512 | |
| 15513 solaris*) | |
| 15514 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15515 need_lib_prefix=no | |
| 15516 need_version=no | |
| 15517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15518 soname_spec='$libname$release$shared_ext$major' | |
| 15519 shlibpath_var=LD_LIBRARY_PATH | |
| 15520 shlibpath_overrides_runpath=yes | |
| 15521 hardcode_into_libs=yes | |
| 15522 # ldd complains unless libraries are executable | |
| 15523 postinstall_cmds='chmod +x $lib' | |
| 15524 ;; | |
| 15525 | |
| 15526 sunos4*) | |
| 15527 version_type=sunos | |
| 15528 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' | |
| 15529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
| 15530 shlibpath_var=LD_LIBRARY_PATH | |
| 15531 shlibpath_overrides_runpath=yes | |
| 15532 if test yes = "$with_gnu_ld"; then | |
| 15533 need_lib_prefix=no | |
| 15534 fi | |
| 15535 need_version=yes | |
| 15536 ;; | |
| 15537 | |
| 15538 sysv4 | sysv4.3*) | |
| 15539 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15541 soname_spec='$libname$release$shared_ext$major' | |
| 15542 shlibpath_var=LD_LIBRARY_PATH | |
| 15543 case $host_vendor in | |
| 15544 sni) | |
| 15545 shlibpath_overrides_runpath=no | |
| 15546 need_lib_prefix=no | |
| 15547 runpath_var=LD_RUN_PATH | |
| 15548 ;; | |
| 15549 siemens) | |
| 15550 need_lib_prefix=no | |
| 15551 ;; | |
| 15552 motorola) | |
| 15553 need_lib_prefix=no | |
| 15554 need_version=no | |
| 15555 shlibpath_overrides_runpath=no | |
| 15556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
| 15557 ;; | |
| 15558 esac | |
| 15559 ;; | |
| 15560 | |
| 15561 sysv4*MP*) | |
| 15562 if test -d /usr/nec; then | |
| 15563 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15564 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' | |
| 15565 soname_spec='$libname$shared_ext.$major' | |
| 15566 shlibpath_var=LD_LIBRARY_PATH | |
| 15567 fi | |
| 15568 ;; | |
| 15569 | |
| 15570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
| 15571 version_type=sco | |
| 15572 need_lib_prefix=no | |
| 15573 need_version=no | |
| 15574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' | |
| 15575 soname_spec='$libname$release$shared_ext$major' | |
| 15576 shlibpath_var=LD_LIBRARY_PATH | |
| 15577 shlibpath_overrides_runpath=yes | |
| 15578 hardcode_into_libs=yes | |
| 15579 if test yes = "$with_gnu_ld"; then | |
| 15580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
| 15581 else | |
| 15582 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
| 15583 case $host_os in | |
| 15584 sco3.2v5*) | |
| 15585 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
| 15586 ;; | |
| 15587 esac | |
| 15588 fi | |
| 15589 sys_lib_dlsearch_path_spec='/usr/lib' | |
| 15590 ;; | |
| 15591 | |
| 15592 tpf*) | |
| 15593 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
| 15594 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15595 need_lib_prefix=no | |
| 15596 need_version=no | |
| 15597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15598 shlibpath_var=LD_LIBRARY_PATH | |
| 15599 shlibpath_overrides_runpath=no | |
| 15600 hardcode_into_libs=yes | |
| 15601 ;; | |
| 15602 | |
| 15603 uts4*) | |
| 15604 version_type=linux # correct to gnu/linux during the next big refactor | |
| 15605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' | |
| 15606 soname_spec='$libname$release$shared_ext$major' | |
| 15607 shlibpath_var=LD_LIBRARY_PATH | |
| 15608 ;; | |
| 15609 | |
| 15610 *) | |
| 15611 dynamic_linker=no | |
| 15612 ;; | |
| 15613 esac | |
| 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
| 15615 $as_echo "$dynamic_linker" >&6; } | |
| 15616 test no = "$dynamic_linker" && can_build_shared=no | |
| 15617 | |
| 15618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
| 15619 if test yes = "$GCC"; then | |
| 15620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
| 15621 fi | |
| 15622 | |
| 15623 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then | |
| 15624 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec | |
| 15625 fi | |
| 15626 | |
| 15627 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then | |
| 15628 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec | |
| 15629 fi | |
| 15630 | |
| 15631 # lt_cv_sys_lib... is unaugmented for libtool script decls... | |
| 15632 lt_cv_sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec | |
| 15633 | |
| 15634 # ..but sys_lib_... needs LT_SYS_LIBRARY_PATH munging for | |
| 15635 # LT_SYS_DLSEARCH_PATH macro in ltdl.m4 to work with the correct paths: | |
| 15636 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" | |
| 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 | |
| 15669 | |
| 15670 | |
| 15671 | |
| 15672 | |
| 15673 | |
| 15674 | |
| 15675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
| 15676 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
| 15677 hardcode_action_CXX= | |
| 15678 if test -n "$hardcode_libdir_flag_spec_CXX" || | |
| 15679 test -n "$runpath_var_CXX" || | |
| 15680 test yes = "$hardcode_automatic_CXX"; then | |
| 15681 | |
| 15682 # We can hardcode non-existent directories. | |
| 15683 if test no != "$hardcode_direct_CXX" && | |
| 15684 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
| 15685 # have to relink, otherwise we might link with an installed library | |
| 15686 # when we should be linking with a yet-to-be-installed one | |
| 15687 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && | |
| 15688 test no != "$hardcode_minus_L_CXX"; then | |
| 15689 # Linking always hardcodes the temporary library directory. | |
| 15690 hardcode_action_CXX=relink | |
| 15691 else | |
| 15692 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
| 15693 hardcode_action_CXX=immediate | |
| 15694 fi | |
| 15695 else | |
| 15696 # We cannot hardcode anything, or else we can only hardcode existing | |
| 15697 # directories. | |
| 15698 hardcode_action_CXX=unsupported | |
| 15699 fi | |
| 15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
| 15701 $as_echo "$hardcode_action_CXX" >&6; } | |
| 15702 | |
| 15703 if test relink = "$hardcode_action_CXX" || | |
| 15704 test yes = "$inherit_rpath_CXX"; then | |
| 15705 # Fast installation is not supported | |
| 15706 enable_fast_install=no | |
| 15707 elif test yes = "$shlibpath_overrides_runpath" || | |
| 15708 test no = "$enable_shared"; then | |
| 15709 # Fast installation is not necessary | |
| 15710 enable_fast_install=needless | |
| 15711 fi | |
| 15712 | |
| 15713 | |
| 15714 | |
| 15715 | |
| 15716 | |
| 15717 | |
| 15718 | |
| 15719 fi # test -n "$compiler" | |
| 15720 | |
| 15721 CC=$lt_save_CC | |
| 15722 CFLAGS=$lt_save_CFLAGS | |
| 15723 LDCXX=$LD | |
| 15724 LD=$lt_save_LD | |
| 15725 GCC=$lt_save_GCC | |
| 15726 with_gnu_ld=$lt_save_with_gnu_ld | |
| 15727 lt_cv_path_LDCXX=$lt_cv_path_LD | |
| 15728 lt_cv_path_LD=$lt_save_path_LD | |
| 15729 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
| 15730 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
| 15731 fi # test yes != "$_lt_caught_CXX_error" | |
| 15732 | |
| 15733 ac_ext=c | |
| 15734 ac_cpp='$CPP $CPPFLAGS' | |
| 15735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
| 15736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
| 15737 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
| 15738 | |
| 15739 | |
| 15740 | |
| 15741 | |
| 15742 | |
| 15743 | |
| 15744 | |
| 15745 | |
| 15746 | |
| 15747 | |
| 15748 | |
| 15749 | |
| 15750 | |
| 15751 | |
| 15752 | |
| 15753 ac_config_commands="$ac_config_commands libtool" | |
| 15754 | |
| 15755 | |
| 15756 | |
| 15757 | |
| 15758 # Only expand once: | |
| 15759 | |
| 15760 | |
| 15761 | |
| 15762 | |
| 15763 | |
| 15764 | |
| 15765 # Check if 64 bit pointer support is required on 32 bit machines | |
| 15766 # Disabled by default | |
| 15767 | |
| 15768 # Check whether --enable-64 was given. | |
| 15769 if test "${enable_64+set}" = set; then : | |
| 15770 enableval=$enable_64; | |
| 15771 fi | |
| 15772 | |
| 15773 | |
| 15774 if test "x${enable_64}" = "xyes"; then : | |
| 15775 | |
| 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64bit compilation support" >&5 | |
| 15777 $as_echo_n "checking for 64bit compilation support... " >&6; } | |
| 15778 | |
| 15779 case ${host_os} in #( | |
| 15780 aix*) : | |
| 15781 | |
| 15782 CPPFLAGS="-DAJ_AIX64 ${CPPFLAGS}" | |
| 15783 case ${CC} in #( | |
| 15784 gcc) : | |
| 15785 ;; #( | |
| 15786 *) : | |
| 15787 | |
| 15788 as_fn_append CC " -q64" | |
| 15789 ;; | |
| 15790 esac | |
| 15791 NM="nm -B -X 64" | |
| 15792 AR="ar -X 64" | |
| 15793 ;; #( | |
| 15794 hpux*) : | |
| 15795 | |
| 15796 case ${CC} in #( | |
| 15797 gcc) : | |
| 15798 ;; #( | |
| 15799 *) : | |
| 15800 | |
| 15801 as_fn_append CC " +DD64" | |
| 15802 ;; | |
| 15803 esac | |
| 15804 | |
| 15805 $as_echo "#define HPUX64PTRS 1" >>confdefs.h | |
| 15806 | |
| 15807 ;; #( | |
| 15808 *) : | |
| 15809 ;; | |
| 15810 esac | |
| 15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
| 15812 $as_echo "done" >&6; } | |
| 15813 | |
| 15814 fi | |
| 15815 | |
| 15816 | |
| 15817 | |
| 15818 | |
| 15819 # Compiler optimisations | |
| 15820 # The Solaris 64bit ptr check has to be done here owing to param order | |
| 15821 | |
| 15822 | |
| 15823 # Check whether --with-optimisation was given. | |
| 15824 if test "${with_optimisation+set}" = set; then : | |
| 15825 withval=$with_optimisation; | |
| 15826 fi | |
| 15827 | |
| 15828 | |
| 15829 if test "x${with_optimisation}" != "xno"; then : | |
| 15830 | |
| 15831 case ${CC} in #( | |
| 15832 gcc) : | |
| 15833 | |
| 15834 # Intel MacOSX requires reduced optimisation for PCRE code | |
| 15835 # other OSs just use -O2 | |
| 15836 case ${host_os} in #( | |
| 15837 darwin*) : | |
| 15838 | |
| 15839 if test "x${host_cpu}" = "xi386"; then : | |
| 15840 as_fn_append CFLAGS " -O1" | |
| 15841 else | |
| 15842 as_fn_append CFLAGS " -O2" | |
| 15843 fi | |
| 15844 ;; #( | |
| 15845 *) : | |
| 15846 | |
| 15847 as_fn_append CFLAGS " -O2" | |
| 15848 ;; | |
| 15849 esac | |
| 15850 ;; #( | |
| 15851 *) : | |
| 15852 | |
| 15853 case ${host_os} in #( | |
| 15854 aix*) : | |
| 15855 | |
| 15856 as_fn_append CFLAGS " -O3 -qstrict -qarch=auto -qtune=auto" | |
| 15857 ;; #( | |
| 15858 irix*) : | |
| 15859 | |
| 15860 LD="/usr/bin/ld -IPA" | |
| 15861 as_fn_append CFLAGS " -O3" | |
| 15862 ;; #( | |
| 15863 hpux*) : | |
| 15864 | |
| 15865 as_fn_append CFLAGS " -fast" | |
| 15866 ;; #( | |
| 15867 osf*) : | |
| 15868 | |
| 15869 as_fn_append CFLAGS " -fast -U_FASTMATH" | |
| 15870 ;; #( | |
| 15871 solaris*) : | |
| 15872 | |
| 15873 as_fn_append CFLAGS " -O" | |
| 15874 # test for 64 bit ptr here (see Solaris 64bit above) | |
| 15875 if test "x${enable_64}" = "xyes"; then : | |
| 15876 as_fn_append CFLAGS " -xtarget=ultra -xarch=v9" | |
| 15877 fi | |
| 15878 ;; #( | |
| 15879 linux*) : | |
| 15880 | |
| 15881 # Default optimisation for non-gcc compilers under Linux | |
| 15882 as_fn_append CFLAGS " -O2" | |
| 15883 ;; #( | |
| 15884 freebsd*) : | |
| 15885 | |
| 15886 as_fn_append CFLAGS " -O2" | |
| 15887 ;; #( | |
| 15888 *) : | |
| 15889 ;; | |
| 15890 esac | |
| 15891 ;; | |
| 15892 esac | |
| 15893 | |
| 15894 fi | |
| 15895 | |
| 15896 | |
| 15897 | |
| 15898 | |
| 15899 # Compiler warning settings: --enable-warnings, defines WARN_CFLAGS | |
| 15900 | |
| 15901 # Check whether --enable-warnings was given. | |
| 15902 if test "${enable_warnings+set}" = set; then : | |
| 15903 enableval=$enable_warnings; | |
| 15904 fi | |
| 15905 | |
| 15906 | |
| 15907 if test "x${enable_warnings}" = "xyes"; then : | |
| 15908 | |
| 15909 case ${CC} in #( | |
| 15910 gcc) : | |
| 15911 | |
| 15912 # -Wall priovides: | |
| 15913 # -Waddress | |
| 15914 # -Warray-bounds (only with -O2) | |
| 15915 # -Wc++0x-compat | |
| 15916 # -Wchar-subscripts | |
| 15917 # -Wenum-compare (in C/Objc; this is on by default in C++) | |
| 15918 # -Wimplicit-int (C and Objective-C only) | |
| 15919 # -Wimplicit-function-declaration (C and Objective-C only) | |
| 15920 # -Wcomment | |
| 15921 # -Wformat | |
| 15922 # -Wmain (only for C/ObjC and unless -ffreestanding) | |
| 15923 # -Wmissing-braces | |
| 15924 # -Wnonnull | |
| 15925 # -Wparentheses | |
| 15926 # -Wpointer-sign | |
| 15927 # -Wreorder | |
| 15928 # -Wreturn-type | |
| 15929 # -Wsequence-point | |
| 15930 # -Wsign-compare (only in C++) | |
| 15931 # -Wstrict-aliasing | |
| 15932 # -Wstrict-overflow=1 | |
| 15933 # -Wswitch | |
| 15934 # -Wtrigraphs | |
| 15935 # -Wuninitialized | |
| 15936 # -Wunknown-pragmas | |
| 15937 # -Wunused-function | |
| 15938 # -Wunused-label | |
| 15939 # -Wunused-value | |
| 15940 # -Wunused-variable | |
| 15941 # -Wvolatile-register-var | |
| 15942 | |
| 15943 WARN_CFLAGS="-Wall -fno-strict-aliasing" | |
| 15944 ;; #( | |
| 15945 *) : | |
| 15946 ;; | |
| 15947 esac | |
| 15948 | |
| 15949 fi | |
| 15950 | |
| 15951 | |
| 15952 | |
| 15953 | |
| 15954 | |
| 15955 | |
| 15956 # Compiler developer warning settings: --enable-devwarnings, | |
| 15957 # sets DEVWARN_CFLAGS | |
| 15958 | |
| 15959 # Check whether --enable-devwarnings was given. | |
| 15960 if test "${enable_devwarnings+set}" = set; then : | |
| 15961 enableval=$enable_devwarnings; | |
| 15962 fi | |
| 15963 | |
| 15964 | |
| 15965 if test "x${enable_devwarnings}" = "xyes"; then : | |
| 15966 | |
| 15967 case ${CC} in #( | |
| 15968 gcc) : | |
| 15969 | |
| 15970 # Only -Wstrict-prototypes and -Wmissing-prototypes are set in this | |
| 15971 # EMBASSY module. | |
| 15972 | |
| 15973 DEVWARN_CFLAGS="-Wstrict-prototypes -Wmissing-prototypes" | |
| 15974 | |
| 15975 # Diagnostic options for the GNU GCC compiler version 4.6.1. | |
| 15976 # http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Warning-Options.html | |
| 15977 # | |
| 15978 # -Wextra: more warnings beyond what -Wall provides | |
| 15979 # -Wclobbered | |
| 15980 # -Wempty-body | |
| 15981 # -Wignored-qualifiers | |
| 15982 # -Wmissing-field-initializers | |
| 15983 # -Wmissing-parameter-type (C only) | |
| 15984 # -Wold-style-declaration (C only) | |
| 15985 # -Woverride-init | |
| 15986 # -Wsign-compare | |
| 15987 # -Wtype-limits | |
| 15988 # -Wuninitialized | |
| 15989 # -Wunused-parameter (only with -Wunused or -Wall) | |
| 15990 # -Wunused-but-set-parameter (only with -Wunused or -Wall) | |
| 15991 | |
| 15992 # AS_VAR_SET([DEVWARN_CFLAGS], ["-Wextra"]) | |
| 15993 | |
| 15994 # Warn if a function is declared or defined without specifying the | |
| 15995 # argument types. | |
| 15996 | |
| 15997 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wstrict-prototypes"]) | |
| 15998 | |
| 15999 # Warn if a global function is defined without a previous prototype | |
| 16000 # declaration. | |
| 16001 | |
| 16002 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wmissing-prototypes"]) | |
| 16003 | |
| 16004 # Warn for obsolescent usages, according to the C Standard, | |
| 16005 # in a declaration. | |
| 16006 | |
| 16007 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wold-style-definition"]) | |
| 16008 | |
| 16009 # Warn if a global function is defined without a previous declaration. | |
| 16010 | |
| 16011 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wmissing-declarations"]) | |
| 16012 | |
| 16013 # When compiling C, give string constants the type const char[length] | |
| 16014 # so that copying the address of one into a non-const char * pointer | |
| 16015 # will get a warning. | |
| 16016 | |
| 16017 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wwrite-strings"]) | |
| 16018 | |
| 16019 # Warn whenever a local variable or type declaration shadows another | |
| 16020 # variable, parameter, type, or class member (in C++), or whenever a | |
| 16021 # built-in function is shadowed. | |
| 16022 | |
| 16023 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wshadow"]) | |
| 16024 | |
| 16025 # Warn when a declaration is found after a statement in a block. | |
| 16026 | |
| 16027 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wdeclaration-after-statement"]) | |
| 16028 | |
| 16029 # Warn if an undefined identifier is evaluated in an `#if' directive. | |
| 16030 | |
| 16031 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wundef"]) | |
| 16032 | |
| 16033 # Warn about anything that depends on the "size of" a function type | |
| 16034 # or of void. | |
| 16035 | |
| 16036 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wpointer-arith"]) | |
| 16037 | |
| 16038 # Warn whenever a pointer is cast so as to remove a type qualifier | |
| 16039 # from the target type. | |
| 16040 | |
| 16041 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wcast-qual"]) | |
| 16042 | |
| 16043 # Warn whenever a pointer is cast such that the required alignment | |
| 16044 # of the target is increased. | |
| 16045 | |
| 16046 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wcast-align"]) | |
| 16047 | |
| 16048 # Warn whenever a function call is cast to a non-matching type. | |
| 16049 | |
| 16050 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wbad-function-cast"]) | |
| 16051 | |
| 16052 # Warn when a comparison between signed and unsigned values could | |
| 16053 # produce an incorrect result when the signed value is converted to | |
| 16054 # unsigned. | |
| 16055 | |
| 16056 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wsign-compare"]) | |
| 16057 | |
| 16058 # Warn if a structure's initializer has some fields missing. | |
| 16059 | |
| 16060 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wmissing-field-initializers"]) | |
| 16061 | |
| 16062 # An alias of the new option -Wsuggest-attribute=noreturn | |
| 16063 # Warn for cases where adding an attribute may be beneficial. | |
| 16064 | |
| 16065 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wmissing-noreturn"]) | |
| 16066 | |
| 16067 # Warn if an extern declaration is encountered within a function. | |
| 16068 | |
| 16069 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wnested-externs"]) | |
| 16070 | |
| 16071 # Warn if anything is declared more than once in the same scope, | |
| 16072 # even in cases where multiple declaration is valid and changes | |
| 16073 # nothing. | |
| 16074 | |
| 16075 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wredundant-decls"]) | |
| 16076 | |
| 16077 # Warn if the loop cannot be optimized because the compiler could not | |
| 16078 # assume anything on the bounds of the loop indices. | |
| 16079 # -Wunsafe-loop-optimizations objects to loops with increments more | |
| 16080 # than 1 because if the end is at INT_MAX it could run forever ... | |
| 16081 # rarely | |
| 16082 | |
| 16083 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wunsafe-loop-optimizations"]) | |
| 16084 | |
| 16085 # Warn for implicit conversions that may alter a value. | |
| 16086 # -Wconversion is brain-damaged - complains about char arguments | |
| 16087 # every time | |
| 16088 | |
| 16089 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wconversion"]) | |
| 16090 | |
| 16091 # Warn about certain constructs that behave differently in traditional | |
| 16092 # and ISO C. | |
| 16093 # -Wtraditional gives #elif and #error msgs | |
| 16094 | |
| 16095 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wtraditional"]) | |
| 16096 | |
| 16097 # Warn if floating point values are used in equality comparisons. | |
| 16098 # -Wfloat-equal will not allow tests for values still 0.0 | |
| 16099 | |
| 16100 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wfloat-equal"]) | |
| 16101 | |
| 16102 # This option is only active when -ftree-vrp is active | |
| 16103 # (default for -O2 and above). It warns about subscripts to arrays | |
| 16104 # that are always out of bounds. | |
| 16105 # -Warray-bounds gives false positives in gcc 4.6.0 | |
| 16106 # Disable rather than use a non-portable pragma | |
| 16107 | |
| 16108 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wno-array-bounds"]) | |
| 16109 ;; #( | |
| 16110 icc) : | |
| 16111 | |
| 16112 # Diagnostic options for the Intel(R) C++ compiler version 11.1. | |
| 16113 # http://software.intel.com/en-us/articles/intel-c-compiler-professional-edition-for-linux-documentation/ | |
| 16114 | |
| 16115 # This option specifies the level of diagnostic messages to be | |
| 16116 # generated by the compiler. | |
| 16117 | |
| 16118 DEVWARN_CFLAGS="-w2" | |
| 16119 | |
| 16120 # This option determines whether a warning is issued if generated | |
| 16121 # code is not C++ ABI compliant. | |
| 16122 | |
| 16123 as_fn_append DEVWARN_CFLAGS " -Wabi" | |
| 16124 | |
| 16125 # This option tells the compiler to display errors, warnings, and | |
| 16126 # remarks. | |
| 16127 | |
| 16128 as_fn_append DEVWARN_CFLAGS " -Wall" | |
| 16129 | |
| 16130 # This option tells the compiler to display a shorter form of | |
| 16131 # diagnostic output. | |
| 16132 | |
| 16133 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wbrief"]) | |
| 16134 | |
| 16135 # This option warns if cast is used to override pointer type | |
| 16136 # qualifier | |
| 16137 | |
| 16138 as_fn_append DEVWARN_CFLAGS " -Wcast-qual" | |
| 16139 | |
| 16140 # This option tells the compiler to perform compile-time code | |
| 16141 # checking for certain code. | |
| 16142 | |
| 16143 as_fn_append DEVWARN_CFLAGS " -Wcheck" | |
| 16144 | |
| 16145 # This option determines whether a warning is issued when /* | |
| 16146 # appears in the middle of a /* */ comment. | |
| 16147 | |
| 16148 as_fn_append DEVWARN_CFLAGS " -Wcomment" | |
| 16149 | |
| 16150 # Set maximum number of template instantiation contexts shown in | |
| 16151 # diagnostic. | |
| 16152 | |
| 16153 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wcontext-limit=n"]) | |
| 16154 | |
| 16155 # This option enables warnings for implicit conversions that may | |
| 16156 # alter a value. | |
| 16157 | |
| 16158 as_fn_append DEVWARN_CFLAGS " -Wconversion" | |
| 16159 | |
| 16160 # This option determines whether warnings are issued for deprecated | |
| 16161 # features. | |
| 16162 | |
| 16163 as_fn_append DEVWARN_CFLAGS " -Wdeprecated" | |
| 16164 | |
| 16165 # This option enables warnings based on certain C++ programming | |
| 16166 # guidelines. | |
| 16167 | |
| 16168 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Weffc++"]) | |
| 16169 | |
| 16170 # This option changes all warnings to errors. | |
| 16171 # Alternate: -diag-error warn | |
| 16172 | |
| 16173 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Werror"]) | |
| 16174 | |
| 16175 # This option changes all warnings and remarks to errors. | |
| 16176 # Alternate: -diag-error warn, remark | |
| 16177 | |
| 16178 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Werror-all"]) | |
| 16179 | |
| 16180 # This option determines whether warnings are issued about extra | |
| 16181 # tokens at the end of preprocessor directives. | |
| 16182 | |
| 16183 as_fn_append DEVWARN_CFLAGS " -Wextra-tokens" | |
| 16184 | |
| 16185 # This option determines whether argument checking is enabled for | |
| 16186 # calls to printf, scanf, and so forth. | |
| 16187 | |
| 16188 as_fn_append DEVWARN_CFLAGS " -Wformat" | |
| 16189 | |
| 16190 # This option determines whether the compiler issues a warning when | |
| 16191 # the use of format functions may cause security problems. | |
| 16192 | |
| 16193 as_fn_append DEVWARN_CFLAGS " -Wformat-security" | |
| 16194 | |
| 16195 # This option enables diagnostics about what is inlined and what is | |
| 16196 # not inlined. | |
| 16197 | |
| 16198 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Winline"]) | |
| 16199 | |
| 16200 # This option determines whether a warning is issued if the return | |
| 16201 # type of main is not expected. | |
| 16202 | |
| 16203 as_fn_append DEVWARN_CFLAGS " -Wmain" | |
| 16204 | |
| 16205 # This option determines whether warnings are issued for global | |
| 16206 # functions and variables without prior declaration. | |
| 16207 | |
| 16208 as_fn_append DEVWARN_CFLAGS " -Wmissing-declarations" | |
| 16209 | |
| 16210 # Determines whether warnings are issued for missing prototypes. | |
| 16211 | |
| 16212 as_fn_append DEVWARN_CFLAGS " -Wmissing-prototypes" | |
| 16213 | |
| 16214 # This option enables warnings if a multicharacter constant | |
| 16215 # ('ABC') is used. | |
| 16216 | |
| 16217 as_fn_append DEVWARN_CFLAGS " -Wmultichar" | |
| 16218 | |
| 16219 # Issue a warning when a class appears to be polymorphic, | |
| 16220 # yet it declares a non-virtual one. | |
| 16221 # This option is supported in C++ only. | |
| 16222 | |
| 16223 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wnon-virtual-dtor"]) | |
| 16224 | |
| 16225 # This option warns about operations that could result in | |
| 16226 # integer overflow. | |
| 16227 | |
| 16228 as_fn_append DEVWARN_CFLAGS " -Woverflow" | |
| 16229 | |
| 16230 # This option tells the compiler to display diagnostics for 64-bit | |
| 16231 # porting. | |
| 16232 | |
| 16233 as_fn_append DEVWARN_CFLAGS " -Wp64" | |
| 16234 | |
| 16235 # Determines whether warnings are issued for questionable pointer | |
| 16236 # arithmetic. | |
| 16237 | |
| 16238 as_fn_append DEVWARN_CFLAGS " -Wpointer-arith" | |
| 16239 | |
| 16240 # his option determines whether a warning is issued about the | |
| 16241 # use of #pragma once. | |
| 16242 | |
| 16243 as_fn_append DEVWARN_CFLAGS " -Wpragma-once" | |
| 16244 | |
| 16245 # Issue a warning when the order of member initializers does not | |
| 16246 # match the order in which they must be executed. | |
| 16247 # This option is supported with C++ only. | |
| 16248 | |
| 16249 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wreorder"]) | |
| 16250 | |
| 16251 # This option determines whether warnings are issued when a function | |
| 16252 # uses the default int return type or when a return statement is | |
| 16253 # used in a void function. | |
| 16254 | |
| 16255 as_fn_append DEVWARN_CFLAGS " -Wreturn-type" | |
| 16256 | |
| 16257 # This option determines whether a warning is issued when a variable | |
| 16258 # declaration hides a previous declaration. | |
| 16259 | |
| 16260 as_fn_append DEVWARN_CFLAGS " -Wshadow" | |
| 16261 | |
| 16262 # This option warns for code that might violate the optimizer's | |
| 16263 # strict aliasing rules. Warnings are issued only when using | |
| 16264 # -fstrict-aliasing or -ansi-alias. | |
| 16265 | |
| 16266 # AS_VAR_APPEND([DEVWARN_CFLAGS], [" -Wstrict-aliasing"]) | |
| 16267 | |
| 16268 # This option determines whether warnings are issued for functions | |
| 16269 # declared or defined without specified argument types. | |
| 16270 | |
| 16271 as_fn_append DEVWARN_CFLAGS " -Wstrict-prototypes" | |
| 16272 | |
| 16273 # This option determines whether warnings are issued if any trigraphs | |
| 16274 # are encountered that might change the meaning of the program. | |
| 16275 | |
| 16276 as_fn_append DEVWARN_CFLAGS " -Wtrigraphs" | |
| 16277 | |
| 16278 # This option determines whether a warning is issued if a variable | |
| 16279 # is used before being initialized. | |
| 16280 | |
| 16281 as_fn_append DEVWARN_CFLAGS " -Wuninitialized" | |
| 16282 | |
| 16283 # This option determines whether a warning is issued if an unknown | |
| 16284 # #pragma directive is used. | |
| 16285 | |
| 16286 as_fn_append DEVWARN_CFLAGS " -Wunknown-pragmas" | |
| 16287 | |
| 16288 # This option determines whether a warning is issued if a declared | |
| 16289 # function is not used. | |
| 16290 | |
| 16291 as_fn_append DEVWARN_CFLAGS " -Wunused-function" | |
| 16292 | |
| 16293 # This option determines whether a warning is issued if a local or | |
| 16294 # non-constant static variable is unused after being declared. | |
| 16295 | |
| 16296 as_fn_append DEVWARN_CFLAGS " -Wunused-variable" | |
| 16297 | |
| 16298 # This option issues a diagnostic message if const char* is | |
| 16299 # converted to (non-const) char *. | |
| 16300 | |
| 16301 as_fn_append DEVWARN_CFLAGS " -Wwrite-strings" | |
| 16302 | |
| 16303 # Disable warning #981 operands are evaluated in unspecified order | |
| 16304 # http://software.intel.com/en-us/articles/cdiag981/ | |
| 16305 | |
| 16306 as_fn_append DEVWARN_CFLAGS " -diag-disable 981" | |
| 16307 ;; #( | |
| 16308 *) : | |
| 16309 ;; | |
| 16310 esac | |
| 16311 | |
| 16312 fi | |
| 16313 | |
| 16314 | |
| 16315 | |
| 16316 | |
| 16317 | |
| 16318 | |
| 16319 # Compiler extra developer warning settings: --enable-devextrawarnings, | |
| 16320 # appends DEVWARN_CFLAGS | |
| 16321 # Will only have an effect if --enable-devwarnings also given | |
| 16322 | |
| 16323 # Check whether --enable-devextrawarnings was given. | |
| 16324 if test "${enable_devextrawarnings+set}" = set; then : | |
| 16325 enableval=$enable_devextrawarnings; | |
| 16326 fi | |
| 16327 | |
| 16328 | |
| 16329 if test "x${enable_devwarnings}" = "xyes" && | |
| 16330 test "x${enable_devextrawarnings}" = "xyes"; then : | |
| 16331 | |
| 16332 case ${CC} in #( | |
| 16333 gcc) : | |
| 16334 | |
| 16335 # flags used by Ubuntu 8.10 to check open has 2/3 arguments etc. | |
| 16336 | |
| 16337 | |
| 16338 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h | |
| 16339 | |
| 16340 | |
| 16341 # compiler flags | |
| 16342 | |
| 16343 CPPFLAGS="-fstack-protector ${CPPFLAGS}" | |
| 16344 | |
| 16345 # warnings used by Ubuntu 8.10 | |
| 16346 # -Wall already includes: | |
| 16347 # -Wformat | |
| 16348 | |
| 16349 as_fn_append DEVWARN_CFLAGS " -Wformat-security -Wl,-z,relro" | |
| 16350 | |
| 16351 # -Wpadded means moving char to end of structs - but also flags | |
| 16352 # end of struct so need to add padding at end | |
| 16353 | |
| 16354 as_fn_append DEVWARN_CFLAGS " -Wpadded" | |
| 16355 ;; #( | |
| 16356 *) : | |
| 16357 ;; | |
| 16358 esac | |
| 16359 | |
| 16360 fi | |
| 16361 | |
| 16362 | |
| 16363 | |
| 16364 | |
| 16365 # Compile deprecated functions still used in the book text for 6.2.0 | |
| 16366 | |
| 16367 # Check whether --enable-buildbookdeprecated was given. | |
| 16368 if test "${enable_buildbookdeprecated+set}" = set; then : | |
| 16369 enableval=$enable_buildbookdeprecated; | |
| 16370 fi | |
| 16371 | |
| 16372 | |
| 16373 # Compile all deprecated functions | |
| 16374 | |
| 16375 # Check whether --enable-buildalldeprecated was given. | |
| 16376 if test "${enable_buildalldeprecated+set}" = set; then : | |
| 16377 enableval=$enable_buildalldeprecated; | |
| 16378 fi | |
| 16379 | |
| 16380 | |
| 16381 if test "x${enable_buildbookdeprecated}" = "xyes" || | |
| 16382 test "x${enable_buildalldeprecated}" = "xyes"; then : | |
| 16383 | |
| 16384 | |
| 16385 $as_echo "#define AJ_COMPILE_DEPRECATED_BOOK 1" >>confdefs.h | |
| 16386 | |
| 16387 | |
| 16388 fi | |
| 16389 | |
| 16390 if test "x${enable_buildalldeprecated}" = "xyes"; then : | |
| 16391 | |
| 16392 | |
| 16393 $as_echo "#define AJ_COMPILE_DEPRECATED 1" >>confdefs.h | |
| 16394 | |
| 16395 | |
| 16396 fi | |
| 16397 | |
| 16398 | |
| 16399 | |
| 16400 | |
| 16401 # Add extensions to Solaris for some reentrant functions | |
| 16402 | |
| 16403 case ${host_os} in #( | |
| 16404 solaris*) : | |
| 16405 as_fn_append CFLAGS " -D__EXTENSIONS__" ;; #( | |
| 16406 *) : | |
| 16407 ;; | |
| 16408 esac | |
| 16409 | |
| 16410 | |
| 16411 | |
| 16412 | |
| 16413 # Test whether --with-sgiabi given for IRIX (n32m3 n32m4 64m3 64m4) | |
| 16414 | |
| 16415 case ${host_os} in #( | |
| 16416 irix*) : | |
| 16417 | |
| 16418 case ${CC} in #( | |
| 16419 gcc) : | |
| 16420 ;; #( | |
| 16421 cc) : | |
| 16422 # | |
| 16423 # Handle SGI compiler flags | |
| 16424 # | |
| 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sgiabi" >&5 | |
| 16426 $as_echo_n "checking for sgiabi... " >&6; } | |
| 16427 | |
| 16428 # Check whether --with-sgiabi was given. | |
| 16429 if test "${with_sgiabi+set}" = set; then : | |
| 16430 withval=$with_sgiabi; if test "$withval" != no ; then | |
| 16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 16432 $as_echo "yes" >&6; } | |
| 16433 | |
| 16434 case $host_os in | |
| 16435 irix*) | |
| 16436 if test "$withval" = n32m3 ; then | |
| 16437 CFLAGS="-n32 -mips3 $CFLAGS" | |
| 16438 LD="/usr/bin/ld -n32 -mips3 -IPA -L/usr/lib32" | |
| 16439 if test -d /usr/freeware ; then | |
| 16440 LDFLAGS="-L/usr/freeware/lib32 $LDFLAGS" | |
| 16441 fi | |
| 16442 fi | |
| 16443 | |
| 16444 if test "$withval" = n32m4 ; then | |
| 16445 CFLAGS="-n32 -mips4 $CFLAGS" | |
| 16446 LD="/usr/bin/ld -n32 -mips4 -IPA -L/usr/lib32" | |
| 16447 if test -d /usr/freeware ; then | |
| 16448 LDFLAGS="-L/usr/freeware/lib32 $LDFLAGS" | |
| 16449 fi | |
| 16450 fi | |
| 16451 | |
| 16452 if test "$withval" = 64m3 ; then | |
| 16453 CFLAGS="-64 -mips3 $CFLAGS" | |
| 16454 LD="/usr/bin/ld -64 -mips3 -IPA -L/usr/lib64" | |
| 16455 if test -d /usr/freeware ; then | |
| 16456 LDFLAGS="-L/usr/freeware/lib64 $LDFLAGS" | |
| 16457 fi | |
| 16458 fi | |
| 16459 | |
| 16460 if test "$withval" = 64m4 ; then | |
| 16461 CFLAGS="-64 -mips4 $CFLAGS" | |
| 16462 LD="/usr/bin/ld -64 -mips4 -IPA -L/usr/lib64" | |
| 16463 if test -d /usr/freeware ; then | |
| 16464 LDFLAGS="-L/usr/freeware/lib64 $LDFLAGS" | |
| 16465 fi | |
| 16466 fi | |
| 16467 ;; | |
| 16468 esac | |
| 16469 | |
| 16470 | |
| 16471 fi | |
| 16472 else | |
| 16473 | |
| 16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 16475 $as_echo "no" >&6; } | |
| 16476 | |
| 16477 fi | |
| 16478 | |
| 16479 | |
| 16480 ;; #( | |
| 16481 *) : | |
| 16482 ;; | |
| 16483 esac | |
| 16484 ;; #( | |
| 16485 *) : | |
| 16486 ;; | |
| 16487 esac | |
| 16488 | |
| 16489 | |
| 16490 | |
| 16491 | |
| 16492 | |
| 16493 | |
| 16494 PCRE_MAJOR="7" | |
| 16495 PCRE_MINOR="9" | |
| 16496 PCRE_DATE="11-Apr-2009" | |
| 16497 PCRE_VERSION="${PCRE_MAJOR}.${PCRE_MINOR}" | |
| 16498 | |
| 16499 | |
| 16500 POSIX_MALLOC_THRESHOLD="-DPOSIX_MALLOC_THRESHOLD=10" | |
| 16501 | |
| 16502 | |
| 16503 PCRE_LIB_VERSION="0:1:0" | |
| 16504 PCRE_POSIXLIB_VERSION="0:0:0" | |
| 16505 | |
| 16506 | |
| 16507 | |
| 16508 | |
| 16509 | |
| 16510 | |
| 16511 | |
| 16512 | |
| 16513 # Checks for header files. | |
| 16514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 | |
| 16515 $as_echo_n "checking for X... " >&6; } | |
| 16516 | |
| 16517 | |
| 16518 # Check whether --with-x was given. | |
| 16519 if test "${with_x+set}" = set; then : | |
| 16520 withval=$with_x; | |
| 16521 fi | |
| 16522 | |
| 16523 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
| 16524 if test "x$with_x" = xno; then | |
| 16525 # The user explicitly disabled X. | |
| 16526 have_x=disabled | |
| 16527 else | |
| 16528 case $x_includes,$x_libraries in #( | |
| 16529 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( | |
| 16530 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : | |
| 16531 $as_echo_n "(cached) " >&6 | |
| 16532 else | |
| 16533 # One or both of the vars are not set, and there is no cached value. | |
| 16534 ac_x_includes=no ac_x_libraries=no | |
| 16535 rm -f -r conftest.dir | |
| 16536 if mkdir conftest.dir; then | |
| 16537 cd conftest.dir | |
| 16538 cat >Imakefile <<'_ACEOF' | |
| 16539 incroot: | |
| 16540 @echo incroot='${INCROOT}' | |
| 16541 usrlibdir: | |
| 16542 @echo usrlibdir='${USRLIBDIR}' | |
| 16543 libdir: | |
| 16544 @echo libdir='${LIBDIR}' | |
| 16545 _ACEOF | |
| 16546 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then | |
| 16547 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
| 16548 for ac_var in incroot usrlibdir libdir; do | |
| 16549 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" | |
| 16550 done | |
| 16551 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
| 16552 for ac_extension in a so sl dylib la dll; do | |
| 16553 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && | |
| 16554 test -f "$ac_im_libdir/libX11.$ac_extension"; then | |
| 16555 ac_im_usrlibdir=$ac_im_libdir; break | |
| 16556 fi | |
| 16557 done | |
| 16558 # Screen out bogus values from the imake configuration. They are | |
| 16559 # bogus both because they are the default anyway, and because | |
| 16560 # using them would break gcc on systems where it needs fixed includes. | |
| 16561 case $ac_im_incroot in | |
| 16562 /usr/include) ac_x_includes= ;; | |
| 16563 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
| 16564 esac | |
| 16565 case $ac_im_usrlibdir in | |
| 16566 /usr/lib | /usr/lib64 | /lib | /lib64) ;; | |
| 16567 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
| 16568 esac | |
| 16569 fi | |
| 16570 cd .. | |
| 16571 rm -f -r conftest.dir | |
| 16572 fi | |
| 16573 | |
| 16574 # Standard set of common directories for X headers. | |
| 16575 # Check X11 before X11Rn because it is often a symlink to the current release. | |
| 16576 ac_x_header_dirs=' | |
| 16577 /usr/X11/include | |
| 16578 /usr/X11R7/include | |
| 16579 /usr/X11R6/include | |
| 16580 /usr/X11R5/include | |
| 16581 /usr/X11R4/include | |
| 16582 | |
| 16583 /usr/include/X11 | |
| 16584 /usr/include/X11R7 | |
| 16585 /usr/include/X11R6 | |
| 16586 /usr/include/X11R5 | |
| 16587 /usr/include/X11R4 | |
| 16588 | |
| 16589 /usr/local/X11/include | |
| 16590 /usr/local/X11R7/include | |
| 16591 /usr/local/X11R6/include | |
| 16592 /usr/local/X11R5/include | |
| 16593 /usr/local/X11R4/include | |
| 16594 | |
| 16595 /usr/local/include/X11 | |
| 16596 /usr/local/include/X11R7 | |
| 16597 /usr/local/include/X11R6 | |
| 16598 /usr/local/include/X11R5 | |
| 16599 /usr/local/include/X11R4 | |
| 16600 | |
| 16601 /usr/X386/include | |
| 16602 /usr/x386/include | |
| 16603 /usr/XFree86/include/X11 | |
| 16604 | |
| 16605 /usr/include | |
| 16606 /usr/local/include | |
| 16607 /usr/unsupported/include | |
| 16608 /usr/athena/include | |
| 16609 /usr/local/x11r5/include | |
| 16610 /usr/lpp/Xamples/include | |
| 16611 | |
| 16612 /usr/openwin/include | |
| 16613 /usr/openwin/share/include' | |
| 16614 | |
| 16615 if test "$ac_x_includes" = no; then | |
| 16616 # Guess where to find include files, by looking for Xlib.h. | |
| 16617 # First, try using that file with no special directory specified. | |
| 16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 16619 /* end confdefs.h. */ | |
| 16620 #include <X11/Xlib.h> | |
| 16621 _ACEOF | |
| 16622 if ac_fn_c_try_cpp "$LINENO"; then : | |
| 16623 # We can compile using X headers with no special include directory. | |
| 16624 ac_x_includes= | |
| 16625 else | |
| 16626 for ac_dir in $ac_x_header_dirs; do | |
| 16627 if test -r "$ac_dir/X11/Xlib.h"; then | |
| 16628 ac_x_includes=$ac_dir | |
| 16629 break | |
| 16630 fi | |
| 16631 done | |
| 16632 fi | |
| 16633 rm -f conftest.err conftest.i conftest.$ac_ext | |
| 16634 fi # $ac_x_includes = no | |
| 16635 | |
| 16636 if test "$ac_x_libraries" = no; then | |
| 16637 # Check for the libraries. | |
| 16638 # See if we find them without any special options. | |
| 16639 # Don't add to $LIBS permanently. | |
| 16640 ac_save_LIBS=$LIBS | |
| 16641 LIBS="-lX11 $LIBS" | |
| 16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 16643 /* end confdefs.h. */ | |
| 16644 #include <X11/Xlib.h> | |
| 16645 int | |
| 16646 main () | |
| 16647 { | |
| 16648 XrmInitialize () | |
| 16649 ; | |
| 16650 return 0; | |
| 16651 } | |
| 16652 _ACEOF | |
| 16653 if ac_fn_c_try_link "$LINENO"; then : | |
| 16654 LIBS=$ac_save_LIBS | |
| 16655 # We can link X programs with no special library path. | |
| 16656 ac_x_libraries= | |
| 16657 else | |
| 16658 LIBS=$ac_save_LIBS | |
| 16659 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
| 16660 do | |
| 16661 # Don't even attempt the hair of trying to link an X program! | |
| 16662 for ac_extension in a so sl dylib la dll; do | |
| 16663 if test -r "$ac_dir/libX11.$ac_extension"; then | |
| 16664 ac_x_libraries=$ac_dir | |
| 16665 break 2 | |
| 16666 fi | |
| 16667 done | |
| 16668 done | |
| 16669 fi | |
| 16670 rm -f core conftest.err conftest.$ac_objext \ | |
| 16671 conftest$ac_exeext conftest.$ac_ext | |
| 16672 fi # $ac_x_libraries = no | |
| 16673 | |
| 16674 case $ac_x_includes,$ac_x_libraries in #( | |
| 16675 no,* | *,no | *\'*) | |
| 16676 # Didn't find X, or a directory has "'" in its name. | |
| 16677 ac_cv_have_x="have_x=no";; #( | |
| 16678 *) | |
| 16679 # Record where we found X for the cache. | |
| 16680 ac_cv_have_x="have_x=yes\ | |
| 16681 ac_x_includes='$ac_x_includes'\ | |
| 16682 ac_x_libraries='$ac_x_libraries'" | |
| 16683 esac | |
| 16684 fi | |
| 16685 ;; #( | |
| 16686 *) have_x=yes;; | |
| 16687 esac | |
| 16688 eval "$ac_cv_have_x" | |
| 16689 fi # $with_x != no | |
| 16690 | |
| 16691 if test "$have_x" != yes; then | |
| 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 | |
| 16693 $as_echo "$have_x" >&6; } | |
| 16694 no_x=yes | |
| 16695 else | |
| 16696 # If each of the values was on the command line, it overrides each guess. | |
| 16697 test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
| 16698 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
| 16699 # Update the cache value to reflect the command line values. | |
| 16700 ac_cv_have_x="have_x=yes\ | |
| 16701 ac_x_includes='$x_includes'\ | |
| 16702 ac_x_libraries='$x_libraries'" | |
| 16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 | |
| 16704 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } | |
| 16705 fi | |
| 16706 | |
| 16707 if test "$no_x" = yes; then | |
| 16708 # Not all programs may use this symbol, but it does not hurt to define it. | |
| 16709 | |
| 16710 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h | |
| 16711 | |
| 16712 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
| 16713 else | |
| 16714 if test -n "$x_includes"; then | |
| 16715 X_CFLAGS="$X_CFLAGS -I$x_includes" | |
| 16716 fi | |
| 16717 | |
| 16718 # It would also be nice to do this for all -L options, not just this one. | |
| 16719 if test -n "$x_libraries"; then | |
| 16720 X_LIBS="$X_LIBS -L$x_libraries" | |
| 16721 # For Solaris; some versions of Sun CC require a space after -R and | |
| 16722 # others require no space. Words are not sufficient . . . . | |
| 16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 | |
| 16724 $as_echo_n "checking whether -R must be followed by a space... " >&6; } | |
| 16725 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
| 16726 ac_xsave_c_werror_flag=$ac_c_werror_flag | |
| 16727 ac_c_werror_flag=yes | |
| 16728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 16729 /* end confdefs.h. */ | |
| 16730 | |
| 16731 int | |
| 16732 main () | |
| 16733 { | |
| 16734 | |
| 16735 ; | |
| 16736 return 0; | |
| 16737 } | |
| 16738 _ACEOF | |
| 16739 if ac_fn_c_try_link "$LINENO"; then : | |
| 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 16741 $as_echo "no" >&6; } | |
| 16742 X_LIBS="$X_LIBS -R$x_libraries" | |
| 16743 else | |
| 16744 LIBS="$ac_xsave_LIBS -R $x_libraries" | |
| 16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 16746 /* end confdefs.h. */ | |
| 16747 | |
| 16748 int | |
| 16749 main () | |
| 16750 { | |
| 16751 | |
| 16752 ; | |
| 16753 return 0; | |
| 16754 } | |
| 16755 _ACEOF | |
| 16756 if ac_fn_c_try_link "$LINENO"; then : | |
| 16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 16758 $as_echo "yes" >&6; } | |
| 16759 X_LIBS="$X_LIBS -R $x_libraries" | |
| 16760 else | |
| 16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 | |
| 16762 $as_echo "neither works" >&6; } | |
| 16763 fi | |
| 16764 rm -f core conftest.err conftest.$ac_objext \ | |
| 16765 conftest$ac_exeext conftest.$ac_ext | |
| 16766 fi | |
| 16767 rm -f core conftest.err conftest.$ac_objext \ | |
| 16768 conftest$ac_exeext conftest.$ac_ext | |
| 16769 ac_c_werror_flag=$ac_xsave_c_werror_flag | |
| 16770 LIBS=$ac_xsave_LIBS | |
| 16771 fi | |
| 16772 | |
| 16773 # Check for system-dependent libraries X programs must link with. | |
| 16774 # Do this before checking for the system-independent R6 libraries | |
| 16775 # (-lICE), since we may need -lsocket or whatever for X linking. | |
| 16776 | |
| 16777 if test "$ISC" = yes; then | |
| 16778 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
| 16779 else | |
| 16780 # Martyn Johnson says this is needed for Ultrix, if the X | |
| 16781 # libraries were built with DECnet support. And Karl Berry says | |
| 16782 # the Alpha needs dnet_stub (dnet does not exist). | |
| 16783 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
| 16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 16785 /* end confdefs.h. */ | |
| 16786 | |
| 16787 /* Override any GCC internal prototype to avoid an error. | |
| 16788 Use char because int might match the return type of a GCC | |
| 16789 builtin and then its argument prototype would still apply. */ | |
| 16790 #ifdef __cplusplus | |
| 16791 extern "C" | |
| 16792 #endif | |
| 16793 char XOpenDisplay (); | |
| 16794 int | |
| 16795 main () | |
| 16796 { | |
| 16797 return XOpenDisplay (); | |
| 16798 ; | |
| 16799 return 0; | |
| 16800 } | |
| 16801 _ACEOF | |
| 16802 if ac_fn_c_try_link "$LINENO"; then : | |
| 16803 | |
| 16804 else | |
| 16805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 | |
| 16806 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } | |
| 16807 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : | |
| 16808 $as_echo_n "(cached) " >&6 | |
| 16809 else | |
| 16810 ac_check_lib_save_LIBS=$LIBS | |
| 16811 LIBS="-ldnet $LIBS" | |
| 16812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 16813 /* end confdefs.h. */ | |
| 16814 | |
| 16815 /* Override any GCC internal prototype to avoid an error. | |
| 16816 Use char because int might match the return type of a GCC | |
| 16817 builtin and then its argument prototype would still apply. */ | |
| 16818 #ifdef __cplusplus | |
| 16819 extern "C" | |
| 16820 #endif | |
| 16821 char dnet_ntoa (); | |
| 16822 int | |
| 16823 main () | |
| 16824 { | |
| 16825 return dnet_ntoa (); | |
| 16826 ; | |
| 16827 return 0; | |
| 16828 } | |
| 16829 _ACEOF | |
| 16830 if ac_fn_c_try_link "$LINENO"; then : | |
| 16831 ac_cv_lib_dnet_dnet_ntoa=yes | |
| 16832 else | |
| 16833 ac_cv_lib_dnet_dnet_ntoa=no | |
| 16834 fi | |
| 16835 rm -f core conftest.err conftest.$ac_objext \ | |
| 16836 conftest$ac_exeext conftest.$ac_ext | |
| 16837 LIBS=$ac_check_lib_save_LIBS | |
| 16838 fi | |
| 16839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
| 16840 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } | |
| 16841 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : | |
| 16842 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
| 16843 fi | |
| 16844 | |
| 16845 if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
| 16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 | |
| 16847 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } | |
| 16848 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : | |
| 16849 $as_echo_n "(cached) " >&6 | |
| 16850 else | |
| 16851 ac_check_lib_save_LIBS=$LIBS | |
| 16852 LIBS="-ldnet_stub $LIBS" | |
| 16853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 16854 /* end confdefs.h. */ | |
| 16855 | |
| 16856 /* Override any GCC internal prototype to avoid an error. | |
| 16857 Use char because int might match the return type of a GCC | |
| 16858 builtin and then its argument prototype would still apply. */ | |
| 16859 #ifdef __cplusplus | |
| 16860 extern "C" | |
| 16861 #endif | |
| 16862 char dnet_ntoa (); | |
| 16863 int | |
| 16864 main () | |
| 16865 { | |
| 16866 return dnet_ntoa (); | |
| 16867 ; | |
| 16868 return 0; | |
| 16869 } | |
| 16870 _ACEOF | |
| 16871 if ac_fn_c_try_link "$LINENO"; then : | |
| 16872 ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
| 16873 else | |
| 16874 ac_cv_lib_dnet_stub_dnet_ntoa=no | |
| 16875 fi | |
| 16876 rm -f core conftest.err conftest.$ac_objext \ | |
| 16877 conftest$ac_exeext conftest.$ac_ext | |
| 16878 LIBS=$ac_check_lib_save_LIBS | |
| 16879 fi | |
| 16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
| 16881 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } | |
| 16882 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : | |
| 16883 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
| 16884 fi | |
| 16885 | |
| 16886 fi | |
| 16887 fi | |
| 16888 rm -f core conftest.err conftest.$ac_objext \ | |
| 16889 conftest$ac_exeext conftest.$ac_ext | |
| 16890 LIBS="$ac_xsave_LIBS" | |
| 16891 | |
| 16892 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
| 16893 # to get the SysV transport functions. | |
| 16894 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
| 16895 # needs -lnsl. | |
| 16896 # The nsl library prevents programs from opening the X display | |
| 16897 # on Irix 5.2, according to T.E. Dickey. | |
| 16898 # The functions gethostbyname, getservbyname, and inet_addr are | |
| 16899 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
| 16900 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" | |
| 16901 if test "x$ac_cv_func_gethostbyname" = xyes; then : | |
| 16902 | |
| 16903 fi | |
| 16904 | |
| 16905 if test $ac_cv_func_gethostbyname = no; then | |
| 16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 | |
| 16907 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } | |
| 16908 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : | |
| 16909 $as_echo_n "(cached) " >&6 | |
| 16910 else | |
| 16911 ac_check_lib_save_LIBS=$LIBS | |
| 16912 LIBS="-lnsl $LIBS" | |
| 16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 16914 /* end confdefs.h. */ | |
| 16915 | |
| 16916 /* Override any GCC internal prototype to avoid an error. | |
| 16917 Use char because int might match the return type of a GCC | |
| 16918 builtin and then its argument prototype would still apply. */ | |
| 16919 #ifdef __cplusplus | |
| 16920 extern "C" | |
| 16921 #endif | |
| 16922 char gethostbyname (); | |
| 16923 int | |
| 16924 main () | |
| 16925 { | |
| 16926 return gethostbyname (); | |
| 16927 ; | |
| 16928 return 0; | |
| 16929 } | |
| 16930 _ACEOF | |
| 16931 if ac_fn_c_try_link "$LINENO"; then : | |
| 16932 ac_cv_lib_nsl_gethostbyname=yes | |
| 16933 else | |
| 16934 ac_cv_lib_nsl_gethostbyname=no | |
| 16935 fi | |
| 16936 rm -f core conftest.err conftest.$ac_objext \ | |
| 16937 conftest$ac_exeext conftest.$ac_ext | |
| 16938 LIBS=$ac_check_lib_save_LIBS | |
| 16939 fi | |
| 16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
| 16941 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } | |
| 16942 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : | |
| 16943 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
| 16944 fi | |
| 16945 | |
| 16946 if test $ac_cv_lib_nsl_gethostbyname = no; then | |
| 16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 | |
| 16948 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } | |
| 16949 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : | |
| 16950 $as_echo_n "(cached) " >&6 | |
| 16951 else | |
| 16952 ac_check_lib_save_LIBS=$LIBS | |
| 16953 LIBS="-lbsd $LIBS" | |
| 16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 16955 /* end confdefs.h. */ | |
| 16956 | |
| 16957 /* Override any GCC internal prototype to avoid an error. | |
| 16958 Use char because int might match the return type of a GCC | |
| 16959 builtin and then its argument prototype would still apply. */ | |
| 16960 #ifdef __cplusplus | |
| 16961 extern "C" | |
| 16962 #endif | |
| 16963 char gethostbyname (); | |
| 16964 int | |
| 16965 main () | |
| 16966 { | |
| 16967 return gethostbyname (); | |
| 16968 ; | |
| 16969 return 0; | |
| 16970 } | |
| 16971 _ACEOF | |
| 16972 if ac_fn_c_try_link "$LINENO"; then : | |
| 16973 ac_cv_lib_bsd_gethostbyname=yes | |
| 16974 else | |
| 16975 ac_cv_lib_bsd_gethostbyname=no | |
| 16976 fi | |
| 16977 rm -f core conftest.err conftest.$ac_objext \ | |
| 16978 conftest$ac_exeext conftest.$ac_ext | |
| 16979 LIBS=$ac_check_lib_save_LIBS | |
| 16980 fi | |
| 16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
| 16982 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } | |
| 16983 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : | |
| 16984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
| 16985 fi | |
| 16986 | |
| 16987 fi | |
| 16988 fi | |
| 16989 | |
| 16990 # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
| 16991 # socket/setsockopt and other routines are undefined under SCO ODT | |
| 16992 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
| 16993 # on later versions), says Simon Leinen: it contains gethostby* | |
| 16994 # variants that don't use the name server (or something). -lsocket | |
| 16995 # must be given before -lnsl if both are needed. We assume that | |
| 16996 # if connect needs -lnsl, so does gethostbyname. | |
| 16997 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" | |
| 16998 if test "x$ac_cv_func_connect" = xyes; then : | |
| 16999 | |
| 17000 fi | |
| 17001 | |
| 17002 if test $ac_cv_func_connect = no; then | |
| 17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 | |
| 17004 $as_echo_n "checking for connect in -lsocket... " >&6; } | |
| 17005 if ${ac_cv_lib_socket_connect+:} false; then : | |
| 17006 $as_echo_n "(cached) " >&6 | |
| 17007 else | |
| 17008 ac_check_lib_save_LIBS=$LIBS | |
| 17009 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
| 17010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17011 /* end confdefs.h. */ | |
| 17012 | |
| 17013 /* Override any GCC internal prototype to avoid an error. | |
| 17014 Use char because int might match the return type of a GCC | |
| 17015 builtin and then its argument prototype would still apply. */ | |
| 17016 #ifdef __cplusplus | |
| 17017 extern "C" | |
| 17018 #endif | |
| 17019 char connect (); | |
| 17020 int | |
| 17021 main () | |
| 17022 { | |
| 17023 return connect (); | |
| 17024 ; | |
| 17025 return 0; | |
| 17026 } | |
| 17027 _ACEOF | |
| 17028 if ac_fn_c_try_link "$LINENO"; then : | |
| 17029 ac_cv_lib_socket_connect=yes | |
| 17030 else | |
| 17031 ac_cv_lib_socket_connect=no | |
| 17032 fi | |
| 17033 rm -f core conftest.err conftest.$ac_objext \ | |
| 17034 conftest$ac_exeext conftest.$ac_ext | |
| 17035 LIBS=$ac_check_lib_save_LIBS | |
| 17036 fi | |
| 17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 | |
| 17038 $as_echo "$ac_cv_lib_socket_connect" >&6; } | |
| 17039 if test "x$ac_cv_lib_socket_connect" = xyes; then : | |
| 17040 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
| 17041 fi | |
| 17042 | |
| 17043 fi | |
| 17044 | |
| 17045 # Guillermo Gomez says -lposix is necessary on A/UX. | |
| 17046 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" | |
| 17047 if test "x$ac_cv_func_remove" = xyes; then : | |
| 17048 | |
| 17049 fi | |
| 17050 | |
| 17051 if test $ac_cv_func_remove = no; then | |
| 17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 | |
| 17053 $as_echo_n "checking for remove in -lposix... " >&6; } | |
| 17054 if ${ac_cv_lib_posix_remove+:} false; then : | |
| 17055 $as_echo_n "(cached) " >&6 | |
| 17056 else | |
| 17057 ac_check_lib_save_LIBS=$LIBS | |
| 17058 LIBS="-lposix $LIBS" | |
| 17059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17060 /* end confdefs.h. */ | |
| 17061 | |
| 17062 /* Override any GCC internal prototype to avoid an error. | |
| 17063 Use char because int might match the return type of a GCC | |
| 17064 builtin and then its argument prototype would still apply. */ | |
| 17065 #ifdef __cplusplus | |
| 17066 extern "C" | |
| 17067 #endif | |
| 17068 char remove (); | |
| 17069 int | |
| 17070 main () | |
| 17071 { | |
| 17072 return remove (); | |
| 17073 ; | |
| 17074 return 0; | |
| 17075 } | |
| 17076 _ACEOF | |
| 17077 if ac_fn_c_try_link "$LINENO"; then : | |
| 17078 ac_cv_lib_posix_remove=yes | |
| 17079 else | |
| 17080 ac_cv_lib_posix_remove=no | |
| 17081 fi | |
| 17082 rm -f core conftest.err conftest.$ac_objext \ | |
| 17083 conftest$ac_exeext conftest.$ac_ext | |
| 17084 LIBS=$ac_check_lib_save_LIBS | |
| 17085 fi | |
| 17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 | |
| 17087 $as_echo "$ac_cv_lib_posix_remove" >&6; } | |
| 17088 if test "x$ac_cv_lib_posix_remove" = xyes; then : | |
| 17089 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
| 17090 fi | |
| 17091 | |
| 17092 fi | |
| 17093 | |
| 17094 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
| 17095 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" | |
| 17096 if test "x$ac_cv_func_shmat" = xyes; then : | |
| 17097 | |
| 17098 fi | |
| 17099 | |
| 17100 if test $ac_cv_func_shmat = no; then | |
| 17101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 | |
| 17102 $as_echo_n "checking for shmat in -lipc... " >&6; } | |
| 17103 if ${ac_cv_lib_ipc_shmat+:} false; then : | |
| 17104 $as_echo_n "(cached) " >&6 | |
| 17105 else | |
| 17106 ac_check_lib_save_LIBS=$LIBS | |
| 17107 LIBS="-lipc $LIBS" | |
| 17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17109 /* end confdefs.h. */ | |
| 17110 | |
| 17111 /* Override any GCC internal prototype to avoid an error. | |
| 17112 Use char because int might match the return type of a GCC | |
| 17113 builtin and then its argument prototype would still apply. */ | |
| 17114 #ifdef __cplusplus | |
| 17115 extern "C" | |
| 17116 #endif | |
| 17117 char shmat (); | |
| 17118 int | |
| 17119 main () | |
| 17120 { | |
| 17121 return shmat (); | |
| 17122 ; | |
| 17123 return 0; | |
| 17124 } | |
| 17125 _ACEOF | |
| 17126 if ac_fn_c_try_link "$LINENO"; then : | |
| 17127 ac_cv_lib_ipc_shmat=yes | |
| 17128 else | |
| 17129 ac_cv_lib_ipc_shmat=no | |
| 17130 fi | |
| 17131 rm -f core conftest.err conftest.$ac_objext \ | |
| 17132 conftest$ac_exeext conftest.$ac_ext | |
| 17133 LIBS=$ac_check_lib_save_LIBS | |
| 17134 fi | |
| 17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 | |
| 17136 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } | |
| 17137 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : | |
| 17138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
| 17139 fi | |
| 17140 | |
| 17141 fi | |
| 17142 fi | |
| 17143 | |
| 17144 # Check for libraries that X11R6 Xt/Xaw programs need. | |
| 17145 ac_save_LDFLAGS=$LDFLAGS | |
| 17146 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
| 17147 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
| 17148 # check for ICE first), but we must link in the order -lSM -lICE or | |
| 17149 # we get undefined symbols. So assume we have SM if we have ICE. | |
| 17150 # These have to be linked with before -lX11, unlike the other | |
| 17151 # libraries we check for below, so use a different variable. | |
| 17152 # John Interrante, Karl Berry | |
| 17153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 | |
| 17154 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } | |
| 17155 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : | |
| 17156 $as_echo_n "(cached) " >&6 | |
| 17157 else | |
| 17158 ac_check_lib_save_LIBS=$LIBS | |
| 17159 LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
| 17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17161 /* end confdefs.h. */ | |
| 17162 | |
| 17163 /* Override any GCC internal prototype to avoid an error. | |
| 17164 Use char because int might match the return type of a GCC | |
| 17165 builtin and then its argument prototype would still apply. */ | |
| 17166 #ifdef __cplusplus | |
| 17167 extern "C" | |
| 17168 #endif | |
| 17169 char IceConnectionNumber (); | |
| 17170 int | |
| 17171 main () | |
| 17172 { | |
| 17173 return IceConnectionNumber (); | |
| 17174 ; | |
| 17175 return 0; | |
| 17176 } | |
| 17177 _ACEOF | |
| 17178 if ac_fn_c_try_link "$LINENO"; then : | |
| 17179 ac_cv_lib_ICE_IceConnectionNumber=yes | |
| 17180 else | |
| 17181 ac_cv_lib_ICE_IceConnectionNumber=no | |
| 17182 fi | |
| 17183 rm -f core conftest.err conftest.$ac_objext \ | |
| 17184 conftest$ac_exeext conftest.$ac_ext | |
| 17185 LIBS=$ac_check_lib_save_LIBS | |
| 17186 fi | |
| 17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
| 17188 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } | |
| 17189 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : | |
| 17190 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
| 17191 fi | |
| 17192 | |
| 17193 LDFLAGS=$ac_save_LDFLAGS | |
| 17194 | |
| 17195 fi | |
| 17196 | |
| 17197 ac_header_dirent=no | |
| 17198 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
| 17199 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
| 17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
| 17201 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } | |
| 17202 if eval \${$as_ac_Header+:} false; then : | |
| 17203 $as_echo_n "(cached) " >&6 | |
| 17204 else | |
| 17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17206 /* end confdefs.h. */ | |
| 17207 #include <sys/types.h> | |
| 17208 #include <$ac_hdr> | |
| 17209 | |
| 17210 int | |
| 17211 main () | |
| 17212 { | |
| 17213 if ((DIR *) 0) | |
| 17214 return 0; | |
| 17215 ; | |
| 17216 return 0; | |
| 17217 } | |
| 17218 _ACEOF | |
| 17219 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17220 eval "$as_ac_Header=yes" | |
| 17221 else | |
| 17222 eval "$as_ac_Header=no" | |
| 17223 fi | |
| 17224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17225 fi | |
| 17226 eval ac_res=\$$as_ac_Header | |
| 17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
| 17228 $as_echo "$ac_res" >&6; } | |
| 17229 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
| 17230 cat >>confdefs.h <<_ACEOF | |
| 17231 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
| 17232 _ACEOF | |
| 17233 | |
| 17234 ac_header_dirent=$ac_hdr; break | |
| 17235 fi | |
| 17236 | |
| 17237 done | |
| 17238 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
| 17239 if test $ac_header_dirent = dirent.h; then | |
| 17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
| 17241 $as_echo_n "checking for library containing opendir... " >&6; } | |
| 17242 if ${ac_cv_search_opendir+:} false; then : | |
| 17243 $as_echo_n "(cached) " >&6 | |
| 17244 else | |
| 17245 ac_func_search_save_LIBS=$LIBS | |
| 17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17247 /* end confdefs.h. */ | |
| 17248 | |
| 17249 /* Override any GCC internal prototype to avoid an error. | |
| 17250 Use char because int might match the return type of a GCC | |
| 17251 builtin and then its argument prototype would still apply. */ | |
| 17252 #ifdef __cplusplus | |
| 17253 extern "C" | |
| 17254 #endif | |
| 17255 char opendir (); | |
| 17256 int | |
| 17257 main () | |
| 17258 { | |
| 17259 return opendir (); | |
| 17260 ; | |
| 17261 return 0; | |
| 17262 } | |
| 17263 _ACEOF | |
| 17264 for ac_lib in '' dir; do | |
| 17265 if test -z "$ac_lib"; then | |
| 17266 ac_res="none required" | |
| 17267 else | |
| 17268 ac_res=-l$ac_lib | |
| 17269 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
| 17270 fi | |
| 17271 if ac_fn_c_try_link "$LINENO"; then : | |
| 17272 ac_cv_search_opendir=$ac_res | |
| 17273 fi | |
| 17274 rm -f core conftest.err conftest.$ac_objext \ | |
| 17275 conftest$ac_exeext | |
| 17276 if ${ac_cv_search_opendir+:} false; then : | |
| 17277 break | |
| 17278 fi | |
| 17279 done | |
| 17280 if ${ac_cv_search_opendir+:} false; then : | |
| 17281 | |
| 17282 else | |
| 17283 ac_cv_search_opendir=no | |
| 17284 fi | |
| 17285 rm conftest.$ac_ext | |
| 17286 LIBS=$ac_func_search_save_LIBS | |
| 17287 fi | |
| 17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
| 17289 $as_echo "$ac_cv_search_opendir" >&6; } | |
| 17290 ac_res=$ac_cv_search_opendir | |
| 17291 if test "$ac_res" != no; then : | |
| 17292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
| 17293 | |
| 17294 fi | |
| 17295 | |
| 17296 else | |
| 17297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
| 17298 $as_echo_n "checking for library containing opendir... " >&6; } | |
| 17299 if ${ac_cv_search_opendir+:} false; then : | |
| 17300 $as_echo_n "(cached) " >&6 | |
| 17301 else | |
| 17302 ac_func_search_save_LIBS=$LIBS | |
| 17303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17304 /* end confdefs.h. */ | |
| 17305 | |
| 17306 /* Override any GCC internal prototype to avoid an error. | |
| 17307 Use char because int might match the return type of a GCC | |
| 17308 builtin and then its argument prototype would still apply. */ | |
| 17309 #ifdef __cplusplus | |
| 17310 extern "C" | |
| 17311 #endif | |
| 17312 char opendir (); | |
| 17313 int | |
| 17314 main () | |
| 17315 { | |
| 17316 return opendir (); | |
| 17317 ; | |
| 17318 return 0; | |
| 17319 } | |
| 17320 _ACEOF | |
| 17321 for ac_lib in '' x; do | |
| 17322 if test -z "$ac_lib"; then | |
| 17323 ac_res="none required" | |
| 17324 else | |
| 17325 ac_res=-l$ac_lib | |
| 17326 LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
| 17327 fi | |
| 17328 if ac_fn_c_try_link "$LINENO"; then : | |
| 17329 ac_cv_search_opendir=$ac_res | |
| 17330 fi | |
| 17331 rm -f core conftest.err conftest.$ac_objext \ | |
| 17332 conftest$ac_exeext | |
| 17333 if ${ac_cv_search_opendir+:} false; then : | |
| 17334 break | |
| 17335 fi | |
| 17336 done | |
| 17337 if ${ac_cv_search_opendir+:} false; then : | |
| 17338 | |
| 17339 else | |
| 17340 ac_cv_search_opendir=no | |
| 17341 fi | |
| 17342 rm conftest.$ac_ext | |
| 17343 LIBS=$ac_func_search_save_LIBS | |
| 17344 fi | |
| 17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
| 17346 $as_echo "$ac_cv_search_opendir" >&6; } | |
| 17347 ac_res=$ac_cv_search_opendir | |
| 17348 if test "$ac_res" != no; then : | |
| 17349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
| 17350 | |
| 17351 fi | |
| 17352 | |
| 17353 fi | |
| 17354 | |
| 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
| 17356 $as_echo_n "checking for ANSI C header files... " >&6; } | |
| 17357 if ${ac_cv_header_stdc+:} false; then : | |
| 17358 $as_echo_n "(cached) " >&6 | |
| 17359 else | |
| 17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17361 /* end confdefs.h. */ | |
| 17362 #include <stdlib.h> | |
| 17363 #include <stdarg.h> | |
| 17364 #include <string.h> | |
| 17365 #include <float.h> | |
| 17366 | |
| 17367 int | |
| 17368 main () | |
| 17369 { | |
| 17370 | |
| 17371 ; | |
| 17372 return 0; | |
| 17373 } | |
| 17374 _ACEOF | |
| 17375 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17376 ac_cv_header_stdc=yes | |
| 17377 else | |
| 17378 ac_cv_header_stdc=no | |
| 17379 fi | |
| 17380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17381 | |
| 17382 if test $ac_cv_header_stdc = yes; then | |
| 17383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
| 17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17385 /* end confdefs.h. */ | |
| 17386 #include <string.h> | |
| 17387 | |
| 17388 _ACEOF | |
| 17389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
| 17390 $EGREP "memchr" >/dev/null 2>&1; then : | |
| 17391 | |
| 17392 else | |
| 17393 ac_cv_header_stdc=no | |
| 17394 fi | |
| 17395 rm -f conftest* | |
| 17396 | |
| 17397 fi | |
| 17398 | |
| 17399 if test $ac_cv_header_stdc = yes; then | |
| 17400 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
| 17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17402 /* end confdefs.h. */ | |
| 17403 #include <stdlib.h> | |
| 17404 | |
| 17405 _ACEOF | |
| 17406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
| 17407 $EGREP "free" >/dev/null 2>&1; then : | |
| 17408 | |
| 17409 else | |
| 17410 ac_cv_header_stdc=no | |
| 17411 fi | |
| 17412 rm -f conftest* | |
| 17413 | |
| 17414 fi | |
| 17415 | |
| 17416 if test $ac_cv_header_stdc = yes; then | |
| 17417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
| 17418 if test "$cross_compiling" = yes; then : | |
| 17419 : | |
| 17420 else | |
| 17421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17422 /* end confdefs.h. */ | |
| 17423 #include <ctype.h> | |
| 17424 #include <stdlib.h> | |
| 17425 #if ((' ' & 0x0FF) == 0x020) | |
| 17426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
| 17427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
| 17428 #else | |
| 17429 # define ISLOWER(c) \ | |
| 17430 (('a' <= (c) && (c) <= 'i') \ | |
| 17431 || ('j' <= (c) && (c) <= 'r') \ | |
| 17432 || ('s' <= (c) && (c) <= 'z')) | |
| 17433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
| 17434 #endif | |
| 17435 | |
| 17436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
| 17437 int | |
| 17438 main () | |
| 17439 { | |
| 17440 int i; | |
| 17441 for (i = 0; i < 256; i++) | |
| 17442 if (XOR (islower (i), ISLOWER (i)) | |
| 17443 || toupper (i) != TOUPPER (i)) | |
| 17444 return 2; | |
| 17445 return 0; | |
| 17446 } | |
| 17447 _ACEOF | |
| 17448 if ac_fn_c_try_run "$LINENO"; then : | |
| 17449 | |
| 17450 else | |
| 17451 ac_cv_header_stdc=no | |
| 17452 fi | |
| 17453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
| 17454 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 17455 fi | |
| 17456 | |
| 17457 fi | |
| 17458 fi | |
| 17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
| 17460 $as_echo "$ac_cv_header_stdc" >&6; } | |
| 17461 if test $ac_cv_header_stdc = yes; then | |
| 17462 | |
| 17463 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
| 17464 | |
| 17465 fi | |
| 17466 | |
| 17467 | |
| 17468 for ac_header in unistd.h TargetConfig.h | |
| 17469 do : | |
| 17470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
| 17471 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
| 17472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
| 17473 cat >>confdefs.h <<_ACEOF | |
| 17474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
| 17475 _ACEOF | |
| 17476 | |
| 17477 fi | |
| 17478 | |
| 17479 done | |
| 17480 | |
| 17481 | |
| 17482 | |
| 17483 # Checks for typedefs, structures, and compiler characteristics. | |
| 17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
| 17485 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
| 17486 if ${ac_cv_c_bigendian+:} false; then : | |
| 17487 $as_echo_n "(cached) " >&6 | |
| 17488 else | |
| 17489 ac_cv_c_bigendian=unknown | |
| 17490 # See if we're dealing with a universal compiler. | |
| 17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17492 /* end confdefs.h. */ | |
| 17493 #ifndef __APPLE_CC__ | |
| 17494 not a universal capable compiler | |
| 17495 #endif | |
| 17496 typedef int dummy; | |
| 17497 | |
| 17498 _ACEOF | |
| 17499 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17500 | |
| 17501 # Check for potential -arch flags. It is not universal unless | |
| 17502 # there are at least two -arch flags with different values. | |
| 17503 ac_arch= | |
| 17504 ac_prev= | |
| 17505 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
| 17506 if test -n "$ac_prev"; then | |
| 17507 case $ac_word in | |
| 17508 i?86 | x86_64 | ppc | ppc64) | |
| 17509 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
| 17510 ac_arch=$ac_word | |
| 17511 else | |
| 17512 ac_cv_c_bigendian=universal | |
| 17513 break | |
| 17514 fi | |
| 17515 ;; | |
| 17516 esac | |
| 17517 ac_prev= | |
| 17518 elif test "x$ac_word" = "x-arch"; then | |
| 17519 ac_prev=arch | |
| 17520 fi | |
| 17521 done | |
| 17522 fi | |
| 17523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17524 if test $ac_cv_c_bigendian = unknown; then | |
| 17525 # See if sys/param.h defines the BYTE_ORDER macro. | |
| 17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17527 /* end confdefs.h. */ | |
| 17528 #include <sys/types.h> | |
| 17529 #include <sys/param.h> | |
| 17530 | |
| 17531 int | |
| 17532 main () | |
| 17533 { | |
| 17534 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
| 17535 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
| 17536 && LITTLE_ENDIAN) | |
| 17537 bogus endian macros | |
| 17538 #endif | |
| 17539 | |
| 17540 ; | |
| 17541 return 0; | |
| 17542 } | |
| 17543 _ACEOF | |
| 17544 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17545 # It does; now see whether it defined to BIG_ENDIAN or not. | |
| 17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17547 /* end confdefs.h. */ | |
| 17548 #include <sys/types.h> | |
| 17549 #include <sys/param.h> | |
| 17550 | |
| 17551 int | |
| 17552 main () | |
| 17553 { | |
| 17554 #if BYTE_ORDER != BIG_ENDIAN | |
| 17555 not big endian | |
| 17556 #endif | |
| 17557 | |
| 17558 ; | |
| 17559 return 0; | |
| 17560 } | |
| 17561 _ACEOF | |
| 17562 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17563 ac_cv_c_bigendian=yes | |
| 17564 else | |
| 17565 ac_cv_c_bigendian=no | |
| 17566 fi | |
| 17567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17568 fi | |
| 17569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17570 fi | |
| 17571 if test $ac_cv_c_bigendian = unknown; then | |
| 17572 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
| 17573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17574 /* end confdefs.h. */ | |
| 17575 #include <limits.h> | |
| 17576 | |
| 17577 int | |
| 17578 main () | |
| 17579 { | |
| 17580 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
| 17581 bogus endian macros | |
| 17582 #endif | |
| 17583 | |
| 17584 ; | |
| 17585 return 0; | |
| 17586 } | |
| 17587 _ACEOF | |
| 17588 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17589 # It does; now see whether it defined to _BIG_ENDIAN or not. | |
| 17590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17591 /* end confdefs.h. */ | |
| 17592 #include <limits.h> | |
| 17593 | |
| 17594 int | |
| 17595 main () | |
| 17596 { | |
| 17597 #ifndef _BIG_ENDIAN | |
| 17598 not big endian | |
| 17599 #endif | |
| 17600 | |
| 17601 ; | |
| 17602 return 0; | |
| 17603 } | |
| 17604 _ACEOF | |
| 17605 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17606 ac_cv_c_bigendian=yes | |
| 17607 else | |
| 17608 ac_cv_c_bigendian=no | |
| 17609 fi | |
| 17610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17611 fi | |
| 17612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17613 fi | |
| 17614 if test $ac_cv_c_bigendian = unknown; then | |
| 17615 # Compile a test program. | |
| 17616 if test "$cross_compiling" = yes; then : | |
| 17617 # Try to guess by grepping values from an object file. | |
| 17618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17619 /* end confdefs.h. */ | |
| 17620 short int ascii_mm[] = | |
| 17621 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
| 17622 short int ascii_ii[] = | |
| 17623 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
| 17624 int use_ascii (int i) { | |
| 17625 return ascii_mm[i] + ascii_ii[i]; | |
| 17626 } | |
| 17627 short int ebcdic_ii[] = | |
| 17628 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
| 17629 short int ebcdic_mm[] = | |
| 17630 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
| 17631 int use_ebcdic (int i) { | |
| 17632 return ebcdic_mm[i] + ebcdic_ii[i]; | |
| 17633 } | |
| 17634 extern int foo; | |
| 17635 | |
| 17636 int | |
| 17637 main () | |
| 17638 { | |
| 17639 return use_ascii (foo) == use_ebcdic (foo); | |
| 17640 ; | |
| 17641 return 0; | |
| 17642 } | |
| 17643 _ACEOF | |
| 17644 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17645 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
| 17646 ac_cv_c_bigendian=yes | |
| 17647 fi | |
| 17648 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
| 17649 if test "$ac_cv_c_bigendian" = unknown; then | |
| 17650 ac_cv_c_bigendian=no | |
| 17651 else | |
| 17652 # finding both strings is unlikely to happen, but who knows? | |
| 17653 ac_cv_c_bigendian=unknown | |
| 17654 fi | |
| 17655 fi | |
| 17656 fi | |
| 17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17658 else | |
| 17659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17660 /* end confdefs.h. */ | |
| 17661 $ac_includes_default | |
| 17662 int | |
| 17663 main () | |
| 17664 { | |
| 17665 | |
| 17666 /* Are we little or big endian? From Harbison&Steele. */ | |
| 17667 union | |
| 17668 { | |
| 17669 long int l; | |
| 17670 char c[sizeof (long int)]; | |
| 17671 } u; | |
| 17672 u.l = 1; | |
| 17673 return u.c[sizeof (long int) - 1] == 1; | |
| 17674 | |
| 17675 ; | |
| 17676 return 0; | |
| 17677 } | |
| 17678 _ACEOF | |
| 17679 if ac_fn_c_try_run "$LINENO"; then : | |
| 17680 ac_cv_c_bigendian=no | |
| 17681 else | |
| 17682 ac_cv_c_bigendian=yes | |
| 17683 fi | |
| 17684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
| 17685 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 17686 fi | |
| 17687 | |
| 17688 fi | |
| 17689 fi | |
| 17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
| 17691 $as_echo "$ac_cv_c_bigendian" >&6; } | |
| 17692 case $ac_cv_c_bigendian in #( | |
| 17693 yes) | |
| 17694 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
| 17695 ;; #( | |
| 17696 no) | |
| 17697 ;; #( | |
| 17698 universal) | |
| 17699 | |
| 17700 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
| 17701 | |
| 17702 ;; #( | |
| 17703 *) | |
| 17704 as_fn_error $? "unknown endianness | |
| 17705 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
| 17706 esac | |
| 17707 | |
| 17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
| 17709 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } | |
| 17710 if ${ac_cv_c_const+:} false; then : | |
| 17711 $as_echo_n "(cached) " >&6 | |
| 17712 else | |
| 17713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17714 /* end confdefs.h. */ | |
| 17715 | |
| 17716 int | |
| 17717 main () | |
| 17718 { | |
| 17719 | |
| 17720 #ifndef __cplusplus | |
| 17721 /* Ultrix mips cc rejects this sort of thing. */ | |
| 17722 typedef int charset[2]; | |
| 17723 const charset cs = { 0, 0 }; | |
| 17724 /* SunOS 4.1.1 cc rejects this. */ | |
| 17725 char const *const *pcpcc; | |
| 17726 char **ppc; | |
| 17727 /* NEC SVR4.0.2 mips cc rejects this. */ | |
| 17728 struct point {int x, y;}; | |
| 17729 static struct point const zero = {0,0}; | |
| 17730 /* AIX XL C 1.02.0.0 rejects this. | |
| 17731 It does not let you subtract one const X* pointer from another in | |
| 17732 an arm of an if-expression whose if-part is not a constant | |
| 17733 expression */ | |
| 17734 const char *g = "string"; | |
| 17735 pcpcc = &g + (g ? g-g : 0); | |
| 17736 /* HPUX 7.0 cc rejects these. */ | |
| 17737 ++pcpcc; | |
| 17738 ppc = (char**) pcpcc; | |
| 17739 pcpcc = (char const *const *) ppc; | |
| 17740 { /* SCO 3.2v4 cc rejects this sort of thing. */ | |
| 17741 char tx; | |
| 17742 char *t = &tx; | |
| 17743 char const *s = 0 ? (char *) 0 : (char const *) 0; | |
| 17744 | |
| 17745 *t++ = 0; | |
| 17746 if (s) return 0; | |
| 17747 } | |
| 17748 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
| 17749 int x[] = {25, 17}; | |
| 17750 const int *foo = &x[0]; | |
| 17751 ++foo; | |
| 17752 } | |
| 17753 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
| 17754 typedef const int *iptr; | |
| 17755 iptr p = 0; | |
| 17756 ++p; | |
| 17757 } | |
| 17758 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying | |
| 17759 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
| 17760 struct s { int j; const int *ap[3]; } bx; | |
| 17761 struct s *b = &bx; b->j = 5; | |
| 17762 } | |
| 17763 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
| 17764 const int foo = 10; | |
| 17765 if (!foo) return 0; | |
| 17766 } | |
| 17767 return !cs[0] && !zero.x; | |
| 17768 #endif | |
| 17769 | |
| 17770 ; | |
| 17771 return 0; | |
| 17772 } | |
| 17773 _ACEOF | |
| 17774 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17775 ac_cv_c_const=yes | |
| 17776 else | |
| 17777 ac_cv_c_const=no | |
| 17778 fi | |
| 17779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17780 fi | |
| 17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
| 17782 $as_echo "$ac_cv_c_const" >&6; } | |
| 17783 if test $ac_cv_c_const = no; then | |
| 17784 | |
| 17785 $as_echo "#define const /**/" >>confdefs.h | |
| 17786 | |
| 17787 fi | |
| 17788 | |
| 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
| 17790 $as_echo_n "checking for inline... " >&6; } | |
| 17791 if ${ac_cv_c_inline+:} false; then : | |
| 17792 $as_echo_n "(cached) " >&6 | |
| 17793 else | |
| 17794 ac_cv_c_inline=no | |
| 17795 for ac_kw in inline __inline__ __inline; do | |
| 17796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17797 /* end confdefs.h. */ | |
| 17798 #ifndef __cplusplus | |
| 17799 typedef int foo_t; | |
| 17800 static $ac_kw foo_t static_foo () {return 0; } | |
| 17801 $ac_kw foo_t foo () {return 0; } | |
| 17802 #endif | |
| 17803 | |
| 17804 _ACEOF | |
| 17805 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17806 ac_cv_c_inline=$ac_kw | |
| 17807 fi | |
| 17808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17809 test "$ac_cv_c_inline" != no && break | |
| 17810 done | |
| 17811 | |
| 17812 fi | |
| 17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
| 17814 $as_echo "$ac_cv_c_inline" >&6; } | |
| 17815 | |
| 17816 case $ac_cv_c_inline in | |
| 17817 inline | yes) ;; | |
| 17818 *) | |
| 17819 case $ac_cv_c_inline in | |
| 17820 no) ac_val=;; | |
| 17821 *) ac_val=$ac_cv_c_inline;; | |
| 17822 esac | |
| 17823 cat >>confdefs.h <<_ACEOF | |
| 17824 #ifndef __cplusplus | |
| 17825 #define inline $ac_val | |
| 17826 #endif | |
| 17827 _ACEOF | |
| 17828 ;; | |
| 17829 esac | |
| 17830 | |
| 17831 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" | |
| 17832 if test "x$ac_cv_type_pid_t" = xyes; then : | |
| 17833 | |
| 17834 else | |
| 17835 | |
| 17836 cat >>confdefs.h <<_ACEOF | |
| 17837 #define pid_t int | |
| 17838 _ACEOF | |
| 17839 | |
| 17840 fi | |
| 17841 | |
| 17842 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
| 17843 if test "x$ac_cv_type_size_t" = xyes; then : | |
| 17844 | |
| 17845 else | |
| 17846 | |
| 17847 cat >>confdefs.h <<_ACEOF | |
| 17848 #define size_t unsigned int | |
| 17849 _ACEOF | |
| 17850 | |
| 17851 fi | |
| 17852 | |
| 17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
| 17854 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
| 17855 if ${ac_cv_struct_tm+:} false; then : | |
| 17856 $as_echo_n "(cached) " >&6 | |
| 17857 else | |
| 17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17859 /* end confdefs.h. */ | |
| 17860 #include <sys/types.h> | |
| 17861 #include <time.h> | |
| 17862 | |
| 17863 int | |
| 17864 main () | |
| 17865 { | |
| 17866 struct tm tm; | |
| 17867 int *p = &tm.tm_sec; | |
| 17868 return !p; | |
| 17869 ; | |
| 17870 return 0; | |
| 17871 } | |
| 17872 _ACEOF | |
| 17873 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17874 ac_cv_struct_tm=time.h | |
| 17875 else | |
| 17876 ac_cv_struct_tm=sys/time.h | |
| 17877 fi | |
| 17878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17879 fi | |
| 17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
| 17881 $as_echo "$ac_cv_struct_tm" >&6; } | |
| 17882 if test $ac_cv_struct_tm = sys/time.h; then | |
| 17883 | |
| 17884 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
| 17885 | |
| 17886 fi | |
| 17887 | |
| 17888 | |
| 17889 | |
| 17890 # Checks for library functions. | |
| 17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 | |
| 17892 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } | |
| 17893 if ${ac_cv_func_getpgrp_void+:} false; then : | |
| 17894 $as_echo_n "(cached) " >&6 | |
| 17895 else | |
| 17896 # Use it with a single arg. | |
| 17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17898 /* end confdefs.h. */ | |
| 17899 $ac_includes_default | |
| 17900 int | |
| 17901 main () | |
| 17902 { | |
| 17903 getpgrp (0); | |
| 17904 ; | |
| 17905 return 0; | |
| 17906 } | |
| 17907 _ACEOF | |
| 17908 if ac_fn_c_try_compile "$LINENO"; then : | |
| 17909 ac_cv_func_getpgrp_void=no | |
| 17910 else | |
| 17911 ac_cv_func_getpgrp_void=yes | |
| 17912 fi | |
| 17913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
| 17914 | |
| 17915 fi | |
| 17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 | |
| 17917 $as_echo "$ac_cv_func_getpgrp_void" >&6; } | |
| 17918 if test $ac_cv_func_getpgrp_void = yes; then | |
| 17919 | |
| 17920 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h | |
| 17921 | |
| 17922 fi | |
| 17923 | |
| 17924 for ac_func in strftime | |
| 17925 do : | |
| 17926 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" | |
| 17927 if test "x$ac_cv_func_strftime" = xyes; then : | |
| 17928 cat >>confdefs.h <<_ACEOF | |
| 17929 #define HAVE_STRFTIME 1 | |
| 17930 _ACEOF | |
| 17931 | |
| 17932 else | |
| 17933 # strftime is in -lintl on SCO UNIX. | |
| 17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 | |
| 17935 $as_echo_n "checking for strftime in -lintl... " >&6; } | |
| 17936 if ${ac_cv_lib_intl_strftime+:} false; then : | |
| 17937 $as_echo_n "(cached) " >&6 | |
| 17938 else | |
| 17939 ac_check_lib_save_LIBS=$LIBS | |
| 17940 LIBS="-lintl $LIBS" | |
| 17941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 17942 /* end confdefs.h. */ | |
| 17943 | |
| 17944 /* Override any GCC internal prototype to avoid an error. | |
| 17945 Use char because int might match the return type of a GCC | |
| 17946 builtin and then its argument prototype would still apply. */ | |
| 17947 #ifdef __cplusplus | |
| 17948 extern "C" | |
| 17949 #endif | |
| 17950 char strftime (); | |
| 17951 int | |
| 17952 main () | |
| 17953 { | |
| 17954 return strftime (); | |
| 17955 ; | |
| 17956 return 0; | |
| 17957 } | |
| 17958 _ACEOF | |
| 17959 if ac_fn_c_try_link "$LINENO"; then : | |
| 17960 ac_cv_lib_intl_strftime=yes | |
| 17961 else | |
| 17962 ac_cv_lib_intl_strftime=no | |
| 17963 fi | |
| 17964 rm -f core conftest.err conftest.$ac_objext \ | |
| 17965 conftest$ac_exeext conftest.$ac_ext | |
| 17966 LIBS=$ac_check_lib_save_LIBS | |
| 17967 fi | |
| 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 | |
| 17969 $as_echo "$ac_cv_lib_intl_strftime" >&6; } | |
| 17970 if test "x$ac_cv_lib_intl_strftime" = xyes; then : | |
| 17971 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h | |
| 17972 | |
| 17973 LIBS="-lintl $LIBS" | |
| 17974 fi | |
| 17975 | |
| 17976 fi | |
| 17977 done | |
| 17978 | |
| 17979 for ac_header in vfork.h | |
| 17980 do : | |
| 17981 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" | |
| 17982 if test "x$ac_cv_header_vfork_h" = xyes; then : | |
| 17983 cat >>confdefs.h <<_ACEOF | |
| 17984 #define HAVE_VFORK_H 1 | |
| 17985 _ACEOF | |
| 17986 | |
| 17987 fi | |
| 17988 | |
| 17989 done | |
| 17990 | |
| 17991 for ac_func in fork vfork | |
| 17992 do : | |
| 17993 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
| 17994 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
| 17995 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
| 17996 cat >>confdefs.h <<_ACEOF | |
| 17997 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 17998 _ACEOF | |
| 17999 | |
| 18000 fi | |
| 18001 done | |
| 18002 | |
| 18003 if test "x$ac_cv_func_fork" = xyes; then | |
| 18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
| 18005 $as_echo_n "checking for working fork... " >&6; } | |
| 18006 if ${ac_cv_func_fork_works+:} false; then : | |
| 18007 $as_echo_n "(cached) " >&6 | |
| 18008 else | |
| 18009 if test "$cross_compiling" = yes; then : | |
| 18010 ac_cv_func_fork_works=cross | |
| 18011 else | |
| 18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 18013 /* end confdefs.h. */ | |
| 18014 $ac_includes_default | |
| 18015 int | |
| 18016 main () | |
| 18017 { | |
| 18018 | |
| 18019 /* By Ruediger Kuhlmann. */ | |
| 18020 return fork () < 0; | |
| 18021 | |
| 18022 ; | |
| 18023 return 0; | |
| 18024 } | |
| 18025 _ACEOF | |
| 18026 if ac_fn_c_try_run "$LINENO"; then : | |
| 18027 ac_cv_func_fork_works=yes | |
| 18028 else | |
| 18029 ac_cv_func_fork_works=no | |
| 18030 fi | |
| 18031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
| 18032 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 18033 fi | |
| 18034 | |
| 18035 fi | |
| 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
| 18037 $as_echo "$ac_cv_func_fork_works" >&6; } | |
| 18038 | |
| 18039 else | |
| 18040 ac_cv_func_fork_works=$ac_cv_func_fork | |
| 18041 fi | |
| 18042 if test "x$ac_cv_func_fork_works" = xcross; then | |
| 18043 case $host in | |
| 18044 *-*-amigaos* | *-*-msdosdjgpp*) | |
| 18045 # Override, as these systems have only a dummy fork() stub | |
| 18046 ac_cv_func_fork_works=no | |
| 18047 ;; | |
| 18048 *) | |
| 18049 ac_cv_func_fork_works=yes | |
| 18050 ;; | |
| 18051 esac | |
| 18052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
| 18053 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
| 18054 fi | |
| 18055 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
| 18056 if test "x$ac_cv_func_vfork" = xyes; then | |
| 18057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
| 18058 $as_echo_n "checking for working vfork... " >&6; } | |
| 18059 if ${ac_cv_func_vfork_works+:} false; then : | |
| 18060 $as_echo_n "(cached) " >&6 | |
| 18061 else | |
| 18062 if test "$cross_compiling" = yes; then : | |
| 18063 ac_cv_func_vfork_works=cross | |
| 18064 else | |
| 18065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 18066 /* end confdefs.h. */ | |
| 18067 /* Thanks to Paul Eggert for this test. */ | |
| 18068 $ac_includes_default | |
| 18069 #include <sys/wait.h> | |
| 18070 #ifdef HAVE_VFORK_H | |
| 18071 # include <vfork.h> | |
| 18072 #endif | |
| 18073 /* On some sparc systems, changes by the child to local and incoming | |
| 18074 argument registers are propagated back to the parent. The compiler | |
| 18075 is told about this with #include <vfork.h>, but some compilers | |
| 18076 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
| 18077 static variable whose address is put into a register that is | |
| 18078 clobbered by the vfork. */ | |
| 18079 static void | |
| 18080 #ifdef __cplusplus | |
| 18081 sparc_address_test (int arg) | |
| 18082 # else | |
| 18083 sparc_address_test (arg) int arg; | |
| 18084 #endif | |
| 18085 { | |
| 18086 static pid_t child; | |
| 18087 if (!child) { | |
| 18088 child = vfork (); | |
| 18089 if (child < 0) { | |
| 18090 perror ("vfork"); | |
| 18091 _exit(2); | |
| 18092 } | |
| 18093 if (!child) { | |
| 18094 arg = getpid(); | |
| 18095 write(-1, "", 0); | |
| 18096 _exit (arg); | |
| 18097 } | |
| 18098 } | |
| 18099 } | |
| 18100 | |
| 18101 int | |
| 18102 main () | |
| 18103 { | |
| 18104 pid_t parent = getpid (); | |
| 18105 pid_t child; | |
| 18106 | |
| 18107 sparc_address_test (0); | |
| 18108 | |
| 18109 child = vfork (); | |
| 18110 | |
| 18111 if (child == 0) { | |
| 18112 /* Here is another test for sparc vfork register problems. This | |
| 18113 test uses lots of local variables, at least as many local | |
| 18114 variables as main has allocated so far including compiler | |
| 18115 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
| 18116 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
| 18117 reuse the register of parent for one of the local variables, | |
| 18118 since it will think that parent can't possibly be used any more | |
| 18119 in this routine. Assigning to the local variable will thus | |
| 18120 munge parent in the parent process. */ | |
| 18121 pid_t | |
| 18122 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
| 18123 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
| 18124 /* Convince the compiler that p..p7 are live; otherwise, it might | |
| 18125 use the same hardware register for all 8 local variables. */ | |
| 18126 if (p != p1 || p != p2 || p != p3 || p != p4 | |
| 18127 || p != p5 || p != p6 || p != p7) | |
| 18128 _exit(1); | |
| 18129 | |
| 18130 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
| 18131 from child file descriptors. If the child closes a descriptor | |
| 18132 before it execs or exits, this munges the parent's descriptor | |
| 18133 as well. Test for this by closing stdout in the child. */ | |
| 18134 _exit(close(fileno(stdout)) != 0); | |
| 18135 } else { | |
| 18136 int status; | |
| 18137 struct stat st; | |
| 18138 | |
| 18139 while (wait(&status) != child) | |
| 18140 ; | |
| 18141 return ( | |
| 18142 /* Was there some problem with vforking? */ | |
| 18143 child < 0 | |
| 18144 | |
| 18145 /* Did the child fail? (This shouldn't happen.) */ | |
| 18146 || status | |
| 18147 | |
| 18148 /* Did the vfork/compiler bug occur? */ | |
| 18149 || parent != getpid() | |
| 18150 | |
| 18151 /* Did the file descriptor bug occur? */ | |
| 18152 || fstat(fileno(stdout), &st) != 0 | |
| 18153 ); | |
| 18154 } | |
| 18155 } | |
| 18156 _ACEOF | |
| 18157 if ac_fn_c_try_run "$LINENO"; then : | |
| 18158 ac_cv_func_vfork_works=yes | |
| 18159 else | |
| 18160 ac_cv_func_vfork_works=no | |
| 18161 fi | |
| 18162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
| 18163 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
| 18164 fi | |
| 18165 | |
| 18166 fi | |
| 18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | |
| 18168 $as_echo "$ac_cv_func_vfork_works" >&6; } | |
| 18169 | |
| 18170 fi; | |
| 18171 if test "x$ac_cv_func_fork_works" = xcross; then | |
| 18172 ac_cv_func_vfork_works=$ac_cv_func_vfork | |
| 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
| 18174 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
| 18175 fi | |
| 18176 | |
| 18177 if test "x$ac_cv_func_vfork_works" = xyes; then | |
| 18178 | |
| 18179 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h | |
| 18180 | |
| 18181 else | |
| 18182 | |
| 18183 $as_echo "#define vfork fork" >>confdefs.h | |
| 18184 | |
| 18185 fi | |
| 18186 if test "x$ac_cv_func_fork_works" = xyes; then | |
| 18187 | |
| 18188 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h | |
| 18189 | |
| 18190 fi | |
| 18191 | |
| 18192 for ac_func in vprintf | |
| 18193 do : | |
| 18194 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" | |
| 18195 if test "x$ac_cv_func_vprintf" = xyes; then : | |
| 18196 cat >>confdefs.h <<_ACEOF | |
| 18197 #define HAVE_VPRINTF 1 | |
| 18198 _ACEOF | |
| 18199 | |
| 18200 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | |
| 18201 if test "x$ac_cv_func__doprnt" = xyes; then : | |
| 18202 | |
| 18203 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h | |
| 18204 | |
| 18205 fi | |
| 18206 | |
| 18207 fi | |
| 18208 done | |
| 18209 | |
| 18210 | |
| 18211 | |
| 18212 for ac_func in strdup strstr strchr erand48 memmove | |
| 18213 do : | |
| 18214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
| 18215 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
| 18216 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
| 18217 cat >>confdefs.h <<_ACEOF | |
| 18218 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
| 18219 _ACEOF | |
| 18220 | |
| 18221 fi | |
| 18222 done | |
| 18223 | |
| 18224 | |
| 18225 if test "x${with_x}" != "xno"; then : | |
| 18226 | |
| 18227 CFLAGS="$CFLAGS $X_CFLAGS" | |
| 18228 | |
| 18229 case $host_os in | |
| 18230 irix*) | |
| 18231 XLIB="-lX11 $X_EXTRA_LIBS" | |
| 18232 ;; | |
| 18233 *) | |
| 18234 XLIB="$X_LIBS -lX11 $X_EXTRA_LIBS" | |
| 18235 ;; | |
| 18236 esac | |
| 18237 | |
| 18238 | |
| 18239 | |
| 18240 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xlib.h" "ac_cv_header_X11_Xlib_h" "$ac_includes_default" | |
| 18241 if test "x$ac_cv_header_X11_Xlib_h" = xyes; then : | |
| 18242 | |
| 18243 | |
| 18244 $as_echo "#define PLD_xwin 1" >>confdefs.h | |
| 18245 | |
| 18246 | |
| 18247 else | |
| 18248 | |
| 18249 echo "" | |
| 18250 echo "X11 graphics have been selected but no X11 header files" | |
| 18251 echo "have been found." | |
| 18252 echo "" | |
| 18253 echo "This error usually happens on Linux/MacOSX distributions" | |
| 18254 echo "where the optional X11 development files have not been installed." | |
| 18255 echo "On Linux RPM systems this package is usually called something" | |
| 18256 echo "like xorg-x11-proto-devel whereas on Debian/Ubuntu it may" | |
| 18257 echo "be called x-dev. On MacOSX installation DVDs the X11 files" | |
| 18258 echo "can usually be found as an explicitly named optional" | |
| 18259 echo "installation." | |
| 18260 echo "" | |
| 18261 echo "After installing the X11 development files you should do a" | |
| 18262 echo "'make clean' and perform the configure stage again." | |
| 18263 echo "" | |
| 18264 echo "Alternatively, to install EMBOSS without X11 support, you can add" | |
| 18265 echo "the --without-x switch to the configure command." | |
| 18266 echo "" | |
| 18267 exit $? | |
| 18268 | |
| 18269 fi | |
| 18270 | |
| 18271 | |
| 18272 | |
| 18273 | |
| 18274 fi | |
| 18275 | |
| 18276 | |
| 18277 # Library checks. | |
| 18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lc" >&5 | |
| 18279 $as_echo_n "checking for socket in -lc... " >&6; } | |
| 18280 if ${ac_cv_lib_c_socket+:} false; then : | |
| 18281 $as_echo_n "(cached) " >&6 | |
| 18282 else | |
| 18283 ac_check_lib_save_LIBS=$LIBS | |
| 18284 LIBS="-lc $LIBS" | |
| 18285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 18286 /* end confdefs.h. */ | |
| 18287 | |
| 18288 /* Override any GCC internal prototype to avoid an error. | |
| 18289 Use char because int might match the return type of a GCC | |
| 18290 builtin and then its argument prototype would still apply. */ | |
| 18291 #ifdef __cplusplus | |
| 18292 extern "C" | |
| 18293 #endif | |
| 18294 char socket (); | |
| 18295 int | |
| 18296 main () | |
| 18297 { | |
| 18298 return socket (); | |
| 18299 ; | |
| 18300 return 0; | |
| 18301 } | |
| 18302 _ACEOF | |
| 18303 if ac_fn_c_try_link "$LINENO"; then : | |
| 18304 ac_cv_lib_c_socket=yes | |
| 18305 else | |
| 18306 ac_cv_lib_c_socket=no | |
| 18307 fi | |
| 18308 rm -f core conftest.err conftest.$ac_objext \ | |
| 18309 conftest$ac_exeext conftest.$ac_ext | |
| 18310 LIBS=$ac_check_lib_save_LIBS | |
| 18311 fi | |
| 18312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_socket" >&5 | |
| 18313 $as_echo "$ac_cv_lib_c_socket" >&6; } | |
| 18314 if test "x$ac_cv_lib_c_socket" = xyes; then : | |
| 18315 LIBS="${LIBS}" | |
| 18316 else | |
| 18317 LIBS="${LIBS} -lsocket" | |
| 18318 fi | |
| 18319 | |
| 18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 | |
| 18321 $as_echo_n "checking for main in -lm... " >&6; } | |
| 18322 if ${ac_cv_lib_m_main+:} false; then : | |
| 18323 $as_echo_n "(cached) " >&6 | |
| 18324 else | |
| 18325 ac_check_lib_save_LIBS=$LIBS | |
| 18326 LIBS="-lm $LIBS" | |
| 18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 18328 /* end confdefs.h. */ | |
| 18329 | |
| 18330 | |
| 18331 int | |
| 18332 main () | |
| 18333 { | |
| 18334 return main (); | |
| 18335 ; | |
| 18336 return 0; | |
| 18337 } | |
| 18338 _ACEOF | |
| 18339 if ac_fn_c_try_link "$LINENO"; then : | |
| 18340 ac_cv_lib_m_main=yes | |
| 18341 else | |
| 18342 ac_cv_lib_m_main=no | |
| 18343 fi | |
| 18344 rm -f core conftest.err conftest.$ac_objext \ | |
| 18345 conftest$ac_exeext conftest.$ac_ext | |
| 18346 LIBS=$ac_check_lib_save_LIBS | |
| 18347 fi | |
| 18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 | |
| 18349 $as_echo "$ac_cv_lib_m_main" >&6; } | |
| 18350 if test "x$ac_cv_lib_m_main" = xyes; then : | |
| 18351 cat >>confdefs.h <<_ACEOF | |
| 18352 #define HAVE_LIBM 1 | |
| 18353 _ACEOF | |
| 18354 | |
| 18355 LIBS="-lm $LIBS" | |
| 18356 | |
| 18357 fi | |
| 18358 | |
| 18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5 | |
| 18360 $as_echo_n "checking for curl_easy_init in -lcurl... " >&6; } | |
| 18361 if ${ac_cv_lib_curl_curl_easy_init+:} false; then : | |
| 18362 $as_echo_n "(cached) " >&6 | |
| 18363 else | |
| 18364 ac_check_lib_save_LIBS=$LIBS | |
| 18365 LIBS="-lcurl $LIBS" | |
| 18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 18367 /* end confdefs.h. */ | |
| 18368 | |
| 18369 /* Override any GCC internal prototype to avoid an error. | |
| 18370 Use char because int might match the return type of a GCC | |
| 18371 builtin and then its argument prototype would still apply. */ | |
| 18372 #ifdef __cplusplus | |
| 18373 extern "C" | |
| 18374 #endif | |
| 18375 char curl_easy_init (); | |
| 18376 int | |
| 18377 main () | |
| 18378 { | |
| 18379 return curl_easy_init (); | |
| 18380 ; | |
| 18381 return 0; | |
| 18382 } | |
| 18383 _ACEOF | |
| 18384 if ac_fn_c_try_link "$LINENO"; then : | |
| 18385 ac_cv_lib_curl_curl_easy_init=yes | |
| 18386 else | |
| 18387 ac_cv_lib_curl_curl_easy_init=no | |
| 18388 fi | |
| 18389 rm -f core conftest.err conftest.$ac_objext \ | |
| 18390 conftest$ac_exeext conftest.$ac_ext | |
| 18391 LIBS=$ac_check_lib_save_LIBS | |
| 18392 fi | |
| 18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5 | |
| 18394 $as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; } | |
| 18395 if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then : | |
| 18396 cat >>confdefs.h <<_ACEOF | |
| 18397 #define HAVE_LIBCURL 1 | |
| 18398 _ACEOF | |
| 18399 | |
| 18400 LIBS="-lcurl $LIBS" | |
| 18401 | |
| 18402 else | |
| 18403 as_fn_error $? "You need to install libcurl-devel library to your system" "$LINENO" 5 | |
| 18404 fi | |
| 18405 | |
| 18406 | |
| 18407 # GD for FreeBSD requires libiconv | |
| 18408 | |
| 18409 case ${host_os} in #( | |
| 18410 freebsd*) : | |
| 18411 | |
| 18412 if test "x${with_pngdriver}" != "xno"; then : | |
| 18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liconv" >&5 | |
| 18414 $as_echo_n "checking for main in -liconv... " >&6; } | |
| 18415 if ${ac_cv_lib_iconv_main+:} false; then : | |
| 18416 $as_echo_n "(cached) " >&6 | |
| 18417 else | |
| 18418 ac_check_lib_save_LIBS=$LIBS | |
| 18419 LIBS="-liconv $LIBS" | |
| 18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 18421 /* end confdefs.h. */ | |
| 18422 | |
| 18423 | |
| 18424 int | |
| 18425 main () | |
| 18426 { | |
| 18427 return main (); | |
| 18428 ; | |
| 18429 return 0; | |
| 18430 } | |
| 18431 _ACEOF | |
| 18432 if ac_fn_c_try_link "$LINENO"; then : | |
| 18433 ac_cv_lib_iconv_main=yes | |
| 18434 else | |
| 18435 ac_cv_lib_iconv_main=no | |
| 18436 fi | |
| 18437 rm -f core conftest.err conftest.$ac_objext \ | |
| 18438 conftest$ac_exeext conftest.$ac_ext | |
| 18439 LIBS=$ac_check_lib_save_LIBS | |
| 18440 fi | |
| 18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_main" >&5 | |
| 18442 $as_echo "$ac_cv_lib_iconv_main" >&6; } | |
| 18443 if test "x$ac_cv_lib_iconv_main" = xyes; then : | |
| 18444 LIBS="${LIBS}" | |
| 18445 else | |
| 18446 LIBS="-liconv ${LIBS}" | |
| 18447 fi | |
| 18448 | |
| 18449 fi | |
| 18450 ;; #( | |
| 18451 *) : | |
| 18452 ;; | |
| 18453 esac | |
| 18454 | |
| 18455 | |
| 18456 | |
| 18457 | |
| 18458 if false; then | |
| 18459 AMPNG_TRUE= | |
| 18460 AMPNG_FALSE='#' | |
| 18461 else | |
| 18462 AMPNG_TRUE='#' | |
| 18463 AMPNG_FALSE= | |
| 18464 fi | |
| 18465 | |
| 18466 if false; then | |
| 18467 AMPDF_TRUE= | |
| 18468 AMPDF_FALSE='#' | |
| 18469 else | |
| 18470 AMPDF_TRUE='#' | |
| 18471 AMPDF_FALSE= | |
| 18472 fi | |
| 18473 | |
| 18474 | |
| 18475 # | |
| 18476 # Handle general setup e.g. documentation directory | |
| 18477 # | |
| 18478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if docroot is given" >&5 | |
| 18479 $as_echo_n "checking if docroot is given... " >&6; } | |
| 18480 | |
| 18481 # Check whether --with-docroot was given. | |
| 18482 if test "${with_docroot+set}" = set; then : | |
| 18483 withval=$with_docroot; if test "$withval" != no ; then | |
| 18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 18485 $as_echo "yes" >&6; } | |
| 18486 CPPFLAGS="$CPPFLAGS -DDOC_ROOT=\\\"$withval\\\"" | |
| 18487 fi | |
| 18488 else | |
| 18489 | |
| 18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 18491 $as_echo "no" >&6; } | |
| 18492 | |
| 18493 fi | |
| 18494 | |
| 18495 | |
| 18496 | |
| 18497 | |
| 18498 # GCC profiling | |
| 18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc profiling is selected" >&5 | |
| 18500 $as_echo_n "checking if gcc profiling is selected... " >&6; } | |
| 18501 | |
| 18502 # Check whether --with-gccprofile was given. | |
| 18503 if test "${with_gccprofile+set}" = set; then : | |
| 18504 withval=$with_gccprofile; if test "$withval" != no ; then | |
| 18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 18506 $as_echo "yes" >&6; } | |
| 18507 CFLAGS="$CFLAGS -g -pg" | |
| 18508 LDFLAGS="$LDFLAGS -pg" | |
| 18509 fi | |
| 18510 else | |
| 18511 | |
| 18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 18513 $as_echo "no" >&6; } | |
| 18514 | |
| 18515 fi | |
| 18516 | |
| 18517 | |
| 18518 | |
| 18519 | |
| 18520 | |
| 18521 JAVA_CFLAGS="" | |
| 18522 JAVA_CPPFLAGS="" | |
| 18523 JAVA_LDFLAGS="" | |
| 18524 | |
| 18525 have_java="yes" | |
| 18526 auth_java="" | |
| 18527 | |
| 18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java JNI" >&5 | |
| 18529 $as_echo_n "checking for Java JNI... " >&6; } | |
| 18530 | |
| 18531 | |
| 18532 # Check whether --with-java was given. | |
| 18533 if test "${with_java+set}" = set; then : | |
| 18534 withval=$with_java; | |
| 18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${withval}" >&5 | |
| 18536 $as_echo "${withval}" >&6; } | |
| 18537 if test "x${withval}" = "xno"; then : | |
| 18538 have_java="no" | |
| 18539 fi | |
| 18540 | |
| 18541 else | |
| 18542 | |
| 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 18544 $as_echo "no" >&6; } | |
| 18545 have_java="no" | |
| 18546 | |
| 18547 fi | |
| 18548 | |
| 18549 | |
| 18550 if test "x${have_java}" = "xyes"; then : | |
| 18551 | |
| 18552 # If specified, the Java JNI include directory has to exist. | |
| 18553 if test -d ${with_java}; then : | |
| 18554 JAVA_CPPFLAGS="-I${withval}" | |
| 18555 else | |
| 18556 | |
| 18557 have_java="no" | |
| 18558 as_fn_error $? "Java include directory ${withval} does not exist" "$LINENO" 5 | |
| 18559 | |
| 18560 fi | |
| 18561 | |
| 18562 fi | |
| 18563 | |
| 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Java JNI OS" >&5 | |
| 18565 $as_echo_n "checking for Java JNI OS... " >&6; } | |
| 18566 | |
| 18567 | |
| 18568 # Check whether --with-javaos was given. | |
| 18569 if test "${with_javaos+set}" = set; then : | |
| 18570 withval=$with_javaos; | |
| 18571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${withval}" >&5 | |
| 18572 $as_echo "${withval}" >&6; } | |
| 18573 | |
| 18574 if test "x${withval}" != "xno"; then : | |
| 18575 | |
| 18576 # If specified, the Java JNI OS include directory has to exist. | |
| 18577 if test "x${have_java}" = "xyes" && test -d ${withval}; then : | |
| 18578 as_fn_append JAVA_CPPFLAGS " -I${withval}" | |
| 18579 else | |
| 18580 | |
| 18581 have_java="no" | |
| 18582 as_fn_error $? "Java OS include directory ${withval} does not exist" "$LINENO" 5 | |
| 18583 | |
| 18584 fi | |
| 18585 | |
| 18586 fi | |
| 18587 | |
| 18588 else | |
| 18589 | |
| 18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 18591 $as_echo "no" >&6; } | |
| 18592 | |
| 18593 fi | |
| 18594 | |
| 18595 | |
| 18596 # Authorisation type | |
| 18597 | |
| 18598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for authorisation type" >&5 | |
| 18599 $as_echo_n "checking for authorisation type... " >&6; } | |
| 18600 | |
| 18601 | |
| 18602 # Check whether --with-auth was given. | |
| 18603 if test "${with_auth+set}" = set; then : | |
| 18604 withval=$with_auth; | |
| 18605 if test "x${withval}" != "xno"; then : | |
| 18606 | |
| 18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 18608 $as_echo "yes" >&6; } | |
| 18609 | |
| 18610 case ${withval} in #( | |
| 18611 yes) : | |
| 18612 | |
| 18613 auth_java="PAM" | |
| 18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpam" >&5 | |
| 18615 $as_echo_n "checking for main in -lpam... " >&6; } | |
| 18616 if ${ac_cv_lib_pam_main+:} false; then : | |
| 18617 $as_echo_n "(cached) " >&6 | |
| 18618 else | |
| 18619 ac_check_lib_save_LIBS=$LIBS | |
| 18620 LIBS="-lpam $LIBS" | |
| 18621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 18622 /* end confdefs.h. */ | |
| 18623 | |
| 18624 | |
| 18625 int | |
| 18626 main () | |
| 18627 { | |
| 18628 return main (); | |
| 18629 ; | |
| 18630 return 0; | |
| 18631 } | |
| 18632 _ACEOF | |
| 18633 if ac_fn_c_try_link "$LINENO"; then : | |
| 18634 ac_cv_lib_pam_main=yes | |
| 18635 else | |
| 18636 ac_cv_lib_pam_main=no | |
| 18637 fi | |
| 18638 rm -f core conftest.err conftest.$ac_objext \ | |
| 18639 conftest$ac_exeext conftest.$ac_ext | |
| 18640 LIBS=$ac_check_lib_save_LIBS | |
| 18641 fi | |
| 18642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_main" >&5 | |
| 18643 $as_echo "$ac_cv_lib_pam_main" >&6; } | |
| 18644 if test "x$ac_cv_lib_pam_main" = xyes; then : | |
| 18645 as_fn_append JAVA_LDFLAGS " -lpam" | |
| 18646 fi | |
| 18647 | |
| 18648 ;; #( | |
| 18649 pam) : | |
| 18650 | |
| 18651 auth_java="PAM" | |
| 18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpam" >&5 | |
| 18653 $as_echo_n "checking for main in -lpam... " >&6; } | |
| 18654 if ${ac_cv_lib_pam_main+:} false; then : | |
| 18655 $as_echo_n "(cached) " >&6 | |
| 18656 else | |
| 18657 ac_check_lib_save_LIBS=$LIBS | |
| 18658 LIBS="-lpam $LIBS" | |
| 18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 18660 /* end confdefs.h. */ | |
| 18661 | |
| 18662 | |
| 18663 int | |
| 18664 main () | |
| 18665 { | |
| 18666 return main (); | |
| 18667 ; | |
| 18668 return 0; | |
| 18669 } | |
| 18670 _ACEOF | |
| 18671 if ac_fn_c_try_link "$LINENO"; then : | |
| 18672 ac_cv_lib_pam_main=yes | |
| 18673 else | |
| 18674 ac_cv_lib_pam_main=no | |
| 18675 fi | |
| 18676 rm -f core conftest.err conftest.$ac_objext \ | |
| 18677 conftest$ac_exeext conftest.$ac_ext | |
| 18678 LIBS=$ac_check_lib_save_LIBS | |
| 18679 fi | |
| 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_main" >&5 | |
| 18681 $as_echo "$ac_cv_lib_pam_main" >&6; } | |
| 18682 if test "x$ac_cv_lib_pam_main" = xyes; then : | |
| 18683 as_fn_append JAVA_LDFLAGS " -lpam" | |
| 18684 fi | |
| 18685 | |
| 18686 ;; #( | |
| 18687 shadow) : | |
| 18688 | |
| 18689 auth_java="N_SHADOW" | |
| 18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypy" >&5 | |
| 18691 $as_echo_n "checking for main in -lcrypy... " >&6; } | |
| 18692 if ${ac_cv_lib_crypy_main+:} false; then : | |
| 18693 $as_echo_n "(cached) " >&6 | |
| 18694 else | |
| 18695 ac_check_lib_save_LIBS=$LIBS | |
| 18696 LIBS="-lcrypy $LIBS" | |
| 18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 18698 /* end confdefs.h. */ | |
| 18699 | |
| 18700 | |
| 18701 int | |
| 18702 main () | |
| 18703 { | |
| 18704 return main (); | |
| 18705 ; | |
| 18706 return 0; | |
| 18707 } | |
| 18708 _ACEOF | |
| 18709 if ac_fn_c_try_link "$LINENO"; then : | |
| 18710 ac_cv_lib_crypy_main=yes | |
| 18711 else | |
| 18712 ac_cv_lib_crypy_main=no | |
| 18713 fi | |
| 18714 rm -f core conftest.err conftest.$ac_objext \ | |
| 18715 conftest$ac_exeext conftest.$ac_ext | |
| 18716 LIBS=$ac_check_lib_save_LIBS | |
| 18717 fi | |
| 18718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypy_main" >&5 | |
| 18719 $as_echo "$ac_cv_lib_crypy_main" >&6; } | |
| 18720 if test "x$ac_cv_lib_crypy_main" = xyes; then : | |
| 18721 as_fn_append JAVA_LDFLAGS " -lcrypt" | |
| 18722 fi | |
| 18723 | |
| 18724 ;; #( | |
| 18725 rshadow) : | |
| 18726 | |
| 18727 auth_java="R_SHADOW" | |
| 18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lcrypy" >&5 | |
| 18729 $as_echo_n "checking for main in -lcrypy... " >&6; } | |
| 18730 if ${ac_cv_lib_crypy_main+:} false; then : | |
| 18731 $as_echo_n "(cached) " >&6 | |
| 18732 else | |
| 18733 ac_check_lib_save_LIBS=$LIBS | |
| 18734 LIBS="-lcrypy $LIBS" | |
| 18735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 18736 /* end confdefs.h. */ | |
| 18737 | |
| 18738 | |
| 18739 int | |
| 18740 main () | |
| 18741 { | |
| 18742 return main (); | |
| 18743 ; | |
| 18744 return 0; | |
| 18745 } | |
| 18746 _ACEOF | |
| 18747 if ac_fn_c_try_link "$LINENO"; then : | |
| 18748 ac_cv_lib_crypy_main=yes | |
| 18749 else | |
| 18750 ac_cv_lib_crypy_main=no | |
| 18751 fi | |
| 18752 rm -f core conftest.err conftest.$ac_objext \ | |
| 18753 conftest$ac_exeext conftest.$ac_ext | |
| 18754 LIBS=$ac_check_lib_save_LIBS | |
| 18755 fi | |
| 18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypy_main" >&5 | |
| 18757 $as_echo "$ac_cv_lib_crypy_main" >&6; } | |
| 18758 if test "x$ac_cv_lib_crypy_main" = xyes; then : | |
| 18759 as_fn_append JAVA_LDFLAGS " -lcrypt" | |
| 18760 fi | |
| 18761 | |
| 18762 ;; #( | |
| 18763 noshadow) : | |
| 18764 auth_java="NO_SHADOW" ;; #( | |
| 18765 rnoshadow) : | |
| 18766 auth_java="RNO_SHADOW" ;; #( | |
| 18767 aixshadow) : | |
| 18768 auth_java="AIX_SHADOW" ;; #( | |
| 18769 hpuxshadow) : | |
| 18770 auth_java="HPUX_SHADOW" ;; #( | |
| 18771 *) : | |
| 18772 ;; | |
| 18773 esac | |
| 18774 | |
| 18775 else | |
| 18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 18777 $as_echo "no" >&6; } | |
| 18778 fi | |
| 18779 | |
| 18780 else | |
| 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 18782 $as_echo "no" >&6; } | |
| 18783 fi | |
| 18784 | |
| 18785 | |
| 18786 if test -n "${auth_java}"; then : | |
| 18787 as_fn_append JAVA_CPPFLAGS " -D${auth_java}" | |
| 18788 else | |
| 18789 as_fn_append JAVA_CPPFLAGS " -DNO_AUTH" | |
| 18790 fi | |
| 18791 | |
| 18792 # Threading type | |
| 18793 | |
| 18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for threading type" >&5 | |
| 18795 $as_echo_n "checking for threading type... " >&6; } | |
| 18796 | |
| 18797 | |
| 18798 # Check whether --with-thread was given. | |
| 18799 if test "${with_thread+set}" = set; then : | |
| 18800 withval=$with_thread; | |
| 18801 if test "x${withval}" != "xno"; then : | |
| 18802 | |
| 18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 18804 $as_echo "yes" >&6; } | |
| 18805 | |
| 18806 case ${withval} in #( | |
| 18807 yes) : | |
| 18808 | |
| 18809 as_fn_append JAVA_CPPFLAGS " -D_REENTRANT" | |
| 18810 as_fn_append JAVA_LDFLAGS " -lpthread" | |
| 18811 # AS_VAR_APPEND([LIBS], [" -lpthread"]) | |
| 18812 ;; #( | |
| 18813 freebsd) : | |
| 18814 | |
| 18815 as_fn_append JAVA_CPPFLAGS " -D_THREAD_SAFE" | |
| 18816 as_fn_append JAVA_LDFLAGS " -pthread" | |
| 18817 # AS_VAR_APPEND([LIBS], [" -lc_r"]) | |
| 18818 ;; #( | |
| 18819 linux) : | |
| 18820 | |
| 18821 as_fn_append JAVA_CPPFLAGS " -D_REENTRANT" | |
| 18822 as_fn_append JAVA_LDFLAGS " -lpthread" | |
| 18823 # AS_VAR_APPEND([LIBS], [" -lpthread"]) | |
| 18824 ;; #( | |
| 18825 solaris) : | |
| 18826 | |
| 18827 as_fn_append JAVA_CPPFLAGS " -D_POSIX_C_SOURCE=199506L" | |
| 18828 as_fn_append JAVA_LDFLAGS " -lpthread" | |
| 18829 # AS_VAR_APPEND([LIBS], [" -lpthread"]) | |
| 18830 ;; #( | |
| 18831 macos) : | |
| 18832 | |
| 18833 # AS_VAR_APPEND([JAVA_CPPFLAGS], [""]) | |
| 18834 # AS_VAR_APPEND([JAVA_LDFLAGS], [" -lpthread"]) | |
| 18835 # AS_VAR_APPEND([LIBS], [" -lpthread"]) | |
| 18836 ;; #( | |
| 18837 hpux) : | |
| 18838 | |
| 18839 as_fn_append JAVA_CFLAGS " -Ae +z" | |
| 18840 as_fn_append JAVA CPPFLAGS " -DNATIVE -D_POSIX_C_SOURCE=199506L" | |
| 18841 as_fn_append JAVA_LDFLAGS " -lpthread" | |
| 18842 # AS_VAR_APPEND([LIBS], [" -lpthread"]) | |
| 18843 ;; #( | |
| 18844 irix) : | |
| 18845 | |
| 18846 # AS_VAR_APPEND([JAVA_CFLAGS], [""]) | |
| 18847 as_fn_append JAVA_LDFLAGS " -lpthread" | |
| 18848 as_fn_append LIBS " -lpthread" | |
| 18849 ;; #( | |
| 18850 aix) : | |
| 18851 | |
| 18852 as_fn_append JAVA_CPPFLAGS " -D_REENTRANT" | |
| 18853 as_fn_append JAVA_LDFLAGS " -lpthread" | |
| 18854 as_fn_append LIBS " -lpthread" | |
| 18855 ;; #( | |
| 18856 osf) : | |
| 18857 | |
| 18858 as_fn_append JAVA_CPPFLAGS " -D_REENTRANT -D_OSF_SOURCE" | |
| 18859 as_fn_append JAVA_LDFLAGS " -lpthread" | |
| 18860 as_fn_append LIBS " -lpthread" | |
| 18861 ;; #( | |
| 18862 *) : | |
| 18863 ;; | |
| 18864 esac | |
| 18865 | |
| 18866 else | |
| 18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 18868 $as_echo "no" >&6; } | |
| 18869 fi | |
| 18870 | |
| 18871 else | |
| 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 18873 $as_echo "no" >&6; } | |
| 18874 fi | |
| 18875 | |
| 18876 | |
| 18877 # Test for programs ant, jar, java and javac. | |
| 18878 | |
| 18879 if test "x${have_java}" = "xyes"; then : | |
| 18880 | |
| 18881 # Extract the first word of "ant", so it can be a program name with args. | |
| 18882 set dummy ant; ac_word=$2 | |
| 18883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 18884 $as_echo_n "checking for $ac_word... " >&6; } | |
| 18885 if ${ac_cv_path_ANT+:} false; then : | |
| 18886 $as_echo_n "(cached) " >&6 | |
| 18887 else | |
| 18888 case $ANT in | |
| 18889 [\\/]* | ?:[\\/]*) | |
| 18890 ac_cv_path_ANT="$ANT" # Let the user override the test with a path. | |
| 18891 ;; | |
| 18892 *) | |
| 18893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 18894 for as_dir in $PATH | |
| 18895 do | |
| 18896 IFS=$as_save_IFS | |
| 18897 test -z "$as_dir" && as_dir=. | |
| 18898 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 18899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 18900 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext" | |
| 18901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 18902 break 2 | |
| 18903 fi | |
| 18904 done | |
| 18905 done | |
| 18906 IFS=$as_save_IFS | |
| 18907 | |
| 18908 test -z "$ac_cv_path_ANT" && ac_cv_path_ANT="no" | |
| 18909 ;; | |
| 18910 esac | |
| 18911 fi | |
| 18912 ANT=$ac_cv_path_ANT | |
| 18913 if test -n "$ANT"; then | |
| 18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANT" >&5 | |
| 18915 $as_echo "$ANT" >&6; } | |
| 18916 else | |
| 18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 18918 $as_echo "no" >&6; } | |
| 18919 fi | |
| 18920 | |
| 18921 | |
| 18922 if test "x${ANT}" = "xno"; then : | |
| 18923 have_java="no" | |
| 18924 fi | |
| 18925 | |
| 18926 # Extract the first word of "jar", so it can be a program name with args. | |
| 18927 set dummy jar; ac_word=$2 | |
| 18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 18929 $as_echo_n "checking for $ac_word... " >&6; } | |
| 18930 if ${ac_cv_path_JAR+:} false; then : | |
| 18931 $as_echo_n "(cached) " >&6 | |
| 18932 else | |
| 18933 case $JAR in | |
| 18934 [\\/]* | ?:[\\/]*) | |
| 18935 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. | |
| 18936 ;; | |
| 18937 *) | |
| 18938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 18939 for as_dir in $PATH | |
| 18940 do | |
| 18941 IFS=$as_save_IFS | |
| 18942 test -z "$as_dir" && as_dir=. | |
| 18943 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 18944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 18945 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" | |
| 18946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 18947 break 2 | |
| 18948 fi | |
| 18949 done | |
| 18950 done | |
| 18951 IFS=$as_save_IFS | |
| 18952 | |
| 18953 test -z "$ac_cv_path_JAR" && ac_cv_path_JAR="no" | |
| 18954 ;; | |
| 18955 esac | |
| 18956 fi | |
| 18957 JAR=$ac_cv_path_JAR | |
| 18958 if test -n "$JAR"; then | |
| 18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 | |
| 18960 $as_echo "$JAR" >&6; } | |
| 18961 else | |
| 18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 18963 $as_echo "no" >&6; } | |
| 18964 fi | |
| 18965 | |
| 18966 | |
| 18967 if test "x${JAR}" = "xno"; then : | |
| 18968 have_java="no" | |
| 18969 fi | |
| 18970 | |
| 18971 # Extract the first word of "java", so it can be a program name with args. | |
| 18972 set dummy java; ac_word=$2 | |
| 18973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 18974 $as_echo_n "checking for $ac_word... " >&6; } | |
| 18975 if ${ac_cv_path_JAVA+:} false; then : | |
| 18976 $as_echo_n "(cached) " >&6 | |
| 18977 else | |
| 18978 case $JAVA in | |
| 18979 [\\/]* | ?:[\\/]*) | |
| 18980 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. | |
| 18981 ;; | |
| 18982 *) | |
| 18983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 18984 for as_dir in $PATH | |
| 18985 do | |
| 18986 IFS=$as_save_IFS | |
| 18987 test -z "$as_dir" && as_dir=. | |
| 18988 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 18989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 18990 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" | |
| 18991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 18992 break 2 | |
| 18993 fi | |
| 18994 done | |
| 18995 done | |
| 18996 IFS=$as_save_IFS | |
| 18997 | |
| 18998 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA="no" | |
| 18999 ;; | |
| 19000 esac | |
| 19001 fi | |
| 19002 JAVA=$ac_cv_path_JAVA | |
| 19003 if test -n "$JAVA"; then | |
| 19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 | |
| 19005 $as_echo "$JAVA" >&6; } | |
| 19006 else | |
| 19007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 19008 $as_echo "no" >&6; } | |
| 19009 fi | |
| 19010 | |
| 19011 | |
| 19012 if test "x${JAVA}" = "xno"; then : | |
| 19013 have_java="no" | |
| 19014 fi | |
| 19015 | |
| 19016 # Extract the first word of "javac", so it can be a program name with args. | |
| 19017 set dummy javac; ac_word=$2 | |
| 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 19019 $as_echo_n "checking for $ac_word... " >&6; } | |
| 19020 if ${ac_cv_path_JAVAC+:} false; then : | |
| 19021 $as_echo_n "(cached) " >&6 | |
| 19022 else | |
| 19023 case $JAVAC in | |
| 19024 [\\/]* | ?:[\\/]*) | |
| 19025 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. | |
| 19026 ;; | |
| 19027 *) | |
| 19028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 19029 for as_dir in $PATH | |
| 19030 do | |
| 19031 IFS=$as_save_IFS | |
| 19032 test -z "$as_dir" && as_dir=. | |
| 19033 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 19034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 19035 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" | |
| 19036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 19037 break 2 | |
| 19038 fi | |
| 19039 done | |
| 19040 done | |
| 19041 IFS=$as_save_IFS | |
| 19042 | |
| 19043 test -z "$ac_cv_path_JAVAC" && ac_cv_path_JAVAC="no" | |
| 19044 ;; | |
| 19045 esac | |
| 19046 fi | |
| 19047 JAVAC=$ac_cv_path_JAVAC | |
| 19048 if test -n "$JAVAC"; then | |
| 19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 | |
| 19050 $as_echo "$JAVAC" >&6; } | |
| 19051 else | |
| 19052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 19053 $as_echo "no" >&6; } | |
| 19054 fi | |
| 19055 | |
| 19056 | |
| 19057 if test "x${JAVAC}" = "xno"; then : | |
| 19058 have_java="no" | |
| 19059 fi | |
| 19060 | |
| 19061 fi | |
| 19062 | |
| 19063 if test "x${have_java}" = "xyes"; then : | |
| 19064 | |
| 19065 | |
| 19066 $as_echo "#define HAVE_JAVA 1" >>confdefs.h | |
| 19067 | |
| 19068 | |
| 19069 ### FIXME: Append -DDEBIAN for the moment. | |
| 19070 # Debian uses PAM service "ssh" instead of "login", see ajjava.c | |
| 19071 # This could use AC_DEFINE() if no better option was avialable. | |
| 19072 # Ultimately, this should be configurable via server configuration | |
| 19073 # files. | |
| 19074 if test -f "/etc/debian_release" || test -f /etc/debian_version; then : | |
| 19075 as_fn_append JAVA_CPPFLAGS " -DDEBIAN" | |
| 19076 fi | |
| 19077 | |
| 19078 fi | |
| 19079 | |
| 19080 | |
| 19081 | |
| 19082 | |
| 19083 | |
| 19084 | |
| 19085 | |
| 19086 | |
| 19087 | |
| 19088 | |
| 19089 if test "x${have_java}" = "xyes"; then | |
| 19090 JAVA_BUILD_TRUE= | |
| 19091 JAVA_BUILD_FALSE='#' | |
| 19092 else | |
| 19093 JAVA_BUILD_TRUE='#' | |
| 19094 JAVA_BUILD_FALSE= | |
| 19095 fi | |
| 19096 | |
| 19097 | |
| 19098 # | |
| 19099 # Handle user hints | |
| 19100 # | |
| 19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to look for pdf support" >&5 | |
| 19102 $as_echo_n "checking whether to look for pdf support... " >&6; } | |
| 19103 | |
| 19104 # Check whether --with-hpdf was given. | |
| 19105 if test "${with_hpdf+set}" = set; then : | |
| 19106 withval=$with_hpdf; if test "$withval" != no ; then | |
| 19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 19108 $as_echo "yes" >&6; } | |
| 19109 ALT_HOME="$withval" | |
| 19110 else | |
| 19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 19112 $as_echo "no" >&6; } | |
| 19113 fi | |
| 19114 else | |
| 19115 | |
| 19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 19117 $as_echo "yes" >&6; } | |
| 19118 ALT_HOME=/usr | |
| 19119 | |
| 19120 fi | |
| 19121 | |
| 19122 | |
| 19123 | |
| 19124 # | |
| 19125 # Locate hpdf | |
| 19126 # | |
| 19127 if test -d "${ALT_HOME}" | |
| 19128 then | |
| 19129 | |
| 19130 # | |
| 19131 # Keep a copy if it fails | |
| 19132 # | |
| 19133 ALT_LDFLAGS="$LDFLAGS" | |
| 19134 ALT_CPPFLAGS="$CPPFLAGS" | |
| 19135 | |
| 19136 # | |
| 19137 # Set | |
| 19138 # | |
| 19139 LDFLAGS="${LDFLAGS} -L${ALT_HOME}/lib" | |
| 19140 CPPFLAGS="$CPPFLAGS -I$ALT_HOME/include" | |
| 19141 | |
| 19142 # | |
| 19143 # Check for libharu in ALT_HOME | |
| 19144 # | |
| 19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HPDF_New in -lhpdf" >&5 | |
| 19146 $as_echo_n "checking for HPDF_New in -lhpdf... " >&6; } | |
| 19147 if ${ac_cv_lib_hpdf_HPDF_New+:} false; then : | |
| 19148 $as_echo_n "(cached) " >&6 | |
| 19149 else | |
| 19150 ac_check_lib_save_LIBS=$LIBS | |
| 19151 LIBS="-lhpdf -L${ALT_HOME}/lib $LIBS" | |
| 19152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 19153 /* end confdefs.h. */ | |
| 19154 | |
| 19155 /* Override any GCC internal prototype to avoid an error. | |
| 19156 Use char because int might match the return type of a GCC | |
| 19157 builtin and then its argument prototype would still apply. */ | |
| 19158 #ifdef __cplusplus | |
| 19159 extern "C" | |
| 19160 #endif | |
| 19161 char HPDF_New (); | |
| 19162 int | |
| 19163 main () | |
| 19164 { | |
| 19165 return HPDF_New (); | |
| 19166 ; | |
| 19167 return 0; | |
| 19168 } | |
| 19169 _ACEOF | |
| 19170 if ac_fn_c_try_link "$LINENO"; then : | |
| 19171 ac_cv_lib_hpdf_HPDF_New=yes | |
| 19172 else | |
| 19173 ac_cv_lib_hpdf_HPDF_New=no | |
| 19174 fi | |
| 19175 rm -f core conftest.err conftest.$ac_objext \ | |
| 19176 conftest$ac_exeext conftest.$ac_ext | |
| 19177 LIBS=$ac_check_lib_save_LIBS | |
| 19178 fi | |
| 19179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hpdf_HPDF_New" >&5 | |
| 19180 $as_echo "$ac_cv_lib_hpdf_HPDF_New" >&6; } | |
| 19181 if test "x$ac_cv_lib_hpdf_HPDF_New" = xyes; then : | |
| 19182 CHECK=1 | |
| 19183 else | |
| 19184 CHECK=0 | |
| 19185 fi | |
| 19186 | |
| 19187 # | |
| 19188 # | |
| 19189 # If everything found okay then proceed to include png driver in config. | |
| 19190 # | |
| 19191 if test $CHECK = "1" ; then | |
| 19192 LIBS="$LIBS -lhpdf" | |
| 19193 | |
| 19194 case $host_os in | |
| 19195 solaris*) | |
| 19196 LDFLAGS="$LDFLAGS -R$ALT_HOME/lib" | |
| 19197 ;; | |
| 19198 esac | |
| 19199 | |
| 19200 | |
| 19201 $as_echo "#define PLD_pdf 1" >>confdefs.h | |
| 19202 | |
| 19203 if true; then | |
| 19204 AMPDF_TRUE= | |
| 19205 AMPDF_FALSE='#' | |
| 19206 else | |
| 19207 AMPDF_TRUE='#' | |
| 19208 AMPDF_FALSE= | |
| 19209 fi | |
| 19210 | |
| 19211 echo PDF support found | |
| 19212 if test $ALT_HOME = "/usr" ; then | |
| 19213 LDFLAGS="$ALT_LDFLAGS" | |
| 19214 CPPFLAGS="$ALT_CPPFLAGS" | |
| 19215 fi | |
| 19216 else | |
| 19217 # | |
| 19218 # If not okay then reset FLAGS. | |
| 19219 # | |
| 19220 if false; then | |
| 19221 AMPDF_TRUE= | |
| 19222 AMPDF_FALSE='#' | |
| 19223 else | |
| 19224 AMPDF_TRUE='#' | |
| 19225 AMPDF_FALSE= | |
| 19226 fi | |
| 19227 | |
| 19228 LDFLAGS="$ALT_LDFLAGS" | |
| 19229 CPPFLAGS="$ALT_CPPFLAGS" | |
| 19230 echo "No pdf support (libhpdf) found." | |
| 19231 fi | |
| 19232 | |
| 19233 else | |
| 19234 if test $withval != "no"; then | |
| 19235 echo "Directory $ALT_HOME does not exist" | |
| 19236 exit 0 | |
| 19237 fi | |
| 19238 fi | |
| 19239 | |
| 19240 # | |
| 19241 # Handle user hints | |
| 19242 # | |
| 19243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if png driver is wanted" >&5 | |
| 19244 $as_echo_n "checking if png driver is wanted... " >&6; } | |
| 19245 | |
| 19246 # Check whether --with-pngdriver was given. | |
| 19247 if test "${with_pngdriver+set}" = set; then : | |
| 19248 withval=$with_pngdriver; if test "$withval" != no ; then | |
| 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 19250 $as_echo "yes" >&6; } | |
| 19251 ALT_HOME="$withval" | |
| 19252 else | |
| 19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 19254 $as_echo "no" >&6; } | |
| 19255 fi | |
| 19256 else | |
| 19257 | |
| 19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 19259 $as_echo "yes" >&6; } | |
| 19260 ALT_HOME=/usr | |
| 19261 | |
| 19262 fi | |
| 19263 | |
| 19264 | |
| 19265 | |
| 19266 # | |
| 19267 # Locate png/gd/zlib, if wanted | |
| 19268 # | |
| 19269 if test -d "${ALT_HOME}" | |
| 19270 then | |
| 19271 | |
| 19272 # | |
| 19273 # Keep a copy if it fails | |
| 19274 # | |
| 19275 ALT_LDFLAGS="$LDFLAGS" | |
| 19276 ALT_CPPFLAGS="$CPPFLAGS" | |
| 19277 | |
| 19278 # | |
| 19279 # Set | |
| 19280 # | |
| 19281 LDFLAGS="${LDFLAGS} -L${ALT_HOME}/lib" | |
| 19282 CPPFLAGS="$CPPFLAGS -I$ALT_HOME/include" | |
| 19283 | |
| 19284 ICCHECK=0 | |
| 19285 case $host_os in | |
| 19286 solaris*) | |
| 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_close in -liconv" >&5 | |
| 19288 $as_echo_n "checking for libiconv_close in -liconv... " >&6; } | |
| 19289 if ${ac_cv_lib_iconv_libiconv_close+:} false; then : | |
| 19290 $as_echo_n "(cached) " >&6 | |
| 19291 else | |
| 19292 ac_check_lib_save_LIBS=$LIBS | |
| 19293 LIBS="-liconv -L${ALT_HOME}/lib -liconv $LIBS" | |
| 19294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 19295 /* end confdefs.h. */ | |
| 19296 | |
| 19297 /* Override any GCC internal prototype to avoid an error. | |
| 19298 Use char because int might match the return type of a GCC | |
| 19299 builtin and then its argument prototype would still apply. */ | |
| 19300 #ifdef __cplusplus | |
| 19301 extern "C" | |
| 19302 #endif | |
| 19303 char libiconv_close (); | |
| 19304 int | |
| 19305 main () | |
| 19306 { | |
| 19307 return libiconv_close (); | |
| 19308 ; | |
| 19309 return 0; | |
| 19310 } | |
| 19311 _ACEOF | |
| 19312 if ac_fn_c_try_link "$LINENO"; then : | |
| 19313 ac_cv_lib_iconv_libiconv_close=yes | |
| 19314 else | |
| 19315 ac_cv_lib_iconv_libiconv_close=no | |
| 19316 fi | |
| 19317 rm -f core conftest.err conftest.$ac_objext \ | |
| 19318 conftest$ac_exeext conftest.$ac_ext | |
| 19319 LIBS=$ac_check_lib_save_LIBS | |
| 19320 fi | |
| 19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_close" >&5 | |
| 19322 $as_echo "$ac_cv_lib_iconv_libiconv_close" >&6; } | |
| 19323 if test "x$ac_cv_lib_iconv_libiconv_close" = xyes; then : | |
| 19324 ICCHECK=1 | |
| 19325 else | |
| 19326 ICCHECK=0 | |
| 19327 fi | |
| 19328 | |
| 19329 if test $ICCHECK = "1" ; then | |
| 19330 LDFLAGS="${LDFLAGS} -L${ALT_HOME}/lib -liconv" | |
| 19331 fi | |
| 19332 LDFLAGS="$LDFLAGS -R$ALT_HOME/lib" | |
| 19333 ;; | |
| 19334 esac | |
| 19335 | |
| 19336 | |
| 19337 | |
| 19338 | |
| 19339 | |
| 19340 # | |
| 19341 # Check for zlib in ALT_HOME | |
| 19342 # | |
| 19343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5 | |
| 19344 $as_echo_n "checking for inflateEnd in -lz... " >&6; } | |
| 19345 if ${ac_cv_lib_z_inflateEnd+:} false; then : | |
| 19346 $as_echo_n "(cached) " >&6 | |
| 19347 else | |
| 19348 ac_check_lib_save_LIBS=$LIBS | |
| 19349 LIBS="-lz -L${ALT_HOME}/lib -lz $LIBS" | |
| 19350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 19351 /* end confdefs.h. */ | |
| 19352 | |
| 19353 /* Override any GCC internal prototype to avoid an error. | |
| 19354 Use char because int might match the return type of a GCC | |
| 19355 builtin and then its argument prototype would still apply. */ | |
| 19356 #ifdef __cplusplus | |
| 19357 extern "C" | |
| 19358 #endif | |
| 19359 char inflateEnd (); | |
| 19360 int | |
| 19361 main () | |
| 19362 { | |
| 19363 return inflateEnd (); | |
| 19364 ; | |
| 19365 return 0; | |
| 19366 } | |
| 19367 _ACEOF | |
| 19368 if ac_fn_c_try_link "$LINENO"; then : | |
| 19369 ac_cv_lib_z_inflateEnd=yes | |
| 19370 else | |
| 19371 ac_cv_lib_z_inflateEnd=no | |
| 19372 fi | |
| 19373 rm -f core conftest.err conftest.$ac_objext \ | |
| 19374 conftest$ac_exeext conftest.$ac_ext | |
| 19375 LIBS=$ac_check_lib_save_LIBS | |
| 19376 fi | |
| 19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5 | |
| 19378 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; } | |
| 19379 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then : | |
| 19380 CHECK=1 | |
| 19381 else | |
| 19382 CHECK=0 | |
| 19383 fi | |
| 19384 | |
| 19385 # | |
| 19386 | |
| 19387 # | |
| 19388 # Check for png | |
| 19389 # | |
| 19390 if test $CHECK = "1" ; then | |
| 19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_destroy_read_struct in -lpng" >&5 | |
| 19392 $as_echo_n "checking for png_destroy_read_struct in -lpng... " >&6; } | |
| 19393 if ${ac_cv_lib_png_png_destroy_read_struct+:} false; then : | |
| 19394 $as_echo_n "(cached) " >&6 | |
| 19395 else | |
| 19396 ac_check_lib_save_LIBS=$LIBS | |
| 19397 LIBS="-lpng -L${ALT_HOME}/lib -lz $LIBS" | |
| 19398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 19399 /* end confdefs.h. */ | |
| 19400 | |
| 19401 /* Override any GCC internal prototype to avoid an error. | |
| 19402 Use char because int might match the return type of a GCC | |
| 19403 builtin and then its argument prototype would still apply. */ | |
| 19404 #ifdef __cplusplus | |
| 19405 extern "C" | |
| 19406 #endif | |
| 19407 char png_destroy_read_struct (); | |
| 19408 int | |
| 19409 main () | |
| 19410 { | |
| 19411 return png_destroy_read_struct (); | |
| 19412 ; | |
| 19413 return 0; | |
| 19414 } | |
| 19415 _ACEOF | |
| 19416 if ac_fn_c_try_link "$LINENO"; then : | |
| 19417 ac_cv_lib_png_png_destroy_read_struct=yes | |
| 19418 else | |
| 19419 ac_cv_lib_png_png_destroy_read_struct=no | |
| 19420 fi | |
| 19421 rm -f core conftest.err conftest.$ac_objext \ | |
| 19422 conftest$ac_exeext conftest.$ac_ext | |
| 19423 LIBS=$ac_check_lib_save_LIBS | |
| 19424 fi | |
| 19425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_destroy_read_struct" >&5 | |
| 19426 $as_echo "$ac_cv_lib_png_png_destroy_read_struct" >&6; } | |
| 19427 if test "x$ac_cv_lib_png_png_destroy_read_struct" = xyes; then : | |
| 19428 CHECK=1 | |
| 19429 else | |
| 19430 CHECK=0 | |
| 19431 fi | |
| 19432 | |
| 19433 fi | |
| 19434 | |
| 19435 | |
| 19436 | |
| 19437 | |
| 19438 # | |
| 19439 # Check for gd | |
| 19440 # | |
| 19441 if test $CHECK = "1"; then | |
| 19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdImageCreateFromPng in -lgd" >&5 | |
| 19443 $as_echo_n "checking for gdImageCreateFromPng in -lgd... " >&6; } | |
| 19444 if ${ac_cv_lib_gd_gdImageCreateFromPng+:} false; then : | |
| 19445 $as_echo_n "(cached) " >&6 | |
| 19446 else | |
| 19447 ac_check_lib_save_LIBS=$LIBS | |
| 19448 LIBS="-lgd -L${ALT_HOME}/lib -lgd -lpng -lz -lm $LIBS" | |
| 19449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 19450 /* end confdefs.h. */ | |
| 19451 | |
| 19452 /* Override any GCC internal prototype to avoid an error. | |
| 19453 Use char because int might match the return type of a GCC | |
| 19454 builtin and then its argument prototype would still apply. */ | |
| 19455 #ifdef __cplusplus | |
| 19456 extern "C" | |
| 19457 #endif | |
| 19458 char gdImageCreateFromPng (); | |
| 19459 int | |
| 19460 main () | |
| 19461 { | |
| 19462 return gdImageCreateFromPng (); | |
| 19463 ; | |
| 19464 return 0; | |
| 19465 } | |
| 19466 _ACEOF | |
| 19467 if ac_fn_c_try_link "$LINENO"; then : | |
| 19468 ac_cv_lib_gd_gdImageCreateFromPng=yes | |
| 19469 else | |
| 19470 ac_cv_lib_gd_gdImageCreateFromPng=no | |
| 19471 fi | |
| 19472 rm -f core conftest.err conftest.$ac_objext \ | |
| 19473 conftest$ac_exeext conftest.$ac_ext | |
| 19474 LIBS=$ac_check_lib_save_LIBS | |
| 19475 fi | |
| 19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gd_gdImageCreateFromPng" >&5 | |
| 19477 $as_echo "$ac_cv_lib_gd_gdImageCreateFromPng" >&6; } | |
| 19478 if test "x$ac_cv_lib_gd_gdImageCreateFromPng" = xyes; then : | |
| 19479 CHECK=1 | |
| 19480 else | |
| 19481 CHECK=0 | |
| 19482 fi | |
| 19483 | |
| 19484 if test $CHECK = "0"; then | |
| 19485 echo need to upgrade gd for png driver for plplot | |
| 19486 fi | |
| 19487 fi | |
| 19488 # | |
| 19489 # If everything found okay then proceed to include png driver in config. | |
| 19490 # | |
| 19491 if test $CHECK = "1" ; then | |
| 19492 LIBS="$LIBS -lgd -lpng -lz -lm" | |
| 19493 | |
| 19494 if test $ICCHECK = "1" ; then | |
| 19495 LIBS="$LIBS -liconv" | |
| 19496 fi | |
| 19497 | |
| 19498 case $host_os in | |
| 19499 solaris*) | |
| 19500 LDFLAGS="$LDFLAGS -R$ALT_HOME/lib" | |
| 19501 ;; | |
| 19502 esac | |
| 19503 | |
| 19504 | |
| 19505 $as_echo "#define PLD_png 1" >>confdefs.h | |
| 19506 | |
| 19507 if true; then | |
| 19508 AMPNG_TRUE= | |
| 19509 AMPNG_FALSE='#' | |
| 19510 else | |
| 19511 AMPNG_TRUE='#' | |
| 19512 AMPNG_FALSE= | |
| 19513 fi | |
| 19514 | |
| 19515 echo PNG libraries found | |
| 19516 if test $ALT_HOME = "/usr" ; then | |
| 19517 LDFLAGS="$ALT_LDFLAGS" | |
| 19518 CPPFLAGS="$ALT_CPPFLAGS" | |
| 19519 fi | |
| 19520 else | |
| 19521 # | |
| 19522 # If not okay then reset FLAGS. | |
| 19523 # | |
| 19524 if false; then | |
| 19525 AMPNG_TRUE= | |
| 19526 AMPNG_FALSE='#' | |
| 19527 else | |
| 19528 AMPNG_TRUE='#' | |
| 19529 AMPNG_FALSE= | |
| 19530 fi | |
| 19531 | |
| 19532 LDFLAGS="$ALT_LDFLAGS" | |
| 19533 CPPFLAGS="$ALT_CPPFLAGS" | |
| 19534 echo No png driver will be made due to librarys missing/old. | |
| 19535 fi | |
| 19536 # echo PNG STUFF FOLLOWS!!! | |
| 19537 # echo CHECK = $CHECK | |
| 19538 # echo LIBS = $LIBS | |
| 19539 # echo LDFLAGS = $LDFLAGS | |
| 19540 # echo CPPFLAGS = $CPPFLAGS | |
| 19541 | |
| 19542 | |
| 19543 else | |
| 19544 if test $withval != "no"; then | |
| 19545 echo "Directory $ALT_HOME does not exist" | |
| 19546 exit 0 | |
| 19547 fi | |
| 19548 fi | |
| 19549 | |
| 19550 | |
| 19551 | |
| 19552 MYSQL_CFLAGS="" | |
| 19553 MYSQL_CPPFLAGS="" | |
| 19554 MYSQL_LDFLAGS="" | |
| 19555 MYSQL_CONFIG="" | |
| 19556 MYSQL_VERSION="" | |
| 19557 | |
| 19558 | |
| 19559 # Check whether --with-mysql was given. | |
| 19560 if test "${with_mysql+set}" = set; then : | |
| 19561 withval=$with_mysql; | |
| 19562 if test "x${withval}" = "xno"; then : | |
| 19563 want_mysql="no" | |
| 19564 elif test "x${withval}" = "xyes"; then : | |
| 19565 want_mysql="yes" | |
| 19566 else | |
| 19567 | |
| 19568 want_mysql="yes" | |
| 19569 MYSQL_CONFIG="${withval}" | |
| 19570 | |
| 19571 fi | |
| 19572 | |
| 19573 else | |
| 19574 want_mysql="yes" | |
| 19575 fi | |
| 19576 | |
| 19577 | |
| 19578 | |
| 19579 if test "x${want_mysql}" = "xyes"; then : | |
| 19580 | |
| 19581 if test -z "${MYSQL_CONFIG}" -o test; then : | |
| 19582 # Extract the first word of "mysql_config", so it can be a program name with args. | |
| 19583 set dummy mysql_config; ac_word=$2 | |
| 19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 19585 $as_echo_n "checking for $ac_word... " >&6; } | |
| 19586 if ${ac_cv_path_MYSQL_CONFIG+:} false; then : | |
| 19587 $as_echo_n "(cached) " >&6 | |
| 19588 else | |
| 19589 case $MYSQL_CONFIG in | |
| 19590 [\\/]* | ?:[\\/]*) | |
| 19591 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path. | |
| 19592 ;; | |
| 19593 *) | |
| 19594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 19595 for as_dir in $PATH | |
| 19596 do | |
| 19597 IFS=$as_save_IFS | |
| 19598 test -z "$as_dir" && as_dir=. | |
| 19599 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 19600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 19601 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
| 19602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 19603 break 2 | |
| 19604 fi | |
| 19605 done | |
| 19606 done | |
| 19607 IFS=$as_save_IFS | |
| 19608 | |
| 19609 test -z "$ac_cv_path_MYSQL_CONFIG" && ac_cv_path_MYSQL_CONFIG="no" | |
| 19610 ;; | |
| 19611 esac | |
| 19612 fi | |
| 19613 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG | |
| 19614 if test -n "$MYSQL_CONFIG"; then | |
| 19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 | |
| 19616 $as_echo "$MYSQL_CONFIG" >&6; } | |
| 19617 else | |
| 19618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 19619 $as_echo "no" >&6; } | |
| 19620 fi | |
| 19621 | |
| 19622 | |
| 19623 fi | |
| 19624 | |
| 19625 if test "x${MYSQL_CONFIG}" != "xno"; then : | |
| 19626 | |
| 19627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries" >&5 | |
| 19628 $as_echo_n "checking for MySQL libraries... " >&6; } | |
| 19629 | |
| 19630 MYSQL_CFLAGS="`${MYSQL_CONFIG} --cflags`" | |
| 19631 MYSQL_CPPFLAGS="`${MYSQL_CONFIG} --include`" | |
| 19632 MYSQL_LDFLAGS="`${MYSQL_CONFIG} --libs`" | |
| 19633 | |
| 19634 MYSQL_VERSION=`${MYSQL_CONFIG} --version` | |
| 19635 | |
| 19636 | |
| 19637 EMBCPPFLAGS="${CPPFLAGS}" | |
| 19638 EMBLDFLAGS="${LDFLAGS}" | |
| 19639 | |
| 19640 CPPFLAGS="${MYSQL_CPPFLAGS} ${EMBCPPFLAGS}" | |
| 19641 LDFLAGS="${MYSQL_LDFLAGS} ${EMBLDFLAGS}" | |
| 19642 | |
| 19643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 19644 /* end confdefs.h. */ | |
| 19645 #include <stdio.h> | |
| 19646 #include "mysql.h" | |
| 19647 int | |
| 19648 main () | |
| 19649 { | |
| 19650 mysql_info(NULL) | |
| 19651 ; | |
| 19652 return 0; | |
| 19653 } | |
| 19654 _ACEOF | |
| 19655 if ac_fn_c_try_link "$LINENO"; then : | |
| 19656 havemysql="yes" | |
| 19657 else | |
| 19658 havemysql="no" | |
| 19659 fi | |
| 19660 rm -f core conftest.err conftest.$ac_objext \ | |
| 19661 conftest$ac_exeext conftest.$ac_ext | |
| 19662 | |
| 19663 CPPFLAGS="${EMBCPPFLAGS}" | |
| 19664 LDFLAGS="${EMBLDFLAGS}" | |
| 19665 | |
| 19666 if test "x${havemysql}" = "xyes"; then : | |
| 19667 | |
| 19668 | |
| 19669 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h | |
| 19670 | |
| 19671 found_mysql="yes" | |
| 19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 19673 $as_echo "yes" >&6; } | |
| 19674 | |
| 19675 else | |
| 19676 | |
| 19677 MYSQL_CFLAGS="" | |
| 19678 MYSQL_CPPFLAGS="" | |
| 19679 MYSQL_LDFLAGS="" | |
| 19680 found_mysql="no" | |
| 19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 19682 $as_echo "no" >&6; } | |
| 19683 | |
| 19684 fi | |
| 19685 | |
| 19686 else | |
| 19687 | |
| 19688 found_mysql="no" | |
| 19689 | |
| 19690 fi | |
| 19691 | |
| 19692 fi | |
| 19693 | |
| 19694 | |
| 19695 mysql_version_req= | |
| 19696 | |
| 19697 if test "x${found_mysql}" = "xyes" -a -n "${mysql_version_req}"; then : | |
| 19698 | |
| 19699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MySQL version is >= ${mysql_version_req}" >&5 | |
| 19700 $as_echo_n "checking if MySQL version is >= ${mysql_version_req}... " >&6; } | |
| 19701 | |
| 19702 | |
| 19703 mysql_version_req_major=`expr ${mysql_version_req} : '\([0-9]*\)'` | |
| 19704 mysql_version_req_minor=`expr ${mysql_version_req} : '[0-9]*\.\([0-9]*\)'` | |
| 19705 mysql_version_req_micro=`expr ${mysql_version_req} : '[0-9]*\.[0-9]*\.\([0-9]*\)'` | |
| 19706 | |
| 19707 if test "x${mysql_version_req_micro}" = "x"; then : | |
| 19708 mysql_version_req_micro="0" | |
| 19709 fi | |
| 19710 | |
| 19711 mysql_version_req_number=`expr ${mysql_version_req_major} \* 1000000 \ | |
| 19712 \+ ${mysql_version_req_minor} \* 1000 \ | |
| 19713 \+ ${mysql_version_req_micro}` | |
| 19714 | |
| 19715 | |
| 19716 mysql_version_major=`expr ${MYSQL_VERSION} : '\([0-9]*\)'` | |
| 19717 mysql_version_minor=`expr ${MYSQL_VERSION} : '[0-9]*\.\([0-9]*\)'` | |
| 19718 mysql_version_micro=`expr ${MYSQL_VERSION} : '[0-9]*\.[0-9]*\.\([0-9]*\)'` | |
| 19719 | |
| 19720 if test "x${mysql_version_micro}" = "x"; then : | |
| 19721 mysql_version_micro="0" | |
| 19722 fi | |
| 19723 | |
| 19724 mysql_version_number=`expr ${mysql_version_major} \* 1000000 \ | |
| 19725 \+ ${mysql_version_minor} \* 1000 \ | |
| 19726 \+ ${mysql_version_micro}` | |
| 19727 | |
| 19728 mysql_version_check=`expr ${mysql_version_number} \>\= ${mysql_version_req_number}` | |
| 19729 | |
| 19730 if test "x${mysql_version_check}" = "x1"; then : | |
| 19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 19732 $as_echo "yes" >&6; } | |
| 19733 else | |
| 19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 19735 $as_echo "no" >&6; } | |
| 19736 fi | |
| 19737 | |
| 19738 fi | |
| 19739 | |
| 19740 | |
| 19741 | |
| 19742 | |
| 19743 | |
| 19744 | |
| 19745 | |
| 19746 POSTGRESQL_CFLAGS="" | |
| 19747 POSTGRESQL_CPPFLAGS="" | |
| 19748 POSTGRESQL_LDFLAGS="" | |
| 19749 POSTGRESQL_CONFIG="" | |
| 19750 POSTGRESQL_VERSION="" | |
| 19751 | |
| 19752 | |
| 19753 # Check whether --with-postgresql was given. | |
| 19754 if test "${with_postgresql+set}" = set; then : | |
| 19755 withval=$with_postgresql; | |
| 19756 if test "x${withval}" = "xno"; then : | |
| 19757 want_postgresql="no" | |
| 19758 elif test "x${withval}" = "xyes"; then : | |
| 19759 want_postgresql="yes" | |
| 19760 else | |
| 19761 | |
| 19762 want_postgresql="yes" | |
| 19763 POSTGRESQL_CONFIG="${withval}" | |
| 19764 | |
| 19765 fi | |
| 19766 | |
| 19767 else | |
| 19768 want_postgresql="yes" | |
| 19769 fi | |
| 19770 | |
| 19771 | |
| 19772 | |
| 19773 if test "x${want_postgresql}" = "xyes"; then : | |
| 19774 | |
| 19775 if test -z "${POSTGRESQL_CONFIG}" -o test; then : | |
| 19776 # Extract the first word of "pg_config", so it can be a program name with args. | |
| 19777 set dummy pg_config; ac_word=$2 | |
| 19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
| 19779 $as_echo_n "checking for $ac_word... " >&6; } | |
| 19780 if ${ac_cv_path_POSTGRESQL_CONFIG+:} false; then : | |
| 19781 $as_echo_n "(cached) " >&6 | |
| 19782 else | |
| 19783 case $POSTGRESQL_CONFIG in | |
| 19784 [\\/]* | ?:[\\/]*) | |
| 19785 ac_cv_path_POSTGRESQL_CONFIG="$POSTGRESQL_CONFIG" # Let the user override the test with a path. | |
| 19786 ;; | |
| 19787 *) | |
| 19788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 19789 for as_dir in $PATH | |
| 19790 do | |
| 19791 IFS=$as_save_IFS | |
| 19792 test -z "$as_dir" && as_dir=. | |
| 19793 for ac_exec_ext in '' $ac_executable_extensions; do | |
| 19794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
| 19795 ac_cv_path_POSTGRESQL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
| 19796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
| 19797 break 2 | |
| 19798 fi | |
| 19799 done | |
| 19800 done | |
| 19801 IFS=$as_save_IFS | |
| 19802 | |
| 19803 test -z "$ac_cv_path_POSTGRESQL_CONFIG" && ac_cv_path_POSTGRESQL_CONFIG="no" | |
| 19804 ;; | |
| 19805 esac | |
| 19806 fi | |
| 19807 POSTGRESQL_CONFIG=$ac_cv_path_POSTGRESQL_CONFIG | |
| 19808 if test -n "$POSTGRESQL_CONFIG"; then | |
| 19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POSTGRESQL_CONFIG" >&5 | |
| 19810 $as_echo "$POSTGRESQL_CONFIG" >&6; } | |
| 19811 else | |
| 19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 19813 $as_echo "no" >&6; } | |
| 19814 fi | |
| 19815 | |
| 19816 | |
| 19817 fi | |
| 19818 | |
| 19819 if test "x${POSTGRESQL_CONFIG}" != "xno"; then : | |
| 19820 | |
| 19821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries" >&5 | |
| 19822 $as_echo_n "checking for PostgreSQL libraries... " >&6; } | |
| 19823 | |
| 19824 POSTGRESQL_CFLAGS="-I`${POSTGRESQL_CONFIG} --includedir`" | |
| 19825 POSTGRESQL_CPPFLAGS="-I`${POSTGRESQL_CONFIG} --includedir`" | |
| 19826 POSTGRESQL_LDFLAGS="-L`${POSTGRESQL_CONFIG} --libdir` -lpq" | |
| 19827 | |
| 19828 POSTGRESQL_VERSION=`${POSTGRESQL_CONFIG} --version | sed -e 's#PostgreSQL ##'` | |
| 19829 | |
| 19830 | |
| 19831 EMBCPPFLAGS="${CPPFLAGS}" | |
| 19832 EMBLDFLAGS="${LDFLAGS}" | |
| 19833 | |
| 19834 CPPFLAGS="${POSTGRESQL_CPPFLAGS} ${EMBCPPFLAGS}" | |
| 19835 LDFLAGS="${POSTGRESQL_LDFLAGS} ${EMBLDFLAGS}" | |
| 19836 | |
| 19837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
| 19838 /* end confdefs.h. */ | |
| 19839 #include <stdio.h> | |
| 19840 #include "libpq-fe.h" | |
| 19841 int | |
| 19842 main () | |
| 19843 { | |
| 19844 PQconnectdb(NULL) | |
| 19845 ; | |
| 19846 return 0; | |
| 19847 } | |
| 19848 _ACEOF | |
| 19849 if ac_fn_c_try_link "$LINENO"; then : | |
| 19850 havepostgresql="yes" | |
| 19851 else | |
| 19852 havepostgresql="no" | |
| 19853 fi | |
| 19854 rm -f core conftest.err conftest.$ac_objext \ | |
| 19855 conftest$ac_exeext conftest.$ac_ext | |
| 19856 | |
| 19857 CPPFLAGS="${EMBCPPFLAGS}" | |
| 19858 LDFLAGS="${EMBLDFLAGS}" | |
| 19859 | |
| 19860 if test "x${havepostgresql}" = "xyes"; then : | |
| 19861 | |
| 19862 | |
| 19863 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h | |
| 19864 | |
| 19865 found_postgresql="yes" | |
| 19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 19867 $as_echo "yes" >&6; } | |
| 19868 | |
| 19869 else | |
| 19870 | |
| 19871 POSTGRESQL_CFLAGS="" | |
| 19872 POSTGRESQL_CPPFLAGS="" | |
| 19873 POSTGRESQL_LDFLAGS="" | |
| 19874 found_postgresql="no" | |
| 19875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 19876 $as_echo "no" >&6; } | |
| 19877 | |
| 19878 fi | |
| 19879 | |
| 19880 else | |
| 19881 | |
| 19882 found_postgresql="no" | |
| 19883 | |
| 19884 fi | |
| 19885 | |
| 19886 fi | |
| 19887 | |
| 19888 | |
| 19889 postgresql_version_req= | |
| 19890 | |
| 19891 if test "x${found_postgresql}" = "xyes" -a -n "${postgresql_version_req}"; then : | |
| 19892 | |
| 19893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PostgreSQL version is >= ${postgresql_version_req}" >&5 | |
| 19894 $as_echo_n "checking if PostgreSQL version is >= ${postgresql_version_req}... " >&6; } | |
| 19895 | |
| 19896 | |
| 19897 postgresql_version_req_major=`expr ${postgresql_version_req} : '\([0-9]*\)'` | |
| 19898 postgresql_version_req_minor=`expr ${postgresql_version_req} : '[0-9]*\.\([0-9]*\)'` | |
| 19899 postgresql_version_req_micro=`expr ${postgresql_version_req} : '[0-9]*\.[0-9]*\.\([0-9]*\)'` | |
| 19900 | |
| 19901 if test "x${postgresql_version_req_micro}" = "x"; then : | |
| 19902 postgresql_version_req_micro="0" | |
| 19903 fi | |
| 19904 | |
| 19905 postgresql_version_req_number=`expr ${postgresql_version_req_major} \* 1000000 \ | |
| 19906 \+ ${postgresql_version_req_minor} \* 1000 \ | |
| 19907 \+ ${postgresql_version_req_micro}` | |
| 19908 | |
| 19909 | |
| 19910 postgresql_version_major=`expr ${POSTGRESQL_VERSION} : '\([0-9]*\)'` | |
| 19911 postgresql_version_minor=`expr ${POSTGRESQL_VERSION} : '[0-9]*\.\([0-9]*\)'` | |
| 19912 postgresql_version_micro=`expr ${POSTGRESQL_VERSION} : '[0-9]*\.[0-9]*\.\([0-9]*\)'` | |
| 19913 | |
| 19914 if test "x${postgresql_version_micro}" = "x"; then : | |
| 19915 postgresql_version_micro="0" | |
| 19916 fi | |
| 19917 | |
| 19918 postgresql_version_number=`expr ${postgresql_version_major} \* 1000000 \ | |
| 19919 \+ ${postgresql_version_minor} \* 1000 \ | |
| 19920 \+ ${postgresql_version_micro}` | |
| 19921 | |
| 19922 postgresql_version_check=`expr ${postgresql_version_number} \>\= ${postgresql_version_req_number}` | |
| 19923 | |
| 19924 if test "x${postgresql_version_check}" = "x1"; then : | |
| 19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 19926 $as_echo "yes" >&6; } | |
| 19927 else | |
| 19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 19929 $as_echo "no" >&6; } | |
| 19930 fi | |
| 19931 | |
| 19932 fi | |
| 19933 | |
| 19934 | |
| 19935 | |
| 19936 | |
| 19937 | |
| 19938 | |
| 19939 | |
| 19940 | |
| 19941 | |
| 19942 | |
| 19943 | |
| 19944 | |
| 19945 | |
| 19946 | |
| 19947 | |
| 19948 | |
| 19949 | |
| 19950 | |
| 19951 | |
| 19952 | |
| 19953 | |
| 19954 | |
| 19955 | |
| 19956 | |
| 19957 locallink="no" | |
| 19958 embprefix="/usr/local" | |
| 19959 # Check whether --enable-localforce was given. | |
| 19960 if test "${enable_localforce+set}" = set; then : | |
| 19961 enableval=$enable_localforce; | |
| 19962 fi | |
| 19963 | |
| 19964 | |
| 19965 if test "x${enable_localforce}" = "xyes"; then : | |
| 19966 embprefix="/usr/local" | |
| 19967 fi | |
| 19968 | |
| 19969 if test "x${prefix}" = "xNONE"; then : | |
| 19970 | |
| 19971 if test "x${enable_localforce}" != "xyes"; then : | |
| 19972 locallink="yes" | |
| 19973 else | |
| 19974 | |
| 19975 locallink="no" | |
| 19976 embprefix="/usr/local" | |
| 19977 | |
| 19978 fi | |
| 19979 | |
| 19980 else | |
| 19981 | |
| 19982 embprefix="${prefix}" | |
| 19983 | |
| 19984 fi | |
| 19985 | |
| 19986 if test "x${locallink}" = "xyes"; then | |
| 19987 LOCALLINK_TRUE= | |
| 19988 LOCALLINK_FALSE='#' | |
| 19989 else | |
| 19990 LOCALLINK_TRUE='#' | |
| 19991 LOCALLINK_FALSE= | |
| 19992 fi | |
| 19993 | |
| 19994 | |
| 19995 | |
| 19996 | |
| 19997 | |
| 19998 | |
| 19999 | |
| 20000 # Enable debugging: --enable-debug, sets CFLAGS | |
| 20001 | |
| 20002 # Check whether --enable-debug was given. | |
| 20003 if test "${enable_debug+set}" = set; then : | |
| 20004 enableval=$enable_debug; | |
| 20005 fi | |
| 20006 | |
| 20007 | |
| 20008 if test "x${enable_debug}" = "xyes"; then : | |
| 20009 as_fn_append CFLAGS " -g" | |
| 20010 fi | |
| 20011 | |
| 20012 | |
| 20013 | |
| 20014 | |
| 20015 # Turn off irritating linker warnings in IRIX | |
| 20016 | |
| 20017 case ${host_os} in #( | |
| 20018 irix*) : | |
| 20019 | |
| 20020 CFLAGS="-Wl,-LD_MSG:off=85:off=84:off=16:off=134 ${CFLAGS}" | |
| 20021 ;; #( | |
| 20022 *) : | |
| 20023 ;; | |
| 20024 esac | |
| 20025 | |
| 20026 | |
| 20027 | |
| 20028 | |
| 20029 # Enable the large file interface: --enable-large, appends CPPFLAGS | |
| 20030 | |
| 20031 # Check whether --enable-large was given. | |
| 20032 if test "${enable_large+set}" = set; then : | |
| 20033 enableval=$enable_large; | |
| 20034 fi | |
| 20035 | |
| 20036 | |
| 20037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for large file support" >&5 | |
| 20038 $as_echo_n "checking for large file support... " >&6; } | |
| 20039 | |
| 20040 if test "x${enable_large}" = "xno"; then : | |
| 20041 | |
| 20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 20043 $as_echo "no" >&6; } | |
| 20044 | |
| 20045 else | |
| 20046 | |
| 20047 case ${host_os} in #( | |
| 20048 linux*) : | |
| 20049 | |
| 20050 as_fn_append CPPFLAGS " -DAJ_LinuxLF" | |
| 20051 as_fn_append CPPFLAGS " -D_LARGEFILE_SOURCE" | |
| 20052 as_fn_append CPPFLAGS " -D_LARGEFILE64_SOURCE" | |
| 20053 as_fn_append CPPFLAGS " -D_FILE_OFFSET_BITS=64" | |
| 20054 ;; #( | |
| 20055 freebsd*) : | |
| 20056 | |
| 20057 as_fn_append CPPFLAGS " -DAJ_FreeBSDLF" | |
| 20058 ;; #( | |
| 20059 solaris*) : | |
| 20060 | |
| 20061 as_fn_append CPPFLAGS " -DAJ_SolarisLF" | |
| 20062 as_fn_append CPPFLAGS " -D_LARGEFILE_SOURCE" | |
| 20063 as_fn_append CPPFLAGS " -D_FILE_OFFSET_BITS=64" | |
| 20064 ;; #( | |
| 20065 osf*) : | |
| 20066 | |
| 20067 as_fn_append CPPFLAGS " -DAJ_OSF1LF" | |
| 20068 ;; #( | |
| 20069 irix*) : | |
| 20070 | |
| 20071 as_fn_append CPPFLAGS " -DAJ_IRIXLF" | |
| 20072 as_fn_append CPPFLAGS " -D_LARGEFILE64_SOURCE" | |
| 20073 ;; #( | |
| 20074 aix*) : | |
| 20075 | |
| 20076 as_fn_append CPPFLAGS " -DAJ_AIXLF" | |
| 20077 as_fn_append CPPFLAGS " -D_LARGE_FILES" | |
| 20078 ;; #( | |
| 20079 hpux*) : | |
| 20080 | |
| 20081 as_fn_append CPPFLAGS " -DAJ_HPUXLF" | |
| 20082 as_fn_append CPPFLAGS " -D_LARGEFILE_SOURCE" | |
| 20083 as_fn_append CPPFLAGS " -D_FILE_OFFSET_BITS=64" | |
| 20084 ;; #( | |
| 20085 darwin*) : | |
| 20086 | |
| 20087 as_fn_append CPPFLAGS " -DAJ_MACOSXLF" | |
| 20088 ;; #( | |
| 20089 *) : | |
| 20090 ;; | |
| 20091 esac | |
| 20092 | |
| 20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 20094 $as_echo "yes" >&6; } | |
| 20095 | |
| 20096 fi | |
| 20097 | |
| 20098 | |
| 20099 | |
| 20100 | |
| 20101 # Enable libraries provided by the system rather than EMBOSS: | |
| 20102 # --enable-systemlibs, sets ESYSTEMLIBS | |
| 20103 | |
| 20104 # Check whether --enable-systemlibs was given. | |
| 20105 if test "${enable_systemlibs+set}" = set; then : | |
| 20106 enableval=$enable_systemlibs; | |
| 20107 fi | |
| 20108 | |
| 20109 | |
| 20110 if test "x${enable_systemlibs}" = "xyes"; then | |
| 20111 ESYSTEMLIBS_TRUE= | |
| 20112 ESYSTEMLIBS_FALSE='#' | |
| 20113 else | |
| 20114 ESYSTEMLIBS_TRUE='#' | |
| 20115 ESYSTEMLIBS_FALSE= | |
| 20116 fi | |
| 20117 | |
| 20118 | |
| 20119 | |
| 20120 | |
| 20121 | |
| 20122 # Enable the purify tool: --enable-purify, sets CC and LIBTOOL | |
| 20123 | |
| 20124 # Check whether --enable-purify was given. | |
| 20125 if test "${enable_purify+set}" = set; then : | |
| 20126 enableval=$enable_purify; | |
| 20127 fi | |
| 20128 | |
| 20129 | |
| 20130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for purify" >&5 | |
| 20131 $as_echo_n "checking for purify... " >&6; } | |
| 20132 | |
| 20133 if test "x${enable_purify}" = "xyes"; then : | |
| 20134 | |
| 20135 CC="purify --chain-length=20 -best-effort -windows=yes gcc -g" | |
| 20136 LIBTOOL="${LIBTOOL} --tag=CC" | |
| 20137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 20138 $as_echo "yes" >&6; } | |
| 20139 | |
| 20140 else | |
| 20141 | |
| 20142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 20143 $as_echo "no" >&6; } | |
| 20144 | |
| 20145 fi | |
| 20146 | |
| 20147 | |
| 20148 | |
| 20149 | |
| 20150 if test "x${CC}" = "xcc"; then | |
| 20151 case "${host}" in | |
| 20152 alpha*-dec-osf*) CFLAGS="${CFLAGS} -ieee";; | |
| 20153 esac | |
| 20154 fi | |
| 20155 | |
| 20156 if test "x${enable_purify}" = "xyes"; then | |
| 20157 PURIFY_TRUE= | |
| 20158 PURIFY_FALSE='#' | |
| 20159 else | |
| 20160 PURIFY_TRUE='#' | |
| 20161 PURIFY_FALSE= | |
| 20162 fi | |
| 20163 | |
| 20164 | |
| 20165 | |
| 20166 | |
| 20167 | |
| 20168 platform_cygwin="no" | |
| 20169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin" >&5 | |
| 20170 $as_echo_n "checking for cygwin... " >&6; } | |
| 20171 case "${host}" in | |
| 20172 *-*-mingw*|*-*-cygwin*) | |
| 20173 platform_cygwin="yes" | |
| 20174 ;; | |
| 20175 *) | |
| 20176 platform_cygwin="no" | |
| 20177 ;; | |
| 20178 esac | |
| 20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${platform_cygwin}" >&5 | |
| 20180 $as_echo "${platform_cygwin}" >&6; } | |
| 20181 if test "x${platform_cygwin}" = "xyes"; then | |
| 20182 ISCYGWIN_TRUE= | |
| 20183 ISCYGWIN_FALSE='#' | |
| 20184 else | |
| 20185 ISCYGWIN_TRUE='#' | |
| 20186 ISCYGWIN_FALSE= | |
| 20187 fi | |
| 20188 | |
| 20189 | |
| 20190 | |
| 20191 | |
| 20192 | |
| 20193 needajax="no" | |
| 20194 | |
| 20195 case ${host_os} in #( | |
| 20196 aix*) : | |
| 20197 if true; then | |
| 20198 ISAIXIA64_TRUE= | |
| 20199 ISAIXIA64_FALSE='#' | |
| 20200 else | |
| 20201 ISAIXIA64_TRUE='#' | |
| 20202 ISAIXIA64_FALSE= | |
| 20203 fi | |
| 20204 ;; #( | |
| 20205 *) : | |
| 20206 if false; then | |
| 20207 ISAIXIA64_TRUE= | |
| 20208 ISAIXIA64_FALSE='#' | |
| 20209 else | |
| 20210 ISAIXIA64_TRUE='#' | |
| 20211 ISAIXIA64_FALSE= | |
| 20212 fi | |
| 20213 ;; | |
| 20214 esac | |
| 20215 | |
| 20216 if test "x${enable_shared}" = "xyes"; then | |
| 20217 ISSHARED_TRUE= | |
| 20218 ISSHARED_FALSE='#' | |
| 20219 else | |
| 20220 ISSHARED_TRUE='#' | |
| 20221 ISSHARED_FALSE= | |
| 20222 fi | |
| 20223 | |
| 20224 | |
| 20225 case ${host_os} in #( | |
| 20226 aix*) : | |
| 20227 | |
| 20228 if test -d ajax/.libs; then : | |
| 20229 $as_echo "AIX ajax/.libs exists" | |
| 20230 else | |
| 20231 mkdir ajax/.libs | |
| 20232 fi | |
| 20233 | |
| 20234 case ${host_os} in #( | |
| 20235 aix5*) : | |
| 20236 needajax="no" ;; #( | |
| 20237 aix4.3.3*) : | |
| 20238 needajax="yes" ;; #( | |
| 20239 *) : | |
| 20240 needajax="no" ;; | |
| 20241 esac | |
| 20242 ;; #( | |
| 20243 *) : | |
| 20244 ;; | |
| 20245 esac | |
| 20246 | |
| 20247 if test "x${needajax}" = "xyes"; then | |
| 20248 NEEDAJAX_TRUE= | |
| 20249 NEEDAJAX_FALSE='#' | |
| 20250 else | |
| 20251 NEEDAJAX_TRUE='#' | |
| 20252 NEEDAJAX_FALSE= | |
| 20253 fi | |
| 20254 | |
| 20255 | |
| 20256 | |
| 20257 | |
| 20258 | |
| 20259 # HP-UX needs -lsec for shadow passwords | |
| 20260 | |
| 20261 case ${host_os} in #( | |
| 20262 hpux*) : | |
| 20263 as_fn_append LDFLAGS " -lsec" ;; #( | |
| 20264 *) : | |
| 20265 ;; | |
| 20266 esac | |
| 20267 | |
| 20268 | |
| 20269 | |
| 20270 | |
| 20271 # GNU mcheck functions: --enable-mcheck, defines HAVE_MCHECK | |
| 20272 | |
| 20273 # Check whether --enable-mcheck was given. | |
| 20274 if test "${enable_mcheck+set}" = set; then : | |
| 20275 enableval=$enable_mcheck; | |
| 20276 fi | |
| 20277 | |
| 20278 | |
| 20279 if test "x${enable_mcheck}" = "xyes"; then : | |
| 20280 for ac_func in mcheck | |
| 20281 do : | |
| 20282 ac_fn_c_check_func "$LINENO" "mcheck" "ac_cv_func_mcheck" | |
| 20283 if test "x$ac_cv_func_mcheck" = xyes; then : | |
| 20284 cat >>confdefs.h <<_ACEOF | |
| 20285 #define HAVE_MCHECK 1 | |
| 20286 _ACEOF | |
| 20287 | |
| 20288 fi | |
| 20289 done | |
| 20290 | |
| 20291 fi | |
| 20292 | |
| 20293 | |
| 20294 | |
| 20295 | |
| 20296 # Collect AJAX statistics: --enable-savestats, defines AJ_SAVESTATS | |
| 20297 | |
| 20298 # Check whether --enable-savestats was given. | |
| 20299 if test "${enable_savestats+set}" = set; then : | |
| 20300 enableval=$enable_savestats; | |
| 20301 fi | |
| 20302 | |
| 20303 | |
| 20304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for savestats" >&5 | |
| 20305 $as_echo_n "checking for savestats... " >&6; } | |
| 20306 | |
| 20307 if test "x${enable_savestats}" = "xyes"; then : | |
| 20308 | |
| 20309 | |
| 20310 $as_echo "#define AJ_SAVESTATS 1" >>confdefs.h | |
| 20311 | |
| 20312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
| 20313 $as_echo "yes" >&6; } | |
| 20314 | |
| 20315 else | |
| 20316 | |
| 20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
| 20318 $as_echo "no" >&6; } | |
| 20319 | |
| 20320 fi | |
| 20321 | |
| 20322 | |
| 20323 | |
| 20324 | |
| 20325 ac_config_files="$ac_config_files Makefile src/Makefile acd/Makefile doc/Makefile doc/html/Makefile doc/text/Makefile" | |
| 20326 | |
| 20327 | |
| 20328 cat >confcache <<\_ACEOF | |
| 20329 # This file is a shell script that caches the results of configure | |
| 20330 # tests run on this system so they can be shared between configure | |
| 20331 # scripts and configure runs, see configure's option --config-cache. | |
| 20332 # It is not useful on other systems. If it contains results you don't | |
| 20333 # want to keep, you may remove or edit it. | |
| 20334 # | |
| 20335 # config.status only pays attention to the cache file if you give it | |
| 20336 # the --recheck option to rerun configure. | |
| 20337 # | |
| 20338 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
| 20339 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
| 20340 # following values. | |
| 20341 | |
| 20342 _ACEOF | |
| 20343 | |
| 20344 # The following way of writing the cache mishandles newlines in values, | |
| 20345 # but we know of no workaround that is simple, portable, and efficient. | |
| 20346 # So, we kill variables containing newlines. | |
| 20347 # Ultrix sh set writes to stderr and can't be redirected directly, | |
| 20348 # and sets the high bit in the cache file unless we assign to the vars. | |
| 20349 ( | |
| 20350 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
| 20351 eval ac_val=\$$ac_var | |
| 20352 case $ac_val in #( | |
| 20353 *${as_nl}*) | |
| 20354 case $ac_var in #( | |
| 20355 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
| 20356 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
| 20357 esac | |
| 20358 case $ac_var in #( | |
| 20359 _ | IFS | as_nl) ;; #( | |
| 20360 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
| 20361 *) { eval $ac_var=; unset $ac_var;} ;; | |
| 20362 esac ;; | |
| 20363 esac | |
| 20364 done | |
| 20365 | |
| 20366 (set) 2>&1 | | |
| 20367 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
| 20368 *${as_nl}ac_space=\ *) | |
| 20369 # `set' does not quote correctly, so add quotes: double-quote | |
| 20370 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
| 20371 sed -n \ | |
| 20372 "s/'/'\\\\''/g; | |
| 20373 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
| 20374 ;; #( | |
| 20375 *) | |
| 20376 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
| 20377 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
| 20378 ;; | |
| 20379 esac | | |
| 20380 sort | |
| 20381 ) | | |
| 20382 sed ' | |
| 20383 /^ac_cv_env_/b end | |
| 20384 t clear | |
| 20385 :clear | |
| 20386 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
| 20387 t end | |
| 20388 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
| 20389 :end' >>confcache | |
| 20390 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
| 20391 if test -w "$cache_file"; then | |
| 20392 if test "x$cache_file" != "x/dev/null"; then | |
| 20393 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
| 20394 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
| 20395 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
| 20396 cat confcache >"$cache_file" | |
| 20397 else | |
| 20398 case $cache_file in #( | |
| 20399 */* | ?:*) | |
| 20400 mv -f confcache "$cache_file"$$ && | |
| 20401 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
| 20402 *) | |
| 20403 mv -f confcache "$cache_file" ;; | |
| 20404 esac | |
| 20405 fi | |
| 20406 fi | |
| 20407 else | |
| 20408 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
| 20409 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
| 20410 fi | |
| 20411 fi | |
| 20412 rm -f confcache | |
| 20413 | |
| 20414 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
| 20415 # Let make expand exec_prefix. | |
| 20416 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
| 20417 | |
| 20418 DEFS=-DHAVE_CONFIG_H | |
| 20419 | |
| 20420 ac_libobjs= | |
| 20421 ac_ltlibobjs= | |
| 20422 U= | |
| 20423 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
| 20424 # 1. Remove the extension, and $U if already installed. | |
| 20425 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
| 20426 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
| 20427 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
| 20428 # will be set to the directory where LIBOBJS objects are built. | |
| 20429 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
| 20430 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
| 20431 done | |
| 20432 LIBOBJS=$ac_libobjs | |
| 20433 | |
| 20434 LTLIBOBJS=$ac_ltlibobjs | |
| 20435 | |
| 20436 | |
| 20437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
| 20438 $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
| 20439 if test -n "$am_sleep_pid"; then | |
| 20440 # Hide warnings about reused PIDs. | |
| 20441 wait $am_sleep_pid 2>/dev/null | |
| 20442 fi | |
| 20443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
| 20444 $as_echo "done" >&6; } | |
| 20445 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
| 20446 as_fn_error $? "conditional \"AMDEP\" was never defined. | |
| 20447 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20448 fi | |
| 20449 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
| 20450 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
| 20451 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20452 fi | |
| 20453 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
| 20454 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
| 20455 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20456 fi | |
| 20457 if test -n "$EXEEXT"; then | |
| 20458 am__EXEEXT_TRUE= | |
| 20459 am__EXEEXT_FALSE='#' | |
| 20460 else | |
| 20461 am__EXEEXT_TRUE='#' | |
| 20462 am__EXEEXT_FALSE= | |
| 20463 fi | |
| 20464 | |
| 20465 | |
| 20466 if test -z "${AMPNG_TRUE}" && test -z "${AMPNG_FALSE}"; then | |
| 20467 as_fn_error $? "conditional \"AMPNG\" was never defined. | |
| 20468 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20469 fi | |
| 20470 if test -z "${AMPDF_TRUE}" && test -z "${AMPDF_FALSE}"; then | |
| 20471 as_fn_error $? "conditional \"AMPDF\" was never defined. | |
| 20472 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20473 fi | |
| 20474 if test -z "${JAVA_BUILD_TRUE}" && test -z "${JAVA_BUILD_FALSE}"; then | |
| 20475 as_fn_error $? "conditional \"JAVA_BUILD\" was never defined. | |
| 20476 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20477 fi | |
| 20478 if test -z "${AMPDF_TRUE}" && test -z "${AMPDF_FALSE}"; then | |
| 20479 as_fn_error $? "conditional \"AMPDF\" was never defined. | |
| 20480 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20481 fi | |
| 20482 if test -z "${AMPDF_TRUE}" && test -z "${AMPDF_FALSE}"; then | |
| 20483 as_fn_error $? "conditional \"AMPDF\" was never defined. | |
| 20484 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20485 fi | |
| 20486 if test -z "${AMPNG_TRUE}" && test -z "${AMPNG_FALSE}"; then | |
| 20487 as_fn_error $? "conditional \"AMPNG\" was never defined. | |
| 20488 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20489 fi | |
| 20490 if test -z "${AMPNG_TRUE}" && test -z "${AMPNG_FALSE}"; then | |
| 20491 as_fn_error $? "conditional \"AMPNG\" was never defined. | |
| 20492 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20493 fi | |
| 20494 if test -z "${LOCALLINK_TRUE}" && test -z "${LOCALLINK_FALSE}"; then | |
| 20495 as_fn_error $? "conditional \"LOCALLINK\" was never defined. | |
| 20496 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20497 fi | |
| 20498 if test -z "${ESYSTEMLIBS_TRUE}" && test -z "${ESYSTEMLIBS_FALSE}"; then | |
| 20499 as_fn_error $? "conditional \"ESYSTEMLIBS\" was never defined. | |
| 20500 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20501 fi | |
| 20502 if test -z "${PURIFY_TRUE}" && test -z "${PURIFY_FALSE}"; then | |
| 20503 as_fn_error $? "conditional \"PURIFY\" was never defined. | |
| 20504 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20505 fi | |
| 20506 if test -z "${ISCYGWIN_TRUE}" && test -z "${ISCYGWIN_FALSE}"; then | |
| 20507 as_fn_error $? "conditional \"ISCYGWIN\" was never defined. | |
| 20508 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20509 fi | |
| 20510 if test -z "${ISAIXIA64_TRUE}" && test -z "${ISAIXIA64_FALSE}"; then | |
| 20511 as_fn_error $? "conditional \"ISAIXIA64\" was never defined. | |
| 20512 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20513 fi | |
| 20514 if test -z "${ISAIXIA64_TRUE}" && test -z "${ISAIXIA64_FALSE}"; then | |
| 20515 as_fn_error $? "conditional \"ISAIXIA64\" was never defined. | |
| 20516 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20517 fi | |
| 20518 if test -z "${ISSHARED_TRUE}" && test -z "${ISSHARED_FALSE}"; then | |
| 20519 as_fn_error $? "conditional \"ISSHARED\" was never defined. | |
| 20520 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20521 fi | |
| 20522 if test -z "${NEEDAJAX_TRUE}" && test -z "${NEEDAJAX_FALSE}"; then | |
| 20523 as_fn_error $? "conditional \"NEEDAJAX\" was never defined. | |
| 20524 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
| 20525 fi | |
| 20526 | |
| 20527 : "${CONFIG_STATUS=./config.status}" | |
| 20528 ac_write_fail=0 | |
| 20529 ac_clean_files_save=$ac_clean_files | |
| 20530 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
| 20531 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
| 20532 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
| 20533 as_write_fail=0 | |
| 20534 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
| 20535 #! $SHELL | |
| 20536 # Generated by $as_me. | |
| 20537 # Run this file to recreate the current configuration. | |
| 20538 # Compiler output produced by configure, useful for debugging | |
| 20539 # configure, is in config.log if it exists. | |
| 20540 | |
| 20541 debug=false | |
| 20542 ac_cs_recheck=false | |
| 20543 ac_cs_silent=false | |
| 20544 | |
| 20545 SHELL=\${CONFIG_SHELL-$SHELL} | |
| 20546 export SHELL | |
| 20547 _ASEOF | |
| 20548 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
| 20549 ## -------------------- ## | |
| 20550 ## M4sh Initialization. ## | |
| 20551 ## -------------------- ## | |
| 20552 | |
| 20553 # Be more Bourne compatible | |
| 20554 DUALCASE=1; export DUALCASE # for MKS sh | |
| 20555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
| 20556 emulate sh | |
| 20557 NULLCMD=: | |
| 20558 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
| 20559 # is contrary to our usage. Disable this feature. | |
| 20560 alias -g '${1+"$@"}'='"$@"' | |
| 20561 setopt NO_GLOB_SUBST | |
| 20562 else | |
| 20563 case `(set -o) 2>/dev/null` in #( | |
| 20564 *posix*) : | |
| 20565 set -o posix ;; #( | |
| 20566 *) : | |
| 20567 ;; | |
| 20568 esac | |
| 20569 fi | |
| 20570 | |
| 20571 | |
| 20572 as_nl=' | |
| 20573 ' | |
| 20574 export as_nl | |
| 20575 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
| 20576 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
| 20577 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
| 20578 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
| 20579 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
| 20580 # but without wasting forks for bash or zsh. | |
| 20581 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
| 20582 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
| 20583 as_echo='print -r --' | |
| 20584 as_echo_n='print -rn --' | |
| 20585 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
| 20586 as_echo='printf %s\n' | |
| 20587 as_echo_n='printf %s' | |
| 20588 else | |
| 20589 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
| 20590 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
| 20591 as_echo_n='/usr/ucb/echo -n' | |
| 20592 else | |
| 20593 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
| 20594 as_echo_n_body='eval | |
| 20595 arg=$1; | |
| 20596 case $arg in #( | |
| 20597 *"$as_nl"*) | |
| 20598 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
| 20599 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
| 20600 esac; | |
| 20601 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
| 20602 ' | |
| 20603 export as_echo_n_body | |
| 20604 as_echo_n='sh -c $as_echo_n_body as_echo' | |
| 20605 fi | |
| 20606 export as_echo_body | |
| 20607 as_echo='sh -c $as_echo_body as_echo' | |
| 20608 fi | |
| 20609 | |
| 20610 # The user is always right. | |
| 20611 if test "${PATH_SEPARATOR+set}" != set; then | |
| 20612 PATH_SEPARATOR=: | |
| 20613 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
| 20614 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
| 20615 PATH_SEPARATOR=';' | |
| 20616 } | |
| 20617 fi | |
| 20618 | |
| 20619 | |
| 20620 # IFS | |
| 20621 # We need space, tab and new line, in precisely that order. Quoting is | |
| 20622 # there to prevent editors from complaining about space-tab. | |
| 20623 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
| 20624 # splitting by setting IFS to empty value.) | |
| 20625 IFS=" "" $as_nl" | |
| 20626 | |
| 20627 # Find who we are. Look in the path if we contain no directory separator. | |
| 20628 as_myself= | |
| 20629 case $0 in #(( | |
| 20630 *[\\/]* ) as_myself=$0 ;; | |
| 20631 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
| 20632 for as_dir in $PATH | |
| 20633 do | |
| 20634 IFS=$as_save_IFS | |
| 20635 test -z "$as_dir" && as_dir=. | |
| 20636 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
| 20637 done | |
| 20638 IFS=$as_save_IFS | |
| 20639 | |
| 20640 ;; | |
| 20641 esac | |
| 20642 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
| 20643 # in which case we are not to be found in the path. | |
| 20644 if test "x$as_myself" = x; then | |
| 20645 as_myself=$0 | |
| 20646 fi | |
| 20647 if test ! -f "$as_myself"; then | |
| 20648 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
| 20649 exit 1 | |
| 20650 fi | |
| 20651 | |
| 20652 # Unset variables that we do not need and which cause bugs (e.g. in | |
| 20653 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
| 20654 # suppresses any "Segmentation fault" message there. '((' could | |
| 20655 # trigger a bug in pdksh 5.2.14. | |
| 20656 for as_var in BASH_ENV ENV MAIL MAILPATH | |
| 20657 do eval test x\${$as_var+set} = xset \ | |
| 20658 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
| 20659 done | |
| 20660 PS1='$ ' | |
| 20661 PS2='> ' | |
| 20662 PS4='+ ' | |
| 20663 | |
| 20664 # NLS nuisances. | |
| 20665 LC_ALL=C | |
| 20666 export LC_ALL | |
| 20667 LANGUAGE=C | |
| 20668 export LANGUAGE | |
| 20669 | |
| 20670 # CDPATH. | |
| 20671 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
| 20672 | |
| 20673 | |
| 20674 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
| 20675 # ---------------------------------------- | |
| 20676 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
| 20677 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
| 20678 # script with STATUS, using 1 if that was 0. | |
| 20679 as_fn_error () | |
| 20680 { | |
| 20681 as_status=$1; test $as_status -eq 0 && as_status=1 | |
| 20682 if test "$4"; then | |
| 20683 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
| 20684 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
| 20685 fi | |
| 20686 $as_echo "$as_me: error: $2" >&2 | |
| 20687 as_fn_exit $as_status | |
| 20688 } # as_fn_error | |
| 20689 | |
| 20690 | |
| 20691 # as_fn_set_status STATUS | |
| 20692 # ----------------------- | |
| 20693 # Set $? to STATUS, without forking. | |
| 20694 as_fn_set_status () | |
| 20695 { | |
| 20696 return $1 | |
| 20697 } # as_fn_set_status | |
| 20698 | |
| 20699 # as_fn_exit STATUS | |
| 20700 # ----------------- | |
| 20701 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
| 20702 as_fn_exit () | |
| 20703 { | |
| 20704 set +e | |
| 20705 as_fn_set_status $1 | |
| 20706 exit $1 | |
| 20707 } # as_fn_exit | |
| 20708 | |
| 20709 # as_fn_unset VAR | |
| 20710 # --------------- | |
| 20711 # Portably unset VAR. | |
| 20712 as_fn_unset () | |
| 20713 { | |
| 20714 { eval $1=; unset $1;} | |
| 20715 } | |
| 20716 as_unset=as_fn_unset | |
| 20717 # as_fn_append VAR VALUE | |
| 20718 # ---------------------- | |
| 20719 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
| 20720 # advantage of any shell optimizations that allow amortized linear growth over | |
| 20721 # repeated appends, instead of the typical quadratic growth present in naive | |
| 20722 # implementations. | |
| 20723 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
| 20724 eval 'as_fn_append () | |
| 20725 { | |
| 20726 eval $1+=\$2 | |
| 20727 }' | |
| 20728 else | |
| 20729 as_fn_append () | |
| 20730 { | |
| 20731 eval $1=\$$1\$2 | |
| 20732 } | |
| 20733 fi # as_fn_append | |
| 20734 | |
| 20735 # as_fn_arith ARG... | |
| 20736 # ------------------ | |
| 20737 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
| 20738 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
| 20739 # must be portable across $(()) and expr. | |
| 20740 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
| 20741 eval 'as_fn_arith () | |
| 20742 { | |
| 20743 as_val=$(( $* )) | |
| 20744 }' | |
| 20745 else | |
| 20746 as_fn_arith () | |
| 20747 { | |
| 20748 as_val=`expr "$@" || test $? -eq 1` | |
| 20749 } | |
| 20750 fi # as_fn_arith | |
| 20751 | |
| 20752 | |
| 20753 if expr a : '\(a\)' >/dev/null 2>&1 && | |
| 20754 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
| 20755 as_expr=expr | |
| 20756 else | |
| 20757 as_expr=false | |
| 20758 fi | |
| 20759 | |
| 20760 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
| 20761 as_basename=basename | |
| 20762 else | |
| 20763 as_basename=false | |
| 20764 fi | |
| 20765 | |
| 20766 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
| 20767 as_dirname=dirname | |
| 20768 else | |
| 20769 as_dirname=false | |
| 20770 fi | |
| 20771 | |
| 20772 as_me=`$as_basename -- "$0" || | |
| 20773 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
| 20774 X"$0" : 'X\(//\)$' \| \ | |
| 20775 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
| 20776 $as_echo X/"$0" | | |
| 20777 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
| 20778 s//\1/ | |
| 20779 q | |
| 20780 } | |
| 20781 /^X\/\(\/\/\)$/{ | |
| 20782 s//\1/ | |
| 20783 q | |
| 20784 } | |
| 20785 /^X\/\(\/\).*/{ | |
| 20786 s//\1/ | |
| 20787 q | |
| 20788 } | |
| 20789 s/.*/./; q'` | |
| 20790 | |
| 20791 # Avoid depending upon Character Ranges. | |
| 20792 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
| 20793 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
| 20794 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
| 20795 as_cr_digits='0123456789' | |
| 20796 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
| 20797 | |
| 20798 ECHO_C= ECHO_N= ECHO_T= | |
| 20799 case `echo -n x` in #((((( | |
| 20800 -n*) | |
| 20801 case `echo 'xy\c'` in | |
| 20802 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
| 20803 xy) ECHO_C='\c';; | |
| 20804 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
| 20805 ECHO_T=' ';; | |
| 20806 esac;; | |
| 20807 *) | |
| 20808 ECHO_N='-n';; | |
| 20809 esac | |
| 20810 | |
| 20811 rm -f conf$$ conf$$.exe conf$$.file | |
| 20812 if test -d conf$$.dir; then | |
| 20813 rm -f conf$$.dir/conf$$.file | |
| 20814 else | |
| 20815 rm -f conf$$.dir | |
| 20816 mkdir conf$$.dir 2>/dev/null | |
| 20817 fi | |
| 20818 if (echo >conf$$.file) 2>/dev/null; then | |
| 20819 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
| 20820 as_ln_s='ln -s' | |
| 20821 # ... but there are two gotchas: | |
| 20822 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
| 20823 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
| 20824 # In both cases, we have to default to `cp -pR'. | |
| 20825 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
| 20826 as_ln_s='cp -pR' | |
| 20827 elif ln conf$$.file conf$$ 2>/dev/null; then | |
| 20828 as_ln_s=ln | |
| 20829 else | |
| 20830 as_ln_s='cp -pR' | |
| 20831 fi | |
| 20832 else | |
| 20833 as_ln_s='cp -pR' | |
| 20834 fi | |
| 20835 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
| 20836 rmdir conf$$.dir 2>/dev/null | |
| 20837 | |
| 20838 | |
| 20839 # as_fn_mkdir_p | |
| 20840 # ------------- | |
| 20841 # Create "$as_dir" as a directory, including parents if necessary. | |
| 20842 as_fn_mkdir_p () | |
| 20843 { | |
| 20844 | |
| 20845 case $as_dir in #( | |
| 20846 -*) as_dir=./$as_dir;; | |
| 20847 esac | |
| 20848 test -d "$as_dir" || eval $as_mkdir_p || { | |
| 20849 as_dirs= | |
| 20850 while :; do | |
| 20851 case $as_dir in #( | |
| 20852 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
| 20853 *) as_qdir=$as_dir;; | |
| 20854 esac | |
| 20855 as_dirs="'$as_qdir' $as_dirs" | |
| 20856 as_dir=`$as_dirname -- "$as_dir" || | |
| 20857 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 20858 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
| 20859 X"$as_dir" : 'X\(//\)$' \| \ | |
| 20860 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
| 20861 $as_echo X"$as_dir" | | |
| 20862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 20863 s//\1/ | |
| 20864 q | |
| 20865 } | |
| 20866 /^X\(\/\/\)[^/].*/{ | |
| 20867 s//\1/ | |
| 20868 q | |
| 20869 } | |
| 20870 /^X\(\/\/\)$/{ | |
| 20871 s//\1/ | |
| 20872 q | |
| 20873 } | |
| 20874 /^X\(\/\).*/{ | |
| 20875 s//\1/ | |
| 20876 q | |
| 20877 } | |
| 20878 s/.*/./; q'` | |
| 20879 test -d "$as_dir" && break | |
| 20880 done | |
| 20881 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
| 20882 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
| 20883 | |
| 20884 | |
| 20885 } # as_fn_mkdir_p | |
| 20886 if mkdir -p . 2>/dev/null; then | |
| 20887 as_mkdir_p='mkdir -p "$as_dir"' | |
| 20888 else | |
| 20889 test -d ./-p && rmdir ./-p | |
| 20890 as_mkdir_p=false | |
| 20891 fi | |
| 20892 | |
| 20893 | |
| 20894 # as_fn_executable_p FILE | |
| 20895 # ----------------------- | |
| 20896 # Test if FILE is an executable regular file. | |
| 20897 as_fn_executable_p () | |
| 20898 { | |
| 20899 test -f "$1" && test -x "$1" | |
| 20900 } # as_fn_executable_p | |
| 20901 as_test_x='test -x' | |
| 20902 as_executable_p=as_fn_executable_p | |
| 20903 | |
| 20904 # Sed expression to map a string onto a valid CPP name. | |
| 20905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
| 20906 | |
| 20907 # Sed expression to map a string onto a valid variable name. | |
| 20908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
| 20909 | |
| 20910 | |
| 20911 exec 6>&1 | |
| 20912 ## ----------------------------------- ## | |
| 20913 ## Main body of $CONFIG_STATUS script. ## | |
| 20914 ## ----------------------------------- ## | |
| 20915 _ASEOF | |
| 20916 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
| 20917 | |
| 20918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 20919 # Save the log message, to keep $0 and so on meaningful, and to | |
| 20920 # report actual input values of CONFIG_FILES etc. instead of their | |
| 20921 # values after options handling. | |
| 20922 ac_log=" | |
| 20923 This file was extended by GEMBASSY $as_me 1.0.3, which was | |
| 20924 generated by GNU Autoconf 2.69. Invocation command line was | |
| 20925 | |
| 20926 CONFIG_FILES = $CONFIG_FILES | |
| 20927 CONFIG_HEADERS = $CONFIG_HEADERS | |
| 20928 CONFIG_LINKS = $CONFIG_LINKS | |
| 20929 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
| 20930 $ $0 $@ | |
| 20931 | |
| 20932 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
| 20933 " | |
| 20934 | |
| 20935 _ACEOF | |
| 20936 | |
| 20937 case $ac_config_files in *" | |
| 20938 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
| 20939 esac | |
| 20940 | |
| 20941 case $ac_config_headers in *" | |
| 20942 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
| 20943 esac | |
| 20944 | |
| 20945 | |
| 20946 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 20947 # Files that config.status was made for. | |
| 20948 config_files="$ac_config_files" | |
| 20949 config_headers="$ac_config_headers" | |
| 20950 config_commands="$ac_config_commands" | |
| 20951 | |
| 20952 _ACEOF | |
| 20953 | |
| 20954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 20955 ac_cs_usage="\ | |
| 20956 \`$as_me' instantiates files and other configuration actions | |
| 20957 from templates according to the current configuration. Unless the files | |
| 20958 and actions are specified as TAGs, all are instantiated by default. | |
| 20959 | |
| 20960 Usage: $0 [OPTION]... [TAG]... | |
| 20961 | |
| 20962 -h, --help print this help, then exit | |
| 20963 -V, --version print version number and configuration settings, then exit | |
| 20964 --config print configuration, then exit | |
| 20965 -q, --quiet, --silent | |
| 20966 do not print progress messages | |
| 20967 -d, --debug don't remove temporary files | |
| 20968 --recheck update $as_me by reconfiguring in the same conditions | |
| 20969 --file=FILE[:TEMPLATE] | |
| 20970 instantiate the configuration file FILE | |
| 20971 --header=FILE[:TEMPLATE] | |
| 20972 instantiate the configuration header FILE | |
| 20973 | |
| 20974 Configuration files: | |
| 20975 $config_files | |
| 20976 | |
| 20977 Configuration headers: | |
| 20978 $config_headers | |
| 20979 | |
| 20980 Configuration commands: | |
| 20981 $config_commands | |
| 20982 | |
| 20983 Report bugs to <celery@g-language.org>. | |
| 20984 GEMBASSY home page: <http://www.g-language.org/gembassy/>." | |
| 20985 | |
| 20986 _ACEOF | |
| 20987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 20988 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
| 20989 ac_cs_version="\\ | |
| 20990 GEMBASSY config.status 1.0.3 | |
| 20991 configured by $0, generated by GNU Autoconf 2.69, | |
| 20992 with options \\"\$ac_cs_config\\" | |
| 20993 | |
| 20994 Copyright (C) 2012 Free Software Foundation, Inc. | |
| 20995 This config.status script is free software; the Free Software Foundation | |
| 20996 gives unlimited permission to copy, distribute and modify it." | |
| 20997 | |
| 20998 ac_pwd='$ac_pwd' | |
| 20999 srcdir='$srcdir' | |
| 21000 INSTALL='$INSTALL' | |
| 21001 MKDIR_P='$MKDIR_P' | |
| 21002 AWK='$AWK' | |
| 21003 test -n "\$AWK" || AWK=awk | |
| 21004 _ACEOF | |
| 21005 | |
| 21006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 21007 # The default lists apply if the user does not specify any file. | |
| 21008 ac_need_defaults=: | |
| 21009 while test $# != 0 | |
| 21010 do | |
| 21011 case $1 in | |
| 21012 --*=?*) | |
| 21013 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
| 21014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
| 21015 ac_shift=: | |
| 21016 ;; | |
| 21017 --*=) | |
| 21018 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
| 21019 ac_optarg= | |
| 21020 ac_shift=: | |
| 21021 ;; | |
| 21022 *) | |
| 21023 ac_option=$1 | |
| 21024 ac_optarg=$2 | |
| 21025 ac_shift=shift | |
| 21026 ;; | |
| 21027 esac | |
| 21028 | |
| 21029 case $ac_option in | |
| 21030 # Handling of the options. | |
| 21031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
| 21032 ac_cs_recheck=: ;; | |
| 21033 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
| 21034 $as_echo "$ac_cs_version"; exit ;; | |
| 21035 --config | --confi | --conf | --con | --co | --c ) | |
| 21036 $as_echo "$ac_cs_config"; exit ;; | |
| 21037 --debug | --debu | --deb | --de | --d | -d ) | |
| 21038 debug=: ;; | |
| 21039 --file | --fil | --fi | --f ) | |
| 21040 $ac_shift | |
| 21041 case $ac_optarg in | |
| 21042 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
| 21043 '') as_fn_error $? "missing file argument" ;; | |
| 21044 esac | |
| 21045 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
| 21046 ac_need_defaults=false;; | |
| 21047 --header | --heade | --head | --hea ) | |
| 21048 $ac_shift | |
| 21049 case $ac_optarg in | |
| 21050 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
| 21051 esac | |
| 21052 as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
| 21053 ac_need_defaults=false;; | |
| 21054 --he | --h) | |
| 21055 # Conflict between --help and --header | |
| 21056 as_fn_error $? "ambiguous option: \`$1' | |
| 21057 Try \`$0 --help' for more information.";; | |
| 21058 --help | --hel | -h ) | |
| 21059 $as_echo "$ac_cs_usage"; exit ;; | |
| 21060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
| 21061 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
| 21062 ac_cs_silent=: ;; | |
| 21063 | |
| 21064 # This is an error. | |
| 21065 -*) as_fn_error $? "unrecognized option: \`$1' | |
| 21066 Try \`$0 --help' for more information." ;; | |
| 21067 | |
| 21068 *) as_fn_append ac_config_targets " $1" | |
| 21069 ac_need_defaults=false ;; | |
| 21070 | |
| 21071 esac | |
| 21072 shift | |
| 21073 done | |
| 21074 | |
| 21075 ac_configure_extra_args= | |
| 21076 | |
| 21077 if $ac_cs_silent; then | |
| 21078 exec 6>/dev/null | |
| 21079 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
| 21080 fi | |
| 21081 | |
| 21082 _ACEOF | |
| 21083 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 21084 if \$ac_cs_recheck; then | |
| 21085 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
| 21086 shift | |
| 21087 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
| 21088 CONFIG_SHELL='$SHELL' | |
| 21089 export CONFIG_SHELL | |
| 21090 exec "\$@" | |
| 21091 fi | |
| 21092 | |
| 21093 _ACEOF | |
| 21094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 21095 exec 5>>config.log | |
| 21096 { | |
| 21097 echo | |
| 21098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
| 21099 ## Running $as_me. ## | |
| 21100 _ASBOX | |
| 21101 $as_echo "$ac_log" | |
| 21102 } >&5 | |
| 21103 | |
| 21104 _ACEOF | |
| 21105 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 21106 # | |
| 21107 # INIT-COMMANDS | |
| 21108 # | |
| 21109 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
| 21110 | |
| 21111 | |
| 21112 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
| 21113 # if CDPATH is set. | |
| 21114 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
| 21115 | |
| 21116 sed_quote_subst='$sed_quote_subst' | |
| 21117 double_quote_subst='$double_quote_subst' | |
| 21118 delay_variable_subst='$delay_variable_subst' | |
| 21119 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
| 21120 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
| 21121 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
| 21122 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
| 21123 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
| 21124 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
| 21125 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' | |
| 21126 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
| 21127 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
| 21128 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
| 21129 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
| 21130 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
| 21131 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
| 21132 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
| 21133 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
| 21134 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
| 21135 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
| 21136 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
| 21137 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
| 21138 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
| 21139 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
| 21140 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
| 21141 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
| 21142 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
| 21143 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
| 21144 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
| 21145 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
| 21146 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
| 21147 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
| 21148 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
| 21149 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
| 21150 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
| 21151 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
| 21152 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21153 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
| 21154 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
| 21155 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
| 21156 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
| 21157 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
| 21158 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
| 21159 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
| 21160 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
| 21161 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
| 21162 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
| 21163 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
| 21164 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
| 21165 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21166 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21167 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21168 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
| 21169 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
| 21170 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
| 21171 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
| 21172 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
| 21173 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
| 21174 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
| 21175 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' | |
| 21176 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
| 21177 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"`' | |
| 21178 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' | |
| 21179 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
| 21180 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
| 21181 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' | |
| 21182 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
| 21183 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
| 21184 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
| 21185 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
| 21186 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
| 21187 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
| 21188 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
| 21189 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
| 21190 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
| 21191 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
| 21192 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
| 21193 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
| 21194 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
| 21195 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
| 21196 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
| 21197 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21198 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21199 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
| 21200 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
| 21201 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
| 21202 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
| 21203 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
| 21204 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21205 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21206 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21207 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21208 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21209 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21210 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
| 21211 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
| 21212 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
| 21213 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
| 21214 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
| 21215 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
| 21216 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
| 21217 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
| 21218 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
| 21219 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
| 21220 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
| 21221 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
| 21222 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
| 21223 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21224 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
| 21225 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
| 21226 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21227 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21228 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
| 21229 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
| 21230 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
| 21231 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
| 21232 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
| 21233 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
| 21234 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
| 21235 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
| 21236 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
| 21237 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
| 21238 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
| 21239 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
| 21240 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21241 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21242 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
| 21243 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
| 21244 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
| 21245 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
| 21246 lt_cv_sys_lib_dlsearch_path_spec='`$ECHO "$lt_cv_sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
| 21247 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
| 21248 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
| 21249 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
| 21250 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
| 21251 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
| 21252 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
| 21253 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
| 21254 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
| 21255 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
| 21256 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
| 21257 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
| 21258 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
| 21259 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21260 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21261 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21262 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21263 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21264 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21265 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21266 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21267 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21268 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21269 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21270 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21271 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21272 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21273 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21274 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21275 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21276 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21277 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21278 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21279 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21280 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21281 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21282 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21283 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21284 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21285 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21286 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21287 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21288 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21289 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21290 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21291 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21292 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21293 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21294 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21295 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21296 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21297 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21298 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21299 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21300 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21301 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21302 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21303 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21304 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21305 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21306 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
| 21307 | |
| 21308 LTCC='$LTCC' | |
| 21309 LTCFLAGS='$LTCFLAGS' | |
| 21310 compiler='$compiler_DEFAULT' | |
| 21311 | |
| 21312 # A function that is used when there is no print builtin or printf. | |
| 21313 func_fallback_echo () | |
| 21314 { | |
| 21315 eval 'cat <<_LTECHO_EOF | |
| 21316 \$1 | |
| 21317 _LTECHO_EOF' | |
| 21318 } | |
| 21319 | |
| 21320 # Quote evaled strings. | |
| 21321 for var in SHELL \ | |
| 21322 ECHO \ | |
| 21323 PATH_SEPARATOR \ | |
| 21324 SED \ | |
| 21325 GREP \ | |
| 21326 EGREP \ | |
| 21327 FGREP \ | |
| 21328 LD \ | |
| 21329 NM \ | |
| 21330 LN_S \ | |
| 21331 lt_SP2NL \ | |
| 21332 lt_NL2SP \ | |
| 21333 reload_flag \ | |
| 21334 OBJDUMP \ | |
| 21335 deplibs_check_method \ | |
| 21336 file_magic_cmd \ | |
| 21337 file_magic_glob \ | |
| 21338 want_nocaseglob \ | |
| 21339 DLLTOOL \ | |
| 21340 sharedlib_from_linklib_cmd \ | |
| 21341 AR \ | |
| 21342 AR_FLAGS \ | |
| 21343 archiver_list_spec \ | |
| 21344 STRIP \ | |
| 21345 RANLIB \ | |
| 21346 CC \ | |
| 21347 CFLAGS \ | |
| 21348 compiler \ | |
| 21349 lt_cv_sys_global_symbol_pipe \ | |
| 21350 lt_cv_sys_global_symbol_to_cdecl \ | |
| 21351 lt_cv_sys_global_symbol_to_import \ | |
| 21352 lt_cv_sys_global_symbol_to_c_name_address \ | |
| 21353 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
| 21354 lt_cv_nm_interface \ | |
| 21355 nm_file_list_spec \ | |
| 21356 lt_cv_truncate_bin \ | |
| 21357 lt_prog_compiler_no_builtin_flag \ | |
| 21358 lt_prog_compiler_pic \ | |
| 21359 lt_prog_compiler_wl \ | |
| 21360 lt_prog_compiler_static \ | |
| 21361 lt_cv_prog_compiler_c_o \ | |
| 21362 need_locks \ | |
| 21363 MANIFEST_TOOL \ | |
| 21364 DSYMUTIL \ | |
| 21365 NMEDIT \ | |
| 21366 LIPO \ | |
| 21367 OTOOL \ | |
| 21368 OTOOL64 \ | |
| 21369 shrext_cmds \ | |
| 21370 export_dynamic_flag_spec \ | |
| 21371 whole_archive_flag_spec \ | |
| 21372 compiler_needs_object \ | |
| 21373 with_gnu_ld \ | |
| 21374 allow_undefined_flag \ | |
| 21375 no_undefined_flag \ | |
| 21376 hardcode_libdir_flag_spec \ | |
| 21377 hardcode_libdir_separator \ | |
| 21378 exclude_expsyms \ | |
| 21379 include_expsyms \ | |
| 21380 file_list_spec \ | |
| 21381 variables_saved_for_relink \ | |
| 21382 libname_spec \ | |
| 21383 library_names_spec \ | |
| 21384 soname_spec \ | |
| 21385 install_override_mode \ | |
| 21386 finish_eval \ | |
| 21387 old_striplib \ | |
| 21388 striplib \ | |
| 21389 compiler_lib_search_dirs \ | |
| 21390 predep_objects \ | |
| 21391 postdep_objects \ | |
| 21392 predeps \ | |
| 21393 postdeps \ | |
| 21394 compiler_lib_search_path \ | |
| 21395 LD_CXX \ | |
| 21396 reload_flag_CXX \ | |
| 21397 compiler_CXX \ | |
| 21398 lt_prog_compiler_no_builtin_flag_CXX \ | |
| 21399 lt_prog_compiler_pic_CXX \ | |
| 21400 lt_prog_compiler_wl_CXX \ | |
| 21401 lt_prog_compiler_static_CXX \ | |
| 21402 lt_cv_prog_compiler_c_o_CXX \ | |
| 21403 export_dynamic_flag_spec_CXX \ | |
| 21404 whole_archive_flag_spec_CXX \ | |
| 21405 compiler_needs_object_CXX \ | |
| 21406 with_gnu_ld_CXX \ | |
| 21407 allow_undefined_flag_CXX \ | |
| 21408 no_undefined_flag_CXX \ | |
| 21409 hardcode_libdir_flag_spec_CXX \ | |
| 21410 hardcode_libdir_separator_CXX \ | |
| 21411 exclude_expsyms_CXX \ | |
| 21412 include_expsyms_CXX \ | |
| 21413 file_list_spec_CXX \ | |
| 21414 compiler_lib_search_dirs_CXX \ | |
| 21415 predep_objects_CXX \ | |
| 21416 postdep_objects_CXX \ | |
| 21417 predeps_CXX \ | |
| 21418 postdeps_CXX \ | |
| 21419 compiler_lib_search_path_CXX; do | |
| 21420 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
| 21421 *[\\\\\\\`\\"\\\$]*) | |
| 21422 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
| 21423 ;; | |
| 21424 *) | |
| 21425 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
| 21426 ;; | |
| 21427 esac | |
| 21428 done | |
| 21429 | |
| 21430 # Double-quote double-evaled strings. | |
| 21431 for var in reload_cmds \ | |
| 21432 old_postinstall_cmds \ | |
| 21433 old_postuninstall_cmds \ | |
| 21434 old_archive_cmds \ | |
| 21435 extract_expsyms_cmds \ | |
| 21436 old_archive_from_new_cmds \ | |
| 21437 old_archive_from_expsyms_cmds \ | |
| 21438 archive_cmds \ | |
| 21439 archive_expsym_cmds \ | |
| 21440 module_cmds \ | |
| 21441 module_expsym_cmds \ | |
| 21442 export_symbols_cmds \ | |
| 21443 prelink_cmds \ | |
| 21444 postlink_cmds \ | |
| 21445 postinstall_cmds \ | |
| 21446 postuninstall_cmds \ | |
| 21447 finish_cmds \ | |
| 21448 sys_lib_search_path_spec \ | |
| 21449 lt_cv_sys_lib_dlsearch_path_spec \ | |
| 21450 reload_cmds_CXX \ | |
| 21451 old_archive_cmds_CXX \ | |
| 21452 old_archive_from_new_cmds_CXX \ | |
| 21453 old_archive_from_expsyms_cmds_CXX \ | |
| 21454 archive_cmds_CXX \ | |
| 21455 archive_expsym_cmds_CXX \ | |
| 21456 module_cmds_CXX \ | |
| 21457 module_expsym_cmds_CXX \ | |
| 21458 export_symbols_cmds_CXX \ | |
| 21459 prelink_cmds_CXX \ | |
| 21460 postlink_cmds_CXX; do | |
| 21461 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
| 21462 *[\\\\\\\`\\"\\\$]*) | |
| 21463 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes | |
| 21464 ;; | |
| 21465 *) | |
| 21466 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
| 21467 ;; | |
| 21468 esac | |
| 21469 done | |
| 21470 | |
| 21471 ac_aux_dir='$ac_aux_dir' | |
| 21472 | |
| 21473 # See if we are running on zsh, and set the options that allow our | |
| 21474 # commands through without removal of \ escapes INIT. | |
| 21475 if test -n "\${ZSH_VERSION+set}"; then | |
| 21476 setopt NO_GLOB_SUBST | |
| 21477 fi | |
| 21478 | |
| 21479 | |
| 21480 PACKAGE='$PACKAGE' | |
| 21481 VERSION='$VERSION' | |
| 21482 RM='$RM' | |
| 21483 ofile='$ofile' | |
| 21484 | |
| 21485 | |
| 21486 | |
| 21487 | |
| 21488 | |
| 21489 | |
| 21490 _ACEOF | |
| 21491 | |
| 21492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 21493 | |
| 21494 # Handling of arguments. | |
| 21495 for ac_config_target in $ac_config_targets | |
| 21496 do | |
| 21497 case $ac_config_target in | |
| 21498 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; | |
| 21499 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
| 21500 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
| 21501 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
| 21502 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
| 21503 "acd/Makefile") CONFIG_FILES="$CONFIG_FILES acd/Makefile" ;; | |
| 21504 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
| 21505 "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;; | |
| 21506 "doc/text/Makefile") CONFIG_FILES="$CONFIG_FILES doc/text/Makefile" ;; | |
| 21507 | |
| 21508 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
| 21509 esac | |
| 21510 done | |
| 21511 | |
| 21512 | |
| 21513 # If the user did not use the arguments to specify the items to instantiate, | |
| 21514 # then the envvar interface is used. Set only those that are not. | |
| 21515 # We use the long form for the default assignment because of an extremely | |
| 21516 # bizarre bug on SunOS 4.1.3. | |
| 21517 if $ac_need_defaults; then | |
| 21518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
| 21519 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
| 21520 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
| 21521 fi | |
| 21522 | |
| 21523 # Have a temporary directory for convenience. Make it in the build tree | |
| 21524 # simply because there is no reason against having it here, and in addition, | |
| 21525 # creating and moving files from /tmp can sometimes cause problems. | |
| 21526 # Hook for its removal unless debugging. | |
| 21527 # Note that there is a small window in which the directory will not be cleaned: | |
| 21528 # after its creation but before its name has been assigned to `$tmp'. | |
| 21529 $debug || | |
| 21530 { | |
| 21531 tmp= ac_tmp= | |
| 21532 trap 'exit_status=$? | |
| 21533 : "${ac_tmp:=$tmp}" | |
| 21534 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
| 21535 ' 0 | |
| 21536 trap 'as_fn_exit 1' 1 2 13 15 | |
| 21537 } | |
| 21538 # Create a (secure) tmp directory for tmp files. | |
| 21539 | |
| 21540 { | |
| 21541 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
| 21542 test -d "$tmp" | |
| 21543 } || | |
| 21544 { | |
| 21545 tmp=./conf$$-$RANDOM | |
| 21546 (umask 077 && mkdir "$tmp") | |
| 21547 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
| 21548 ac_tmp=$tmp | |
| 21549 | |
| 21550 # Set up the scripts for CONFIG_FILES section. | |
| 21551 # No need to generate them if there are no CONFIG_FILES. | |
| 21552 # This happens for instance with `./config.status config.h'. | |
| 21553 if test -n "$CONFIG_FILES"; then | |
| 21554 | |
| 21555 | |
| 21556 ac_cr=`echo X | tr X '\015'` | |
| 21557 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
| 21558 # But we know of no other shell where ac_cr would be empty at this | |
| 21559 # point, so we can use a bashism as a fallback. | |
| 21560 if test "x$ac_cr" = x; then | |
| 21561 eval ac_cr=\$\'\\r\' | |
| 21562 fi | |
| 21563 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
| 21564 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
| 21565 ac_cs_awk_cr='\\r' | |
| 21566 else | |
| 21567 ac_cs_awk_cr=$ac_cr | |
| 21568 fi | |
| 21569 | |
| 21570 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
| 21571 _ACEOF | |
| 21572 | |
| 21573 | |
| 21574 { | |
| 21575 echo "cat >conf$$subs.awk <<_ACEOF" && | |
| 21576 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
| 21577 echo "_ACEOF" | |
| 21578 } >conf$$subs.sh || | |
| 21579 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
| 21580 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
| 21581 ac_delim='%!_!# ' | |
| 21582 for ac_last_try in false false false false false :; do | |
| 21583 . ./conf$$subs.sh || | |
| 21584 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
| 21585 | |
| 21586 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
| 21587 if test $ac_delim_n = $ac_delim_num; then | |
| 21588 break | |
| 21589 elif $ac_last_try; then | |
| 21590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
| 21591 else | |
| 21592 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
| 21593 fi | |
| 21594 done | |
| 21595 rm -f conf$$subs.sh | |
| 21596 | |
| 21597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 21598 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
| 21599 _ACEOF | |
| 21600 sed -n ' | |
| 21601 h | |
| 21602 s/^/S["/; s/!.*/"]=/ | |
| 21603 p | |
| 21604 g | |
| 21605 s/^[^!]*!// | |
| 21606 :repl | |
| 21607 t repl | |
| 21608 s/'"$ac_delim"'$// | |
| 21609 t delim | |
| 21610 :nl | |
| 21611 h | |
| 21612 s/\(.\{148\}\)..*/\1/ | |
| 21613 t more1 | |
| 21614 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
| 21615 p | |
| 21616 n | |
| 21617 b repl | |
| 21618 :more1 | |
| 21619 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
| 21620 p | |
| 21621 g | |
| 21622 s/.\{148\}// | |
| 21623 t nl | |
| 21624 :delim | |
| 21625 h | |
| 21626 s/\(.\{148\}\)..*/\1/ | |
| 21627 t more2 | |
| 21628 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
| 21629 p | |
| 21630 b | |
| 21631 :more2 | |
| 21632 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
| 21633 p | |
| 21634 g | |
| 21635 s/.\{148\}// | |
| 21636 t delim | |
| 21637 ' <conf$$subs.awk | sed ' | |
| 21638 /^[^""]/{ | |
| 21639 N | |
| 21640 s/\n// | |
| 21641 } | |
| 21642 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
| 21643 rm -f conf$$subs.awk | |
| 21644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 21645 _ACAWK | |
| 21646 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
| 21647 for (key in S) S_is_set[key] = 1 | |
| 21648 FS = "" | |
| 21649 | |
| 21650 } | |
| 21651 { | |
| 21652 line = $ 0 | |
| 21653 nfields = split(line, field, "@") | |
| 21654 substed = 0 | |
| 21655 len = length(field[1]) | |
| 21656 for (i = 2; i < nfields; i++) { | |
| 21657 key = field[i] | |
| 21658 keylen = length(key) | |
| 21659 if (S_is_set[key]) { | |
| 21660 value = S[key] | |
| 21661 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
| 21662 len += length(value) + length(field[++i]) | |
| 21663 substed = 1 | |
| 21664 } else | |
| 21665 len += 1 + keylen | |
| 21666 } | |
| 21667 | |
| 21668 print line | |
| 21669 } | |
| 21670 | |
| 21671 _ACAWK | |
| 21672 _ACEOF | |
| 21673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 21674 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
| 21675 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
| 21676 else | |
| 21677 cat | |
| 21678 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
| 21679 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
| 21680 _ACEOF | |
| 21681 | |
| 21682 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
| 21683 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
| 21684 # trailing colons and then remove the whole line if VPATH becomes empty | |
| 21685 # (actually we leave an empty line to preserve line numbers). | |
| 21686 if test "x$srcdir" = x.; then | |
| 21687 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
| 21688 h | |
| 21689 s/// | |
| 21690 s/^/:/ | |
| 21691 s/[ ]*$/:/ | |
| 21692 s/:\$(srcdir):/:/g | |
| 21693 s/:\${srcdir}:/:/g | |
| 21694 s/:@srcdir@:/:/g | |
| 21695 s/^:*// | |
| 21696 s/:*$// | |
| 21697 x | |
| 21698 s/\(=[ ]*\).*/\1/ | |
| 21699 G | |
| 21700 s/\n// | |
| 21701 s/^[^=]*=[ ]*$// | |
| 21702 }' | |
| 21703 fi | |
| 21704 | |
| 21705 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 21706 fi # test -n "$CONFIG_FILES" | |
| 21707 | |
| 21708 # Set up the scripts for CONFIG_HEADERS section. | |
| 21709 # No need to generate them if there are no CONFIG_HEADERS. | |
| 21710 # This happens for instance with `./config.status Makefile'. | |
| 21711 if test -n "$CONFIG_HEADERS"; then | |
| 21712 cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
| 21713 BEGIN { | |
| 21714 _ACEOF | |
| 21715 | |
| 21716 # Transform confdefs.h into an awk script `defines.awk', embedded as | |
| 21717 # here-document in config.status, that substitutes the proper values into | |
| 21718 # config.h.in to produce config.h. | |
| 21719 | |
| 21720 # Create a delimiter string that does not exist in confdefs.h, to ease | |
| 21721 # handling of long lines. | |
| 21722 ac_delim='%!_!# ' | |
| 21723 for ac_last_try in false false :; do | |
| 21724 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
| 21725 if test -z "$ac_tt"; then | |
| 21726 break | |
| 21727 elif $ac_last_try; then | |
| 21728 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
| 21729 else | |
| 21730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
| 21731 fi | |
| 21732 done | |
| 21733 | |
| 21734 # For the awk script, D is an array of macro values keyed by name, | |
| 21735 # likewise P contains macro parameters if any. Preserve backslash | |
| 21736 # newline sequences. | |
| 21737 | |
| 21738 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
| 21739 sed -n ' | |
| 21740 s/.\{148\}/&'"$ac_delim"'/g | |
| 21741 t rset | |
| 21742 :rset | |
| 21743 s/^[ ]*#[ ]*define[ ][ ]*/ / | |
| 21744 t def | |
| 21745 d | |
| 21746 :def | |
| 21747 s/\\$// | |
| 21748 t bsnl | |
| 21749 s/["\\]/\\&/g | |
| 21750 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
| 21751 D["\1"]=" \3"/p | |
| 21752 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
| 21753 d | |
| 21754 :bsnl | |
| 21755 s/["\\]/\\&/g | |
| 21756 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
| 21757 D["\1"]=" \3\\\\\\n"\\/p | |
| 21758 t cont | |
| 21759 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
| 21760 t cont | |
| 21761 d | |
| 21762 :cont | |
| 21763 n | |
| 21764 s/.\{148\}/&'"$ac_delim"'/g | |
| 21765 t clear | |
| 21766 :clear | |
| 21767 s/\\$// | |
| 21768 t bsnlc | |
| 21769 s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
| 21770 d | |
| 21771 :bsnlc | |
| 21772 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
| 21773 b cont | |
| 21774 ' <confdefs.h | sed ' | |
| 21775 s/'"$ac_delim"'/"\\\ | |
| 21776 "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
| 21777 | |
| 21778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 21779 for (key in D) D_is_set[key] = 1 | |
| 21780 FS = "" | |
| 21781 } | |
| 21782 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
| 21783 line = \$ 0 | |
| 21784 split(line, arg, " ") | |
| 21785 if (arg[1] == "#") { | |
| 21786 defundef = arg[2] | |
| 21787 mac1 = arg[3] | |
| 21788 } else { | |
| 21789 defundef = substr(arg[1], 2) | |
| 21790 mac1 = arg[2] | |
| 21791 } | |
| 21792 split(mac1, mac2, "(") #) | |
| 21793 macro = mac2[1] | |
| 21794 prefix = substr(line, 1, index(line, defundef) - 1) | |
| 21795 if (D_is_set[macro]) { | |
| 21796 # Preserve the white space surrounding the "#". | |
| 21797 print prefix "define", macro P[macro] D[macro] | |
| 21798 next | |
| 21799 } else { | |
| 21800 # Replace #undef with comments. This is necessary, for example, | |
| 21801 # in the case of _POSIX_SOURCE, which is predefined and required | |
| 21802 # on some systems where configure will not decide to define it. | |
| 21803 if (defundef == "undef") { | |
| 21804 print "/*", prefix defundef, macro, "*/" | |
| 21805 next | |
| 21806 } | |
| 21807 } | |
| 21808 } | |
| 21809 { print } | |
| 21810 _ACAWK | |
| 21811 _ACEOF | |
| 21812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 21813 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
| 21814 fi # test -n "$CONFIG_HEADERS" | |
| 21815 | |
| 21816 | |
| 21817 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
| 21818 shift | |
| 21819 for ac_tag | |
| 21820 do | |
| 21821 case $ac_tag in | |
| 21822 :[FHLC]) ac_mode=$ac_tag; continue;; | |
| 21823 esac | |
| 21824 case $ac_mode$ac_tag in | |
| 21825 :[FHL]*:*);; | |
| 21826 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
| 21827 :[FH]-) ac_tag=-:-;; | |
| 21828 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
| 21829 esac | |
| 21830 ac_save_IFS=$IFS | |
| 21831 IFS=: | |
| 21832 set x $ac_tag | |
| 21833 IFS=$ac_save_IFS | |
| 21834 shift | |
| 21835 ac_file=$1 | |
| 21836 shift | |
| 21837 | |
| 21838 case $ac_mode in | |
| 21839 :L) ac_source=$1;; | |
| 21840 :[FH]) | |
| 21841 ac_file_inputs= | |
| 21842 for ac_f | |
| 21843 do | |
| 21844 case $ac_f in | |
| 21845 -) ac_f="$ac_tmp/stdin";; | |
| 21846 *) # Look for the file first in the build tree, then in the source tree | |
| 21847 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
| 21848 # because $ac_f cannot contain `:'. | |
| 21849 test -f "$ac_f" || | |
| 21850 case $ac_f in | |
| 21851 [\\/$]*) false;; | |
| 21852 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
| 21853 esac || | |
| 21854 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
| 21855 esac | |
| 21856 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
| 21857 as_fn_append ac_file_inputs " '$ac_f'" | |
| 21858 done | |
| 21859 | |
| 21860 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
| 21861 # use $as_me), people would be surprised to read: | |
| 21862 # /* config.h. Generated by config.status. */ | |
| 21863 configure_input='Generated from '` | |
| 21864 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
| 21865 `' by configure.' | |
| 21866 if test x"$ac_file" != x-; then | |
| 21867 configure_input="$ac_file. $configure_input" | |
| 21868 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
| 21869 $as_echo "$as_me: creating $ac_file" >&6;} | |
| 21870 fi | |
| 21871 # Neutralize special characters interpreted by sed in replacement strings. | |
| 21872 case $configure_input in #( | |
| 21873 *\&* | *\|* | *\\* ) | |
| 21874 ac_sed_conf_input=`$as_echo "$configure_input" | | |
| 21875 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
| 21876 *) ac_sed_conf_input=$configure_input;; | |
| 21877 esac | |
| 21878 | |
| 21879 case $ac_tag in | |
| 21880 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
| 21881 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
| 21882 esac | |
| 21883 ;; | |
| 21884 esac | |
| 21885 | |
| 21886 ac_dir=`$as_dirname -- "$ac_file" || | |
| 21887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 21888 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
| 21889 X"$ac_file" : 'X\(//\)$' \| \ | |
| 21890 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
| 21891 $as_echo X"$ac_file" | | |
| 21892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 21893 s//\1/ | |
| 21894 q | |
| 21895 } | |
| 21896 /^X\(\/\/\)[^/].*/{ | |
| 21897 s//\1/ | |
| 21898 q | |
| 21899 } | |
| 21900 /^X\(\/\/\)$/{ | |
| 21901 s//\1/ | |
| 21902 q | |
| 21903 } | |
| 21904 /^X\(\/\).*/{ | |
| 21905 s//\1/ | |
| 21906 q | |
| 21907 } | |
| 21908 s/.*/./; q'` | |
| 21909 as_dir="$ac_dir"; as_fn_mkdir_p | |
| 21910 ac_builddir=. | |
| 21911 | |
| 21912 case "$ac_dir" in | |
| 21913 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 21914 *) | |
| 21915 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
| 21916 # A ".." for each directory in $ac_dir_suffix. | |
| 21917 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
| 21918 case $ac_top_builddir_sub in | |
| 21919 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
| 21920 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
| 21921 esac ;; | |
| 21922 esac | |
| 21923 ac_abs_top_builddir=$ac_pwd | |
| 21924 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
| 21925 # for backward compatibility: | |
| 21926 ac_top_builddir=$ac_top_build_prefix | |
| 21927 | |
| 21928 case $srcdir in | |
| 21929 .) # We are building in place. | |
| 21930 ac_srcdir=. | |
| 21931 ac_top_srcdir=$ac_top_builddir_sub | |
| 21932 ac_abs_top_srcdir=$ac_pwd ;; | |
| 21933 [\\/]* | ?:[\\/]* ) # Absolute name. | |
| 21934 ac_srcdir=$srcdir$ac_dir_suffix; | |
| 21935 ac_top_srcdir=$srcdir | |
| 21936 ac_abs_top_srcdir=$srcdir ;; | |
| 21937 *) # Relative name. | |
| 21938 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
| 21939 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
| 21940 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
| 21941 esac | |
| 21942 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
| 21943 | |
| 21944 | |
| 21945 case $ac_mode in | |
| 21946 :F) | |
| 21947 # | |
| 21948 # CONFIG_FILE | |
| 21949 # | |
| 21950 | |
| 21951 case $INSTALL in | |
| 21952 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
| 21953 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
| 21954 esac | |
| 21955 ac_MKDIR_P=$MKDIR_P | |
| 21956 case $MKDIR_P in | |
| 21957 [\\/$]* | ?:[\\/]* ) ;; | |
| 21958 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
| 21959 esac | |
| 21960 _ACEOF | |
| 21961 | |
| 21962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 21963 # If the template does not know about datarootdir, expand it. | |
| 21964 # FIXME: This hack should be removed a few years after 2.60. | |
| 21965 ac_datarootdir_hack=; ac_datarootdir_seen= | |
| 21966 ac_sed_dataroot=' | |
| 21967 /datarootdir/ { | |
| 21968 p | |
| 21969 q | |
| 21970 } | |
| 21971 /@datadir@/p | |
| 21972 /@docdir@/p | |
| 21973 /@infodir@/p | |
| 21974 /@localedir@/p | |
| 21975 /@mandir@/p' | |
| 21976 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
| 21977 *datarootdir*) ac_datarootdir_seen=yes;; | |
| 21978 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
| 21979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
| 21980 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
| 21981 _ACEOF | |
| 21982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 21983 ac_datarootdir_hack=' | |
| 21984 s&@datadir@&$datadir&g | |
| 21985 s&@docdir@&$docdir&g | |
| 21986 s&@infodir@&$infodir&g | |
| 21987 s&@localedir@&$localedir&g | |
| 21988 s&@mandir@&$mandir&g | |
| 21989 s&\\\${datarootdir}&$datarootdir&g' ;; | |
| 21990 esac | |
| 21991 _ACEOF | |
| 21992 | |
| 21993 # Neutralize VPATH when `$srcdir' = `.'. | |
| 21994 # Shell code in configure.ac might set extrasub. | |
| 21995 # FIXME: do we really want to maintain this feature? | |
| 21996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
| 21997 ac_sed_extra="$ac_vpsub | |
| 21998 $extrasub | |
| 21999 _ACEOF | |
| 22000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
| 22001 :t | |
| 22002 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
| 22003 s|@configure_input@|$ac_sed_conf_input|;t t | |
| 22004 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
| 22005 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
| 22006 s&@srcdir@&$ac_srcdir&;t t | |
| 22007 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
| 22008 s&@top_srcdir@&$ac_top_srcdir&;t t | |
| 22009 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
| 22010 s&@builddir@&$ac_builddir&;t t | |
| 22011 s&@abs_builddir@&$ac_abs_builddir&;t t | |
| 22012 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
| 22013 s&@INSTALL@&$ac_INSTALL&;t t | |
| 22014 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
| 22015 $ac_datarootdir_hack | |
| 22016 " | |
| 22017 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
| 22018 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
| 22019 | |
| 22020 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
| 22021 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
| 22022 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
| 22023 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
| 22024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
| 22025 which seems to be undefined. Please make sure it is defined" >&5 | |
| 22026 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
| 22027 which seems to be undefined. Please make sure it is defined" >&2;} | |
| 22028 | |
| 22029 rm -f "$ac_tmp/stdin" | |
| 22030 case $ac_file in | |
| 22031 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
| 22032 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
| 22033 esac \ | |
| 22034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
| 22035 ;; | |
| 22036 :H) | |
| 22037 # | |
| 22038 # CONFIG_HEADER | |
| 22039 # | |
| 22040 if test x"$ac_file" != x-; then | |
| 22041 { | |
| 22042 $as_echo "/* $configure_input */" \ | |
| 22043 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
| 22044 } >"$ac_tmp/config.h" \ | |
| 22045 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
| 22046 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
| 22047 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
| 22048 $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
| 22049 else | |
| 22050 rm -f "$ac_file" | |
| 22051 mv "$ac_tmp/config.h" "$ac_file" \ | |
| 22052 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
| 22053 fi | |
| 22054 else | |
| 22055 $as_echo "/* $configure_input */" \ | |
| 22056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
| 22057 || as_fn_error $? "could not create -" "$LINENO" 5 | |
| 22058 fi | |
| 22059 # Compute "$ac_file"'s index in $config_headers. | |
| 22060 _am_arg="$ac_file" | |
| 22061 _am_stamp_count=1 | |
| 22062 for _am_header in $config_headers :; do | |
| 22063 case $_am_header in | |
| 22064 $_am_arg | $_am_arg:* ) | |
| 22065 break ;; | |
| 22066 * ) | |
| 22067 _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
| 22068 esac | |
| 22069 done | |
| 22070 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
| 22071 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 22072 X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
| 22073 X"$_am_arg" : 'X\(//\)$' \| \ | |
| 22074 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
| 22075 $as_echo X"$_am_arg" | | |
| 22076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 22077 s//\1/ | |
| 22078 q | |
| 22079 } | |
| 22080 /^X\(\/\/\)[^/].*/{ | |
| 22081 s//\1/ | |
| 22082 q | |
| 22083 } | |
| 22084 /^X\(\/\/\)$/{ | |
| 22085 s//\1/ | |
| 22086 q | |
| 22087 } | |
| 22088 /^X\(\/\).*/{ | |
| 22089 s//\1/ | |
| 22090 q | |
| 22091 } | |
| 22092 s/.*/./; q'`/stamp-h$_am_stamp_count | |
| 22093 ;; | |
| 22094 | |
| 22095 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
| 22096 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
| 22097 ;; | |
| 22098 esac | |
| 22099 | |
| 22100 | |
| 22101 case $ac_file$ac_mode in | |
| 22102 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
| 22103 # Older Autoconf quotes --file arguments for eval, but not when files | |
| 22104 # are listed without --file. Let's play safe and only enable the eval | |
| 22105 # if we detect the quoting. | |
| 22106 case $CONFIG_FILES in | |
| 22107 *\'*) eval set x "$CONFIG_FILES" ;; | |
| 22108 *) set x $CONFIG_FILES ;; | |
| 22109 esac | |
| 22110 shift | |
| 22111 for mf | |
| 22112 do | |
| 22113 # Strip MF so we end up with the name of the file. | |
| 22114 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
| 22115 # Check whether this is an Automake generated Makefile or not. | |
| 22116 # We used to match only the files named 'Makefile.in', but | |
| 22117 # some people rename them; so instead we look at the file content. | |
| 22118 # Grep'ing the first line is not enough: some people post-process | |
| 22119 # each Makefile.in and add a new line on top of each file to say so. | |
| 22120 # Grep'ing the whole file is not good either: AIX grep has a line | |
| 22121 # limit of 2048, but all sed's we know have understand at least 4000. | |
| 22122 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
| 22123 dirpart=`$as_dirname -- "$mf" || | |
| 22124 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 22125 X"$mf" : 'X\(//\)[^/]' \| \ | |
| 22126 X"$mf" : 'X\(//\)$' \| \ | |
| 22127 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
| 22128 $as_echo X"$mf" | | |
| 22129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 22130 s//\1/ | |
| 22131 q | |
| 22132 } | |
| 22133 /^X\(\/\/\)[^/].*/{ | |
| 22134 s//\1/ | |
| 22135 q | |
| 22136 } | |
| 22137 /^X\(\/\/\)$/{ | |
| 22138 s//\1/ | |
| 22139 q | |
| 22140 } | |
| 22141 /^X\(\/\).*/{ | |
| 22142 s//\1/ | |
| 22143 q | |
| 22144 } | |
| 22145 s/.*/./; q'` | |
| 22146 else | |
| 22147 continue | |
| 22148 fi | |
| 22149 # Extract the definition of DEPDIR, am__include, and am__quote | |
| 22150 # from the Makefile without running 'make'. | |
| 22151 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
| 22152 test -z "$DEPDIR" && continue | |
| 22153 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
| 22154 test -z "$am__include" && continue | |
| 22155 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
| 22156 # Find all dependency output files, they are included files with | |
| 22157 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
| 22158 # simplest approach to changing $(DEPDIR) to its actual value in the | |
| 22159 # expansion. | |
| 22160 for file in `sed -n " | |
| 22161 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
| 22162 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
| 22163 # Make sure the directory exists. | |
| 22164 test -f "$dirpart/$file" && continue | |
| 22165 fdir=`$as_dirname -- "$file" || | |
| 22166 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
| 22167 X"$file" : 'X\(//\)[^/]' \| \ | |
| 22168 X"$file" : 'X\(//\)$' \| \ | |
| 22169 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
| 22170 $as_echo X"$file" | | |
| 22171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
| 22172 s//\1/ | |
| 22173 q | |
| 22174 } | |
| 22175 /^X\(\/\/\)[^/].*/{ | |
| 22176 s//\1/ | |
| 22177 q | |
| 22178 } | |
| 22179 /^X\(\/\/\)$/{ | |
| 22180 s//\1/ | |
| 22181 q | |
| 22182 } | |
| 22183 /^X\(\/\).*/{ | |
| 22184 s//\1/ | |
| 22185 q | |
| 22186 } | |
| 22187 s/.*/./; q'` | |
| 22188 as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
| 22189 # echo "creating $dirpart/$file" | |
| 22190 echo '# dummy' > "$dirpart/$file" | |
| 22191 done | |
| 22192 done | |
| 22193 } | |
| 22194 ;; | |
| 22195 "libtool":C) | |
| 22196 | |
| 22197 # See if we are running on zsh, and set the options that allow our | |
| 22198 # commands through without removal of \ escapes. | |
| 22199 if test -n "${ZSH_VERSION+set}"; then | |
| 22200 setopt NO_GLOB_SUBST | |
| 22201 fi | |
| 22202 | |
| 22203 cfgfile=${ofile}T | |
| 22204 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
| 22205 $RM "$cfgfile" | |
| 22206 | |
| 22207 cat <<_LT_EOF >> "$cfgfile" | |
| 22208 #! $SHELL | |
| 22209 # Generated automatically by $as_me ($PACKAGE) $VERSION | |
| 22210 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
| 22211 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
| 22212 | |
| 22213 # Provide generalized library-building support services. | |
| 22214 # Written by Gordon Matzigkeit, 1996 | |
| 22215 | |
| 22216 # Copyright (C) 2014 Free Software Foundation, Inc. | |
| 22217 # This is free software; see the source for copying conditions. There is NO | |
| 22218 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
| 22219 | |
| 22220 # GNU Libtool is free software; you can redistribute it and/or modify | |
| 22221 # it under the terms of the GNU General Public License as published by | |
| 22222 # the Free Software Foundation; either version 2 of of the License, or | |
| 22223 # (at your option) any later version. | |
| 22224 # | |
| 22225 # As a special exception to the GNU General Public License, if you | |
| 22226 # distribute this file as part of a program or library that is built | |
| 22227 # using GNU Libtool, you may include this file under the same | |
| 22228 # distribution terms that you use for the rest of that program. | |
| 22229 # | |
| 22230 # GNU Libtool is distributed in the hope that it will be useful, but | |
| 22231 # WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 22232 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 22233 # GNU General Public License for more details. | |
| 22234 # | |
| 22235 # You should have received a copy of the GNU General Public License | |
| 22236 # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
| 22237 | |
| 22238 | |
| 22239 # The names of the tagged configurations supported by this script. | |
| 22240 available_tags='CXX ' | |
| 22241 | |
| 22242 # Configured defaults for sys_lib_dlsearch_path munging. | |
| 22243 : \${LT_SYS_LIBRARY_PATH="$LT_SYS_LIBRARY_PATH"} | |
| 22244 | |
| 22245 # ### BEGIN LIBTOOL CONFIG | |
| 22246 | |
| 22247 # Which release of libtool.m4 was used? | |
| 22248 macro_version=$macro_version | |
| 22249 macro_revision=$macro_revision | |
| 22250 | |
| 22251 # Whether or not to build shared libraries. | |
| 22252 build_libtool_libs=$enable_shared | |
| 22253 | |
| 22254 # Whether or not to build static libraries. | |
| 22255 build_old_libs=$enable_static | |
| 22256 | |
| 22257 # What type of objects to build. | |
| 22258 pic_mode=$pic_mode | |
| 22259 | |
| 22260 # Whether or not to optimize for fast installation. | |
| 22261 fast_install=$enable_fast_install | |
| 22262 | |
| 22263 # Shared archive member basename,for filename based shared library versioning on AIX. | |
| 22264 shared_archive_member_spec=$shared_archive_member_spec | |
| 22265 | |
| 22266 # Shell to use when invoking shell scripts. | |
| 22267 SHELL=$lt_SHELL | |
| 22268 | |
| 22269 # An echo program that protects backslashes. | |
| 22270 ECHO=$lt_ECHO | |
| 22271 | |
| 22272 # The PATH separator for the build system. | |
| 22273 PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
| 22274 | |
| 22275 # The host system. | |
| 22276 host_alias=$host_alias | |
| 22277 host=$host | |
| 22278 host_os=$host_os | |
| 22279 | |
| 22280 # The build system. | |
| 22281 build_alias=$build_alias | |
| 22282 build=$build | |
| 22283 build_os=$build_os | |
| 22284 | |
| 22285 # A sed program that does not truncate output. | |
| 22286 SED=$lt_SED | |
| 22287 | |
| 22288 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
| 22289 Xsed="\$SED -e 1s/^X//" | |
| 22290 | |
| 22291 # A grep program that handles long lines. | |
| 22292 GREP=$lt_GREP | |
| 22293 | |
| 22294 # An ERE matcher. | |
| 22295 EGREP=$lt_EGREP | |
| 22296 | |
| 22297 # A literal string matcher. | |
| 22298 FGREP=$lt_FGREP | |
| 22299 | |
| 22300 # A BSD- or MS-compatible name lister. | |
| 22301 NM=$lt_NM | |
| 22302 | |
| 22303 # Whether we need soft or hard links. | |
| 22304 LN_S=$lt_LN_S | |
| 22305 | |
| 22306 # What is the maximum length of a command? | |
| 22307 max_cmd_len=$max_cmd_len | |
| 22308 | |
| 22309 # Object file suffix (normally "o"). | |
| 22310 objext=$ac_objext | |
| 22311 | |
| 22312 # Executable file suffix (normally ""). | |
| 22313 exeext=$exeext | |
| 22314 | |
| 22315 # whether the shell understands "unset". | |
| 22316 lt_unset=$lt_unset | |
| 22317 | |
| 22318 # turn spaces into newlines. | |
| 22319 SP2NL=$lt_lt_SP2NL | |
| 22320 | |
| 22321 # turn newlines into spaces. | |
| 22322 NL2SP=$lt_lt_NL2SP | |
| 22323 | |
| 22324 # convert \$build file names to \$host format. | |
| 22325 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
| 22326 | |
| 22327 # convert \$build files to toolchain format. | |
| 22328 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
| 22329 | |
| 22330 # An object symbol dumper. | |
| 22331 OBJDUMP=$lt_OBJDUMP | |
| 22332 | |
| 22333 # Method to check whether dependent libraries are shared objects. | |
| 22334 deplibs_check_method=$lt_deplibs_check_method | |
| 22335 | |
| 22336 # Command to use when deplibs_check_method = "file_magic". | |
| 22337 file_magic_cmd=$lt_file_magic_cmd | |
| 22338 | |
| 22339 # How to find potential files when deplibs_check_method = "file_magic". | |
| 22340 file_magic_glob=$lt_file_magic_glob | |
| 22341 | |
| 22342 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
| 22343 want_nocaseglob=$lt_want_nocaseglob | |
| 22344 | |
| 22345 # DLL creation program. | |
| 22346 DLLTOOL=$lt_DLLTOOL | |
| 22347 | |
| 22348 # Command to associate shared and link libraries. | |
| 22349 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
| 22350 | |
| 22351 # The archiver. | |
| 22352 AR=$lt_AR | |
| 22353 | |
| 22354 # Flags to create an archive. | |
| 22355 AR_FLAGS=$lt_AR_FLAGS | |
| 22356 | |
| 22357 # How to feed a file listing to the archiver. | |
| 22358 archiver_list_spec=$lt_archiver_list_spec | |
| 22359 | |
| 22360 # A symbol stripping program. | |
| 22361 STRIP=$lt_STRIP | |
| 22362 | |
| 22363 # Commands used to install an old-style archive. | |
| 22364 RANLIB=$lt_RANLIB | |
| 22365 old_postinstall_cmds=$lt_old_postinstall_cmds | |
| 22366 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
| 22367 | |
| 22368 # Whether to use a lock for old archive extraction. | |
| 22369 lock_old_archive_extraction=$lock_old_archive_extraction | |
| 22370 | |
| 22371 # A C compiler. | |
| 22372 LTCC=$lt_CC | |
| 22373 | |
| 22374 # LTCC compiler flags. | |
| 22375 LTCFLAGS=$lt_CFLAGS | |
| 22376 | |
| 22377 # Take the output of nm and produce a listing of raw symbols and C names. | |
| 22378 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
| 22379 | |
| 22380 # Transform the output of nm in a proper C declaration. | |
| 22381 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
| 22382 | |
| 22383 # Transform the output of nm into a list of symbols to manually relocate. | |
| 22384 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import | |
| 22385 | |
| 22386 # Transform the output of nm in a C name address pair. | |
| 22387 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
| 22388 | |
| 22389 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
| 22390 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
| 22391 | |
| 22392 # The name lister interface. | |
| 22393 nm_interface=$lt_lt_cv_nm_interface | |
| 22394 | |
| 22395 # Specify filename containing input files for \$NM. | |
| 22396 nm_file_list_spec=$lt_nm_file_list_spec | |
| 22397 | |
| 22398 # The root where to search for dependent libraries,and where our libraries should be installed. | |
| 22399 lt_sysroot=$lt_sysroot | |
| 22400 | |
| 22401 # Command to truncate a binary pipe. | |
| 22402 lt_truncate_bin=$lt_lt_cv_truncate_bin | |
| 22403 | |
| 22404 # The name of the directory that contains temporary libtool files. | |
| 22405 objdir=$objdir | |
| 22406 | |
| 22407 # Used to examine libraries when file_magic_cmd begins with "file". | |
| 22408 MAGIC_CMD=$MAGIC_CMD | |
| 22409 | |
| 22410 # Must we lock files when doing compilation? | |
| 22411 need_locks=$lt_need_locks | |
| 22412 | |
| 22413 # Manifest tool. | |
| 22414 MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
| 22415 | |
| 22416 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
| 22417 DSYMUTIL=$lt_DSYMUTIL | |
| 22418 | |
| 22419 # Tool to change global to local symbols on Mac OS X. | |
| 22420 NMEDIT=$lt_NMEDIT | |
| 22421 | |
| 22422 # Tool to manipulate fat objects and archives on Mac OS X. | |
| 22423 LIPO=$lt_LIPO | |
| 22424 | |
| 22425 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
| 22426 OTOOL=$lt_OTOOL | |
| 22427 | |
| 22428 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
| 22429 OTOOL64=$lt_OTOOL64 | |
| 22430 | |
| 22431 # Old archive suffix (normally "a"). | |
| 22432 libext=$libext | |
| 22433 | |
| 22434 # Shared library suffix (normally ".so"). | |
| 22435 shrext_cmds=$lt_shrext_cmds | |
| 22436 | |
| 22437 # The commands to extract the exported symbol list from a shared archive. | |
| 22438 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
| 22439 | |
| 22440 # Variables whose values should be saved in libtool wrapper scripts and | |
| 22441 # restored at link time. | |
| 22442 variables_saved_for_relink=$lt_variables_saved_for_relink | |
| 22443 | |
| 22444 # Do we need the "lib" prefix for modules? | |
| 22445 need_lib_prefix=$need_lib_prefix | |
| 22446 | |
| 22447 # Do we need a version for libraries? | |
| 22448 need_version=$need_version | |
| 22449 | |
| 22450 # Library versioning type. | |
| 22451 version_type=$version_type | |
| 22452 | |
| 22453 # Shared library runtime path variable. | |
| 22454 runpath_var=$runpath_var | |
| 22455 | |
| 22456 # Shared library path variable. | |
| 22457 shlibpath_var=$shlibpath_var | |
| 22458 | |
| 22459 # Is shlibpath searched before the hard-coded library search path? | |
| 22460 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
| 22461 | |
| 22462 # Format of library name prefix. | |
| 22463 libname_spec=$lt_libname_spec | |
| 22464 | |
| 22465 # List of archive names. First name is the real one, the rest are links. | |
| 22466 # The last name is the one that the linker finds with -lNAME | |
| 22467 library_names_spec=$lt_library_names_spec | |
| 22468 | |
| 22469 # The coded name of the library, if different from the real name. | |
| 22470 soname_spec=$lt_soname_spec | |
| 22471 | |
| 22472 # Permission mode override for installation of shared libraries. | |
| 22473 install_override_mode=$lt_install_override_mode | |
| 22474 | |
| 22475 # Command to use after installation of a shared archive. | |
| 22476 postinstall_cmds=$lt_postinstall_cmds | |
| 22477 | |
| 22478 # Command to use after uninstallation of a shared archive. | |
| 22479 postuninstall_cmds=$lt_postuninstall_cmds | |
| 22480 | |
| 22481 # Commands used to finish a libtool library installation in a directory. | |
| 22482 finish_cmds=$lt_finish_cmds | |
| 22483 | |
| 22484 # As "finish_cmds", except a single script fragment to be evaled but | |
| 22485 # not shown. | |
| 22486 finish_eval=$lt_finish_eval | |
| 22487 | |
| 22488 # Whether we should hardcode library paths into libraries. | |
| 22489 hardcode_into_libs=$hardcode_into_libs | |
| 22490 | |
| 22491 # Compile-time system search path for libraries. | |
| 22492 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
| 22493 | |
| 22494 # Run-time system search path for libraries. | |
| 22495 sys_lib_dlsearch_path_spec=$lt_lt_cv_sys_lib_dlsearch_path_spec | |
| 22496 | |
| 22497 # Whether dlopen is supported. | |
| 22498 dlopen_support=$enable_dlopen | |
| 22499 | |
| 22500 # Whether dlopen of programs is supported. | |
| 22501 dlopen_self=$enable_dlopen_self | |
| 22502 | |
| 22503 # Whether dlopen of statically linked programs is supported. | |
| 22504 dlopen_self_static=$enable_dlopen_self_static | |
| 22505 | |
| 22506 # Commands to strip libraries. | |
| 22507 old_striplib=$lt_old_striplib | |
| 22508 striplib=$lt_striplib | |
| 22509 | |
| 22510 | |
| 22511 # The linker used to build libraries. | |
| 22512 LD=$lt_LD | |
| 22513 | |
| 22514 # How to create reloadable object files. | |
| 22515 reload_flag=$lt_reload_flag | |
| 22516 reload_cmds=$lt_reload_cmds | |
| 22517 | |
| 22518 # Commands used to build an old-style archive. | |
| 22519 old_archive_cmds=$lt_old_archive_cmds | |
| 22520 | |
| 22521 # A language specific compiler. | |
| 22522 CC=$lt_compiler | |
| 22523 | |
| 22524 # Is the compiler the GNU compiler? | |
| 22525 with_gcc=$GCC | |
| 22526 | |
| 22527 # Compiler flag to turn off builtin functions. | |
| 22528 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
| 22529 | |
| 22530 # Additional compiler flags for building library objects. | |
| 22531 pic_flag=$lt_lt_prog_compiler_pic | |
| 22532 | |
| 22533 # How to pass a linker flag through the compiler. | |
| 22534 wl=$lt_lt_prog_compiler_wl | |
| 22535 | |
| 22536 # Compiler flag to prevent dynamic linking. | |
| 22537 link_static_flag=$lt_lt_prog_compiler_static | |
| 22538 | |
| 22539 # Does compiler simultaneously support -c and -o options? | |
| 22540 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
| 22541 | |
| 22542 # Whether or not to add -lc for building shared libraries. | |
| 22543 build_libtool_need_lc=$archive_cmds_need_lc | |
| 22544 | |
| 22545 # Whether or not to disallow shared libs when runtime libs are static. | |
| 22546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
| 22547 | |
| 22548 # Compiler flag to allow reflexive dlopens. | |
| 22549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
| 22550 | |
| 22551 # Compiler flag to generate shared objects directly from archives. | |
| 22552 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
| 22553 | |
| 22554 # Whether the compiler copes with passing no objects directly. | |
| 22555 compiler_needs_object=$lt_compiler_needs_object | |
| 22556 | |
| 22557 # Create an old-style archive from a shared archive. | |
| 22558 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
| 22559 | |
| 22560 # Create a temporary old-style archive to link instead of a shared archive. | |
| 22561 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
| 22562 | |
| 22563 # Commands used to build a shared archive. | |
| 22564 archive_cmds=$lt_archive_cmds | |
| 22565 archive_expsym_cmds=$lt_archive_expsym_cmds | |
| 22566 | |
| 22567 # Commands used to build a loadable module if different from building | |
| 22568 # a shared archive. | |
| 22569 module_cmds=$lt_module_cmds | |
| 22570 module_expsym_cmds=$lt_module_expsym_cmds | |
| 22571 | |
| 22572 # Whether we are building with GNU ld or not. | |
| 22573 with_gnu_ld=$lt_with_gnu_ld | |
| 22574 | |
| 22575 # Flag that allows shared libraries with undefined symbols to be built. | |
| 22576 allow_undefined_flag=$lt_allow_undefined_flag | |
| 22577 | |
| 22578 # Flag that enforces no undefined symbols. | |
| 22579 no_undefined_flag=$lt_no_undefined_flag | |
| 22580 | |
| 22581 # Flag to hardcode \$libdir into a binary during linking. | |
| 22582 # This must work even if \$libdir does not exist | |
| 22583 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
| 22584 | |
| 22585 # Whether we need a single "-rpath" flag with a separated argument. | |
| 22586 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
| 22587 | |
| 22588 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
| 22589 # DIR into the resulting binary. | |
| 22590 hardcode_direct=$hardcode_direct | |
| 22591 | |
| 22592 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
| 22593 # DIR into the resulting binary and the resulting library dependency is | |
| 22594 # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
| 22595 # library is relocated. | |
| 22596 hardcode_direct_absolute=$hardcode_direct_absolute | |
| 22597 | |
| 22598 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
| 22599 # into the resulting binary. | |
| 22600 hardcode_minus_L=$hardcode_minus_L | |
| 22601 | |
| 22602 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
| 22603 # into the resulting binary. | |
| 22604 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
| 22605 | |
| 22606 # Set to "yes" if building a shared library automatically hardcodes DIR | |
| 22607 # into the library and all subsequent libraries and executables linked | |
| 22608 # against it. | |
| 22609 hardcode_automatic=$hardcode_automatic | |
| 22610 | |
| 22611 # Set to yes if linker adds runtime paths of dependent libraries | |
| 22612 # to runtime path list. | |
| 22613 inherit_rpath=$inherit_rpath | |
| 22614 | |
| 22615 # Whether libtool must link a program against all its dependency libraries. | |
| 22616 link_all_deplibs=$link_all_deplibs | |
| 22617 | |
| 22618 # Set to "yes" if exported symbols are required. | |
| 22619 always_export_symbols=$always_export_symbols | |
| 22620 | |
| 22621 # The commands to list exported symbols. | |
| 22622 export_symbols_cmds=$lt_export_symbols_cmds | |
| 22623 | |
| 22624 # Symbols that should not be listed in the preloaded symbols. | |
| 22625 exclude_expsyms=$lt_exclude_expsyms | |
| 22626 | |
| 22627 # Symbols that must always be exported. | |
| 22628 include_expsyms=$lt_include_expsyms | |
| 22629 | |
| 22630 # Commands necessary for linking programs (against libraries) with templates. | |
| 22631 prelink_cmds=$lt_prelink_cmds | |
| 22632 | |
| 22633 # Commands necessary for finishing linking programs. | |
| 22634 postlink_cmds=$lt_postlink_cmds | |
| 22635 | |
| 22636 # Specify filename containing input files. | |
| 22637 file_list_spec=$lt_file_list_spec | |
| 22638 | |
| 22639 # How to hardcode a shared library path into an executable. | |
| 22640 hardcode_action=$hardcode_action | |
| 22641 | |
| 22642 # The directories searched by this compiler when creating a shared library. | |
| 22643 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
| 22644 | |
| 22645 # Dependencies to place before and after the objects being linked to | |
| 22646 # create a shared library. | |
| 22647 predep_objects=$lt_predep_objects | |
| 22648 postdep_objects=$lt_postdep_objects | |
| 22649 predeps=$lt_predeps | |
| 22650 postdeps=$lt_postdeps | |
| 22651 | |
| 22652 # The library search path used internally by the compiler when linking | |
| 22653 # a shared library. | |
| 22654 compiler_lib_search_path=$lt_compiler_lib_search_path | |
| 22655 | |
| 22656 # ### END LIBTOOL CONFIG | |
| 22657 | |
| 22658 _LT_EOF | |
| 22659 | |
| 22660 cat <<'_LT_EOF' >> "$cfgfile" | |
| 22661 ## -------------------------------------- ## | |
| 22662 ## Shell functions shared with configure. ## | |
| 22663 ## -------------------------------------- ## | |
| 22664 | |
| 22665 # func_munge_path_list VARIABLE PATH | |
| 22666 # ----------------------------------- | |
| 22667 # VARIABLE is name of variable containing _space_ separated list of | |
| 22668 # directories to be munged by the contents of PATH, which is string | |
| 22669 # having a format: | |
| 22670 # "DIR[:DIR]:" | |
| 22671 # string "DIR[ DIR]" will be prepended to VARIABLE | |
| 22672 # ":DIR[:DIR]" | |
| 22673 # string "DIR[ DIR]" will be appended to VARIABLE | |
| 22674 # "DIRP[:DIRP]::[DIRA:]DIRA" | |
| 22675 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string | |
| 22676 # "DIRA[ DIRA]" will be appended to VARIABLE | |
| 22677 # "DIR[:DIR]" | |
| 22678 # VARIABLE will be replaced by "DIR[ DIR]" | |
| 22679 func_munge_path_list () | |
| 22680 { | |
| 22681 case x$2 in | |
| 22682 x) | |
| 22683 ;; | |
| 22684 *:) | |
| 22685 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \S|@1\" | |
| 22686 ;; | |
| 22687 x:*) | |
| 22688 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" | |
| 22689 ;; | |
| 22690 *::*) | |
| 22691 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" | |
| 22692 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" | |
| 22693 ;; | |
| 22694 *) | |
| 22695 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" | |
| 22696 ;; | |
| 22697 esac | |
| 22698 } | |
| 22699 | |
| 22700 | |
| 22701 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
| 22702 func_cc_basename () | |
| 22703 { | |
| 22704 for cc_temp in $*""; do | |
| 22705 case $cc_temp in | |
| 22706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
| 22707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
| 22708 \-*) ;; | |
| 22709 *) break;; | |
| 22710 esac | |
| 22711 done | |
| 22712 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
| 22713 } | |
| 22714 | |
| 22715 | |
| 22716 _LT_EOF | |
| 22717 | |
| 22718 case $host_os in | |
| 22719 aix3*) | |
| 22720 cat <<\_LT_EOF >> "$cfgfile" | |
| 22721 # AIX sometimes has problems with the GCC collect2 program. For some | |
| 22722 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
| 22723 # vanish in a puff of smoke. | |
| 22724 if test set != "${COLLECT_NAMES+set}"; then | |
| 22725 COLLECT_NAMES= | |
| 22726 export COLLECT_NAMES | |
| 22727 fi | |
| 22728 _LT_EOF | |
| 22729 ;; | |
| 22730 esac | |
| 22731 | |
| 22732 | |
| 22733 ltmain=$ac_aux_dir/ltmain.sh | |
| 22734 | |
| 22735 | |
| 22736 # We use sed instead of cat because bash on DJGPP gets confused if | |
| 22737 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
| 22738 # text mode, it properly converts lines to CR/LF. This bash problem | |
| 22739 # is reportedly fixed, but why not run on old versions too? | |
| 22740 sed '$q' "$ltmain" >> "$cfgfile" \ | |
| 22741 || (rm -f "$cfgfile"; exit 1) | |
| 22742 | |
| 22743 mv -f "$cfgfile" "$ofile" || | |
| 22744 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
| 22745 chmod +x "$ofile" | |
| 22746 | |
| 22747 | |
| 22748 cat <<_LT_EOF >> "$ofile" | |
| 22749 | |
| 22750 # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
| 22751 | |
| 22752 # The linker used to build libraries. | |
| 22753 LD=$lt_LD_CXX | |
| 22754 | |
| 22755 # How to create reloadable object files. | |
| 22756 reload_flag=$lt_reload_flag_CXX | |
| 22757 reload_cmds=$lt_reload_cmds_CXX | |
| 22758 | |
| 22759 # Commands used to build an old-style archive. | |
| 22760 old_archive_cmds=$lt_old_archive_cmds_CXX | |
| 22761 | |
| 22762 # A language specific compiler. | |
| 22763 CC=$lt_compiler_CXX | |
| 22764 | |
| 22765 # Is the compiler the GNU compiler? | |
| 22766 with_gcc=$GCC_CXX | |
| 22767 | |
| 22768 # Compiler flag to turn off builtin functions. | |
| 22769 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
| 22770 | |
| 22771 # Additional compiler flags for building library objects. | |
| 22772 pic_flag=$lt_lt_prog_compiler_pic_CXX | |
| 22773 | |
| 22774 # How to pass a linker flag through the compiler. | |
| 22775 wl=$lt_lt_prog_compiler_wl_CXX | |
| 22776 | |
| 22777 # Compiler flag to prevent dynamic linking. | |
| 22778 link_static_flag=$lt_lt_prog_compiler_static_CXX | |
| 22779 | |
| 22780 # Does compiler simultaneously support -c and -o options? | |
| 22781 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
| 22782 | |
| 22783 # Whether or not to add -lc for building shared libraries. | |
| 22784 build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
| 22785 | |
| 22786 # Whether or not to disallow shared libs when runtime libs are static. | |
| 22787 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
| 22788 | |
| 22789 # Compiler flag to allow reflexive dlopens. | |
| 22790 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
| 22791 | |
| 22792 # Compiler flag to generate shared objects directly from archives. | |
| 22793 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
| 22794 | |
| 22795 # Whether the compiler copes with passing no objects directly. | |
| 22796 compiler_needs_object=$lt_compiler_needs_object_CXX | |
| 22797 | |
| 22798 # Create an old-style archive from a shared archive. | |
| 22799 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
| 22800 | |
| 22801 # Create a temporary old-style archive to link instead of a shared archive. | |
| 22802 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
| 22803 | |
| 22804 # Commands used to build a shared archive. | |
| 22805 archive_cmds=$lt_archive_cmds_CXX | |
| 22806 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
| 22807 | |
| 22808 # Commands used to build a loadable module if different from building | |
| 22809 # a shared archive. | |
| 22810 module_cmds=$lt_module_cmds_CXX | |
| 22811 module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
| 22812 | |
| 22813 # Whether we are building with GNU ld or not. | |
| 22814 with_gnu_ld=$lt_with_gnu_ld_CXX | |
| 22815 | |
| 22816 # Flag that allows shared libraries with undefined symbols to be built. | |
| 22817 allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
| 22818 | |
| 22819 # Flag that enforces no undefined symbols. | |
| 22820 no_undefined_flag=$lt_no_undefined_flag_CXX | |
| 22821 | |
| 22822 # Flag to hardcode \$libdir into a binary during linking. | |
| 22823 # This must work even if \$libdir does not exist | |
| 22824 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
| 22825 | |
| 22826 # Whether we need a single "-rpath" flag with a separated argument. | |
| 22827 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
| 22828 | |
| 22829 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
| 22830 # DIR into the resulting binary. | |
| 22831 hardcode_direct=$hardcode_direct_CXX | |
| 22832 | |
| 22833 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes | |
| 22834 # DIR into the resulting binary and the resulting library dependency is | |
| 22835 # "absolute",i.e impossible to change by setting \$shlibpath_var if the | |
| 22836 # library is relocated. | |
| 22837 hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
| 22838 | |
| 22839 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
| 22840 # into the resulting binary. | |
| 22841 hardcode_minus_L=$hardcode_minus_L_CXX | |
| 22842 | |
| 22843 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
| 22844 # into the resulting binary. | |
| 22845 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
| 22846 | |
| 22847 # Set to "yes" if building a shared library automatically hardcodes DIR | |
| 22848 # into the library and all subsequent libraries and executables linked | |
| 22849 # against it. | |
| 22850 hardcode_automatic=$hardcode_automatic_CXX | |
| 22851 | |
| 22852 # Set to yes if linker adds runtime paths of dependent libraries | |
| 22853 # to runtime path list. | |
| 22854 inherit_rpath=$inherit_rpath_CXX | |
| 22855 | |
| 22856 # Whether libtool must link a program against all its dependency libraries. | |
| 22857 link_all_deplibs=$link_all_deplibs_CXX | |
| 22858 | |
| 22859 # Set to "yes" if exported symbols are required. | |
| 22860 always_export_symbols=$always_export_symbols_CXX | |
| 22861 | |
| 22862 # The commands to list exported symbols. | |
| 22863 export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
| 22864 | |
| 22865 # Symbols that should not be listed in the preloaded symbols. | |
| 22866 exclude_expsyms=$lt_exclude_expsyms_CXX | |
| 22867 | |
| 22868 # Symbols that must always be exported. | |
| 22869 include_expsyms=$lt_include_expsyms_CXX | |
| 22870 | |
| 22871 # Commands necessary for linking programs (against libraries) with templates. | |
| 22872 prelink_cmds=$lt_prelink_cmds_CXX | |
| 22873 | |
| 22874 # Commands necessary for finishing linking programs. | |
| 22875 postlink_cmds=$lt_postlink_cmds_CXX | |
| 22876 | |
| 22877 # Specify filename containing input files. | |
| 22878 file_list_spec=$lt_file_list_spec_CXX | |
| 22879 | |
| 22880 # How to hardcode a shared library path into an executable. | |
| 22881 hardcode_action=$hardcode_action_CXX | |
| 22882 | |
| 22883 # The directories searched by this compiler when creating a shared library. | |
| 22884 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
| 22885 | |
| 22886 # Dependencies to place before and after the objects being linked to | |
| 22887 # create a shared library. | |
| 22888 predep_objects=$lt_predep_objects_CXX | |
| 22889 postdep_objects=$lt_postdep_objects_CXX | |
| 22890 predeps=$lt_predeps_CXX | |
| 22891 postdeps=$lt_postdeps_CXX | |
| 22892 | |
| 22893 # The library search path used internally by the compiler when linking | |
| 22894 # a shared library. | |
| 22895 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
| 22896 | |
| 22897 # ### END LIBTOOL TAG CONFIG: CXX | |
| 22898 _LT_EOF | |
| 22899 | |
| 22900 ;; | |
| 22901 | |
| 22902 esac | |
| 22903 done # for ac_tag | |
| 22904 | |
| 22905 | |
| 22906 as_fn_exit 0 | |
| 22907 _ACEOF | |
| 22908 ac_clean_files=$ac_clean_files_save | |
| 22909 | |
| 22910 test $ac_write_fail = 0 || | |
| 22911 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
| 22912 | |
| 22913 | |
| 22914 # configure is writing to config.log, and then calls config.status. | |
| 22915 # config.status does its own redirection, appending to config.log. | |
| 22916 # Unfortunately, on DOS this fails, as config.log is still kept open | |
| 22917 # by configure, so config.status won't be able to write to it; its | |
| 22918 # output is simply discarded. So we exec the FD to /dev/null, | |
| 22919 # effectively closing config.log, so it can be properly (re)opened and | |
| 22920 # appended to by config.status. When coming back to configure, we | |
| 22921 # need to make the FD available again. | |
| 22922 if test "$no_create" != yes; then | |
| 22923 ac_cs_success=: | |
| 22924 ac_config_status_args= | |
| 22925 test "$silent" = yes && | |
| 22926 ac_config_status_args="$ac_config_status_args --quiet" | |
| 22927 exec 5>/dev/null | |
| 22928 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
| 22929 exec 5>>config.log | |
| 22930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
| 22931 # would make configure fail if this is the last instruction. | |
| 22932 $ac_cs_success || as_fn_exit 1 | |
| 22933 fi | |
| 22934 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
| 22935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
| 22936 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
| 22937 fi | |
| 22938 |
