bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65 for breakpad 0.1. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <opensource@google.com>. |
| 6 | # |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 10 | # Inc. |
| 11 | # |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 22 | emulate sh |
| 23 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 27 | setopt NO_GLOB_SUBST |
| 28 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 34 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 35 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 36 | |
| 37 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
| 62 | case $arg in #( |
| 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 75 | |
| 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 83 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 84 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 94 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; |
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 97 | for as_dir in $PATH |
| 98 | do |
| 99 | IFS=$as_save_IFS |
| 100 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 104 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 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 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 114 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 115 | fi |
| 116 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 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 || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 124 | done |
| 125 | PS1='$ ' |
| 126 | PS2='> ' |
| 127 | PS4='+ ' |
| 128 | |
| 129 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 130 | LC_ALL=C |
| 131 | export LC_ALL |
| 132 | LANGUAGE=C |
| 133 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 134 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 135 | # CDPATH. |
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 | |
| 138 | if test "x$CONFIG_SHELL" = x; then |
| 139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 140 | emulate sh |
| 141 | NULLCMD=: |
| 142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 143 | # is contrary to our usage. Disable this feature. |
| 144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 145 | setopt NO_GLOB_SUBST |
| 146 | else |
| 147 | case \`(set -o) 2>/dev/null\` in #( |
| 148 | *posix*) : |
| 149 | set -o posix ;; #( |
| 150 | *) : |
| 151 | ;; |
| 152 | esac |
| 153 | fi |
| 154 | " |
| 155 | as_required="as_fn_return () { (exit \$1); } |
| 156 | as_fn_success () { as_fn_return 0; } |
| 157 | as_fn_failure () { as_fn_return 1; } |
| 158 | as_fn_ret_success () { return 0; } |
| 159 | as_fn_ret_failure () { return 1; } |
| 160 | |
| 161 | exitcode=0 |
| 162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 167 | |
| 168 | else |
| 169 | exitcode=1; echo positional parameters were not saved. |
| 170 | fi |
| 171 | test x\$exitcode = x0 || exit 1" |
| 172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 176 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 177 | if (eval "$as_required") 2>/dev/null; then : |
| 178 | as_have_required=yes |
| 179 | else |
| 180 | as_have_required=no |
| 181 | fi |
| 182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 183 | |
| 184 | else |
| 185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 186 | as_found=false |
| 187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 188 | do |
| 189 | IFS=$as_save_IFS |
| 190 | test -z "$as_dir" && as_dir=. |
| 191 | as_found=: |
| 192 | case $as_dir in #( |
| 193 | /*) |
| 194 | for as_base in sh bash ksh sh5; do |
| 195 | # Try only shells that exist, to save several forks. |
| 196 | as_shell=$as_dir/$as_base |
| 197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | break 2 |
| 202 | fi |
| 203 | fi |
| 204 | done;; |
| 205 | esac |
| 206 | as_found=false |
| 207 | done |
| 208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 210 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 211 | fi; } |
| 212 | IFS=$as_save_IFS |
| 213 | |
| 214 | |
| 215 | if test "x$CONFIG_SHELL" != x; then : |
| 216 | # We cannot yet assume a decent shell, so we have to provide a |
| 217 | # neutralization value for shells without unset; and this also |
| 218 | # works around shells that cannot unset nonexistent variables. |
| 219 | BASH_ENV=/dev/null |
| 220 | ENV=/dev/null |
| 221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 222 | export CONFIG_SHELL |
| 223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 224 | fi |
| 225 | |
| 226 | if test x$as_have_required = xno; then : |
| 227 | $as_echo "$0: This script requires a shell more modern than all" |
| 228 | $as_echo "$0: the shells that I found on your system." |
| 229 | if test x${ZSH_VERSION+set} = xset ; then |
| 230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 232 | else |
| 233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 234 | $0: opensource@google.com about your system, including any |
| 235 | $0: error possibly output before this message. Then install |
| 236 | $0: a modern shell, or manually run the script under such a |
| 237 | $0: shell if you do have one." |
| 238 | fi |
| 239 | exit 1 |
| 240 | fi |
| 241 | fi |
| 242 | fi |
| 243 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 244 | export SHELL |
| 245 | # Unset more variables known to interfere with behavior of common tools. |
| 246 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 247 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 248 | |
| 249 | ## --------------------- ## |
| 250 | ## M4sh Shell Functions. ## |
| 251 | ## --------------------- ## |
| 252 | # as_fn_unset VAR |
| 253 | # --------------- |
| 254 | # Portably unset VAR. |
| 255 | as_fn_unset () |
| 256 | { |
| 257 | { eval $1=; unset $1;} |
| 258 | } |
| 259 | as_unset=as_fn_unset |
| 260 | |
| 261 | # as_fn_set_status STATUS |
| 262 | # ----------------------- |
| 263 | # Set $? to STATUS, without forking. |
| 264 | as_fn_set_status () |
| 265 | { |
| 266 | return $1 |
| 267 | } # as_fn_set_status |
| 268 | |
| 269 | # as_fn_exit STATUS |
| 270 | # ----------------- |
| 271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 272 | as_fn_exit () |
| 273 | { |
| 274 | set +e |
| 275 | as_fn_set_status $1 |
| 276 | exit $1 |
| 277 | } # as_fn_exit |
| 278 | |
| 279 | # as_fn_mkdir_p |
| 280 | # ------------- |
| 281 | # Create "$as_dir" as a directory, including parents if necessary. |
| 282 | as_fn_mkdir_p () |
| 283 | { |
| 284 | |
| 285 | case $as_dir in #( |
| 286 | -*) as_dir=./$as_dir;; |
| 287 | esac |
| 288 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 289 | as_dirs= |
| 290 | while :; do |
| 291 | case $as_dir in #( |
| 292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 293 | *) as_qdir=$as_dir;; |
| 294 | esac |
| 295 | as_dirs="'$as_qdir' $as_dirs" |
| 296 | as_dir=`$as_dirname -- "$as_dir" || |
| 297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 298 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 299 | X"$as_dir" : 'X\(//\)$' \| \ |
| 300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 301 | $as_echo X"$as_dir" | |
| 302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 303 | s//\1/ |
| 304 | q |
| 305 | } |
| 306 | /^X\(\/\/\)[^/].*/{ |
| 307 | s//\1/ |
| 308 | q |
| 309 | } |
| 310 | /^X\(\/\/\)$/{ |
| 311 | s//\1/ |
| 312 | q |
| 313 | } |
| 314 | /^X\(\/\).*/{ |
| 315 | s//\1/ |
| 316 | q |
| 317 | } |
| 318 | s/.*/./; q'` |
| 319 | test -d "$as_dir" && break |
| 320 | done |
| 321 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 323 | |
| 324 | |
| 325 | } # as_fn_mkdir_p |
| 326 | # as_fn_append VAR VALUE |
| 327 | # ---------------------- |
| 328 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 329 | # advantage of any shell optimizations that allow amortized linear growth over |
| 330 | # repeated appends, instead of the typical quadratic growth present in naive |
| 331 | # implementations. |
| 332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 333 | eval 'as_fn_append () |
| 334 | { |
| 335 | eval $1+=\$2 |
| 336 | }' |
| 337 | else |
| 338 | as_fn_append () |
| 339 | { |
| 340 | eval $1=\$$1\$2 |
| 341 | } |
| 342 | fi # as_fn_append |
| 343 | |
| 344 | # as_fn_arith ARG... |
| 345 | # ------------------ |
| 346 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 348 | # must be portable across $(()) and expr. |
| 349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 350 | eval 'as_fn_arith () |
| 351 | { |
| 352 | as_val=$(( $* )) |
| 353 | }' |
| 354 | else |
| 355 | as_fn_arith () |
| 356 | { |
| 357 | as_val=`expr "$@" || test $? -eq 1` |
| 358 | } |
| 359 | fi # as_fn_arith |
| 360 | |
| 361 | |
| 362 | # as_fn_error ERROR [LINENO LOG_FD] |
| 363 | # --------------------------------- |
| 364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 366 | # script with status $?, using 1 if that was 0. |
| 367 | as_fn_error () |
| 368 | { |
| 369 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 370 | if test "$3"; then |
| 371 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 373 | fi |
| 374 | $as_echo "$as_me: error: $1" >&2 |
| 375 | as_fn_exit $as_status |
| 376 | } # as_fn_error |
| 377 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 378 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 380 | as_expr=expr |
| 381 | else |
| 382 | as_expr=false |
| 383 | fi |
| 384 | |
| 385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 386 | as_basename=basename |
| 387 | else |
| 388 | as_basename=false |
| 389 | fi |
| 390 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 392 | as_dirname=dirname |
| 393 | else |
| 394 | as_dirname=false |
| 395 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 396 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 397 | as_me=`$as_basename -- "$0" || |
| 398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 399 | X"$0" : 'X\(//\)$' \| \ |
| 400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 401 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 403 | s//\1/ |
| 404 | q |
| 405 | } |
| 406 | /^X\/\(\/\/\)$/{ |
| 407 | s//\1/ |
| 408 | q |
| 409 | } |
| 410 | /^X\/\(\/\).*/{ |
| 411 | s//\1/ |
| 412 | q |
| 413 | } |
| 414 | s/.*/./; q'` |
| 415 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 416 | # Avoid depending upon Character Ranges. |
| 417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 420 | as_cr_digits='0123456789' |
| 421 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 422 | |
| 423 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 429 | sed -n ' |
| 430 | p |
| 431 | /[$]LINENO/= |
| 432 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 433 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 434 | s/[$]LINENO.*/&-/ |
| 435 | t lineno |
| 436 | b |
| 437 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 438 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 439 | :loop |
| 440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 441 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 442 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 443 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 444 | chmod +x "$as_me.lineno" || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 446 | |
| 447 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 448 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 449 | # original and so on. Autoconf is especially sensitive to this). |
| 450 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 451 | # Exit status is that of the last command. |
| 452 | exit |
| 453 | } |
| 454 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 455 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 456 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 457 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 458 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 460 | xy) ECHO_C='\c';; |
| 461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 462 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 463 | esac;; |
| 464 | *) |
| 465 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 466 | esac |
| 467 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 468 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 469 | if test -d conf$$.dir; then |
| 470 | rm -f conf$$.dir/conf$$.file |
| 471 | else |
| 472 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 473 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 474 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 475 | if (echo >conf$$.file) 2>/dev/null; then |
| 476 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 477 | as_ln_s='ln -s' |
| 478 | # ... but there are two gotchas: |
| 479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 481 | # In both cases, we have to default to `cp -p'. |
| 482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 483 | as_ln_s='cp -p' |
| 484 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 485 | as_ln_s=ln |
| 486 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 487 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 488 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 489 | else |
| 490 | as_ln_s='cp -p' |
| 491 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 493 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 494 | |
| 495 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 496 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 497 | else |
| 498 | test -d ./-p && rmdir ./-p |
| 499 | as_mkdir_p=false |
| 500 | fi |
| 501 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 502 | if test -x / >/dev/null 2>&1; then |
| 503 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 504 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 505 | if ls -dL / >/dev/null 2>&1; then |
| 506 | as_ls_L_option=L |
| 507 | else |
| 508 | as_ls_L_option= |
| 509 | fi |
| 510 | as_test_x=' |
| 511 | eval sh -c '\'' |
| 512 | if test -d "$1"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 513 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 514 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 515 | case $1 in #( |
| 516 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 517 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 519 | ???[sx]*):;;*)false;;esac;fi |
| 520 | '\'' sh |
| 521 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 522 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 523 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 524 | |
| 525 | # Sed expression to map a string onto a valid CPP name. |
| 526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | # Sed expression to map a string onto a valid variable name. |
| 529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 530 | |
| 531 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 532 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 533 | # Check that we are running under the correct shell. |
| 534 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 535 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 536 | case X$lt_ECHO in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 537 | X*--fallback-echo) |
| 538 | # Remove one level of quotation (which was required for Make). |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 540 | ;; |
| 541 | esac |
| 542 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 543 | ECHO=${lt_ECHO-echo} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 544 | if test "X$1" = X--no-reexec; then |
| 545 | # Discard the --no-reexec flag, and continue. |
| 546 | shift |
| 547 | elif test "X$1" = X--fallback-echo; then |
| 548 | # Avoid inline document here, it may be left over |
| 549 | : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 551 | # Yippee, $ECHO works! |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 552 | : |
| 553 | else |
| 554 | # Restart under the correct shell. |
| 555 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 556 | fi |
| 557 | |
| 558 | if test "X$1" = X--fallback-echo; then |
| 559 | # used as fallback echo |
| 560 | shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 561 | cat <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 562 | $* |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 563 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 564 | exit 0 |
| 565 | fi |
| 566 | |
| 567 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 568 | # if CDPATH is set. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 570 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 571 | if test -z "$lt_ECHO"; then |
| 572 | if test "X${echo_test_string+set}" != Xset; then |
| 573 | # find a string as large as possible, as long as the shell can cope with it |
| 574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 578 | then |
| 579 | break |
| 580 | fi |
| 581 | done |
| 582 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 583 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 586 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 587 | : |
| 588 | else |
| 589 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 590 | # backslashes. This makes it impossible to quote backslashes using |
| 591 | # echo "$something" | sed 's/\\/\\\\/g' |
| 592 | # |
| 593 | # So, first we look for a working echo in the user's PATH. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 594 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 596 | for dir in $PATH /usr/ucb; do |
| 597 | IFS="$lt_save_ifs" |
| 598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 601 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 602 | ECHO="$dir/echo" |
| 603 | break |
| 604 | fi |
| 605 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 606 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 607 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 608 | if test "X$ECHO" = Xecho; then |
| 609 | # We didn't find a better echo, so look for alternatives. |
| 610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 612 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 613 | # This shell has a builtin print -r that does the trick. |
| 614 | ECHO='print -r' |
| 615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 616 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 617 | # If we have ksh, try running configure again with it. |
| 618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 619 | export ORIGINAL_CONFIG_SHELL |
| 620 | CONFIG_SHELL=/bin/ksh |
| 621 | export CONFIG_SHELL |
| 622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 623 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 624 | # Try using printf. |
| 625 | ECHO='printf %s\n' |
| 626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 628 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 629 | # Cool, printf works |
| 630 | : |
| 631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 632 | test "X$echo_testing_string" = 'X\t' && |
| 633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 634 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 636 | export CONFIG_SHELL |
| 637 | SHELL="$CONFIG_SHELL" |
| 638 | export SHELL |
| 639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 641 | test "X$echo_testing_string" = 'X\t' && |
| 642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 643 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 645 | else |
| 646 | # maybe with a smaller string... |
| 647 | prev=: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 648 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 651 | then |
| 652 | break |
| 653 | fi |
| 654 | prev="$cmd" |
| 655 | done |
| 656 | |
| 657 | if test "$prev" != 'sed 50q "$0"'; then |
| 658 | echo_test_string=`eval $prev` |
| 659 | export echo_test_string |
| 660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 661 | else |
| 662 | # Oops. We lost completely, so just stick with echo. |
| 663 | ECHO=echo |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 664 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 665 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 666 | fi |
| 667 | fi |
| 668 | fi |
| 669 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 670 | |
| 671 | # Copy echo and quote the copy suitably for passing to libtool from |
| 672 | # the Makefile, instead of quoting the original, which is used later. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 673 | lt_ECHO=$ECHO |
| 674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 676 | fi |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 681 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 682 | exec 6>&1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 683 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 684 | # Name of the host. |
| 685 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 686 | # so uname gets run too. |
| 687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 688 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 689 | # |
| 690 | # Initializations. |
| 691 | # |
| 692 | ac_default_prefix=/usr/local |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 693 | ac_clean_files= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 694 | ac_config_libobj_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 695 | LIBOBJS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 696 | cross_compiling=no |
| 697 | subdirs= |
| 698 | MFLAGS= |
| 699 | MAKEFLAGS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 700 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 701 | # Identity of this package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 702 | PACKAGE_NAME='breakpad' |
| 703 | PACKAGE_TARNAME='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 704 | PACKAGE_VERSION='0.1' |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 705 | PACKAGE_STRING='breakpad 0.1' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 706 | PACKAGE_BUGREPORT='opensource@google.com' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 707 | PACKAGE_URL='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 708 | |
| 709 | ac_unique_file="README" |
| 710 | # Factoring default headers for most tests. |
| 711 | ac_includes_default="\ |
| 712 | #include <stdio.h> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 713 | #ifdef HAVE_SYS_TYPES_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 714 | # include <sys/types.h> |
| 715 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 716 | #ifdef HAVE_SYS_STAT_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 717 | # include <sys/stat.h> |
| 718 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 719 | #ifdef STDC_HEADERS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 720 | # include <stdlib.h> |
| 721 | # include <stddef.h> |
| 722 | #else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 723 | # ifdef HAVE_STDLIB_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 724 | # include <stdlib.h> |
| 725 | # endif |
| 726 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 727 | #ifdef HAVE_STRING_H |
| 728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 729 | # include <memory.h> |
| 730 | # endif |
| 731 | # include <string.h> |
| 732 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 733 | #ifdef HAVE_STRINGS_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 734 | # include <strings.h> |
| 735 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 736 | #ifdef HAVE_INTTYPES_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 737 | # include <inttypes.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 738 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 739 | #ifdef HAVE_STDINT_H |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 740 | # include <stdint.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 741 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 742 | #ifdef HAVE_UNISTD_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 743 | # include <unistd.h> |
| 744 | #endif" |
| 745 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 746 | ac_subst_vars='am__EXEEXT_FALSE |
| 747 | am__EXEEXT_TRUE |
| 748 | LTLIBOBJS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 749 | LIBOBJS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 750 | SELFTEST_FALSE |
| 751 | SELFTEST_TRUE |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 752 | PTHREAD_CFLAGS |
| 753 | PTHREAD_LIBS |
| 754 | PTHREAD_CC |
| 755 | ax_pthread_config |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 756 | LIBTOOL_DEPS |
| 757 | CXXCPP |
| 758 | OTOOL64 |
| 759 | OTOOL |
| 760 | LIPO |
| 761 | NMEDIT |
| 762 | DSYMUTIL |
| 763 | lt_ECHO |
| 764 | RANLIB |
| 765 | AR |
| 766 | OBJDUMP |
| 767 | LN_S |
| 768 | NM |
| 769 | ac_ct_DUMPBIN |
| 770 | DUMPBIN |
| 771 | LD |
| 772 | FGREP |
| 773 | EGREP |
| 774 | GREP |
| 775 | SED |
| 776 | host_os |
| 777 | host_vendor |
| 778 | host_cpu |
| 779 | host |
| 780 | build_os |
| 781 | build_vendor |
| 782 | build_cpu |
| 783 | build |
| 784 | LIBTOOL |
| 785 | am__fastdepCXX_FALSE |
| 786 | am__fastdepCXX_TRUE |
| 787 | CXXDEPMODE |
| 788 | ac_ct_CXX |
| 789 | CXXFLAGS |
| 790 | CXX |
| 791 | CPP |
| 792 | am__fastdepCC_FALSE |
| 793 | am__fastdepCC_TRUE |
| 794 | CCDEPMODE |
| 795 | AMDEPBACKSLASH |
| 796 | AMDEP_FALSE |
| 797 | AMDEP_TRUE |
| 798 | am__quote |
| 799 | am__include |
| 800 | DEPDIR |
| 801 | OBJEXT |
| 802 | EXEEXT |
| 803 | ac_ct_CC |
| 804 | CPPFLAGS |
| 805 | LDFLAGS |
| 806 | CFLAGS |
| 807 | CC |
| 808 | am__untar |
| 809 | am__tar |
| 810 | AMTAR |
| 811 | am__leading_dot |
| 812 | SET_MAKE |
| 813 | AWK |
| 814 | mkdir_p |
| 815 | MKDIR_P |
| 816 | INSTALL_STRIP_PROGRAM |
| 817 | STRIP |
| 818 | install_sh |
| 819 | MAKEINFO |
| 820 | AUTOHEADER |
| 821 | AUTOMAKE |
| 822 | AUTOCONF |
| 823 | ACLOCAL |
| 824 | VERSION |
| 825 | PACKAGE |
| 826 | CYGPATH_W |
| 827 | am__isrc |
| 828 | INSTALL_DATA |
| 829 | INSTALL_SCRIPT |
| 830 | INSTALL_PROGRAM |
| 831 | target_alias |
| 832 | host_alias |
| 833 | build_alias |
| 834 | LIBS |
| 835 | ECHO_T |
| 836 | ECHO_N |
| 837 | ECHO_C |
| 838 | DEFS |
| 839 | mandir |
| 840 | localedir |
| 841 | libdir |
| 842 | psdir |
| 843 | pdfdir |
| 844 | dvidir |
| 845 | htmldir |
| 846 | infodir |
| 847 | docdir |
| 848 | oldincludedir |
| 849 | includedir |
| 850 | localstatedir |
| 851 | sharedstatedir |
| 852 | sysconfdir |
| 853 | datadir |
| 854 | datarootdir |
| 855 | libexecdir |
| 856 | sbindir |
| 857 | bindir |
| 858 | program_transform_name |
| 859 | prefix |
| 860 | exec_prefix |
| 861 | PACKAGE_URL |
| 862 | PACKAGE_BUGREPORT |
| 863 | PACKAGE_STRING |
| 864 | PACKAGE_VERSION |
| 865 | PACKAGE_TARNAME |
| 866 | PACKAGE_NAME |
| 867 | PATH_SEPARATOR |
| 868 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 869 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 870 | ac_user_opts=' |
| 871 | enable_option_checking |
| 872 | enable_dependency_tracking |
| 873 | enable_shared |
| 874 | enable_static |
| 875 | with_pic |
| 876 | enable_fast_install |
| 877 | with_gnu_ld |
| 878 | enable_libtool_lock |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 879 | enable_m32 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 880 | enable_selftest |
| 881 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 882 | ac_precious_vars='build_alias |
| 883 | host_alias |
| 884 | target_alias |
| 885 | CC |
| 886 | CFLAGS |
| 887 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 888 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 889 | CPPFLAGS |
| 890 | CPP |
| 891 | CXX |
| 892 | CXXFLAGS |
| 893 | CCC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 894 | CXXCPP' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 895 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 896 | |
| 897 | # Initialize some variables set by options. |
| 898 | ac_init_help= |
| 899 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 900 | ac_unrecognized_opts= |
| 901 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 902 | # The variables have the same names as the options, with |
| 903 | # dashes changed to underlines. |
| 904 | cache_file=/dev/null |
| 905 | exec_prefix=NONE |
| 906 | no_create= |
| 907 | no_recursion= |
| 908 | prefix=NONE |
| 909 | program_prefix=NONE |
| 910 | program_suffix=NONE |
| 911 | program_transform_name=s,x,x, |
| 912 | silent= |
| 913 | site= |
| 914 | srcdir= |
| 915 | verbose= |
| 916 | x_includes=NONE |
| 917 | x_libraries=NONE |
| 918 | |
| 919 | # Installation directory options. |
| 920 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 921 | # and all the variables that are supposed to be based on exec_prefix |
| 922 | # by default will actually change. |
| 923 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 924 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 925 | bindir='${exec_prefix}/bin' |
| 926 | sbindir='${exec_prefix}/sbin' |
| 927 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 928 | datarootdir='${prefix}/share' |
| 929 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 930 | sysconfdir='${prefix}/etc' |
| 931 | sharedstatedir='${prefix}/com' |
| 932 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 933 | includedir='${prefix}/include' |
| 934 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 935 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 936 | infodir='${datarootdir}/info' |
| 937 | htmldir='${docdir}' |
| 938 | dvidir='${docdir}' |
| 939 | pdfdir='${docdir}' |
| 940 | psdir='${docdir}' |
| 941 | libdir='${exec_prefix}/lib' |
| 942 | localedir='${datarootdir}/locale' |
| 943 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 944 | |
| 945 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 946 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 947 | for ac_option |
| 948 | do |
| 949 | # If the previous option needs an argument, assign it. |
| 950 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 951 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 952 | ac_prev= |
| 953 | continue |
| 954 | fi |
| 955 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 956 | case $ac_option in |
| 957 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 958 | *) ac_optarg=yes ;; |
| 959 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 960 | |
| 961 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 962 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 963 | case $ac_dashdash$ac_option in |
| 964 | --) |
| 965 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 966 | |
| 967 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 968 | ac_prev=bindir ;; |
| 969 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 970 | bindir=$ac_optarg ;; |
| 971 | |
| 972 | -build | --build | --buil | --bui | --bu) |
| 973 | ac_prev=build_alias ;; |
| 974 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 975 | build_alias=$ac_optarg ;; |
| 976 | |
| 977 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 978 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 979 | ac_prev=cache_file ;; |
| 980 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 981 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 982 | cache_file=$ac_optarg ;; |
| 983 | |
| 984 | --config-cache | -C) |
| 985 | cache_file=config.cache ;; |
| 986 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 987 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 988 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 989 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 990 | datadir=$ac_optarg ;; |
| 991 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 992 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 993 | | --dataroo | --dataro | --datar) |
| 994 | ac_prev=datarootdir ;; |
| 995 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 996 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 997 | datarootdir=$ac_optarg ;; |
| 998 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 999 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1000 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1001 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1002 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1003 | as_fn_error "invalid feature name: $ac_useropt" |
| 1004 | ac_useropt_orig=$ac_useropt |
| 1005 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1006 | case $ac_user_opts in |
| 1007 | *" |
| 1008 | "enable_$ac_useropt" |
| 1009 | "*) ;; |
| 1010 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1011 | ac_unrecognized_sep=', ';; |
| 1012 | esac |
| 1013 | eval enable_$ac_useropt=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1014 | |
| 1015 | -docdir | --docdir | --docdi | --doc | --do) |
| 1016 | ac_prev=docdir ;; |
| 1017 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1018 | docdir=$ac_optarg ;; |
| 1019 | |
| 1020 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1021 | ac_prev=dvidir ;; |
| 1022 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1023 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1024 | |
| 1025 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1026 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1027 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1028 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1029 | as_fn_error "invalid feature name: $ac_useropt" |
| 1030 | ac_useropt_orig=$ac_useropt |
| 1031 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1032 | case $ac_user_opts in |
| 1033 | *" |
| 1034 | "enable_$ac_useropt" |
| 1035 | "*) ;; |
| 1036 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1037 | ac_unrecognized_sep=', ';; |
| 1038 | esac |
| 1039 | eval enable_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1040 | |
| 1041 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1042 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1043 | | --exec | --exe | --ex) |
| 1044 | ac_prev=exec_prefix ;; |
| 1045 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1046 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1047 | | --exec=* | --exe=* | --ex=*) |
| 1048 | exec_prefix=$ac_optarg ;; |
| 1049 | |
| 1050 | -gas | --gas | --ga | --g) |
| 1051 | # Obsolete; use --with-gas. |
| 1052 | with_gas=yes ;; |
| 1053 | |
| 1054 | -help | --help | --hel | --he | -h) |
| 1055 | ac_init_help=long ;; |
| 1056 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1057 | ac_init_help=recursive ;; |
| 1058 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1059 | ac_init_help=short ;; |
| 1060 | |
| 1061 | -host | --host | --hos | --ho) |
| 1062 | ac_prev=host_alias ;; |
| 1063 | -host=* | --host=* | --hos=* | --ho=*) |
| 1064 | host_alias=$ac_optarg ;; |
| 1065 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1066 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1067 | ac_prev=htmldir ;; |
| 1068 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1069 | | --ht=*) |
| 1070 | htmldir=$ac_optarg ;; |
| 1071 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1072 | -includedir | --includedir | --includedi | --included | --include \ |
| 1073 | | --includ | --inclu | --incl | --inc) |
| 1074 | ac_prev=includedir ;; |
| 1075 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1076 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1077 | includedir=$ac_optarg ;; |
| 1078 | |
| 1079 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1080 | ac_prev=infodir ;; |
| 1081 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1082 | infodir=$ac_optarg ;; |
| 1083 | |
| 1084 | -libdir | --libdir | --libdi | --libd) |
| 1085 | ac_prev=libdir ;; |
| 1086 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1087 | libdir=$ac_optarg ;; |
| 1088 | |
| 1089 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1090 | | --libexe | --libex | --libe) |
| 1091 | ac_prev=libexecdir ;; |
| 1092 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1093 | | --libexe=* | --libex=* | --libe=*) |
| 1094 | libexecdir=$ac_optarg ;; |
| 1095 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1096 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1097 | ac_prev=localedir ;; |
| 1098 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1099 | localedir=$ac_optarg ;; |
| 1100 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1101 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1102 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1103 | ac_prev=localstatedir ;; |
| 1104 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1105 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1106 | localstatedir=$ac_optarg ;; |
| 1107 | |
| 1108 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1109 | ac_prev=mandir ;; |
| 1110 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1111 | mandir=$ac_optarg ;; |
| 1112 | |
| 1113 | -nfp | --nfp | --nf) |
| 1114 | # Obsolete; use --without-fp. |
| 1115 | with_fp=no ;; |
| 1116 | |
| 1117 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1118 | | --no-cr | --no-c | -n) |
| 1119 | no_create=yes ;; |
| 1120 | |
| 1121 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1122 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1123 | no_recursion=yes ;; |
| 1124 | |
| 1125 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1126 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1127 | | --oldin | --oldi | --old | --ol | --o) |
| 1128 | ac_prev=oldincludedir ;; |
| 1129 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1130 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1131 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1132 | oldincludedir=$ac_optarg ;; |
| 1133 | |
| 1134 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1135 | ac_prev=prefix ;; |
| 1136 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1137 | prefix=$ac_optarg ;; |
| 1138 | |
| 1139 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1140 | | --program-pre | --program-pr | --program-p) |
| 1141 | ac_prev=program_prefix ;; |
| 1142 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1143 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1144 | program_prefix=$ac_optarg ;; |
| 1145 | |
| 1146 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1147 | | --program-suf | --program-su | --program-s) |
| 1148 | ac_prev=program_suffix ;; |
| 1149 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1150 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1151 | program_suffix=$ac_optarg ;; |
| 1152 | |
| 1153 | -program-transform-name | --program-transform-name \ |
| 1154 | | --program-transform-nam | --program-transform-na \ |
| 1155 | | --program-transform-n | --program-transform- \ |
| 1156 | | --program-transform | --program-transfor \ |
| 1157 | | --program-transfo | --program-transf \ |
| 1158 | | --program-trans | --program-tran \ |
| 1159 | | --progr-tra | --program-tr | --program-t) |
| 1160 | ac_prev=program_transform_name ;; |
| 1161 | -program-transform-name=* | --program-transform-name=* \ |
| 1162 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1163 | | --program-transform-n=* | --program-transform-=* \ |
| 1164 | | --program-transform=* | --program-transfor=* \ |
| 1165 | | --program-transfo=* | --program-transf=* \ |
| 1166 | | --program-trans=* | --program-tran=* \ |
| 1167 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1168 | program_transform_name=$ac_optarg ;; |
| 1169 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1170 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1171 | ac_prev=pdfdir ;; |
| 1172 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1173 | pdfdir=$ac_optarg ;; |
| 1174 | |
| 1175 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1176 | ac_prev=psdir ;; |
| 1177 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1178 | psdir=$ac_optarg ;; |
| 1179 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1180 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1181 | | -silent | --silent | --silen | --sile | --sil) |
| 1182 | silent=yes ;; |
| 1183 | |
| 1184 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1185 | ac_prev=sbindir ;; |
| 1186 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1187 | | --sbi=* | --sb=*) |
| 1188 | sbindir=$ac_optarg ;; |
| 1189 | |
| 1190 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1191 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1192 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1193 | | --sha | --sh) |
| 1194 | ac_prev=sharedstatedir ;; |
| 1195 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1196 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1197 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1198 | | --sha=* | --sh=*) |
| 1199 | sharedstatedir=$ac_optarg ;; |
| 1200 | |
| 1201 | -site | --site | --sit) |
| 1202 | ac_prev=site ;; |
| 1203 | -site=* | --site=* | --sit=*) |
| 1204 | site=$ac_optarg ;; |
| 1205 | |
| 1206 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1207 | ac_prev=srcdir ;; |
| 1208 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1209 | srcdir=$ac_optarg ;; |
| 1210 | |
| 1211 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1212 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1213 | ac_prev=sysconfdir ;; |
| 1214 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1215 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1216 | sysconfdir=$ac_optarg ;; |
| 1217 | |
| 1218 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1219 | ac_prev=target_alias ;; |
| 1220 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1221 | target_alias=$ac_optarg ;; |
| 1222 | |
| 1223 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1224 | verbose=yes ;; |
| 1225 | |
| 1226 | -version | --version | --versio | --versi | --vers | -V) |
| 1227 | ac_init_version=: ;; |
| 1228 | |
| 1229 | -with-* | --with-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1230 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1231 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1232 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1233 | as_fn_error "invalid package name: $ac_useropt" |
| 1234 | ac_useropt_orig=$ac_useropt |
| 1235 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1236 | case $ac_user_opts in |
| 1237 | *" |
| 1238 | "with_$ac_useropt" |
| 1239 | "*) ;; |
| 1240 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1241 | ac_unrecognized_sep=', ';; |
| 1242 | esac |
| 1243 | eval with_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1244 | |
| 1245 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1246 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1247 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1248 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1249 | as_fn_error "invalid package name: $ac_useropt" |
| 1250 | ac_useropt_orig=$ac_useropt |
| 1251 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1252 | case $ac_user_opts in |
| 1253 | *" |
| 1254 | "with_$ac_useropt" |
| 1255 | "*) ;; |
| 1256 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1257 | ac_unrecognized_sep=', ';; |
| 1258 | esac |
| 1259 | eval with_$ac_useropt=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1260 | |
| 1261 | --x) |
| 1262 | # Obsolete; use --with-x. |
| 1263 | with_x=yes ;; |
| 1264 | |
| 1265 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1266 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1267 | ac_prev=x_includes ;; |
| 1268 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1269 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1270 | x_includes=$ac_optarg ;; |
| 1271 | |
| 1272 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1273 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1274 | ac_prev=x_libraries ;; |
| 1275 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1276 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1277 | x_libraries=$ac_optarg ;; |
| 1278 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1279 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1280 | Try \`$0 --help' for more information." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1281 | ;; |
| 1282 | |
| 1283 | *=*) |
| 1284 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1285 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1286 | case $ac_envvar in #( |
| 1287 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1288 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1289 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1290 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1291 | export $ac_envvar ;; |
| 1292 | |
| 1293 | *) |
| 1294 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1295 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1296 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1297 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1298 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1299 | ;; |
| 1300 | |
| 1301 | esac |
| 1302 | done |
| 1303 | |
| 1304 | if test -n "$ac_prev"; then |
| 1305 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1306 | as_fn_error "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1307 | fi |
| 1308 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1309 | if test -n "$ac_unrecognized_opts"; then |
| 1310 | case $enable_option_checking in |
| 1311 | no) ;; |
| 1312 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1313 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1314 | esac |
| 1315 | fi |
| 1316 | |
| 1317 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1318 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1319 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1320 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1321 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1322 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1323 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1324 | # Remove trailing slashes. |
| 1325 | case $ac_val in |
| 1326 | */ ) |
| 1327 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1328 | eval $ac_var=\$ac_val;; |
| 1329 | esac |
| 1330 | # Be sure to have absolute directory names. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1331 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1332 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1333 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1334 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1335 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1336 | done |
| 1337 | |
| 1338 | # There might be people who depend on the old broken behavior: `$host' |
| 1339 | # used to hold the argument of --host etc. |
| 1340 | # FIXME: To remove some day. |
| 1341 | build=$build_alias |
| 1342 | host=$host_alias |
| 1343 | target=$target_alias |
| 1344 | |
| 1345 | # FIXME: To remove some day. |
| 1346 | if test "x$host_alias" != x; then |
| 1347 | if test "x$build_alias" = x; then |
| 1348 | cross_compiling=maybe |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1349 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1350 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1351 | elif test "x$build_alias" != "x$host_alias"; then |
| 1352 | cross_compiling=yes |
| 1353 | fi |
| 1354 | fi |
| 1355 | |
| 1356 | ac_tool_prefix= |
| 1357 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1358 | |
| 1359 | test "$silent" = yes && exec 6>/dev/null |
| 1360 | |
| 1361 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1362 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1363 | ac_ls_di=`ls -di .` && |
| 1364 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1365 | as_fn_error "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1366 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1367 | as_fn_error "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1368 | |
| 1369 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1370 | # Find the source files, if location was not specified. |
| 1371 | if test -z "$srcdir"; then |
| 1372 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1373 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1374 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1375 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1376 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1377 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1378 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1379 | $as_echo X"$as_myself" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1381 | s//\1/ |
| 1382 | q |
| 1383 | } |
| 1384 | /^X\(\/\/\)[^/].*/{ |
| 1385 | s//\1/ |
| 1386 | q |
| 1387 | } |
| 1388 | /^X\(\/\/\)$/{ |
| 1389 | s//\1/ |
| 1390 | q |
| 1391 | } |
| 1392 | /^X\(\/\).*/{ |
| 1393 | s//\1/ |
| 1394 | q |
| 1395 | } |
| 1396 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1397 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1398 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1399 | srcdir=.. |
| 1400 | fi |
| 1401 | else |
| 1402 | ac_srcdir_defaulted=no |
| 1403 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1404 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1405 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1406 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1407 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1408 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1409 | ac_abs_confdir=`( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1410 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1411 | pwd)` |
| 1412 | # When building in place, set srcdir=. |
| 1413 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1414 | srcdir=. |
| 1415 | fi |
| 1416 | # Remove unnecessary trailing slashes from srcdir. |
| 1417 | # Double slashes in file names in object file debugging info |
| 1418 | # mess up M-x gdb in Emacs. |
| 1419 | case $srcdir in |
| 1420 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1421 | esac |
| 1422 | for ac_var in $ac_precious_vars; do |
| 1423 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1424 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1425 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1426 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1427 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1428 | |
| 1429 | # |
| 1430 | # Report the --help message. |
| 1431 | # |
| 1432 | if test "$ac_init_help" = "long"; then |
| 1433 | # Omit some internal or obsolete options to make the list less imposing. |
| 1434 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1435 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1436 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1437 | |
| 1438 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1439 | |
| 1440 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1441 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1442 | |
| 1443 | Defaults for the options are specified in brackets. |
| 1444 | |
| 1445 | Configuration: |
| 1446 | -h, --help display this help and exit |
| 1447 | --help=short display options specific to this package |
| 1448 | --help=recursive display the short help of all the included packages |
| 1449 | -V, --version display version information and exit |
| 1450 | -q, --quiet, --silent do not print \`checking...' messages |
| 1451 | --cache-file=FILE cache test results in FILE [disabled] |
| 1452 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1453 | -n, --no-create do not create output files |
| 1454 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1455 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1456 | Installation directories: |
| 1457 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1458 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1459 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1460 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1461 | |
| 1462 | By default, \`make install' will install all the files in |
| 1463 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1464 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1465 | for instance \`--prefix=\$HOME'. |
| 1466 | |
| 1467 | For better control, use the options below. |
| 1468 | |
| 1469 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1470 | --bindir=DIR user executables [EPREFIX/bin] |
| 1471 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1472 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1473 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1474 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1475 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1476 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1477 | --includedir=DIR C header files [PREFIX/include] |
| 1478 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1479 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1480 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1481 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1482 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1483 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1484 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
| 1485 | --htmldir=DIR html documentation [DOCDIR] |
| 1486 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1487 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1488 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1489 | _ACEOF |
| 1490 | |
| 1491 | cat <<\_ACEOF |
| 1492 | |
| 1493 | Program names: |
| 1494 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1495 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1496 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1497 | |
| 1498 | System types: |
| 1499 | --build=BUILD configure for building on BUILD [guessed] |
| 1500 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1501 | _ACEOF |
| 1502 | fi |
| 1503 | |
| 1504 | if test -n "$ac_init_help"; then |
| 1505 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1506 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1507 | esac |
| 1508 | cat <<\_ACEOF |
| 1509 | |
| 1510 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1511 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1512 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1513 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1514 | --disable-dependency-tracking speeds up one-time build |
| 1515 | --enable-dependency-tracking do not reject slow dependency extractors |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1516 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1517 | --enable-static[=PKGS] build static libraries [default=yes] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1518 | --enable-fast-install[=PKGS] |
| 1519 | optimize for fast installation [default=yes] |
| 1520 | --disable-libtool-lock avoid locking (might break parallel builds) |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 1521 | --enable-m32 Compile/build with -m32 (default is no) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1522 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1523 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1524 | |
| 1525 | Optional Packages: |
| 1526 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1527 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1528 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1529 | both] |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1530 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1531 | |
| 1532 | Some influential environment variables: |
| 1533 | CC C compiler command |
| 1534 | CFLAGS C compiler flags |
| 1535 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1536 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1537 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1538 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1539 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1540 | CPP C preprocessor |
| 1541 | CXX C++ compiler command |
| 1542 | CXXFLAGS C++ compiler flags |
| 1543 | CXXCPP C++ preprocessor |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1544 | |
| 1545 | Use these variables to override the choices made by `configure' or to help |
| 1546 | it to find libraries and programs with nonstandard names/locations. |
| 1547 | |
| 1548 | Report bugs to <opensource@google.com>. |
| 1549 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1550 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1551 | fi |
| 1552 | |
| 1553 | if test "$ac_init_help" = "recursive"; then |
| 1554 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1555 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1556 | test -d "$ac_dir" || |
| 1557 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1558 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1559 | ac_builddir=. |
| 1560 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1561 | case "$ac_dir" in |
| 1562 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1563 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1564 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1565 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1566 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1567 | case $ac_top_builddir_sub in |
| 1568 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1569 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1570 | esac ;; |
| 1571 | esac |
| 1572 | ac_abs_top_builddir=$ac_pwd |
| 1573 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1574 | # for backward compatibility: |
| 1575 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1576 | |
| 1577 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1578 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1579 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1580 | ac_top_srcdir=$ac_top_builddir_sub |
| 1581 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1582 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1583 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1584 | ac_top_srcdir=$srcdir |
| 1585 | ac_abs_top_srcdir=$srcdir ;; |
| 1586 | *) # Relative name. |
| 1587 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1588 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1589 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1590 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1591 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1592 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1593 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1594 | # Check for guested configure. |
| 1595 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1596 | echo && |
| 1597 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1598 | elif test -f "$ac_srcdir/configure"; then |
| 1599 | echo && |
| 1600 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1601 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1602 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1603 | fi || ac_status=$? |
| 1604 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1605 | done |
| 1606 | fi |
| 1607 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1608 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1609 | if $ac_init_version; then |
| 1610 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1611 | breakpad configure 0.1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1612 | generated by GNU Autoconf 2.65 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1613 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1614 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1615 | This configure script is free software; the Free Software Foundation |
| 1616 | gives unlimited permission to copy, distribute and modify it. |
| 1617 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1618 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1619 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1620 | |
| 1621 | ## ------------------------ ## |
| 1622 | ## Autoconf initialization. ## |
| 1623 | ## ------------------------ ## |
| 1624 | |
| 1625 | # ac_fn_c_try_compile LINENO |
| 1626 | # -------------------------- |
| 1627 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1628 | ac_fn_c_try_compile () |
| 1629 | { |
| 1630 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1631 | rm -f conftest.$ac_objext |
| 1632 | if { { ac_try="$ac_compile" |
| 1633 | case "(($ac_try" in |
| 1634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1635 | *) ac_try_echo=$ac_try;; |
| 1636 | esac |
| 1637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1638 | $as_echo "$ac_try_echo"; } >&5 |
| 1639 | (eval "$ac_compile") 2>conftest.err |
| 1640 | ac_status=$? |
| 1641 | if test -s conftest.err; then |
| 1642 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1643 | cat conftest.er1 >&5 |
| 1644 | mv -f conftest.er1 conftest.err |
| 1645 | fi |
| 1646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1647 | test $ac_status = 0; } && { |
| 1648 | test -z "$ac_c_werror_flag" || |
| 1649 | test ! -s conftest.err |
| 1650 | } && test -s conftest.$ac_objext; then : |
| 1651 | ac_retval=0 |
| 1652 | else |
| 1653 | $as_echo "$as_me: failed program was:" >&5 |
| 1654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1655 | |
| 1656 | ac_retval=1 |
| 1657 | fi |
| 1658 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1659 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1660 | |
| 1661 | } # ac_fn_c_try_compile |
| 1662 | |
| 1663 | # ac_fn_c_try_cpp LINENO |
| 1664 | # ---------------------- |
| 1665 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1666 | ac_fn_c_try_cpp () |
| 1667 | { |
| 1668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1669 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1670 | case "(($ac_try" in |
| 1671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1672 | *) ac_try_echo=$ac_try;; |
| 1673 | esac |
| 1674 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1675 | $as_echo "$ac_try_echo"; } >&5 |
| 1676 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1677 | ac_status=$? |
| 1678 | if test -s conftest.err; then |
| 1679 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1680 | cat conftest.er1 >&5 |
| 1681 | mv -f conftest.er1 conftest.err |
| 1682 | fi |
| 1683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1684 | test $ac_status = 0; } >/dev/null && { |
| 1685 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1686 | test ! -s conftest.err |
| 1687 | }; then : |
| 1688 | ac_retval=0 |
| 1689 | else |
| 1690 | $as_echo "$as_me: failed program was:" >&5 |
| 1691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1692 | |
| 1693 | ac_retval=1 |
| 1694 | fi |
| 1695 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1696 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1697 | |
| 1698 | } # ac_fn_c_try_cpp |
| 1699 | |
| 1700 | # ac_fn_cxx_try_compile LINENO |
| 1701 | # ---------------------------- |
| 1702 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1703 | ac_fn_cxx_try_compile () |
| 1704 | { |
| 1705 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1706 | rm -f conftest.$ac_objext |
| 1707 | if { { ac_try="$ac_compile" |
| 1708 | case "(($ac_try" in |
| 1709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1710 | *) ac_try_echo=$ac_try;; |
| 1711 | esac |
| 1712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1713 | $as_echo "$ac_try_echo"; } >&5 |
| 1714 | (eval "$ac_compile") 2>conftest.err |
| 1715 | ac_status=$? |
| 1716 | if test -s conftest.err; then |
| 1717 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1718 | cat conftest.er1 >&5 |
| 1719 | mv -f conftest.er1 conftest.err |
| 1720 | fi |
| 1721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1722 | test $ac_status = 0; } && { |
| 1723 | test -z "$ac_cxx_werror_flag" || |
| 1724 | test ! -s conftest.err |
| 1725 | } && test -s conftest.$ac_objext; then : |
| 1726 | ac_retval=0 |
| 1727 | else |
| 1728 | $as_echo "$as_me: failed program was:" >&5 |
| 1729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1730 | |
| 1731 | ac_retval=1 |
| 1732 | fi |
| 1733 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1734 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1735 | |
| 1736 | } # ac_fn_cxx_try_compile |
| 1737 | |
| 1738 | # ac_fn_c_try_link LINENO |
| 1739 | # ----------------------- |
| 1740 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1741 | ac_fn_c_try_link () |
| 1742 | { |
| 1743 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1744 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1745 | if { { ac_try="$ac_link" |
| 1746 | case "(($ac_try" in |
| 1747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1748 | *) ac_try_echo=$ac_try;; |
| 1749 | esac |
| 1750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1751 | $as_echo "$ac_try_echo"; } >&5 |
| 1752 | (eval "$ac_link") 2>conftest.err |
| 1753 | ac_status=$? |
| 1754 | if test -s conftest.err; then |
| 1755 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1756 | cat conftest.er1 >&5 |
| 1757 | mv -f conftest.er1 conftest.err |
| 1758 | fi |
| 1759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1760 | test $ac_status = 0; } && { |
| 1761 | test -z "$ac_c_werror_flag" || |
| 1762 | test ! -s conftest.err |
| 1763 | } && test -s conftest$ac_exeext && { |
| 1764 | test "$cross_compiling" = yes || |
| 1765 | $as_test_x conftest$ac_exeext |
| 1766 | }; then : |
| 1767 | ac_retval=0 |
| 1768 | else |
| 1769 | $as_echo "$as_me: failed program was:" >&5 |
| 1770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1771 | |
| 1772 | ac_retval=1 |
| 1773 | fi |
| 1774 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1775 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1776 | # interfere with the next link command; also delete a directory that is |
| 1777 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1778 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1779 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1780 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1781 | |
| 1782 | } # ac_fn_c_try_link |
| 1783 | |
| 1784 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1785 | # ------------------------------------------------------- |
| 1786 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1787 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1788 | ac_fn_c_check_header_compile () |
| 1789 | { |
| 1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1792 | $as_echo_n "checking for $2... " >&6; } |
| 1793 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1794 | $as_echo_n "(cached) " >&6 |
| 1795 | else |
| 1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1797 | /* end confdefs.h. */ |
| 1798 | $4 |
| 1799 | #include <$2> |
| 1800 | _ACEOF |
| 1801 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1802 | eval "$3=yes" |
| 1803 | else |
| 1804 | eval "$3=no" |
| 1805 | fi |
| 1806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1807 | fi |
| 1808 | eval ac_res=\$$3 |
| 1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1810 | $as_echo "$ac_res" >&6; } |
| 1811 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1812 | |
| 1813 | } # ac_fn_c_check_header_compile |
| 1814 | |
| 1815 | # ac_fn_c_try_run LINENO |
| 1816 | # ---------------------- |
| 1817 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1818 | # that executables *can* be run. |
| 1819 | ac_fn_c_try_run () |
| 1820 | { |
| 1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1822 | if { { ac_try="$ac_link" |
| 1823 | case "(($ac_try" in |
| 1824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1825 | *) ac_try_echo=$ac_try;; |
| 1826 | esac |
| 1827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1828 | $as_echo "$ac_try_echo"; } >&5 |
| 1829 | (eval "$ac_link") 2>&5 |
| 1830 | ac_status=$? |
| 1831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1832 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1833 | { { case "(($ac_try" in |
| 1834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1835 | *) ac_try_echo=$ac_try;; |
| 1836 | esac |
| 1837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1838 | $as_echo "$ac_try_echo"; } >&5 |
| 1839 | (eval "$ac_try") 2>&5 |
| 1840 | ac_status=$? |
| 1841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1842 | test $ac_status = 0; }; }; then : |
| 1843 | ac_retval=0 |
| 1844 | else |
| 1845 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1846 | $as_echo "$as_me: failed program was:" >&5 |
| 1847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1848 | |
| 1849 | ac_retval=$ac_status |
| 1850 | fi |
| 1851 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1852 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1853 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1854 | |
| 1855 | } # ac_fn_c_try_run |
| 1856 | |
| 1857 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1858 | # ---------------------------------- |
| 1859 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1860 | ac_fn_c_check_func () |
| 1861 | { |
| 1862 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1864 | $as_echo_n "checking for $2... " >&6; } |
| 1865 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1866 | $as_echo_n "(cached) " >&6 |
| 1867 | else |
| 1868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1869 | /* end confdefs.h. */ |
| 1870 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1871 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1872 | #define $2 innocuous_$2 |
| 1873 | |
| 1874 | /* System header to define __stub macros and hopefully few prototypes, |
| 1875 | which can conflict with char $2 (); below. |
| 1876 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1877 | <limits.h> exists even on freestanding compilers. */ |
| 1878 | |
| 1879 | #ifdef __STDC__ |
| 1880 | # include <limits.h> |
| 1881 | #else |
| 1882 | # include <assert.h> |
| 1883 | #endif |
| 1884 | |
| 1885 | #undef $2 |
| 1886 | |
| 1887 | /* Override any GCC internal prototype to avoid an error. |
| 1888 | Use char because int might match the return type of a GCC |
| 1889 | builtin and then its argument prototype would still apply. */ |
| 1890 | #ifdef __cplusplus |
| 1891 | extern "C" |
| 1892 | #endif |
| 1893 | char $2 (); |
| 1894 | /* The GNU C library defines this for functions which it implements |
| 1895 | to always fail with ENOSYS. Some functions are actually named |
| 1896 | something starting with __ and the normal name is an alias. */ |
| 1897 | #if defined __stub_$2 || defined __stub___$2 |
| 1898 | choke me |
| 1899 | #endif |
| 1900 | |
| 1901 | int |
| 1902 | main () |
| 1903 | { |
| 1904 | return $2 (); |
| 1905 | ; |
| 1906 | return 0; |
| 1907 | } |
| 1908 | _ACEOF |
| 1909 | if ac_fn_c_try_link "$LINENO"; then : |
| 1910 | eval "$3=yes" |
| 1911 | else |
| 1912 | eval "$3=no" |
| 1913 | fi |
| 1914 | rm -f core conftest.err conftest.$ac_objext \ |
| 1915 | conftest$ac_exeext conftest.$ac_ext |
| 1916 | fi |
| 1917 | eval ac_res=\$$3 |
| 1918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1919 | $as_echo "$ac_res" >&6; } |
| 1920 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1921 | |
| 1922 | } # ac_fn_c_check_func |
| 1923 | |
| 1924 | # ac_fn_cxx_try_cpp LINENO |
| 1925 | # ------------------------ |
| 1926 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1927 | ac_fn_cxx_try_cpp () |
| 1928 | { |
| 1929 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1930 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1931 | case "(($ac_try" in |
| 1932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1933 | *) ac_try_echo=$ac_try;; |
| 1934 | esac |
| 1935 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1936 | $as_echo "$ac_try_echo"; } >&5 |
| 1937 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1938 | ac_status=$? |
| 1939 | if test -s conftest.err; then |
| 1940 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1941 | cat conftest.er1 >&5 |
| 1942 | mv -f conftest.er1 conftest.err |
| 1943 | fi |
| 1944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1945 | test $ac_status = 0; } >/dev/null && { |
| 1946 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1947 | test ! -s conftest.err |
| 1948 | }; then : |
| 1949 | ac_retval=0 |
| 1950 | else |
| 1951 | $as_echo "$as_me: failed program was:" >&5 |
| 1952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1953 | |
| 1954 | ac_retval=1 |
| 1955 | fi |
| 1956 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1957 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1958 | |
| 1959 | } # ac_fn_cxx_try_cpp |
| 1960 | |
| 1961 | # ac_fn_cxx_try_link LINENO |
| 1962 | # ------------------------- |
| 1963 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1964 | ac_fn_cxx_try_link () |
| 1965 | { |
| 1966 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1967 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1968 | if { { ac_try="$ac_link" |
| 1969 | case "(($ac_try" in |
| 1970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1971 | *) ac_try_echo=$ac_try;; |
| 1972 | esac |
| 1973 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1974 | $as_echo "$ac_try_echo"; } >&5 |
| 1975 | (eval "$ac_link") 2>conftest.err |
| 1976 | ac_status=$? |
| 1977 | if test -s conftest.err; then |
| 1978 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1979 | cat conftest.er1 >&5 |
| 1980 | mv -f conftest.er1 conftest.err |
| 1981 | fi |
| 1982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1983 | test $ac_status = 0; } && { |
| 1984 | test -z "$ac_cxx_werror_flag" || |
| 1985 | test ! -s conftest.err |
| 1986 | } && test -s conftest$ac_exeext && { |
| 1987 | test "$cross_compiling" = yes || |
| 1988 | $as_test_x conftest$ac_exeext |
| 1989 | }; then : |
| 1990 | ac_retval=0 |
| 1991 | else |
| 1992 | $as_echo "$as_me: failed program was:" >&5 |
| 1993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1994 | |
| 1995 | ac_retval=1 |
| 1996 | fi |
| 1997 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1998 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1999 | # interfere with the next link command; also delete a directory that is |
| 2000 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2001 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2002 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2003 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2004 | |
| 2005 | } # ac_fn_cxx_try_link |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2006 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2007 | This file contains any messages produced by compilers while |
| 2008 | running configure, to aid debugging if configure makes a mistake. |
| 2009 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2010 | It was created by breakpad $as_me 0.1, which was |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2011 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2012 | |
| 2013 | $ $0 $@ |
| 2014 | |
| 2015 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2016 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2017 | { |
| 2018 | cat <<_ASUNAME |
| 2019 | ## --------- ## |
| 2020 | ## Platform. ## |
| 2021 | ## --------- ## |
| 2022 | |
| 2023 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2024 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2025 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2026 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2027 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2028 | |
| 2029 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2030 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2031 | |
| 2032 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2033 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2034 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2035 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2036 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2037 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2038 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2039 | |
| 2040 | _ASUNAME |
| 2041 | |
| 2042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2043 | for as_dir in $PATH |
| 2044 | do |
| 2045 | IFS=$as_save_IFS |
| 2046 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2047 | $as_echo "PATH: $as_dir" |
| 2048 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2049 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2050 | |
| 2051 | } >&5 |
| 2052 | |
| 2053 | cat >&5 <<_ACEOF |
| 2054 | |
| 2055 | |
| 2056 | ## ----------- ## |
| 2057 | ## Core tests. ## |
| 2058 | ## ----------- ## |
| 2059 | |
| 2060 | _ACEOF |
| 2061 | |
| 2062 | |
| 2063 | # Keep a trace of the command line. |
| 2064 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2065 | # Strip out --silent because we don't want to record it for future runs. |
| 2066 | # Also quote any args containing shell meta-characters. |
| 2067 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2068 | ac_configure_args= |
| 2069 | ac_configure_args0= |
| 2070 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2071 | ac_must_keep_next=false |
| 2072 | for ac_pass in 1 2 |
| 2073 | do |
| 2074 | for ac_arg |
| 2075 | do |
| 2076 | case $ac_arg in |
| 2077 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2078 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2079 | | -silent | --silent | --silen | --sile | --sil) |
| 2080 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2081 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2082 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2083 | esac |
| 2084 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2085 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2086 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2087 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2088 | if test $ac_must_keep_next = true; then |
| 2089 | ac_must_keep_next=false # Got value, back to normal. |
| 2090 | else |
| 2091 | case $ac_arg in |
| 2092 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2093 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2094 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2095 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2096 | case "$ac_configure_args0 " in |
| 2097 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2098 | esac |
| 2099 | ;; |
| 2100 | -* ) ac_must_keep_next=true ;; |
| 2101 | esac |
| 2102 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2103 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2104 | ;; |
| 2105 | esac |
| 2106 | done |
| 2107 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2108 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2109 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2110 | |
| 2111 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2112 | # config.log. We remove comments because anyway the quotes in there |
| 2113 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2114 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2115 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2116 | trap 'exit_status=$? |
| 2117 | # Save into config.log some information that might help in debugging. |
| 2118 | { |
| 2119 | echo |
| 2120 | |
| 2121 | cat <<\_ASBOX |
| 2122 | ## ---------------- ## |
| 2123 | ## Cache variables. ## |
| 2124 | ## ---------------- ## |
| 2125 | _ASBOX |
| 2126 | echo |
| 2127 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2128 | ( |
| 2129 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2130 | eval ac_val=\$$ac_var |
| 2131 | case $ac_val in #( |
| 2132 | *${as_nl}*) |
| 2133 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2134 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2135 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2136 | esac |
| 2137 | case $ac_var in #( |
| 2138 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2139 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2140 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2141 | esac ;; |
| 2142 | esac |
| 2143 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2144 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2145 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2146 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2147 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2148 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2149 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2150 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2151 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2152 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2153 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2154 | esac | |
| 2155 | sort |
| 2156 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2157 | echo |
| 2158 | |
| 2159 | cat <<\_ASBOX |
| 2160 | ## ----------------- ## |
| 2161 | ## Output variables. ## |
| 2162 | ## ----------------- ## |
| 2163 | _ASBOX |
| 2164 | echo |
| 2165 | for ac_var in $ac_subst_vars |
| 2166 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2167 | eval ac_val=\$$ac_var |
| 2168 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2169 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2170 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2171 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2172 | done | sort |
| 2173 | echo |
| 2174 | |
| 2175 | if test -n "$ac_subst_files"; then |
| 2176 | cat <<\_ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2177 | ## ------------------- ## |
| 2178 | ## File substitutions. ## |
| 2179 | ## ------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2180 | _ASBOX |
| 2181 | echo |
| 2182 | for ac_var in $ac_subst_files |
| 2183 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2184 | eval ac_val=\$$ac_var |
| 2185 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2186 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2187 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2188 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2189 | done | sort |
| 2190 | echo |
| 2191 | fi |
| 2192 | |
| 2193 | if test -s confdefs.h; then |
| 2194 | cat <<\_ASBOX |
| 2195 | ## ----------- ## |
| 2196 | ## confdefs.h. ## |
| 2197 | ## ----------- ## |
| 2198 | _ASBOX |
| 2199 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2200 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2201 | echo |
| 2202 | fi |
| 2203 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2204 | $as_echo "$as_me: caught signal $ac_signal" |
| 2205 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2206 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2207 | rm -f core *.core core.conftest.* && |
| 2208 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2209 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2210 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2211 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2212 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2213 | done |
| 2214 | ac_signal=0 |
| 2215 | |
| 2216 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2217 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2218 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2219 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2220 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2221 | # Predefined preprocessor variables. |
| 2222 | |
| 2223 | cat >>confdefs.h <<_ACEOF |
| 2224 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2225 | _ACEOF |
| 2226 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2227 | cat >>confdefs.h <<_ACEOF |
| 2228 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2229 | _ACEOF |
| 2230 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2231 | cat >>confdefs.h <<_ACEOF |
| 2232 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2233 | _ACEOF |
| 2234 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2235 | cat >>confdefs.h <<_ACEOF |
| 2236 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2237 | _ACEOF |
| 2238 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2239 | cat >>confdefs.h <<_ACEOF |
| 2240 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2241 | _ACEOF |
| 2242 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2243 | cat >>confdefs.h <<_ACEOF |
| 2244 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2245 | _ACEOF |
| 2246 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2247 | |
| 2248 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2249 | # Prefer an explicitly selected file to automatically selected ones. |
| 2250 | ac_site_file1=NONE |
| 2251 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2252 | if test -n "$CONFIG_SITE"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2253 | ac_site_file1=$CONFIG_SITE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2254 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2255 | ac_site_file1=$prefix/share/config.site |
| 2256 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2257 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2258 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2259 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2260 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2261 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2262 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2263 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2264 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2266 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2267 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2268 | . "$ac_site_file" |
| 2269 | fi |
| 2270 | done |
| 2271 | |
| 2272 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2273 | # Some versions of bash will fail to source /dev/null (special files |
| 2274 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2275 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2276 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2277 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2278 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2279 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2280 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2281 | esac |
| 2282 | fi |
| 2283 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2284 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2285 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2286 | >$cache_file |
| 2287 | fi |
| 2288 | |
| 2289 | # Check that the precious variables saved in the cache have kept the same |
| 2290 | # value. |
| 2291 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2292 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2293 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2294 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2295 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2296 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2297 | case $ac_old_set,$ac_new_set in |
| 2298 | set,) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2299 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2300 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2301 | ac_cache_corrupted=: ;; |
| 2302 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2303 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2304 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2305 | ac_cache_corrupted=: ;; |
| 2306 | ,);; |
| 2307 | *) |
| 2308 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2309 | # differences in whitespace do not lead to failure. |
| 2310 | ac_old_val_w=`echo x $ac_old_val` |
| 2311 | ac_new_val_w=`echo x $ac_new_val` |
| 2312 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2313 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2314 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2315 | ac_cache_corrupted=: |
| 2316 | else |
| 2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2318 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2319 | eval $ac_var=\$ac_old_val |
| 2320 | fi |
| 2321 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2322 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2323 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2324 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2325 | fi;; |
| 2326 | esac |
| 2327 | # Pass precious variables to config.status. |
| 2328 | if test "$ac_new_set" = set; then |
| 2329 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2330 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2331 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2332 | esac |
| 2333 | case " $ac_configure_args " in |
| 2334 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2335 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2336 | esac |
| 2337 | fi |
| 2338 | done |
| 2339 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2341 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2342 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2343 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2344 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2345 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2346 | ## -------------------- ## |
| 2347 | ## Main body of script. ## |
| 2348 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2349 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2350 | ac_ext=c |
| 2351 | ac_cpp='$CPP $CPPFLAGS' |
| 2352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2355 | |
| 2356 | |
| 2357 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2358 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2359 | for ac_dir in autotools "$srcdir"/autotools; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2360 | for ac_t in install-sh install.sh shtool; do |
| 2361 | if test -f "$ac_dir/$ac_t"; then |
| 2362 | ac_aux_dir=$ac_dir |
| 2363 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2364 | break 2 |
| 2365 | fi |
| 2366 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2367 | done |
| 2368 | if test -z "$ac_aux_dir"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2369 | as_fn_error "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2370 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2371 | |
| 2372 | # These three variables are undocumented and unsupported, |
| 2373 | # and are intended to be withdrawn in a future Autoconf release. |
| 2374 | # They can cause serious problems if a builder's source tree is in a directory |
| 2375 | # whose full name contains unusual characters. |
| 2376 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2377 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2378 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2379 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2380 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2381 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2382 | am__api_version='1.11' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2383 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2384 | # Find a good install program. We prefer a C program (faster), |
| 2385 | # so one script is as good as another. But avoid the broken or |
| 2386 | # incompatible versions: |
| 2387 | # SysV /etc/install, /usr/sbin/install |
| 2388 | # SunOS /usr/etc/install |
| 2389 | # IRIX /sbin/install |
| 2390 | # AIX /bin/install |
| 2391 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2392 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2393 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2394 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2395 | # OS/2's system install, which has a completely different semantic |
| 2396 | # ./install, which can be erroneously created by make from ./install.sh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2397 | # Reject install programs that cannot install multiple files. |
| 2398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2399 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2400 | if test -z "$INSTALL"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2401 | if test "${ac_cv_path_install+set}" = set; then : |
| 2402 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2403 | else |
| 2404 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2405 | for as_dir in $PATH |
| 2406 | do |
| 2407 | IFS=$as_save_IFS |
| 2408 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2409 | # Account for people who put trailing slashes in PATH elements. |
| 2410 | case $as_dir/ in #(( |
| 2411 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2412 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2413 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2414 | /usr/ucb/* ) ;; |
| 2415 | *) |
| 2416 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2417 | # Don't use installbsd from OSF since it installs stuff as root |
| 2418 | # by default. |
| 2419 | for ac_prog in ginstall scoinst install; do |
| 2420 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2421 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2422 | if test $ac_prog = install && |
| 2423 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2424 | # AIX install. It has an incompatible calling convention. |
| 2425 | : |
| 2426 | elif test $ac_prog = install && |
| 2427 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2428 | # program-specific install script used by HP pwplus--don't use. |
| 2429 | : |
| 2430 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2431 | rm -rf conftest.one conftest.two conftest.dir |
| 2432 | echo one > conftest.one |
| 2433 | echo two > conftest.two |
| 2434 | mkdir conftest.dir |
| 2435 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2436 | test -s conftest.one && test -s conftest.two && |
| 2437 | test -s conftest.dir/conftest.one && |
| 2438 | test -s conftest.dir/conftest.two |
| 2439 | then |
| 2440 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2441 | break 3 |
| 2442 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2443 | fi |
| 2444 | fi |
| 2445 | done |
| 2446 | done |
| 2447 | ;; |
| 2448 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2449 | |
| 2450 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2451 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2452 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2453 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2454 | |
| 2455 | fi |
| 2456 | if test "${ac_cv_path_install+set}" = set; then |
| 2457 | INSTALL=$ac_cv_path_install |
| 2458 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2459 | # As a last resort, use the slow shell script. Don't cache a |
| 2460 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2461 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2462 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2463 | INSTALL=$ac_install_sh |
| 2464 | fi |
| 2465 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2467 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2468 | |
| 2469 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2470 | # It thinks the first close brace ends the variable substitution. |
| 2471 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2472 | |
| 2473 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2474 | |
| 2475 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2476 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2478 | $as_echo_n "checking whether build environment is sane... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2479 | # Just in case |
| 2480 | sleep 1 |
| 2481 | echo timestamp > conftest.file |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2482 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2483 | # name. Accept space and tab only in the latter. |
| 2484 | am_lf=' |
| 2485 | ' |
| 2486 | case `pwd` in |
| 2487 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2488 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| 2489 | esac |
| 2490 | case $srcdir in |
| 2491 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2492 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 2493 | esac |
| 2494 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2495 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2496 | # arguments. Must try -L first in case configure is actually a |
| 2497 | # symlink; some systems play weird games with the mod time of symlinks |
| 2498 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2499 | # directory). |
| 2500 | if ( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2501 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2502 | if test "$*" = "X"; then |
| 2503 | # -L didn't work. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2504 | set X `ls -t "$srcdir/configure" conftest.file` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2505 | fi |
| 2506 | rm -f conftest.file |
| 2507 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2508 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2509 | |
| 2510 | # If neither matched, then we have a broken ls. This can happen |
| 2511 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2512 | # broken ls alias from the environment. This has actually |
| 2513 | # happened. Such a system could not be considered "sane". |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2514 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 2515 | alias in your environment" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2516 | fi |
| 2517 | |
| 2518 | test "$2" = conftest.file |
| 2519 | ) |
| 2520 | then |
| 2521 | # Ok. |
| 2522 | : |
| 2523 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2524 | as_fn_error "newly created file is older than distributed files! |
| 2525 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2526 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2528 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2529 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2530 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2531 | # Use a double $ so make ignores it. |
| 2532 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2533 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2534 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2535 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2536 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2537 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2538 | |
| 2539 | # expand $ac_aux_dir to an absolute path |
| 2540 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2541 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2542 | if test x"${MISSING+set}" != xset; then |
| 2543 | case $am_aux_dir in |
| 2544 | *\ * | *\ *) |
| 2545 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2546 | *) |
| 2547 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2548 | esac |
| 2549 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2550 | # Use eval to expand $SHELL |
| 2551 | if eval "$MISSING --run true"; then |
| 2552 | am_missing_run="$MISSING --run " |
| 2553 | else |
| 2554 | am_missing_run= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2556 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2557 | fi |
| 2558 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2559 | if test x"${install_sh}" != xset; then |
| 2560 | case $am_aux_dir in |
| 2561 | *\ * | *\ *) |
| 2562 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2563 | *) |
| 2564 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2565 | esac |
| 2566 | fi |
| 2567 | |
| 2568 | # Installed binaries are usually stripped using `strip' when the user |
| 2569 | # run `make install-strip'. However `strip' might not be the right |
| 2570 | # tool to use in cross-compilation environments, therefore Automake |
| 2571 | # will honor the `STRIP' environment variable to overrule this program. |
| 2572 | if test "$cross_compiling" != no; then |
| 2573 | if test -n "$ac_tool_prefix"; then |
| 2574 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2575 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2577 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2578 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 2579 | $as_echo_n "(cached) " >&6 |
| 2580 | else |
| 2581 | if test -n "$STRIP"; then |
| 2582 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2583 | else |
| 2584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2585 | for as_dir in $PATH |
| 2586 | do |
| 2587 | IFS=$as_save_IFS |
| 2588 | test -z "$as_dir" && as_dir=. |
| 2589 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2590 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2591 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2592 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2593 | break 2 |
| 2594 | fi |
| 2595 | done |
| 2596 | done |
| 2597 | IFS=$as_save_IFS |
| 2598 | |
| 2599 | fi |
| 2600 | fi |
| 2601 | STRIP=$ac_cv_prog_STRIP |
| 2602 | if test -n "$STRIP"; then |
| 2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2604 | $as_echo "$STRIP" >&6; } |
| 2605 | else |
| 2606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2607 | $as_echo "no" >&6; } |
| 2608 | fi |
| 2609 | |
| 2610 | |
| 2611 | fi |
| 2612 | if test -z "$ac_cv_prog_STRIP"; then |
| 2613 | ac_ct_STRIP=$STRIP |
| 2614 | # Extract the first word of "strip", so it can be a program name with args. |
| 2615 | set dummy strip; ac_word=$2 |
| 2616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2617 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2618 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 2619 | $as_echo_n "(cached) " >&6 |
| 2620 | else |
| 2621 | if test -n "$ac_ct_STRIP"; then |
| 2622 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2623 | else |
| 2624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2625 | for as_dir in $PATH |
| 2626 | do |
| 2627 | IFS=$as_save_IFS |
| 2628 | test -z "$as_dir" && as_dir=. |
| 2629 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2630 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2631 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2632 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2633 | break 2 |
| 2634 | fi |
| 2635 | done |
| 2636 | done |
| 2637 | IFS=$as_save_IFS |
| 2638 | |
| 2639 | fi |
| 2640 | fi |
| 2641 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2642 | if test -n "$ac_ct_STRIP"; then |
| 2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2644 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2645 | else |
| 2646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2647 | $as_echo "no" >&6; } |
| 2648 | fi |
| 2649 | |
| 2650 | if test "x$ac_ct_STRIP" = x; then |
| 2651 | STRIP=":" |
| 2652 | else |
| 2653 | case $cross_compiling:$ac_tool_warned in |
| 2654 | yes:) |
| 2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2656 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2657 | ac_tool_warned=yes ;; |
| 2658 | esac |
| 2659 | STRIP=$ac_ct_STRIP |
| 2660 | fi |
| 2661 | else |
| 2662 | STRIP="$ac_cv_prog_STRIP" |
| 2663 | fi |
| 2664 | |
| 2665 | fi |
| 2666 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2667 | |
| 2668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2669 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2670 | if test -z "$MKDIR_P"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2671 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| 2672 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2673 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2675 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2676 | do |
| 2677 | IFS=$as_save_IFS |
| 2678 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2679 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2680 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2681 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2682 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2683 | 'mkdir (GNU coreutils) '* | \ |
| 2684 | 'mkdir (coreutils) '* | \ |
| 2685 | 'mkdir (fileutils) '4.1*) |
| 2686 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2687 | break 3;; |
| 2688 | esac |
| 2689 | done |
| 2690 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2691 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2692 | IFS=$as_save_IFS |
| 2693 | |
| 2694 | fi |
| 2695 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2696 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2697 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2698 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2699 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2700 | # As a last resort, use the slow shell script. Don't cache a |
| 2701 | # value for MKDIR_P within a source directory, because that will |
| 2702 | # break other packages using the cache if that directory is |
| 2703 | # removed, or if the value is a relative name. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2704 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2705 | fi |
| 2706 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2708 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2709 | |
| 2710 | mkdir_p="$MKDIR_P" |
| 2711 | case $mkdir_p in |
| 2712 | [\\/$]* | ?:[\\/]*) ;; |
| 2713 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2714 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2715 | |
| 2716 | for ac_prog in gawk mawk nawk awk |
| 2717 | do |
| 2718 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2719 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2721 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2722 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| 2723 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2724 | else |
| 2725 | if test -n "$AWK"; then |
| 2726 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2727 | else |
| 2728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2729 | for as_dir in $PATH |
| 2730 | do |
| 2731 | IFS=$as_save_IFS |
| 2732 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2733 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2734 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2735 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2737 | break 2 |
| 2738 | fi |
| 2739 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2740 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2741 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2742 | |
| 2743 | fi |
| 2744 | fi |
| 2745 | AWK=$ac_cv_prog_AWK |
| 2746 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2748 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2749 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2751 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2752 | fi |
| 2753 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2754 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2755 | test -n "$AWK" && break |
| 2756 | done |
| 2757 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2759 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2760 | set x ${MAKE-make} |
| 2761 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2762 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2763 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2764 | else |
| 2765 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2766 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2767 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2768 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2769 | _ACEOF |
| 2770 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2771 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2772 | *@@@%%%=?*=@@@%%%*) |
| 2773 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2774 | *) |
| 2775 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2776 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2777 | rm -f conftest.make |
| 2778 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2779 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2781 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2782 | SET_MAKE= |
| 2783 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2785 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2786 | SET_MAKE="MAKE=${MAKE-make}" |
| 2787 | fi |
| 2788 | |
| 2789 | rm -rf .tst 2>/dev/null |
| 2790 | mkdir .tst 2>/dev/null |
| 2791 | if test -d .tst; then |
| 2792 | am__leading_dot=. |
| 2793 | else |
| 2794 | am__leading_dot=_ |
| 2795 | fi |
| 2796 | rmdir .tst 2>/dev/null |
| 2797 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2798 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2799 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2800 | # is not polluted with repeated "-I." |
| 2801 | am__isrc=' -I$(srcdir)' |
| 2802 | # test to see if srcdir already configured |
| 2803 | if test -f $srcdir/config.status; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2804 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2805 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2806 | fi |
| 2807 | |
| 2808 | # test whether we have cygpath |
| 2809 | if test -z "$CYGPATH_W"; then |
| 2810 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2811 | CYGPATH_W='cygpath -w' |
| 2812 | else |
| 2813 | CYGPATH_W=echo |
| 2814 | fi |
| 2815 | fi |
| 2816 | |
| 2817 | |
| 2818 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2819 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2820 | VERSION='0.1' |
| 2821 | |
| 2822 | |
| 2823 | cat >>confdefs.h <<_ACEOF |
| 2824 | #define PACKAGE "$PACKAGE" |
| 2825 | _ACEOF |
| 2826 | |
| 2827 | |
| 2828 | cat >>confdefs.h <<_ACEOF |
| 2829 | #define VERSION "$VERSION" |
| 2830 | _ACEOF |
| 2831 | |
| 2832 | # Some tools Automake needs. |
| 2833 | |
| 2834 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2835 | |
| 2836 | |
| 2837 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2838 | |
| 2839 | |
| 2840 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2841 | |
| 2842 | |
| 2843 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2844 | |
| 2845 | |
| 2846 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2847 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2848 | # We need awk for the "check" target. The system "awk" is bad on |
| 2849 | # some platforms. |
| 2850 | # Always define AMTAR for backward compatibility. |
| 2851 | |
| 2852 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2853 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2854 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 2856 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2857 | # Loop over all known methods to create a tar archive until one works. |
| 2858 | _am_tools='gnutar plaintar pax cpio none' |
| 2859 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2860 | # Do not fold the above two line into one, because Tru64 sh and |
| 2861 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 2862 | for _am_tool in $_am_tools |
| 2863 | do |
| 2864 | case $_am_tool in |
| 2865 | gnutar) |
| 2866 | for _am_tar in tar gnutar gtar; |
| 2867 | do |
| 2868 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 2869 | ($_am_tar --version) >&5 2>&5 |
| 2870 | ac_status=$? |
| 2871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2872 | (exit $ac_status); } && break |
| 2873 | done |
| 2874 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 2875 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 2876 | am__untar="$_am_tar -xf -" |
| 2877 | ;; |
| 2878 | plaintar) |
| 2879 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 2880 | # ustar tarball either. |
| 2881 | (tar --version) >/dev/null 2>&1 && continue |
| 2882 | am__tar='tar chf - "$$tardir"' |
| 2883 | am__tar_='tar chf - "$tardir"' |
| 2884 | am__untar='tar xf -' |
| 2885 | ;; |
| 2886 | pax) |
| 2887 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 2888 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 2889 | am__untar='pax -r' |
| 2890 | ;; |
| 2891 | cpio) |
| 2892 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 2893 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 2894 | am__untar='cpio -i -H ustar -d' |
| 2895 | ;; |
| 2896 | none) |
| 2897 | am__tar=false |
| 2898 | am__tar_=false |
| 2899 | am__untar=false |
| 2900 | ;; |
| 2901 | esac |
| 2902 | |
| 2903 | # If the value was cached, stop now. We just wanted to have am__tar |
| 2904 | # and am__untar set. |
| 2905 | test -n "${am_cv_prog_tar_ustar}" && break |
| 2906 | |
| 2907 | # tar/untar a dummy directory, and stop if the command works |
| 2908 | rm -rf conftest.dir |
| 2909 | mkdir conftest.dir |
| 2910 | echo GrepMe > conftest.dir/file |
| 2911 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 2912 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 2913 | ac_status=$? |
| 2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2915 | (exit $ac_status); } |
| 2916 | rm -rf conftest.dir |
| 2917 | if test -s conftest.tar; then |
| 2918 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 2919 | ($am__untar <conftest.tar) >&5 2>&5 |
| 2920 | ac_status=$? |
| 2921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2922 | (exit $ac_status); } |
| 2923 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 2924 | fi |
| 2925 | done |
| 2926 | rm -rf conftest.dir |
| 2927 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2928 | if test "${am_cv_prog_tar_ustar+set}" = set; then : |
| 2929 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2930 | else |
| 2931 | am_cv_prog_tar_ustar=$_am_tool |
| 2932 | fi |
| 2933 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 2935 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2936 | |
| 2937 | |
| 2938 | |
| 2939 | |
| 2940 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2941 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2942 | |
| 2943 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2944 | ac_ext=c |
| 2945 | ac_cpp='$CPP $CPPFLAGS' |
| 2946 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2947 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2948 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2949 | if test -n "$ac_tool_prefix"; then |
| 2950 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2951 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2953 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2954 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2955 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2956 | else |
| 2957 | if test -n "$CC"; then |
| 2958 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2959 | else |
| 2960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2961 | for as_dir in $PATH |
| 2962 | do |
| 2963 | IFS=$as_save_IFS |
| 2964 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2965 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2967 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2968 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2969 | break 2 |
| 2970 | fi |
| 2971 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2972 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2973 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2974 | |
| 2975 | fi |
| 2976 | fi |
| 2977 | CC=$ac_cv_prog_CC |
| 2978 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2980 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2981 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2983 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2984 | fi |
| 2985 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2986 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2987 | fi |
| 2988 | if test -z "$ac_cv_prog_CC"; then |
| 2989 | ac_ct_CC=$CC |
| 2990 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2991 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2993 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2994 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2995 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2996 | else |
| 2997 | if test -n "$ac_ct_CC"; then |
| 2998 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2999 | else |
| 3000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3001 | for as_dir in $PATH |
| 3002 | do |
| 3003 | IFS=$as_save_IFS |
| 3004 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3005 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3007 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3008 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3009 | break 2 |
| 3010 | fi |
| 3011 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3012 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3013 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3014 | |
| 3015 | fi |
| 3016 | fi |
| 3017 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3018 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3020 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3021 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3022 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3023 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3024 | fi |
| 3025 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3026 | if test "x$ac_ct_CC" = x; then |
| 3027 | CC="" |
| 3028 | else |
| 3029 | case $cross_compiling:$ac_tool_warned in |
| 3030 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3032 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3033 | ac_tool_warned=yes ;; |
| 3034 | esac |
| 3035 | CC=$ac_ct_CC |
| 3036 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3037 | else |
| 3038 | CC="$ac_cv_prog_CC" |
| 3039 | fi |
| 3040 | |
| 3041 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3042 | if test -n "$ac_tool_prefix"; then |
| 3043 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3044 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3045 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3046 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3047 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3048 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3049 | else |
| 3050 | if test -n "$CC"; then |
| 3051 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3052 | else |
| 3053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3054 | for as_dir in $PATH |
| 3055 | do |
| 3056 | IFS=$as_save_IFS |
| 3057 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3058 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3060 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3061 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3062 | break 2 |
| 3063 | fi |
| 3064 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3065 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3066 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3067 | |
| 3068 | fi |
| 3069 | fi |
| 3070 | CC=$ac_cv_prog_CC |
| 3071 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3073 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3074 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3076 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3077 | fi |
| 3078 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3079 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3080 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3081 | fi |
| 3082 | if test -z "$CC"; then |
| 3083 | # Extract the first word of "cc", so it can be a program name with args. |
| 3084 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3086 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3087 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3088 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3089 | else |
| 3090 | if test -n "$CC"; then |
| 3091 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3092 | else |
| 3093 | ac_prog_rejected=no |
| 3094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3095 | for as_dir in $PATH |
| 3096 | do |
| 3097 | IFS=$as_save_IFS |
| 3098 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3099 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3100 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3101 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3102 | ac_prog_rejected=yes |
| 3103 | continue |
| 3104 | fi |
| 3105 | ac_cv_prog_CC="cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3106 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3107 | break 2 |
| 3108 | fi |
| 3109 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3110 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3111 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3112 | |
| 3113 | if test $ac_prog_rejected = yes; then |
| 3114 | # We found a bogon in the path, so make sure we never use it. |
| 3115 | set dummy $ac_cv_prog_CC |
| 3116 | shift |
| 3117 | if test $# != 0; then |
| 3118 | # We chose a different compiler from the bogus one. |
| 3119 | # However, it has the same basename, so the bogon will be chosen |
| 3120 | # first if we set CC to just the basename; use the full file name. |
| 3121 | shift |
| 3122 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3123 | fi |
| 3124 | fi |
| 3125 | fi |
| 3126 | fi |
| 3127 | CC=$ac_cv_prog_CC |
| 3128 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3130 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3131 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3133 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3134 | fi |
| 3135 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3136 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3137 | fi |
| 3138 | if test -z "$CC"; then |
| 3139 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3140 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3141 | do |
| 3142 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3143 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3145 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3146 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3147 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3148 | else |
| 3149 | if test -n "$CC"; then |
| 3150 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3151 | else |
| 3152 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3153 | for as_dir in $PATH |
| 3154 | do |
| 3155 | IFS=$as_save_IFS |
| 3156 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3157 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3158 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3159 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3160 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3161 | break 2 |
| 3162 | fi |
| 3163 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3164 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3165 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3166 | |
| 3167 | fi |
| 3168 | fi |
| 3169 | CC=$ac_cv_prog_CC |
| 3170 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3172 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3173 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3175 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3176 | fi |
| 3177 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3178 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3179 | test -n "$CC" && break |
| 3180 | done |
| 3181 | fi |
| 3182 | if test -z "$CC"; then |
| 3183 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3184 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3185 | do |
| 3186 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3187 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3188 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3189 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3190 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3191 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3192 | else |
| 3193 | if test -n "$ac_ct_CC"; then |
| 3194 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3195 | else |
| 3196 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3197 | for as_dir in $PATH |
| 3198 | do |
| 3199 | IFS=$as_save_IFS |
| 3200 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3201 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3202 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3203 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3204 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3205 | break 2 |
| 3206 | fi |
| 3207 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3208 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3209 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3210 | |
| 3211 | fi |
| 3212 | fi |
| 3213 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3214 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3216 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3217 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3219 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3220 | fi |
| 3221 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3222 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3223 | test -n "$ac_ct_CC" && break |
| 3224 | done |
| 3225 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3226 | if test "x$ac_ct_CC" = x; then |
| 3227 | CC="" |
| 3228 | else |
| 3229 | case $cross_compiling:$ac_tool_warned in |
| 3230 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3232 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3233 | ac_tool_warned=yes ;; |
| 3234 | esac |
| 3235 | CC=$ac_ct_CC |
| 3236 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3237 | fi |
| 3238 | |
| 3239 | fi |
| 3240 | |
| 3241 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3242 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3243 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3244 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3245 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3246 | |
| 3247 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3248 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3249 | set X $ac_compile |
| 3250 | ac_compiler=$2 |
| 3251 | for ac_option in --version -v -V -qversion; do |
| 3252 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3253 | case "(($ac_try" in |
| 3254 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3255 | *) ac_try_echo=$ac_try;; |
| 3256 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3257 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3258 | $as_echo "$ac_try_echo"; } >&5 |
| 3259 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3260 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3261 | if test -s conftest.err; then |
| 3262 | sed '10a\ |
| 3263 | ... rest of stderr output deleted ... |
| 3264 | 10q' conftest.err >conftest.er1 |
| 3265 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3266 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3267 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3268 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3269 | test $ac_status = 0; } |
| 3270 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3271 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3272 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3273 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3274 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3275 | int |
| 3276 | main () |
| 3277 | { |
| 3278 | |
| 3279 | ; |
| 3280 | return 0; |
| 3281 | } |
| 3282 | _ACEOF |
| 3283 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3284 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3285 | # Try to create an executable without -o first, disregard a.out. |
| 3286 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3287 | # of exeext. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3289 | $as_echo_n "checking whether the C compiler works... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3290 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3291 | |
| 3292 | # The possible output files: |
| 3293 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3294 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3295 | ac_rmfiles= |
| 3296 | for ac_file in $ac_files |
| 3297 | do |
| 3298 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3299 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3300 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3301 | esac |
| 3302 | done |
| 3303 | rm -f $ac_rmfiles |
| 3304 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3305 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3306 | case "(($ac_try" in |
| 3307 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3308 | *) ac_try_echo=$ac_try;; |
| 3309 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3310 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3311 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3312 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3313 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3314 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3315 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3316 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3317 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3318 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3319 | # so that the user can short-circuit this test for compilers unknown to |
| 3320 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3321 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3322 | do |
| 3323 | test -f "$ac_file" || continue |
| 3324 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3325 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3326 | ;; |
| 3327 | [ab].out ) |
| 3328 | # We found the default executable, but exeext='' is most |
| 3329 | # certainly right. |
| 3330 | break;; |
| 3331 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3332 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3333 | then :; else |
| 3334 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3335 | fi |
| 3336 | # We set ac_cv_exeext here because the later test for it is not |
| 3337 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3338 | # argument, so we may need to know it at that point already. |
| 3339 | # Even if this section looks crufty: it has the advantage of |
| 3340 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3341 | break;; |
| 3342 | * ) |
| 3343 | break;; |
| 3344 | esac |
| 3345 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3346 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3347 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3348 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3349 | ac_file='' |
| 3350 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3351 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3353 | $as_echo "no" >&6; } |
| 3354 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3355 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3356 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3357 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3358 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3359 | { as_fn_set_status 77 |
| 3360 | as_fn_error "C compiler cannot create executables |
| 3361 | See \`config.log' for more details." "$LINENO" 5; }; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3362 | else |
| 3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3364 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3365 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3367 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3369 | $as_echo "$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3370 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3371 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3372 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3373 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3375 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3376 | if { { ac_try="$ac_link" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3377 | case "(($ac_try" in |
| 3378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3379 | *) ac_try_echo=$ac_try;; |
| 3380 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3381 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3382 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3383 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3384 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3385 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3386 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3387 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3388 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3389 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3390 | # `rm'. |
| 3391 | for ac_file in conftest.exe conftest conftest.*; do |
| 3392 | test -f "$ac_file" || continue |
| 3393 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3394 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3395 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3396 | break;; |
| 3397 | * ) break;; |
| 3398 | esac |
| 3399 | done |
| 3400 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3401 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3402 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3403 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3404 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3405 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3406 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3408 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3409 | |
| 3410 | rm -f conftest.$ac_ext |
| 3411 | EXEEXT=$ac_cv_exeext |
| 3412 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3414 | /* end confdefs.h. */ |
| 3415 | #include <stdio.h> |
| 3416 | int |
| 3417 | main () |
| 3418 | { |
| 3419 | FILE *f = fopen ("conftest.out", "w"); |
| 3420 | return ferror (f) || fclose (f) != 0; |
| 3421 | |
| 3422 | ; |
| 3423 | return 0; |
| 3424 | } |
| 3425 | _ACEOF |
| 3426 | ac_clean_files="$ac_clean_files conftest.out" |
| 3427 | # Check that the compiler produces executables we can run. If not, either |
| 3428 | # the compiler is broken, or we cross compile. |
| 3429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3430 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3431 | if test "$cross_compiling" != yes; then |
| 3432 | { { ac_try="$ac_link" |
| 3433 | case "(($ac_try" in |
| 3434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3435 | *) ac_try_echo=$ac_try;; |
| 3436 | esac |
| 3437 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3438 | $as_echo "$ac_try_echo"; } >&5 |
| 3439 | (eval "$ac_link") 2>&5 |
| 3440 | ac_status=$? |
| 3441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3442 | test $ac_status = 0; } |
| 3443 | if { ac_try='./conftest$ac_cv_exeext' |
| 3444 | { { case "(($ac_try" in |
| 3445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3446 | *) ac_try_echo=$ac_try;; |
| 3447 | esac |
| 3448 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3449 | $as_echo "$ac_try_echo"; } >&5 |
| 3450 | (eval "$ac_try") 2>&5 |
| 3451 | ac_status=$? |
| 3452 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3453 | test $ac_status = 0; }; }; then |
| 3454 | cross_compiling=no |
| 3455 | else |
| 3456 | if test "$cross_compiling" = maybe; then |
| 3457 | cross_compiling=yes |
| 3458 | else |
| 3459 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3460 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3461 | as_fn_error "cannot run C compiled programs. |
| 3462 | If you meant to cross compile, use \`--host'. |
| 3463 | See \`config.log' for more details." "$LINENO" 5; } |
| 3464 | fi |
| 3465 | fi |
| 3466 | fi |
| 3467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3468 | $as_echo "$cross_compiling" >&6; } |
| 3469 | |
| 3470 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3471 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3473 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3474 | if test "${ac_cv_objext+set}" = set; then : |
| 3475 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3476 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3478 | /* end confdefs.h. */ |
| 3479 | |
| 3480 | int |
| 3481 | main () |
| 3482 | { |
| 3483 | |
| 3484 | ; |
| 3485 | return 0; |
| 3486 | } |
| 3487 | _ACEOF |
| 3488 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3489 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3490 | case "(($ac_try" in |
| 3491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3492 | *) ac_try_echo=$ac_try;; |
| 3493 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3495 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3496 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3497 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3499 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3500 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3501 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3502 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3503 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3504 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3505 | break;; |
| 3506 | esac |
| 3507 | done |
| 3508 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3509 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3510 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3511 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3512 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3513 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3514 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3515 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3516 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3517 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3518 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3520 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3521 | OBJEXT=$ac_cv_objext |
| 3522 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3524 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3525 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3526 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3527 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3528 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3529 | /* end confdefs.h. */ |
| 3530 | |
| 3531 | int |
| 3532 | main () |
| 3533 | { |
| 3534 | #ifndef __GNUC__ |
| 3535 | choke me |
| 3536 | #endif |
| 3537 | |
| 3538 | ; |
| 3539 | return 0; |
| 3540 | } |
| 3541 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3542 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3543 | ac_compiler_gnu=yes |
| 3544 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3545 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3546 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3547 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3548 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3549 | |
| 3550 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3552 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3553 | if test $ac_compiler_gnu = yes; then |
| 3554 | GCC=yes |
| 3555 | else |
| 3556 | GCC= |
| 3557 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3558 | ac_test_CFLAGS=${CFLAGS+set} |
| 3559 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3560 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3561 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3562 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3563 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3564 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3565 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3566 | ac_c_werror_flag=yes |
| 3567 | ac_cv_prog_cc_g=no |
| 3568 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3570 | /* end confdefs.h. */ |
| 3571 | |
| 3572 | int |
| 3573 | main () |
| 3574 | { |
| 3575 | |
| 3576 | ; |
| 3577 | return 0; |
| 3578 | } |
| 3579 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3580 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3581 | ac_cv_prog_cc_g=yes |
| 3582 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3583 | CFLAGS="" |
| 3584 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3585 | /* end confdefs.h. */ |
| 3586 | |
| 3587 | int |
| 3588 | main () |
| 3589 | { |
| 3590 | |
| 3591 | ; |
| 3592 | return 0; |
| 3593 | } |
| 3594 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3595 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3596 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3597 | else |
| 3598 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3599 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3600 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3601 | /* end confdefs.h. */ |
| 3602 | |
| 3603 | int |
| 3604 | main () |
| 3605 | { |
| 3606 | |
| 3607 | ; |
| 3608 | return 0; |
| 3609 | } |
| 3610 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3611 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3612 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3613 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3614 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3615 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3617 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3619 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3620 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3622 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3623 | if test "$ac_test_CFLAGS" = set; then |
| 3624 | CFLAGS=$ac_save_CFLAGS |
| 3625 | elif test $ac_cv_prog_cc_g = yes; then |
| 3626 | if test "$GCC" = yes; then |
| 3627 | CFLAGS="-g -O2" |
| 3628 | else |
| 3629 | CFLAGS="-g" |
| 3630 | fi |
| 3631 | else |
| 3632 | if test "$GCC" = yes; then |
| 3633 | CFLAGS="-O2" |
| 3634 | else |
| 3635 | CFLAGS= |
| 3636 | fi |
| 3637 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3639 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3640 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3641 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3642 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3643 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3644 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3646 | /* end confdefs.h. */ |
| 3647 | #include <stdarg.h> |
| 3648 | #include <stdio.h> |
| 3649 | #include <sys/types.h> |
| 3650 | #include <sys/stat.h> |
| 3651 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3652 | struct buf { int x; }; |
| 3653 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3654 | static char *e (p, i) |
| 3655 | char **p; |
| 3656 | int i; |
| 3657 | { |
| 3658 | return p[i]; |
| 3659 | } |
| 3660 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3661 | { |
| 3662 | char *s; |
| 3663 | va_list v; |
| 3664 | va_start (v,p); |
| 3665 | s = g (p, va_arg (v,int)); |
| 3666 | va_end (v); |
| 3667 | return s; |
| 3668 | } |
| 3669 | |
| 3670 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3671 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3672 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3673 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3674 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3675 | array size at least. It's necessary to write '\x00'==0 to get something |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3676 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3677 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3678 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3679 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3680 | inside strings and character constants. */ |
| 3681 | #define FOO(x) 'x' |
| 3682 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3683 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3684 | int test (int i, double x); |
| 3685 | struct s1 {int (*f) (int a);}; |
| 3686 | struct s2 {int (*f) (double a);}; |
| 3687 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3688 | int argc; |
| 3689 | char **argv; |
| 3690 | int |
| 3691 | main () |
| 3692 | { |
| 3693 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3694 | ; |
| 3695 | return 0; |
| 3696 | } |
| 3697 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3698 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3699 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3700 | do |
| 3701 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3702 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3703 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3704 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3705 | rm -f core conftest.err conftest.$ac_objext |
| 3706 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3707 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3708 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3709 | CC=$ac_save_CC |
| 3710 | |
| 3711 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3712 | # AC_CACHE_VAL |
| 3713 | case "x$ac_cv_prog_cc_c89" in |
| 3714 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3716 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3717 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3719 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3720 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3721 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3723 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3724 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3725 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3726 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3727 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3728 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3729 | ac_ext=c |
| 3730 | ac_cpp='$CPP $CPPFLAGS' |
| 3731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3734 | DEPDIR="${am__leading_dot}deps" |
| 3735 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3736 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3737 | |
| 3738 | |
| 3739 | am_make=${MAKE-make} |
| 3740 | cat > confinc << 'END' |
| 3741 | am__doit: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3742 | @echo this is the am__doit target |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3743 | .PHONY: am__doit |
| 3744 | END |
| 3745 | # If we don't find an include directive, just comment out the code. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3747 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3748 | am__include="#" |
| 3749 | am__quote= |
| 3750 | _am_result=none |
| 3751 | # First try GNU make style include. |
| 3752 | echo "include confinc" > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3753 | # Ignore all kinds of additional output from `make'. |
| 3754 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3755 | *the\ am__doit\ target*) |
| 3756 | am__include=include |
| 3757 | am__quote= |
| 3758 | _am_result=GNU |
| 3759 | ;; |
| 3760 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3761 | # Now try BSD make style include. |
| 3762 | if test "$am__include" = "#"; then |
| 3763 | echo '.include "confinc"' > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3764 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3765 | *the\ am__doit\ target*) |
| 3766 | am__include=.include |
| 3767 | am__quote="\"" |
| 3768 | _am_result=BSD |
| 3769 | ;; |
| 3770 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3771 | fi |
| 3772 | |
| 3773 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3775 | $as_echo "$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3776 | rm -f confinc confmf |
| 3777 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3778 | # Check whether --enable-dependency-tracking was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3779 | if test "${enable_dependency_tracking+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3780 | enableval=$enable_dependency_tracking; |
| 3781 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3782 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3783 | if test "x$enable_dependency_tracking" != xno; then |
| 3784 | am_depcomp="$ac_aux_dir/depcomp" |
| 3785 | AMDEPBACKSLASH='\' |
| 3786 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3787 | if test "x$enable_dependency_tracking" != xno; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3788 | AMDEP_TRUE= |
| 3789 | AMDEP_FALSE='#' |
| 3790 | else |
| 3791 | AMDEP_TRUE='#' |
| 3792 | AMDEP_FALSE= |
| 3793 | fi |
| 3794 | |
| 3795 | |
| 3796 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3797 | depcc="$CC" am_compiler_list= |
| 3798 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3800 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3801 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 3802 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3803 | else |
| 3804 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3805 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3806 | # making bogus files that we don't know about and never remove. For |
| 3807 | # instance it was reported that on HP-UX the gcc test will end up |
| 3808 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3809 | # in D'. |
| 3810 | mkdir conftest.dir |
| 3811 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3812 | # using a relative directory. |
| 3813 | cp "$am_depcomp" conftest.dir |
| 3814 | cd conftest.dir |
| 3815 | # We will build objects and dependencies in a subdirectory because |
| 3816 | # it helps to detect inapplicable dependency modes. For instance |
| 3817 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3818 | # side effect of compilation, but ICC will put the dependencies in |
| 3819 | # the current directory while Tru64 will put them in the object |
| 3820 | # directory. |
| 3821 | mkdir sub |
| 3822 | |
| 3823 | am_cv_CC_dependencies_compiler_type=none |
| 3824 | if test "$am_compiler_list" = ""; then |
| 3825 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3826 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3827 | am__universal=false |
| 3828 | case " $depcc " in #( |
| 3829 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3830 | esac |
| 3831 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3832 | for depmode in $am_compiler_list; do |
| 3833 | # Setup a source with many dependencies, because some compilers |
| 3834 | # like to wrap large dependency lists on column 80 (with \), and |
| 3835 | # we should not choose a depcomp mode which is confused by this. |
| 3836 | # |
| 3837 | # We need to recreate these files for each test, as the compiler may |
| 3838 | # overwrite some of them when testing with obscure command lines. |
| 3839 | # This happens at least with the AIX C compiler. |
| 3840 | : > sub/conftest.c |
| 3841 | for i in 1 2 3 4 5 6; do |
| 3842 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3843 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3844 | # Solaris 8's {/usr,}/bin/sh. |
| 3845 | touch sub/conftst$i.h |
| 3846 | done |
| 3847 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3848 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3849 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3850 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3851 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3852 | # versions had trouble with output in subdirs |
| 3853 | am__obj=sub/conftest.${OBJEXT-o} |
| 3854 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3855 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3856 | gcc) |
| 3857 | # This depmode causes a compiler race in universal mode. |
| 3858 | test "$am__universal" = false || continue |
| 3859 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3860 | nosideeffect) |
| 3861 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3862 | # only be used when explicitly requested |
| 3863 | if test "x$enable_dependency_tracking" = xyes; then |
| 3864 | continue |
| 3865 | else |
| 3866 | break |
| 3867 | fi |
| 3868 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3869 | msvisualcpp | msvcmsys) |
| 3870 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3871 | # not run yet. These depmodes are late enough in the game, and |
| 3872 | # so weak that their functioning should not be impacted. |
| 3873 | am__obj=conftest.${OBJEXT-o} |
| 3874 | am__minus_obj= |
| 3875 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3876 | none) break ;; |
| 3877 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3878 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3879 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3880 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3881 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3882 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3883 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3884 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3885 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3886 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3887 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3888 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3889 | # that says an option was ignored or not supported. |
| 3890 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3891 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3892 | # The diagnosis changed in icc 8.0: |
| 3893 | # icc: Command line remark: option '-MP' not supported |
| 3894 | if (grep 'ignoring option' conftest.err || |
| 3895 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3896 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3897 | break |
| 3898 | fi |
| 3899 | fi |
| 3900 | done |
| 3901 | |
| 3902 | cd .. |
| 3903 | rm -rf conftest.dir |
| 3904 | else |
| 3905 | am_cv_CC_dependencies_compiler_type=none |
| 3906 | fi |
| 3907 | |
| 3908 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3910 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3911 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3912 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3913 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3914 | test "x$enable_dependency_tracking" != xno \ |
| 3915 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3916 | am__fastdepCC_TRUE= |
| 3917 | am__fastdepCC_FALSE='#' |
| 3918 | else |
| 3919 | am__fastdepCC_TRUE='#' |
| 3920 | am__fastdepCC_FALSE= |
| 3921 | fi |
| 3922 | |
| 3923 | |
| 3924 | ac_ext=c |
| 3925 | ac_cpp='$CPP $CPPFLAGS' |
| 3926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3930 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3931 | # On Suns, sometimes $CPP names a directory. |
| 3932 | if test -n "$CPP" && test -d "$CPP"; then |
| 3933 | CPP= |
| 3934 | fi |
| 3935 | if test -z "$CPP"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3936 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3937 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3938 | else |
| 3939 | # Double quotes because CPP needs to be expanded |
| 3940 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3941 | do |
| 3942 | ac_preproc_ok=false |
| 3943 | for ac_c_preproc_warn_flag in '' yes |
| 3944 | do |
| 3945 | # Use a header file that comes with gcc, so configuring glibc |
| 3946 | # with a fresh cross-compiler works. |
| 3947 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3948 | # <limits.h> exists even on freestanding compilers. |
| 3949 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3950 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3951 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3952 | /* end confdefs.h. */ |
| 3953 | #ifdef __STDC__ |
| 3954 | # include <limits.h> |
| 3955 | #else |
| 3956 | # include <assert.h> |
| 3957 | #endif |
| 3958 | Syntax error |
| 3959 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3960 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3961 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3962 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3963 | # Broken: fails on valid input. |
| 3964 | continue |
| 3965 | fi |
| 3966 | rm -f conftest.err conftest.$ac_ext |
| 3967 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3968 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3969 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3971 | /* end confdefs.h. */ |
| 3972 | #include <ac_nonexistent.h> |
| 3973 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3974 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3975 | # Broken: success on invalid input. |
| 3976 | continue |
| 3977 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3978 | # Passes both tests. |
| 3979 | ac_preproc_ok=: |
| 3980 | break |
| 3981 | fi |
| 3982 | rm -f conftest.err conftest.$ac_ext |
| 3983 | |
| 3984 | done |
| 3985 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3986 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3987 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3988 | break |
| 3989 | fi |
| 3990 | |
| 3991 | done |
| 3992 | ac_cv_prog_CPP=$CPP |
| 3993 | |
| 3994 | fi |
| 3995 | CPP=$ac_cv_prog_CPP |
| 3996 | else |
| 3997 | ac_cv_prog_CPP=$CPP |
| 3998 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4000 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4001 | ac_preproc_ok=false |
| 4002 | for ac_c_preproc_warn_flag in '' yes |
| 4003 | do |
| 4004 | # Use a header file that comes with gcc, so configuring glibc |
| 4005 | # with a fresh cross-compiler works. |
| 4006 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4007 | # <limits.h> exists even on freestanding compilers. |
| 4008 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4009 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4011 | /* end confdefs.h. */ |
| 4012 | #ifdef __STDC__ |
| 4013 | # include <limits.h> |
| 4014 | #else |
| 4015 | # include <assert.h> |
| 4016 | #endif |
| 4017 | Syntax error |
| 4018 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4019 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4020 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4021 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4022 | # Broken: fails on valid input. |
| 4023 | continue |
| 4024 | fi |
| 4025 | rm -f conftest.err conftest.$ac_ext |
| 4026 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4027 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4028 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4029 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4030 | /* end confdefs.h. */ |
| 4031 | #include <ac_nonexistent.h> |
| 4032 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4033 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4034 | # Broken: success on invalid input. |
| 4035 | continue |
| 4036 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4037 | # Passes both tests. |
| 4038 | ac_preproc_ok=: |
| 4039 | break |
| 4040 | fi |
| 4041 | rm -f conftest.err conftest.$ac_ext |
| 4042 | |
| 4043 | done |
| 4044 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4045 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4046 | if $ac_preproc_ok; then : |
| 4047 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4048 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4049 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4050 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4051 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4052 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4053 | fi |
| 4054 | |
| 4055 | ac_ext=c |
| 4056 | ac_cpp='$CPP $CPPFLAGS' |
| 4057 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4058 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4059 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4060 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4061 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4062 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4063 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4064 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4065 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4066 | if test -z "$CXX"; then |
| 4067 | if test -n "$CCC"; then |
| 4068 | CXX=$CCC |
| 4069 | else |
| 4070 | if test -n "$ac_tool_prefix"; then |
| 4071 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4072 | do |
| 4073 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4074 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4076 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4077 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 4078 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4079 | else |
| 4080 | if test -n "$CXX"; then |
| 4081 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4082 | else |
| 4083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4084 | for as_dir in $PATH |
| 4085 | do |
| 4086 | IFS=$as_save_IFS |
| 4087 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4088 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4089 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4090 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4091 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4092 | break 2 |
| 4093 | fi |
| 4094 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4095 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4096 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4097 | |
| 4098 | fi |
| 4099 | fi |
| 4100 | CXX=$ac_cv_prog_CXX |
| 4101 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4103 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4104 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4106 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4107 | fi |
| 4108 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4109 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4110 | test -n "$CXX" && break |
| 4111 | done |
| 4112 | fi |
| 4113 | if test -z "$CXX"; then |
| 4114 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4115 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4116 | do |
| 4117 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4118 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4120 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4121 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 4122 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4123 | else |
| 4124 | if test -n "$ac_ct_CXX"; then |
| 4125 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4126 | else |
| 4127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4128 | for as_dir in $PATH |
| 4129 | do |
| 4130 | IFS=$as_save_IFS |
| 4131 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4132 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4133 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4134 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4135 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4136 | break 2 |
| 4137 | fi |
| 4138 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4139 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4140 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4141 | |
| 4142 | fi |
| 4143 | fi |
| 4144 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4145 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4147 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4148 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4150 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4151 | fi |
| 4152 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4153 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4154 | test -n "$ac_ct_CXX" && break |
| 4155 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4156 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4157 | if test "x$ac_ct_CXX" = x; then |
| 4158 | CXX="g++" |
| 4159 | else |
| 4160 | case $cross_compiling:$ac_tool_warned in |
| 4161 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4163 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4164 | ac_tool_warned=yes ;; |
| 4165 | esac |
| 4166 | CXX=$ac_ct_CXX |
| 4167 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4168 | fi |
| 4169 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4170 | fi |
| 4171 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4172 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4173 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4174 | set X $ac_compile |
| 4175 | ac_compiler=$2 |
| 4176 | for ac_option in --version -v -V -qversion; do |
| 4177 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4178 | case "(($ac_try" in |
| 4179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4180 | *) ac_try_echo=$ac_try;; |
| 4181 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4182 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4183 | $as_echo "$ac_try_echo"; } >&5 |
| 4184 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4185 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4186 | if test -s conftest.err; then |
| 4187 | sed '10a\ |
| 4188 | ... rest of stderr output deleted ... |
| 4189 | 10q' conftest.err >conftest.er1 |
| 4190 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4191 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4192 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4193 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4194 | test $ac_status = 0; } |
| 4195 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4196 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4198 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4199 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 4200 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4201 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4203 | /* end confdefs.h. */ |
| 4204 | |
| 4205 | int |
| 4206 | main () |
| 4207 | { |
| 4208 | #ifndef __GNUC__ |
| 4209 | choke me |
| 4210 | #endif |
| 4211 | |
| 4212 | ; |
| 4213 | return 0; |
| 4214 | } |
| 4215 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4216 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4217 | ac_compiler_gnu=yes |
| 4218 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4219 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4220 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4222 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4223 | |
| 4224 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4226 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4227 | if test $ac_compiler_gnu = yes; then |
| 4228 | GXX=yes |
| 4229 | else |
| 4230 | GXX= |
| 4231 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4232 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4233 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4235 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4236 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 4237 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4238 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4239 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4240 | ac_cxx_werror_flag=yes |
| 4241 | ac_cv_prog_cxx_g=no |
| 4242 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4244 | /* end confdefs.h. */ |
| 4245 | |
| 4246 | int |
| 4247 | main () |
| 4248 | { |
| 4249 | |
| 4250 | ; |
| 4251 | return 0; |
| 4252 | } |
| 4253 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4254 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4255 | ac_cv_prog_cxx_g=yes |
| 4256 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4257 | CXXFLAGS="" |
| 4258 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4259 | /* end confdefs.h. */ |
| 4260 | |
| 4261 | int |
| 4262 | main () |
| 4263 | { |
| 4264 | |
| 4265 | ; |
| 4266 | return 0; |
| 4267 | } |
| 4268 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4269 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4270 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4271 | else |
| 4272 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4273 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4275 | /* end confdefs.h. */ |
| 4276 | |
| 4277 | int |
| 4278 | main () |
| 4279 | { |
| 4280 | |
| 4281 | ; |
| 4282 | return 0; |
| 4283 | } |
| 4284 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4285 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4286 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4287 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4288 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4289 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4291 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4292 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4293 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4294 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4296 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4297 | if test "$ac_test_CXXFLAGS" = set; then |
| 4298 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4299 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4300 | if test "$GXX" = yes; then |
| 4301 | CXXFLAGS="-g -O2" |
| 4302 | else |
| 4303 | CXXFLAGS="-g" |
| 4304 | fi |
| 4305 | else |
| 4306 | if test "$GXX" = yes; then |
| 4307 | CXXFLAGS="-O2" |
| 4308 | else |
| 4309 | CXXFLAGS= |
| 4310 | fi |
| 4311 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4312 | ac_ext=c |
| 4313 | ac_cpp='$CPP $CPPFLAGS' |
| 4314 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4315 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4316 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4317 | |
| 4318 | depcc="$CXX" am_compiler_list= |
| 4319 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4321 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4322 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 4323 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4324 | else |
| 4325 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4326 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4327 | # making bogus files that we don't know about and never remove. For |
| 4328 | # instance it was reported that on HP-UX the gcc test will end up |
| 4329 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4330 | # in D'. |
| 4331 | mkdir conftest.dir |
| 4332 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4333 | # using a relative directory. |
| 4334 | cp "$am_depcomp" conftest.dir |
| 4335 | cd conftest.dir |
| 4336 | # We will build objects and dependencies in a subdirectory because |
| 4337 | # it helps to detect inapplicable dependency modes. For instance |
| 4338 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4339 | # side effect of compilation, but ICC will put the dependencies in |
| 4340 | # the current directory while Tru64 will put them in the object |
| 4341 | # directory. |
| 4342 | mkdir sub |
| 4343 | |
| 4344 | am_cv_CXX_dependencies_compiler_type=none |
| 4345 | if test "$am_compiler_list" = ""; then |
| 4346 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4347 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4348 | am__universal=false |
| 4349 | case " $depcc " in #( |
| 4350 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4351 | esac |
| 4352 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4353 | for depmode in $am_compiler_list; do |
| 4354 | # Setup a source with many dependencies, because some compilers |
| 4355 | # like to wrap large dependency lists on column 80 (with \), and |
| 4356 | # we should not choose a depcomp mode which is confused by this. |
| 4357 | # |
| 4358 | # We need to recreate these files for each test, as the compiler may |
| 4359 | # overwrite some of them when testing with obscure command lines. |
| 4360 | # This happens at least with the AIX C compiler. |
| 4361 | : > sub/conftest.c |
| 4362 | for i in 1 2 3 4 5 6; do |
| 4363 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4364 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4365 | # Solaris 8's {/usr,}/bin/sh. |
| 4366 | touch sub/conftst$i.h |
| 4367 | done |
| 4368 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4369 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4370 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4371 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4372 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4373 | # versions had trouble with output in subdirs |
| 4374 | am__obj=sub/conftest.${OBJEXT-o} |
| 4375 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4376 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4377 | gcc) |
| 4378 | # This depmode causes a compiler race in universal mode. |
| 4379 | test "$am__universal" = false || continue |
| 4380 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4381 | nosideeffect) |
| 4382 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4383 | # only be used when explicitly requested |
| 4384 | if test "x$enable_dependency_tracking" = xyes; then |
| 4385 | continue |
| 4386 | else |
| 4387 | break |
| 4388 | fi |
| 4389 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4390 | msvisualcpp | msvcmsys) |
| 4391 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4392 | # not run yet. These depmodes are late enough in the game, and |
| 4393 | # so weak that their functioning should not be impacted. |
| 4394 | am__obj=conftest.${OBJEXT-o} |
| 4395 | am__minus_obj= |
| 4396 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4397 | none) break ;; |
| 4398 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4399 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4400 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4401 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4402 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4403 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4404 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4405 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4406 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4407 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4408 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4409 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4410 | # that says an option was ignored or not supported. |
| 4411 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4412 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4413 | # The diagnosis changed in icc 8.0: |
| 4414 | # icc: Command line remark: option '-MP' not supported |
| 4415 | if (grep 'ignoring option' conftest.err || |
| 4416 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4417 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4418 | break |
| 4419 | fi |
| 4420 | fi |
| 4421 | done |
| 4422 | |
| 4423 | cd .. |
| 4424 | rm -rf conftest.dir |
| 4425 | else |
| 4426 | am_cv_CXX_dependencies_compiler_type=none |
| 4427 | fi |
| 4428 | |
| 4429 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4431 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4432 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4433 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4434 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4435 | test "x$enable_dependency_tracking" != xno \ |
| 4436 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4437 | am__fastdepCXX_TRUE= |
| 4438 | am__fastdepCXX_FALSE='#' |
| 4439 | else |
| 4440 | am__fastdepCXX_TRUE='#' |
| 4441 | am__fastdepCXX_FALSE= |
| 4442 | fi |
| 4443 | |
| 4444 | |
| 4445 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4446 | case `pwd` in |
| 4447 | *\ * | *\ *) |
| 4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4449 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4450 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4451 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4452 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4453 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4454 | macro_version='2.2.6b' |
| 4455 | macro_revision='1.3017' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4456 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4457 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4458 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4459 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4460 | |
| 4461 | |
| 4462 | |
| 4463 | |
| 4464 | |
| 4465 | |
| 4466 | |
| 4467 | |
| 4468 | |
| 4469 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4470 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4471 | # Make sure we can run config.sub. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4472 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4473 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4474 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4476 | $as_echo_n "checking build system type... " >&6; } |
| 4477 | if test "${ac_cv_build+set}" = set; then : |
| 4478 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4479 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4480 | ac_build_alias=$build_alias |
| 4481 | test "x$ac_build_alias" = x && |
| 4482 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4483 | test "x$ac_build_alias" = x && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4484 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4485 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4486 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4487 | |
| 4488 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4490 | $as_echo "$ac_cv_build" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4491 | case $ac_cv_build in |
| 4492 | *-*-*) ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4493 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4494 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4495 | build=$ac_cv_build |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4496 | ac_save_IFS=$IFS; IFS='-' |
| 4497 | set x $ac_cv_build |
| 4498 | shift |
| 4499 | build_cpu=$1 |
| 4500 | build_vendor=$2 |
| 4501 | shift; shift |
| 4502 | # Remember, the first character of IFS is used to create $*, |
| 4503 | # except with old shells: |
| 4504 | build_os=$* |
| 4505 | IFS=$ac_save_IFS |
| 4506 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4507 | |
| 4508 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4509 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4510 | $as_echo_n "checking host system type... " >&6; } |
| 4511 | if test "${ac_cv_host+set}" = set; then : |
| 4512 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4513 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4514 | if test "x$host_alias" = x; then |
| 4515 | ac_cv_host=$ac_cv_build |
| 4516 | else |
| 4517 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4518 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4519 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4520 | |
| 4521 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4523 | $as_echo "$ac_cv_host" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4524 | case $ac_cv_host in |
| 4525 | *-*-*) ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4526 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4527 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4528 | host=$ac_cv_host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4529 | ac_save_IFS=$IFS; IFS='-' |
| 4530 | set x $ac_cv_host |
| 4531 | shift |
| 4532 | host_cpu=$1 |
| 4533 | host_vendor=$2 |
| 4534 | shift; shift |
| 4535 | # Remember, the first character of IFS is used to create $*, |
| 4536 | # except with old shells: |
| 4537 | host_os=$* |
| 4538 | IFS=$ac_save_IFS |
| 4539 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4540 | |
| 4541 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4543 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4544 | if test "${ac_cv_path_SED+set}" = set; then : |
| 4545 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4546 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4547 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4548 | for ac_i in 1 2 3 4 5 6 7; do |
| 4549 | ac_script="$ac_script$as_nl$ac_script" |
| 4550 | done |
| 4551 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4552 | { ac_script=; unset ac_script;} |
| 4553 | if test -z "$SED"; then |
| 4554 | ac_path_SED_found=false |
| 4555 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4557 | for as_dir in $PATH |
| 4558 | do |
| 4559 | IFS=$as_save_IFS |
| 4560 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4561 | for ac_prog in sed gsed; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4562 | for ac_exec_ext in '' $ac_executable_extensions; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4563 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4564 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 4565 | # Check for GNU ac_path_SED and select it if it is found. |
| 4566 | # Check for GNU $ac_path_SED |
| 4567 | case `"$ac_path_SED" --version 2>&1` in |
| 4568 | *GNU*) |
| 4569 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4570 | *) |
| 4571 | ac_count=0 |
| 4572 | $as_echo_n 0123456789 >"conftest.in" |
| 4573 | while : |
| 4574 | do |
| 4575 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4576 | mv "conftest.tmp" "conftest.in" |
| 4577 | cp "conftest.in" "conftest.nl" |
| 4578 | $as_echo '' >> "conftest.nl" |
| 4579 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4580 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4581 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4582 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4583 | # Best one so far, save it but keep looking for a better one |
| 4584 | ac_cv_path_SED="$ac_path_SED" |
| 4585 | ac_path_SED_max=$ac_count |
| 4586 | fi |
| 4587 | # 10*(2^10) chars as input seems more than enough |
| 4588 | test $ac_count -gt 10 && break |
| 4589 | done |
| 4590 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4591 | esac |
| 4592 | |
| 4593 | $ac_path_SED_found && break 3 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4594 | done |
| 4595 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4596 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4597 | IFS=$as_save_IFS |
| 4598 | if test -z "$ac_cv_path_SED"; then |
| 4599 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4600 | fi |
| 4601 | else |
| 4602 | ac_cv_path_SED=$SED |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4603 | fi |
| 4604 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4605 | fi |
| 4606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4607 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4608 | SED="$ac_cv_path_SED" |
| 4609 | rm -f conftest.sed |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 4610 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4611 | test -z "$SED" && SED=sed |
| 4612 | Xsed="$SED -e 1s/^X//" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4613 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4614 | |
| 4615 | |
| 4616 | |
| 4617 | |
| 4618 | |
| 4619 | |
| 4620 | |
| 4621 | |
| 4622 | |
| 4623 | |
| 4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4625 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4626 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4627 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4628 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4629 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4630 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4631 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4632 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4633 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4634 | do |
| 4635 | IFS=$as_save_IFS |
| 4636 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4637 | for ac_prog in grep ggrep; do |
| 4638 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4639 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4640 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4641 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4642 | # Check for GNU $ac_path_GREP |
| 4643 | case `"$ac_path_GREP" --version 2>&1` in |
| 4644 | *GNU*) |
| 4645 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4646 | *) |
| 4647 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4648 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4649 | while : |
| 4650 | do |
| 4651 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4652 | mv "conftest.tmp" "conftest.in" |
| 4653 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4654 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4655 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4656 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4657 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4658 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4659 | # Best one so far, save it but keep looking for a better one |
| 4660 | ac_cv_path_GREP="$ac_path_GREP" |
| 4661 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4662 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4663 | # 10*(2^10) chars as input seems more than enough |
| 4664 | test $ac_count -gt 10 && break |
| 4665 | done |
| 4666 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4667 | esac |
| 4668 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4669 | $ac_path_GREP_found && break 3 |
| 4670 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4671 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4672 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4673 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4674 | if test -z "$ac_cv_path_GREP"; then |
| 4675 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4676 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4677 | else |
| 4678 | ac_cv_path_GREP=$GREP |
| 4679 | fi |
| 4680 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4681 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4683 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4684 | GREP="$ac_cv_path_GREP" |
| 4685 | |
| 4686 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4688 | $as_echo_n "checking for egrep... " >&6; } |
| 4689 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4690 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4691 | else |
| 4692 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4693 | then ac_cv_path_EGREP="$GREP -E" |
| 4694 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4695 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4696 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4697 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4699 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4700 | do |
| 4701 | IFS=$as_save_IFS |
| 4702 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4703 | for ac_prog in egrep; do |
| 4704 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4705 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4706 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4707 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4708 | # Check for GNU $ac_path_EGREP |
| 4709 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4710 | *GNU*) |
| 4711 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4712 | *) |
| 4713 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4714 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4715 | while : |
| 4716 | do |
| 4717 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4718 | mv "conftest.tmp" "conftest.in" |
| 4719 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4720 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4721 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4722 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4723 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4724 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4725 | # Best one so far, save it but keep looking for a better one |
| 4726 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4727 | ac_path_EGREP_max=$ac_count |
| 4728 | fi |
| 4729 | # 10*(2^10) chars as input seems more than enough |
| 4730 | test $ac_count -gt 10 && break |
| 4731 | done |
| 4732 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4733 | esac |
| 4734 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4735 | $ac_path_EGREP_found && break 3 |
| 4736 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4737 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4738 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4739 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4740 | if test -z "$ac_cv_path_EGREP"; then |
| 4741 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4742 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4743 | else |
| 4744 | ac_cv_path_EGREP=$EGREP |
| 4745 | fi |
| 4746 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4747 | fi |
| 4748 | fi |
| 4749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4750 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4751 | EGREP="$ac_cv_path_EGREP" |
| 4752 | |
| 4753 | |
| 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4755 | $as_echo_n "checking for fgrep... " >&6; } |
| 4756 | if test "${ac_cv_path_FGREP+set}" = set; then : |
| 4757 | $as_echo_n "(cached) " >&6 |
| 4758 | else |
| 4759 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4760 | then ac_cv_path_FGREP="$GREP -F" |
| 4761 | else |
| 4762 | if test -z "$FGREP"; then |
| 4763 | ac_path_FGREP_found=false |
| 4764 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4766 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4767 | do |
| 4768 | IFS=$as_save_IFS |
| 4769 | test -z "$as_dir" && as_dir=. |
| 4770 | for ac_prog in fgrep; do |
| 4771 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4772 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4773 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 4774 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4775 | # Check for GNU $ac_path_FGREP |
| 4776 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4777 | *GNU*) |
| 4778 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4779 | *) |
| 4780 | ac_count=0 |
| 4781 | $as_echo_n 0123456789 >"conftest.in" |
| 4782 | while : |
| 4783 | do |
| 4784 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4785 | mv "conftest.tmp" "conftest.in" |
| 4786 | cp "conftest.in" "conftest.nl" |
| 4787 | $as_echo 'FGREP' >> "conftest.nl" |
| 4788 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4789 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4790 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4791 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4792 | # Best one so far, save it but keep looking for a better one |
| 4793 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4794 | ac_path_FGREP_max=$ac_count |
| 4795 | fi |
| 4796 | # 10*(2^10) chars as input seems more than enough |
| 4797 | test $ac_count -gt 10 && break |
| 4798 | done |
| 4799 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4800 | esac |
| 4801 | |
| 4802 | $ac_path_FGREP_found && break 3 |
| 4803 | done |
| 4804 | done |
| 4805 | done |
| 4806 | IFS=$as_save_IFS |
| 4807 | if test -z "$ac_cv_path_FGREP"; then |
| 4808 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4809 | fi |
| 4810 | else |
| 4811 | ac_cv_path_FGREP=$FGREP |
| 4812 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4813 | |
| 4814 | fi |
| 4815 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4817 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4818 | FGREP="$ac_cv_path_FGREP" |
| 4819 | |
| 4820 | |
| 4821 | test -z "$GREP" && GREP=grep |
| 4822 | |
| 4823 | |
| 4824 | |
| 4825 | |
| 4826 | |
| 4827 | |
| 4828 | |
| 4829 | |
| 4830 | |
| 4831 | |
| 4832 | |
| 4833 | |
| 4834 | |
| 4835 | |
| 4836 | |
| 4837 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4838 | |
| 4839 | |
| 4840 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4841 | # Check whether --with-gnu-ld was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4842 | if test "${with_gnu_ld+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4843 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4844 | else |
| 4845 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4846 | fi |
| 4847 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4848 | ac_prog=ld |
| 4849 | if test "$GCC" = yes; then |
| 4850 | # Check if gcc -print-prog-name=ld gives a path. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4852 | $as_echo_n "checking for ld used by $CC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4853 | case $host in |
| 4854 | *-*-mingw*) |
| 4855 | # gcc leaves a trailing carriage return which upsets mingw |
| 4856 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4857 | *) |
| 4858 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4859 | esac |
| 4860 | case $ac_prog in |
| 4861 | # Accept absolute paths. |
| 4862 | [\\/]* | ?:[\\/]*) |
| 4863 | re_direlt='/[^/][^/]*/\.\./' |
| 4864 | # Canonicalize the pathname of ld |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4865 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4866 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4867 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4868 | done |
| 4869 | test -z "$LD" && LD="$ac_prog" |
| 4870 | ;; |
| 4871 | "") |
| 4872 | # If it fails, then pretend we aren't using GCC. |
| 4873 | ac_prog=ld |
| 4874 | ;; |
| 4875 | *) |
| 4876 | # If it is relative, then search for the first ld in PATH. |
| 4877 | with_gnu_ld=unknown |
| 4878 | ;; |
| 4879 | esac |
| 4880 | elif test "$with_gnu_ld" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4882 | $as_echo_n "checking for GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4883 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4885 | $as_echo_n "checking for non-GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4886 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4887 | if test "${lt_cv_path_LD+set}" = set; then : |
| 4888 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4889 | else |
| 4890 | if test -z "$LD"; then |
| 4891 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4892 | for ac_dir in $PATH; do |
| 4893 | IFS="$lt_save_ifs" |
| 4894 | test -z "$ac_dir" && ac_dir=. |
| 4895 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4896 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4897 | # Check to see if the program is GNU ld. I'd rather use --version, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4898 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4899 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4900 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4901 | *GNU* | *'with BFD'*) |
| 4902 | test "$with_gnu_ld" != no && break |
| 4903 | ;; |
| 4904 | *) |
| 4905 | test "$with_gnu_ld" != yes && break |
| 4906 | ;; |
| 4907 | esac |
| 4908 | fi |
| 4909 | done |
| 4910 | IFS="$lt_save_ifs" |
| 4911 | else |
| 4912 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4913 | fi |
| 4914 | fi |
| 4915 | |
| 4916 | LD="$lt_cv_path_LD" |
| 4917 | if test -n "$LD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4919 | $as_echo "$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4920 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4922 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4923 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4924 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 4926 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 4927 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 4928 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4929 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4930 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4931 | case `$LD -v 2>&1 </dev/null` in |
| 4932 | *GNU* | *'with BFD'*) |
| 4933 | lt_cv_prog_gnu_ld=yes |
| 4934 | ;; |
| 4935 | *) |
| 4936 | lt_cv_prog_gnu_ld=no |
| 4937 | ;; |
| 4938 | esac |
| 4939 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4940 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 4941 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4942 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4943 | |
| 4944 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4945 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4946 | |
| 4947 | |
| 4948 | |
| 4949 | |
| 4950 | |
| 4951 | |
| 4952 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 4953 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 4954 | if test "${lt_cv_path_NM+set}" = set; then : |
| 4955 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4956 | else |
| 4957 | if test -n "$NM"; then |
| 4958 | # Let the user override the test. |
| 4959 | lt_cv_path_NM="$NM" |
| 4960 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4961 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4962 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4963 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4964 | fi |
| 4965 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4966 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4967 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4968 | IFS="$lt_save_ifs" |
| 4969 | test -z "$ac_dir" && ac_dir=. |
| 4970 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4971 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4972 | # Check to see if the nm accepts a BSD-compat flag. |
| 4973 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4974 | # nm: unknown option "B" ignored |
| 4975 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4976 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4977 | */dev/null* | *'Invalid file or object type'*) |
| 4978 | lt_cv_path_NM="$tmp_nm -B" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4979 | break |
| 4980 | ;; |
| 4981 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4982 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4983 | */dev/null*) |
| 4984 | lt_cv_path_NM="$tmp_nm -p" |
| 4985 | break |
| 4986 | ;; |
| 4987 | *) |
| 4988 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4989 | continue # so that we can try to find one that supports BSD flags |
| 4990 | ;; |
| 4991 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4992 | ;; |
| 4993 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4994 | fi |
| 4995 | done |
| 4996 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4997 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4998 | : ${lt_cv_path_NM=no} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4999 | fi |
| 5000 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5002 | $as_echo "$lt_cv_path_NM" >&6; } |
| 5003 | if test "$lt_cv_path_NM" != "no"; then |
| 5004 | NM="$lt_cv_path_NM" |
| 5005 | else |
| 5006 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5007 | if test -n "$ac_tool_prefix"; then |
| 5008 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5009 | do |
| 5010 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5011 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5013 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5014 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
| 5015 | $as_echo_n "(cached) " >&6 |
| 5016 | else |
| 5017 | if test -n "$DUMPBIN"; then |
| 5018 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5019 | else |
| 5020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5021 | for as_dir in $PATH |
| 5022 | do |
| 5023 | IFS=$as_save_IFS |
| 5024 | test -z "$as_dir" && as_dir=. |
| 5025 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5027 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5029 | break 2 |
| 5030 | fi |
| 5031 | done |
| 5032 | done |
| 5033 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5034 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5035 | fi |
| 5036 | fi |
| 5037 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5038 | if test -n "$DUMPBIN"; then |
| 5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5040 | $as_echo "$DUMPBIN" >&6; } |
| 5041 | else |
| 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5043 | $as_echo "no" >&6; } |
| 5044 | fi |
| 5045 | |
| 5046 | |
| 5047 | test -n "$DUMPBIN" && break |
| 5048 | done |
| 5049 | fi |
| 5050 | if test -z "$DUMPBIN"; then |
| 5051 | ac_ct_DUMPBIN=$DUMPBIN |
| 5052 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5053 | do |
| 5054 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5055 | set dummy $ac_prog; ac_word=$2 |
| 5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5057 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5058 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
| 5059 | $as_echo_n "(cached) " >&6 |
| 5060 | else |
| 5061 | if test -n "$ac_ct_DUMPBIN"; then |
| 5062 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5063 | else |
| 5064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5065 | for as_dir in $PATH |
| 5066 | do |
| 5067 | IFS=$as_save_IFS |
| 5068 | test -z "$as_dir" && as_dir=. |
| 5069 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5070 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5071 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5072 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5073 | break 2 |
| 5074 | fi |
| 5075 | done |
| 5076 | done |
| 5077 | IFS=$as_save_IFS |
| 5078 | |
| 5079 | fi |
| 5080 | fi |
| 5081 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5082 | if test -n "$ac_ct_DUMPBIN"; then |
| 5083 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5084 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5085 | else |
| 5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5087 | $as_echo "no" >&6; } |
| 5088 | fi |
| 5089 | |
| 5090 | |
| 5091 | test -n "$ac_ct_DUMPBIN" && break |
| 5092 | done |
| 5093 | |
| 5094 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5095 | DUMPBIN=":" |
| 5096 | else |
| 5097 | case $cross_compiling:$ac_tool_warned in |
| 5098 | yes:) |
| 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5100 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5101 | ac_tool_warned=yes ;; |
| 5102 | esac |
| 5103 | DUMPBIN=$ac_ct_DUMPBIN |
| 5104 | fi |
| 5105 | fi |
| 5106 | |
| 5107 | |
| 5108 | if test "$DUMPBIN" != ":"; then |
| 5109 | NM="$DUMPBIN" |
| 5110 | fi |
| 5111 | fi |
| 5112 | test -z "$NM" && NM=nm |
| 5113 | |
| 5114 | |
| 5115 | |
| 5116 | |
| 5117 | |
| 5118 | |
| 5119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5120 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5121 | if test "${lt_cv_nm_interface+set}" = set; then : |
| 5122 | $as_echo_n "(cached) " >&6 |
| 5123 | else |
| 5124 | lt_cv_nm_interface="BSD nm" |
| 5125 | echo "int some_variable = 0;" > conftest.$ac_ext |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 5126 | (eval echo "\"\$as_me:5126: $ac_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5127 | (eval "$ac_compile" 2>conftest.err) |
| 5128 | cat conftest.err >&5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 5129 | (eval echo "\"\$as_me:5129: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5130 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5131 | cat conftest.err >&5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 5132 | (eval echo "\"\$as_me:5132: output\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5133 | cat conftest.out >&5 |
| 5134 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5135 | lt_cv_nm_interface="MS dumpbin" |
| 5136 | fi |
| 5137 | rm -f conftest* |
| 5138 | fi |
| 5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5140 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 5141 | |
| 5142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5143 | $as_echo_n "checking whether ln -s works... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5144 | LN_S=$as_ln_s |
| 5145 | if test "$LN_S" = "ln -s"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5147 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5148 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5150 | $as_echo "no, using $LN_S" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5151 | fi |
| 5152 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5153 | # find the maximum length of command line arguments |
| 5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5155 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5156 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
| 5157 | $as_echo_n "(cached) " >&6 |
| 5158 | else |
| 5159 | i=0 |
| 5160 | teststring="ABCD" |
| 5161 | |
| 5162 | case $build_os in |
| 5163 | msdosdjgpp*) |
| 5164 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5165 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5166 | # during glob expansion). Even if it were fixed, the result of this |
| 5167 | # check would be larger than it should be. |
| 5168 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5169 | ;; |
| 5170 | |
| 5171 | gnu*) |
| 5172 | # Under GNU Hurd, this test is not required because there is |
| 5173 | # no limit to the length of command line arguments. |
| 5174 | # Libtool will interpret -1 as no limit whatsoever |
| 5175 | lt_cv_sys_max_cmd_len=-1; |
| 5176 | ;; |
| 5177 | |
| 5178 | cygwin* | mingw* | cegcc*) |
| 5179 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5180 | # about 5 minutes as the teststring grows exponentially. |
| 5181 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5182 | # you end up with a "frozen" computer, even though with patience |
| 5183 | # the test eventually succeeds (with a max line length of 256k). |
| 5184 | # Instead, let's just punt: use the minimum linelength reported by |
| 5185 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5186 | lt_cv_sys_max_cmd_len=8192; |
| 5187 | ;; |
| 5188 | |
| 5189 | amigaos*) |
| 5190 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5191 | # So we just punt and use a minimum line length of 8192. |
| 5192 | lt_cv_sys_max_cmd_len=8192; |
| 5193 | ;; |
| 5194 | |
| 5195 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5196 | # This has been around since 386BSD, at least. Likely further. |
| 5197 | if test -x /sbin/sysctl; then |
| 5198 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5199 | elif test -x /usr/sbin/sysctl; then |
| 5200 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5201 | else |
| 5202 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5203 | fi |
| 5204 | # And add a safety zone |
| 5205 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5206 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5207 | ;; |
| 5208 | |
| 5209 | interix*) |
| 5210 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5211 | lt_cv_sys_max_cmd_len=196608 |
| 5212 | ;; |
| 5213 | |
| 5214 | osf*) |
| 5215 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5216 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5217 | # nice to cause kernel panics so lets avoid the loop below. |
| 5218 | # First set a reasonable default. |
| 5219 | lt_cv_sys_max_cmd_len=16384 |
| 5220 | # |
| 5221 | if test -x /sbin/sysconfig; then |
| 5222 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5223 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5224 | esac |
| 5225 | fi |
| 5226 | ;; |
| 5227 | sco3.2v5*) |
| 5228 | lt_cv_sys_max_cmd_len=102400 |
| 5229 | ;; |
| 5230 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5231 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5232 | if test -n "$kargmax"; then |
| 5233 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5234 | else |
| 5235 | lt_cv_sys_max_cmd_len=32768 |
| 5236 | fi |
| 5237 | ;; |
| 5238 | *) |
| 5239 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5240 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5241 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5242 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5243 | else |
| 5244 | # Make teststring a little bigger before we do anything with it. |
| 5245 | # a 1K string should be a reasonable start. |
| 5246 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5247 | teststring=$teststring$teststring |
| 5248 | done |
| 5249 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5250 | # If test is not a shell built-in, we'll probably end up computing a |
| 5251 | # maximum length that is only half of the actual maximum length, but |
| 5252 | # we can't tell. |
| 5253 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 5254 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 5255 | test $i != 17 # 1/2 MB should be enough |
| 5256 | do |
| 5257 | i=`expr $i + 1` |
| 5258 | teststring=$teststring$teststring |
| 5259 | done |
| 5260 | # Only check the string length outside the loop. |
| 5261 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5262 | teststring= |
| 5263 | # Add a significant safety factor because C++ compilers can tack on |
| 5264 | # massive amounts of additional arguments before passing them to the |
| 5265 | # linker. It appears as though 1/2 is a usable value. |
| 5266 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5267 | fi |
| 5268 | ;; |
| 5269 | esac |
| 5270 | |
| 5271 | fi |
| 5272 | |
| 5273 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5275 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5276 | else |
| 5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5278 | $as_echo "none" >&6; } |
| 5279 | fi |
| 5280 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5281 | |
| 5282 | |
| 5283 | |
| 5284 | |
| 5285 | |
| 5286 | |
| 5287 | : ${CP="cp -f"} |
| 5288 | : ${MV="mv -f"} |
| 5289 | : ${RM="rm -f"} |
| 5290 | |
| 5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5292 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5293 | # Try some XSI features |
| 5294 | xsi_shell=no |
| 5295 | ( _lt_dummy="a/b/c" |
| 5296 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 5297 | = c,a/b,, \ |
| 5298 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5299 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5300 | && xsi_shell=yes |
| 5301 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5302 | $as_echo "$xsi_shell" >&6; } |
| 5303 | |
| 5304 | |
| 5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5306 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5307 | lt_shell_append=no |
| 5308 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5309 | >/dev/null 2>&1 \ |
| 5310 | && lt_shell_append=yes |
| 5311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5312 | $as_echo "$lt_shell_append" >&6; } |
| 5313 | |
| 5314 | |
| 5315 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5316 | lt_unset=unset |
| 5317 | else |
| 5318 | lt_unset=false |
| 5319 | fi |
| 5320 | |
| 5321 | |
| 5322 | |
| 5323 | |
| 5324 | |
| 5325 | # test EBCDIC or ASCII |
| 5326 | case `echo X|tr X '\101'` in |
| 5327 | A) # ASCII based system |
| 5328 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5329 | lt_SP2NL='tr \040 \012' |
| 5330 | lt_NL2SP='tr \015\012 \040\040' |
| 5331 | ;; |
| 5332 | *) # EBCDIC based system |
| 5333 | lt_SP2NL='tr \100 \n' |
| 5334 | lt_NL2SP='tr \r\n \100\100' |
| 5335 | ;; |
| 5336 | esac |
| 5337 | |
| 5338 | |
| 5339 | |
| 5340 | |
| 5341 | |
| 5342 | |
| 5343 | |
| 5344 | |
| 5345 | |
| 5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5347 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5348 | if test "${lt_cv_ld_reload_flag+set}" = set; then : |
| 5349 | $as_echo_n "(cached) " >&6 |
| 5350 | else |
| 5351 | lt_cv_ld_reload_flag='-r' |
| 5352 | fi |
| 5353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5354 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5355 | reload_flag=$lt_cv_ld_reload_flag |
| 5356 | case $reload_flag in |
| 5357 | "" | " "*) ;; |
| 5358 | *) reload_flag=" $reload_flag" ;; |
| 5359 | esac |
| 5360 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5361 | case $host_os in |
| 5362 | darwin*) |
| 5363 | if test "$GCC" = yes; then |
| 5364 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5365 | else |
| 5366 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5367 | fi |
| 5368 | ;; |
| 5369 | esac |
| 5370 | |
| 5371 | |
| 5372 | |
| 5373 | |
| 5374 | |
| 5375 | |
| 5376 | |
| 5377 | |
| 5378 | |
| 5379 | if test -n "$ac_tool_prefix"; then |
| 5380 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5381 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5382 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5383 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5384 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
| 5385 | $as_echo_n "(cached) " >&6 |
| 5386 | else |
| 5387 | if test -n "$OBJDUMP"; then |
| 5388 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5389 | else |
| 5390 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5391 | for as_dir in $PATH |
| 5392 | do |
| 5393 | IFS=$as_save_IFS |
| 5394 | test -z "$as_dir" && as_dir=. |
| 5395 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5396 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5397 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5398 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5399 | break 2 |
| 5400 | fi |
| 5401 | done |
| 5402 | done |
| 5403 | IFS=$as_save_IFS |
| 5404 | |
| 5405 | fi |
| 5406 | fi |
| 5407 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5408 | if test -n "$OBJDUMP"; then |
| 5409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5410 | $as_echo "$OBJDUMP" >&6; } |
| 5411 | else |
| 5412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5413 | $as_echo "no" >&6; } |
| 5414 | fi |
| 5415 | |
| 5416 | |
| 5417 | fi |
| 5418 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5419 | ac_ct_OBJDUMP=$OBJDUMP |
| 5420 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5421 | set dummy objdump; ac_word=$2 |
| 5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5423 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5424 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
| 5425 | $as_echo_n "(cached) " >&6 |
| 5426 | else |
| 5427 | if test -n "$ac_ct_OBJDUMP"; then |
| 5428 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5429 | else |
| 5430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5431 | for as_dir in $PATH |
| 5432 | do |
| 5433 | IFS=$as_save_IFS |
| 5434 | test -z "$as_dir" && as_dir=. |
| 5435 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5436 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5437 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5438 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5439 | break 2 |
| 5440 | fi |
| 5441 | done |
| 5442 | done |
| 5443 | IFS=$as_save_IFS |
| 5444 | |
| 5445 | fi |
| 5446 | fi |
| 5447 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5448 | if test -n "$ac_ct_OBJDUMP"; then |
| 5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5450 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5451 | else |
| 5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5453 | $as_echo "no" >&6; } |
| 5454 | fi |
| 5455 | |
| 5456 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5457 | OBJDUMP="false" |
| 5458 | else |
| 5459 | case $cross_compiling:$ac_tool_warned in |
| 5460 | yes:) |
| 5461 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5462 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5463 | ac_tool_warned=yes ;; |
| 5464 | esac |
| 5465 | OBJDUMP=$ac_ct_OBJDUMP |
| 5466 | fi |
| 5467 | else |
| 5468 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5469 | fi |
| 5470 | |
| 5471 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5472 | |
| 5473 | |
| 5474 | |
| 5475 | |
| 5476 | |
| 5477 | |
| 5478 | |
| 5479 | |
| 5480 | |
| 5481 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5482 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5483 | if test "${lt_cv_deplibs_check_method+set}" = set; then : |
| 5484 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5485 | else |
| 5486 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5487 | lt_cv_file_magic_test_file= |
| 5488 | lt_cv_deplibs_check_method='unknown' |
| 5489 | # Need to set the preceding variable on all platforms that support |
| 5490 | # interlibrary dependencies. |
| 5491 | # 'none' -- dependencies not supported. |
| 5492 | # `unknown' -- same as none, but documents that we really don't know. |
| 5493 | # 'pass_all' -- all dependencies passed with no checks. |
| 5494 | # 'test_compile' -- check by making test program. |
| 5495 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5496 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5497 | # If you have `file' or equivalent on your system and you're not sure |
| 5498 | # whether `pass_all' will *always* work, you probably want this one. |
| 5499 | |
| 5500 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5501 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5502 | lt_cv_deplibs_check_method=pass_all |
| 5503 | ;; |
| 5504 | |
| 5505 | beos*) |
| 5506 | lt_cv_deplibs_check_method=pass_all |
| 5507 | ;; |
| 5508 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5509 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5510 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5511 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5512 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5513 | ;; |
| 5514 | |
| 5515 | cygwin*) |
| 5516 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5517 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5518 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5519 | ;; |
| 5520 | |
| 5521 | mingw* | pw32*) |
| 5522 | # Base MSYS/MinGW do not provide the 'file' command needed by |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5523 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5524 | # unless we find 'file', for example because we are cross-compiling. |
| 5525 | if ( file / ) >/dev/null 2>&1; then |
| 5526 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5527 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5528 | else |
| 5529 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 5530 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5531 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5532 | ;; |
| 5533 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5534 | cegcc) |
| 5535 | # use the weaker test based on 'objdump'. See mingw*. |
| 5536 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5537 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5538 | ;; |
| 5539 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5540 | darwin* | rhapsody*) |
| 5541 | lt_cv_deplibs_check_method=pass_all |
| 5542 | ;; |
| 5543 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5544 | freebsd* | dragonfly*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5545 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5546 | case $host_cpu in |
| 5547 | i*86 ) |
| 5548 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5549 | # Let's accept both of them until this is cleared up. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5550 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5551 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5552 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5553 | ;; |
| 5554 | esac |
| 5555 | else |
| 5556 | lt_cv_deplibs_check_method=pass_all |
| 5557 | fi |
| 5558 | ;; |
| 5559 | |
| 5560 | gnu*) |
| 5561 | lt_cv_deplibs_check_method=pass_all |
| 5562 | ;; |
| 5563 | |
| 5564 | hpux10.20* | hpux11*) |
| 5565 | lt_cv_file_magic_cmd=/usr/bin/file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5566 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5567 | ia64*) |
| 5568 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5569 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5570 | ;; |
| 5571 | hppa*64*) |
| 5572 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' |
| 5573 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5574 | ;; |
| 5575 | *) |
| 5576 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5577 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5578 | ;; |
| 5579 | esac |
| 5580 | ;; |
| 5581 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5582 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5583 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5584 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5585 | ;; |
| 5586 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5587 | irix5* | irix6* | nonstopux*) |
| 5588 | case $LD in |
| 5589 | *-32|*"-32 ") libmagic=32-bit;; |
| 5590 | *-n32|*"-n32 ") libmagic=N32;; |
| 5591 | *-64|*"-64 ") libmagic=64-bit;; |
| 5592 | *) libmagic=never-match;; |
| 5593 | esac |
| 5594 | lt_cv_deplibs_check_method=pass_all |
| 5595 | ;; |
| 5596 | |
| 5597 | # This must be Linux ELF. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5598 | linux* | k*bsd*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5599 | lt_cv_deplibs_check_method=pass_all |
| 5600 | ;; |
| 5601 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 5602 | netbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5603 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5604 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5605 | else |
| 5606 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5607 | fi |
| 5608 | ;; |
| 5609 | |
| 5610 | newos6*) |
| 5611 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5612 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5613 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5614 | ;; |
| 5615 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5616 | *nto* | *qnx*) |
| 5617 | lt_cv_deplibs_check_method=pass_all |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5618 | ;; |
| 5619 | |
| 5620 | openbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5621 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5622 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5623 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5624 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5625 | fi |
| 5626 | ;; |
| 5627 | |
| 5628 | osf3* | osf4* | osf5*) |
| 5629 | lt_cv_deplibs_check_method=pass_all |
| 5630 | ;; |
| 5631 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5632 | rdos*) |
| 5633 | lt_cv_deplibs_check_method=pass_all |
| 5634 | ;; |
| 5635 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5636 | solaris*) |
| 5637 | lt_cv_deplibs_check_method=pass_all |
| 5638 | ;; |
| 5639 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5640 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5641 | lt_cv_deplibs_check_method=pass_all |
| 5642 | ;; |
| 5643 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5644 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5645 | case $host_vendor in |
| 5646 | motorola) |
| 5647 | 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]' |
| 5648 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5649 | ;; |
| 5650 | ncr) |
| 5651 | lt_cv_deplibs_check_method=pass_all |
| 5652 | ;; |
| 5653 | sequent) |
| 5654 | lt_cv_file_magic_cmd='/bin/file' |
| 5655 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5656 | ;; |
| 5657 | sni) |
| 5658 | lt_cv_file_magic_cmd='/bin/file' |
| 5659 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5660 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5661 | ;; |
| 5662 | siemens) |
| 5663 | lt_cv_deplibs_check_method=pass_all |
| 5664 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5665 | pc) |
| 5666 | lt_cv_deplibs_check_method=pass_all |
| 5667 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5668 | esac |
| 5669 | ;; |
| 5670 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5671 | tpf*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5672 | lt_cv_deplibs_check_method=pass_all |
| 5673 | ;; |
| 5674 | esac |
| 5675 | |
| 5676 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5678 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5679 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5680 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5681 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5682 | |
| 5683 | |
| 5684 | |
| 5685 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5686 | |
| 5687 | |
| 5688 | |
| 5689 | |
| 5690 | |
| 5691 | |
| 5692 | |
| 5693 | |
| 5694 | if test -n "$ac_tool_prefix"; then |
| 5695 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5696 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5698 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5699 | if test "${ac_cv_prog_AR+set}" = set; then : |
| 5700 | $as_echo_n "(cached) " >&6 |
| 5701 | else |
| 5702 | if test -n "$AR"; then |
| 5703 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5704 | else |
| 5705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5706 | for as_dir in $PATH |
| 5707 | do |
| 5708 | IFS=$as_save_IFS |
| 5709 | test -z "$as_dir" && as_dir=. |
| 5710 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5711 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5712 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5713 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5714 | break 2 |
| 5715 | fi |
| 5716 | done |
| 5717 | done |
| 5718 | IFS=$as_save_IFS |
| 5719 | |
| 5720 | fi |
| 5721 | fi |
| 5722 | AR=$ac_cv_prog_AR |
| 5723 | if test -n "$AR"; then |
| 5724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5725 | $as_echo "$AR" >&6; } |
| 5726 | else |
| 5727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5728 | $as_echo "no" >&6; } |
| 5729 | fi |
| 5730 | |
| 5731 | |
| 5732 | fi |
| 5733 | if test -z "$ac_cv_prog_AR"; then |
| 5734 | ac_ct_AR=$AR |
| 5735 | # Extract the first word of "ar", so it can be a program name with args. |
| 5736 | set dummy ar; ac_word=$2 |
| 5737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5738 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5739 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| 5740 | $as_echo_n "(cached) " >&6 |
| 5741 | else |
| 5742 | if test -n "$ac_ct_AR"; then |
| 5743 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5744 | else |
| 5745 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5746 | for as_dir in $PATH |
| 5747 | do |
| 5748 | IFS=$as_save_IFS |
| 5749 | test -z "$as_dir" && as_dir=. |
| 5750 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5751 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5752 | ac_cv_prog_ac_ct_AR="ar" |
| 5753 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5754 | break 2 |
| 5755 | fi |
| 5756 | done |
| 5757 | done |
| 5758 | IFS=$as_save_IFS |
| 5759 | |
| 5760 | fi |
| 5761 | fi |
| 5762 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5763 | if test -n "$ac_ct_AR"; then |
| 5764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5765 | $as_echo "$ac_ct_AR" >&6; } |
| 5766 | else |
| 5767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5768 | $as_echo "no" >&6; } |
| 5769 | fi |
| 5770 | |
| 5771 | if test "x$ac_ct_AR" = x; then |
| 5772 | AR="false" |
| 5773 | else |
| 5774 | case $cross_compiling:$ac_tool_warned in |
| 5775 | yes:) |
| 5776 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5777 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5778 | ac_tool_warned=yes ;; |
| 5779 | esac |
| 5780 | AR=$ac_ct_AR |
| 5781 | fi |
| 5782 | else |
| 5783 | AR="$ac_cv_prog_AR" |
| 5784 | fi |
| 5785 | |
| 5786 | test -z "$AR" && AR=ar |
| 5787 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5788 | |
| 5789 | |
| 5790 | |
| 5791 | |
| 5792 | |
| 5793 | |
| 5794 | |
| 5795 | |
| 5796 | |
| 5797 | |
| 5798 | |
| 5799 | if test -n "$ac_tool_prefix"; then |
| 5800 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5801 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5803 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5804 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 5805 | $as_echo_n "(cached) " >&6 |
| 5806 | else |
| 5807 | if test -n "$STRIP"; then |
| 5808 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5809 | else |
| 5810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5811 | for as_dir in $PATH |
| 5812 | do |
| 5813 | IFS=$as_save_IFS |
| 5814 | test -z "$as_dir" && as_dir=. |
| 5815 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5816 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5817 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5819 | break 2 |
| 5820 | fi |
| 5821 | done |
| 5822 | done |
| 5823 | IFS=$as_save_IFS |
| 5824 | |
| 5825 | fi |
| 5826 | fi |
| 5827 | STRIP=$ac_cv_prog_STRIP |
| 5828 | if test -n "$STRIP"; then |
| 5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5830 | $as_echo "$STRIP" >&6; } |
| 5831 | else |
| 5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5833 | $as_echo "no" >&6; } |
| 5834 | fi |
| 5835 | |
| 5836 | |
| 5837 | fi |
| 5838 | if test -z "$ac_cv_prog_STRIP"; then |
| 5839 | ac_ct_STRIP=$STRIP |
| 5840 | # Extract the first word of "strip", so it can be a program name with args. |
| 5841 | set dummy strip; ac_word=$2 |
| 5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5843 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5844 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 5845 | $as_echo_n "(cached) " >&6 |
| 5846 | else |
| 5847 | if test -n "$ac_ct_STRIP"; then |
| 5848 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5849 | else |
| 5850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5851 | for as_dir in $PATH |
| 5852 | do |
| 5853 | IFS=$as_save_IFS |
| 5854 | test -z "$as_dir" && as_dir=. |
| 5855 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5856 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5857 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5859 | break 2 |
| 5860 | fi |
| 5861 | done |
| 5862 | done |
| 5863 | IFS=$as_save_IFS |
| 5864 | |
| 5865 | fi |
| 5866 | fi |
| 5867 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5868 | if test -n "$ac_ct_STRIP"; then |
| 5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5870 | $as_echo "$ac_ct_STRIP" >&6; } |
| 5871 | else |
| 5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5873 | $as_echo "no" >&6; } |
| 5874 | fi |
| 5875 | |
| 5876 | if test "x$ac_ct_STRIP" = x; then |
| 5877 | STRIP=":" |
| 5878 | else |
| 5879 | case $cross_compiling:$ac_tool_warned in |
| 5880 | yes:) |
| 5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5882 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5883 | ac_tool_warned=yes ;; |
| 5884 | esac |
| 5885 | STRIP=$ac_ct_STRIP |
| 5886 | fi |
| 5887 | else |
| 5888 | STRIP="$ac_cv_prog_STRIP" |
| 5889 | fi |
| 5890 | |
| 5891 | test -z "$STRIP" && STRIP=: |
| 5892 | |
| 5893 | |
| 5894 | |
| 5895 | |
| 5896 | |
| 5897 | |
| 5898 | if test -n "$ac_tool_prefix"; then |
| 5899 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5900 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5902 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5903 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 5904 | $as_echo_n "(cached) " >&6 |
| 5905 | else |
| 5906 | if test -n "$RANLIB"; then |
| 5907 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5908 | else |
| 5909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5910 | for as_dir in $PATH |
| 5911 | do |
| 5912 | IFS=$as_save_IFS |
| 5913 | test -z "$as_dir" && as_dir=. |
| 5914 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5916 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5918 | break 2 |
| 5919 | fi |
| 5920 | done |
| 5921 | done |
| 5922 | IFS=$as_save_IFS |
| 5923 | |
| 5924 | fi |
| 5925 | fi |
| 5926 | RANLIB=$ac_cv_prog_RANLIB |
| 5927 | if test -n "$RANLIB"; then |
| 5928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5929 | $as_echo "$RANLIB" >&6; } |
| 5930 | else |
| 5931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5932 | $as_echo "no" >&6; } |
| 5933 | fi |
| 5934 | |
| 5935 | |
| 5936 | fi |
| 5937 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5938 | ac_ct_RANLIB=$RANLIB |
| 5939 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5940 | set dummy ranlib; ac_word=$2 |
| 5941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5942 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5943 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 5944 | $as_echo_n "(cached) " >&6 |
| 5945 | else |
| 5946 | if test -n "$ac_ct_RANLIB"; then |
| 5947 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5948 | else |
| 5949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5950 | for as_dir in $PATH |
| 5951 | do |
| 5952 | IFS=$as_save_IFS |
| 5953 | test -z "$as_dir" && as_dir=. |
| 5954 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5955 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5956 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5958 | break 2 |
| 5959 | fi |
| 5960 | done |
| 5961 | done |
| 5962 | IFS=$as_save_IFS |
| 5963 | |
| 5964 | fi |
| 5965 | fi |
| 5966 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5967 | if test -n "$ac_ct_RANLIB"; then |
| 5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5969 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 5970 | else |
| 5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5972 | $as_echo "no" >&6; } |
| 5973 | fi |
| 5974 | |
| 5975 | if test "x$ac_ct_RANLIB" = x; then |
| 5976 | RANLIB=":" |
| 5977 | else |
| 5978 | case $cross_compiling:$ac_tool_warned in |
| 5979 | yes:) |
| 5980 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5981 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5982 | ac_tool_warned=yes ;; |
| 5983 | esac |
| 5984 | RANLIB=$ac_ct_RANLIB |
| 5985 | fi |
| 5986 | else |
| 5987 | RANLIB="$ac_cv_prog_RANLIB" |
| 5988 | fi |
| 5989 | |
| 5990 | test -z "$RANLIB" && RANLIB=: |
| 5991 | |
| 5992 | |
| 5993 | |
| 5994 | |
| 5995 | |
| 5996 | |
| 5997 | # Determine commands to create old-style static archives. |
| 5998 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 5999 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6000 | old_postuninstall_cmds= |
| 6001 | |
| 6002 | if test -n "$RANLIB"; then |
| 6003 | case $host_os in |
| 6004 | openbsd*) |
| 6005 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 6006 | ;; |
| 6007 | *) |
| 6008 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 6009 | ;; |
| 6010 | esac |
| 6011 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6012 | fi |
| 6013 | |
| 6014 | |
| 6015 | |
| 6016 | |
| 6017 | |
| 6018 | |
| 6019 | |
| 6020 | |
| 6021 | |
| 6022 | |
| 6023 | |
| 6024 | |
| 6025 | |
| 6026 | |
| 6027 | |
| 6028 | |
| 6029 | |
| 6030 | |
| 6031 | |
| 6032 | |
| 6033 | |
| 6034 | |
| 6035 | |
| 6036 | |
| 6037 | |
| 6038 | |
| 6039 | |
| 6040 | |
| 6041 | |
| 6042 | |
| 6043 | |
| 6044 | |
| 6045 | |
| 6046 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6047 | # If no C compiler was specified, use CC. |
| 6048 | LTCC=${LTCC-"$CC"} |
| 6049 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6050 | # If no C compiler flags were specified, use CFLAGS. |
| 6051 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6052 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6053 | # Allow CC to be a program name with arguments. |
| 6054 | compiler=$CC |
| 6055 | |
| 6056 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6057 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6059 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6060 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
| 6061 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6062 | else |
| 6063 | |
| 6064 | # These are sane defaults that work on at least a few old systems. |
| 6065 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6066 | |
| 6067 | # Character class describing NM global symbol codes. |
| 6068 | symcode='[BCDEGRST]' |
| 6069 | |
| 6070 | # Regexp to match symbols that can be accessed directly from C. |
| 6071 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6072 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6073 | # Define system-specific variables. |
| 6074 | case $host_os in |
| 6075 | aix*) |
| 6076 | symcode='[BCDT]' |
| 6077 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6078 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6079 | symcode='[ABCDGISTW]' |
| 6080 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6081 | hpux*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6082 | if test "$host_cpu" = ia64; then |
| 6083 | symcode='[ABCDEGRST]' |
| 6084 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6085 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6086 | irix* | nonstopux*) |
| 6087 | symcode='[BCDEGRST]' |
| 6088 | ;; |
| 6089 | osf*) |
| 6090 | symcode='[BCDEGQRST]' |
| 6091 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6092 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6093 | symcode='[BDRT]' |
| 6094 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6095 | sco3.2v5*) |
| 6096 | symcode='[DT]' |
| 6097 | ;; |
| 6098 | sysv4.2uw2*) |
| 6099 | symcode='[DT]' |
| 6100 | ;; |
| 6101 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6102 | symcode='[ABDT]' |
| 6103 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6104 | sysv4) |
| 6105 | symcode='[DFNSTU]' |
| 6106 | ;; |
| 6107 | esac |
| 6108 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6109 | # If we're using GNU nm, then use its standard symbol codes. |
| 6110 | case `$NM -V 2>&1` in |
| 6111 | *GNU* | *'with BFD'*) |
| 6112 | symcode='[ABCDGIRSTW]' ;; |
| 6113 | esac |
| 6114 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6115 | # Transform an extracted symbol line into a proper C declaration. |
| 6116 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6117 | # so use this general approach. |
| 6118 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6119 | |
| 6120 | # Transform an extracted symbol line into symbol name and symbol address |
| 6121 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6122 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
| 6123 | |
| 6124 | # Handle CRLF in mingw tool chain |
| 6125 | opt_cr= |
| 6126 | case $build_os in |
| 6127 | mingw*) |
| 6128 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6129 | ;; |
| 6130 | esac |
| 6131 | |
| 6132 | # Try without a prefix underscore, then with it. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6133 | for ac_symprfx in "" "_"; do |
| 6134 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6135 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6136 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6137 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6138 | # Write the raw and C identifiers. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6139 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6140 | # Fake it for dumpbin and say T for any non-static function |
| 6141 | # and D for any global variable. |
| 6142 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6143 | # which start with @ or ?. |
| 6144 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6145 | " {last_section=section; section=\$ 3};"\ |
| 6146 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6147 | " \$ 0!~/External *\|/{next};"\ |
| 6148 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6149 | " {if(hide[section]) next};"\ |
| 6150 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6151 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6152 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6153 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6154 | " ' prfx=^$ac_symprfx" |
| 6155 | else |
| 6156 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6157 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6158 | |
| 6159 | # Check to see that the pipe works correctly. |
| 6160 | pipe_works=no |
| 6161 | |
| 6162 | rm -f conftest* |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6163 | cat > conftest.$ac_ext <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6164 | #ifdef __cplusplus |
| 6165 | extern "C" { |
| 6166 | #endif |
| 6167 | char nm_test_var; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6168 | void nm_test_func(void); |
| 6169 | void nm_test_func(void){} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6170 | #ifdef __cplusplus |
| 6171 | } |
| 6172 | #endif |
| 6173 | int main(){nm_test_var='a';nm_test_func();return(0);} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6174 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6175 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6176 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6177 | (eval $ac_compile) 2>&5 |
| 6178 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6179 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6180 | test $ac_status = 0; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6181 | # Now try to grab the symbols. |
| 6182 | nlist=conftest.nm |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6183 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6184 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6185 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6186 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6187 | test $ac_status = 0; } && test -s "$nlist"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6188 | # Try sorting and uniquifying the output. |
| 6189 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6190 | mv -f "$nlist"T "$nlist" |
| 6191 | else |
| 6192 | rm -f "$nlist"T |
| 6193 | fi |
| 6194 | |
| 6195 | # Make sure that we snagged all the symbols we need. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6196 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6197 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6198 | cat <<_LT_EOF > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6199 | #ifdef __cplusplus |
| 6200 | extern "C" { |
| 6201 | #endif |
| 6202 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6203 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6204 | # Now generate the symbol file. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6205 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6206 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6207 | cat <<_LT_EOF >> conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6208 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6209 | /* The mapping between symbol names and symbols. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6210 | const struct { |
| 6211 | const char *name; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6212 | void *address; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6213 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6214 | lt__PROGRAM__LTX_preloaded_symbols[] = |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6215 | { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6216 | { "@PROGRAM@", (void *) 0 }, |
| 6217 | _LT_EOF |
| 6218 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6219 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6220 | {0, (void *) 0} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6221 | }; |
| 6222 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6223 | /* This works around a problem in FreeBSD linker */ |
| 6224 | #ifdef FREEBSD_WORKAROUND |
| 6225 | static const void *lt_preloaded_setup() { |
| 6226 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6227 | } |
| 6228 | #endif |
| 6229 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6230 | #ifdef __cplusplus |
| 6231 | } |
| 6232 | #endif |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6233 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6234 | # Now try linking the two files. |
| 6235 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6236 | lt_save_LIBS="$LIBS" |
| 6237 | lt_save_CFLAGS="$CFLAGS" |
| 6238 | LIBS="conftstm.$ac_objext" |
| 6239 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6240 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6241 | (eval $ac_link) 2>&5 |
| 6242 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6244 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6245 | pipe_works=yes |
| 6246 | fi |
| 6247 | LIBS="$lt_save_LIBS" |
| 6248 | CFLAGS="$lt_save_CFLAGS" |
| 6249 | else |
| 6250 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6251 | fi |
| 6252 | else |
| 6253 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6254 | fi |
| 6255 | else |
| 6256 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6257 | fi |
| 6258 | else |
| 6259 | echo "$progname: failed program was:" >&5 |
| 6260 | cat conftest.$ac_ext >&5 |
| 6261 | fi |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 6262 | rm -rf conftest* conftst* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6263 | |
| 6264 | # Do not use the global_symbol_pipe unless it works. |
| 6265 | if test "$pipe_works" = yes; then |
| 6266 | break |
| 6267 | else |
| 6268 | lt_cv_sys_global_symbol_pipe= |
| 6269 | fi |
| 6270 | done |
| 6271 | |
| 6272 | fi |
| 6273 | |
| 6274 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6275 | lt_cv_sys_global_symbol_to_cdecl= |
| 6276 | fi |
| 6277 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6278 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6279 | $as_echo "failed" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6280 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6281 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6282 | $as_echo "ok" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6283 | fi |
| 6284 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6285 | |
| 6286 | |
| 6287 | |
| 6288 | |
| 6289 | |
| 6290 | |
| 6291 | |
| 6292 | |
| 6293 | |
| 6294 | |
| 6295 | |
| 6296 | |
| 6297 | |
| 6298 | |
| 6299 | |
| 6300 | |
| 6301 | |
| 6302 | |
| 6303 | |
| 6304 | |
| 6305 | |
| 6306 | |
| 6307 | # Check whether --enable-libtool-lock was given. |
| 6308 | if test "${enable_libtool_lock+set}" = set; then : |
| 6309 | enableval=$enable_libtool_lock; |
| 6310 | fi |
| 6311 | |
| 6312 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6313 | |
| 6314 | # Some flags need to be propagated to the compiler or linker for good |
| 6315 | # libtool support. |
| 6316 | case $host in |
| 6317 | ia64-*-hpux*) |
| 6318 | # Find out which ABI we are using. |
| 6319 | echo 'int i;' > conftest.$ac_ext |
| 6320 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6321 | (eval $ac_compile) 2>&5 |
| 6322 | ac_status=$? |
| 6323 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6324 | test $ac_status = 0; }; then |
| 6325 | case `/usr/bin/file conftest.$ac_objext` in |
| 6326 | *ELF-32*) |
| 6327 | HPUX_IA64_MODE="32" |
| 6328 | ;; |
| 6329 | *ELF-64*) |
| 6330 | HPUX_IA64_MODE="64" |
| 6331 | ;; |
| 6332 | esac |
| 6333 | fi |
| 6334 | rm -rf conftest* |
| 6335 | ;; |
| 6336 | *-*-irix6*) |
| 6337 | # Find out which ABI we are using. |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 6338 | echo '#line 6338 "configure"' > conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6339 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6340 | (eval $ac_compile) 2>&5 |
| 6341 | ac_status=$? |
| 6342 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6343 | test $ac_status = 0; }; then |
| 6344 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6345 | case `/usr/bin/file conftest.$ac_objext` in |
| 6346 | *32-bit*) |
| 6347 | LD="${LD-ld} -melf32bsmip" |
| 6348 | ;; |
| 6349 | *N32*) |
| 6350 | LD="${LD-ld} -melf32bmipn32" |
| 6351 | ;; |
| 6352 | *64-bit*) |
| 6353 | LD="${LD-ld} -melf64bmip" |
| 6354 | ;; |
| 6355 | esac |
| 6356 | else |
| 6357 | case `/usr/bin/file conftest.$ac_objext` in |
| 6358 | *32-bit*) |
| 6359 | LD="${LD-ld} -32" |
| 6360 | ;; |
| 6361 | *N32*) |
| 6362 | LD="${LD-ld} -n32" |
| 6363 | ;; |
| 6364 | *64-bit*) |
| 6365 | LD="${LD-ld} -64" |
| 6366 | ;; |
| 6367 | esac |
| 6368 | fi |
| 6369 | fi |
| 6370 | rm -rf conftest* |
| 6371 | ;; |
| 6372 | |
| 6373 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6374 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6375 | # Find out which ABI we are using. |
| 6376 | echo 'int i;' > conftest.$ac_ext |
| 6377 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6378 | (eval $ac_compile) 2>&5 |
| 6379 | ac_status=$? |
| 6380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6381 | test $ac_status = 0; }; then |
| 6382 | case `/usr/bin/file conftest.o` in |
| 6383 | *32-bit*) |
| 6384 | case $host in |
| 6385 | x86_64-*kfreebsd*-gnu) |
| 6386 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6387 | ;; |
| 6388 | x86_64-*linux*) |
| 6389 | LD="${LD-ld} -m elf_i386" |
| 6390 | ;; |
| 6391 | ppc64-*linux*|powerpc64-*linux*) |
| 6392 | LD="${LD-ld} -m elf32ppclinux" |
| 6393 | ;; |
| 6394 | s390x-*linux*) |
| 6395 | LD="${LD-ld} -m elf_s390" |
| 6396 | ;; |
| 6397 | sparc64-*linux*) |
| 6398 | LD="${LD-ld} -m elf32_sparc" |
| 6399 | ;; |
| 6400 | esac |
| 6401 | ;; |
| 6402 | *64-bit*) |
| 6403 | case $host in |
| 6404 | x86_64-*kfreebsd*-gnu) |
| 6405 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6406 | ;; |
| 6407 | x86_64-*linux*) |
| 6408 | LD="${LD-ld} -m elf_x86_64" |
| 6409 | ;; |
| 6410 | ppc*-*linux*|powerpc*-*linux*) |
| 6411 | LD="${LD-ld} -m elf64ppc" |
| 6412 | ;; |
| 6413 | s390*-*linux*|s390*-*tpf*) |
| 6414 | LD="${LD-ld} -m elf64_s390" |
| 6415 | ;; |
| 6416 | sparc*-*linux*) |
| 6417 | LD="${LD-ld} -m elf64_sparc" |
| 6418 | ;; |
| 6419 | esac |
| 6420 | ;; |
| 6421 | esac |
| 6422 | fi |
| 6423 | rm -rf conftest* |
| 6424 | ;; |
| 6425 | |
| 6426 | *-*-sco3.2v5*) |
| 6427 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6428 | SAVE_CFLAGS="$CFLAGS" |
| 6429 | CFLAGS="$CFLAGS -belf" |
| 6430 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6431 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6432 | if test "${lt_cv_cc_needs_belf+set}" = set; then : |
| 6433 | $as_echo_n "(cached) " >&6 |
| 6434 | else |
| 6435 | ac_ext=c |
| 6436 | ac_cpp='$CPP $CPPFLAGS' |
| 6437 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6438 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6439 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6440 | |
| 6441 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6442 | /* end confdefs.h. */ |
| 6443 | |
| 6444 | int |
| 6445 | main () |
| 6446 | { |
| 6447 | |
| 6448 | ; |
| 6449 | return 0; |
| 6450 | } |
| 6451 | _ACEOF |
| 6452 | if ac_fn_c_try_link "$LINENO"; then : |
| 6453 | lt_cv_cc_needs_belf=yes |
| 6454 | else |
| 6455 | lt_cv_cc_needs_belf=no |
| 6456 | fi |
| 6457 | rm -f core conftest.err conftest.$ac_objext \ |
| 6458 | conftest$ac_exeext conftest.$ac_ext |
| 6459 | ac_ext=c |
| 6460 | ac_cpp='$CPP $CPPFLAGS' |
| 6461 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6462 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6463 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6464 | |
| 6465 | fi |
| 6466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6467 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6468 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6469 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6470 | CFLAGS="$SAVE_CFLAGS" |
| 6471 | fi |
| 6472 | ;; |
| 6473 | sparc*-*solaris*) |
| 6474 | # Find out which ABI we are using. |
| 6475 | echo 'int i;' > conftest.$ac_ext |
| 6476 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6477 | (eval $ac_compile) 2>&5 |
| 6478 | ac_status=$? |
| 6479 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6480 | test $ac_status = 0; }; then |
| 6481 | case `/usr/bin/file conftest.o` in |
| 6482 | *64-bit*) |
| 6483 | case $lt_cv_prog_gnu_ld in |
| 6484 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 6485 | *) |
| 6486 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6487 | LD="${LD-ld} -64" |
| 6488 | fi |
| 6489 | ;; |
| 6490 | esac |
| 6491 | ;; |
| 6492 | esac |
| 6493 | fi |
| 6494 | rm -rf conftest* |
| 6495 | ;; |
| 6496 | esac |
| 6497 | |
| 6498 | need_locks="$enable_libtool_lock" |
| 6499 | |
| 6500 | |
| 6501 | case $host_os in |
| 6502 | rhapsody* | darwin*) |
| 6503 | if test -n "$ac_tool_prefix"; then |
| 6504 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6505 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6507 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6508 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
| 6509 | $as_echo_n "(cached) " >&6 |
| 6510 | else |
| 6511 | if test -n "$DSYMUTIL"; then |
| 6512 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6513 | else |
| 6514 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6515 | for as_dir in $PATH |
| 6516 | do |
| 6517 | IFS=$as_save_IFS |
| 6518 | test -z "$as_dir" && as_dir=. |
| 6519 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6520 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6521 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6522 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6523 | break 2 |
| 6524 | fi |
| 6525 | done |
| 6526 | done |
| 6527 | IFS=$as_save_IFS |
| 6528 | |
| 6529 | fi |
| 6530 | fi |
| 6531 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6532 | if test -n "$DSYMUTIL"; then |
| 6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 6534 | $as_echo "$DSYMUTIL" >&6; } |
| 6535 | else |
| 6536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6537 | $as_echo "no" >&6; } |
| 6538 | fi |
| 6539 | |
| 6540 | |
| 6541 | fi |
| 6542 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6543 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6544 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6545 | set dummy dsymutil; ac_word=$2 |
| 6546 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6547 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6548 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
| 6549 | $as_echo_n "(cached) " >&6 |
| 6550 | else |
| 6551 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6552 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6553 | else |
| 6554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6555 | for as_dir in $PATH |
| 6556 | do |
| 6557 | IFS=$as_save_IFS |
| 6558 | test -z "$as_dir" && as_dir=. |
| 6559 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6560 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6561 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6562 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6563 | break 2 |
| 6564 | fi |
| 6565 | done |
| 6566 | done |
| 6567 | IFS=$as_save_IFS |
| 6568 | |
| 6569 | fi |
| 6570 | fi |
| 6571 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6572 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 6574 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 6575 | else |
| 6576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6577 | $as_echo "no" >&6; } |
| 6578 | fi |
| 6579 | |
| 6580 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6581 | DSYMUTIL=":" |
| 6582 | else |
| 6583 | case $cross_compiling:$ac_tool_warned in |
| 6584 | yes:) |
| 6585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6586 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6587 | ac_tool_warned=yes ;; |
| 6588 | esac |
| 6589 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6590 | fi |
| 6591 | else |
| 6592 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6593 | fi |
| 6594 | |
| 6595 | if test -n "$ac_tool_prefix"; then |
| 6596 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6597 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 6598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6599 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6600 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
| 6601 | $as_echo_n "(cached) " >&6 |
| 6602 | else |
| 6603 | if test -n "$NMEDIT"; then |
| 6604 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6605 | else |
| 6606 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6607 | for as_dir in $PATH |
| 6608 | do |
| 6609 | IFS=$as_save_IFS |
| 6610 | test -z "$as_dir" && as_dir=. |
| 6611 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6612 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6613 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 6614 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6615 | break 2 |
| 6616 | fi |
| 6617 | done |
| 6618 | done |
| 6619 | IFS=$as_save_IFS |
| 6620 | |
| 6621 | fi |
| 6622 | fi |
| 6623 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6624 | if test -n "$NMEDIT"; then |
| 6625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 6626 | $as_echo "$NMEDIT" >&6; } |
| 6627 | else |
| 6628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6629 | $as_echo "no" >&6; } |
| 6630 | fi |
| 6631 | |
| 6632 | |
| 6633 | fi |
| 6634 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6635 | ac_ct_NMEDIT=$NMEDIT |
| 6636 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6637 | set dummy nmedit; ac_word=$2 |
| 6638 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6639 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6640 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
| 6641 | $as_echo_n "(cached) " >&6 |
| 6642 | else |
| 6643 | if test -n "$ac_ct_NMEDIT"; then |
| 6644 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6645 | else |
| 6646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6647 | for as_dir in $PATH |
| 6648 | do |
| 6649 | IFS=$as_save_IFS |
| 6650 | test -z "$as_dir" && as_dir=. |
| 6651 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6652 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6653 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 6654 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6655 | break 2 |
| 6656 | fi |
| 6657 | done |
| 6658 | done |
| 6659 | IFS=$as_save_IFS |
| 6660 | |
| 6661 | fi |
| 6662 | fi |
| 6663 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6664 | if test -n "$ac_ct_NMEDIT"; then |
| 6665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 6666 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 6667 | else |
| 6668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6669 | $as_echo "no" >&6; } |
| 6670 | fi |
| 6671 | |
| 6672 | if test "x$ac_ct_NMEDIT" = x; then |
| 6673 | NMEDIT=":" |
| 6674 | else |
| 6675 | case $cross_compiling:$ac_tool_warned in |
| 6676 | yes:) |
| 6677 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6678 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6679 | ac_tool_warned=yes ;; |
| 6680 | esac |
| 6681 | NMEDIT=$ac_ct_NMEDIT |
| 6682 | fi |
| 6683 | else |
| 6684 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6685 | fi |
| 6686 | |
| 6687 | if test -n "$ac_tool_prefix"; then |
| 6688 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6689 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 6690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6691 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6692 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
| 6693 | $as_echo_n "(cached) " >&6 |
| 6694 | else |
| 6695 | if test -n "$LIPO"; then |
| 6696 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6697 | else |
| 6698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6699 | for as_dir in $PATH |
| 6700 | do |
| 6701 | IFS=$as_save_IFS |
| 6702 | test -z "$as_dir" && as_dir=. |
| 6703 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6705 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 6706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6707 | break 2 |
| 6708 | fi |
| 6709 | done |
| 6710 | done |
| 6711 | IFS=$as_save_IFS |
| 6712 | |
| 6713 | fi |
| 6714 | fi |
| 6715 | LIPO=$ac_cv_prog_LIPO |
| 6716 | if test -n "$LIPO"; then |
| 6717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 6718 | $as_echo "$LIPO" >&6; } |
| 6719 | else |
| 6720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6721 | $as_echo "no" >&6; } |
| 6722 | fi |
| 6723 | |
| 6724 | |
| 6725 | fi |
| 6726 | if test -z "$ac_cv_prog_LIPO"; then |
| 6727 | ac_ct_LIPO=$LIPO |
| 6728 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6729 | set dummy lipo; ac_word=$2 |
| 6730 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6731 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6732 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
| 6733 | $as_echo_n "(cached) " >&6 |
| 6734 | else |
| 6735 | if test -n "$ac_ct_LIPO"; then |
| 6736 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6737 | else |
| 6738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6739 | for as_dir in $PATH |
| 6740 | do |
| 6741 | IFS=$as_save_IFS |
| 6742 | test -z "$as_dir" && as_dir=. |
| 6743 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6745 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 6746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6747 | break 2 |
| 6748 | fi |
| 6749 | done |
| 6750 | done |
| 6751 | IFS=$as_save_IFS |
| 6752 | |
| 6753 | fi |
| 6754 | fi |
| 6755 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6756 | if test -n "$ac_ct_LIPO"; then |
| 6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 6758 | $as_echo "$ac_ct_LIPO" >&6; } |
| 6759 | else |
| 6760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6761 | $as_echo "no" >&6; } |
| 6762 | fi |
| 6763 | |
| 6764 | if test "x$ac_ct_LIPO" = x; then |
| 6765 | LIPO=":" |
| 6766 | else |
| 6767 | case $cross_compiling:$ac_tool_warned in |
| 6768 | yes:) |
| 6769 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6770 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6771 | ac_tool_warned=yes ;; |
| 6772 | esac |
| 6773 | LIPO=$ac_ct_LIPO |
| 6774 | fi |
| 6775 | else |
| 6776 | LIPO="$ac_cv_prog_LIPO" |
| 6777 | fi |
| 6778 | |
| 6779 | if test -n "$ac_tool_prefix"; then |
| 6780 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6781 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 6782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6783 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6784 | if test "${ac_cv_prog_OTOOL+set}" = set; then : |
| 6785 | $as_echo_n "(cached) " >&6 |
| 6786 | else |
| 6787 | if test -n "$OTOOL"; then |
| 6788 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6789 | else |
| 6790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6791 | for as_dir in $PATH |
| 6792 | do |
| 6793 | IFS=$as_save_IFS |
| 6794 | test -z "$as_dir" && as_dir=. |
| 6795 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6796 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6797 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 6798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6799 | break 2 |
| 6800 | fi |
| 6801 | done |
| 6802 | done |
| 6803 | IFS=$as_save_IFS |
| 6804 | |
| 6805 | fi |
| 6806 | fi |
| 6807 | OTOOL=$ac_cv_prog_OTOOL |
| 6808 | if test -n "$OTOOL"; then |
| 6809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 6810 | $as_echo "$OTOOL" >&6; } |
| 6811 | else |
| 6812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6813 | $as_echo "no" >&6; } |
| 6814 | fi |
| 6815 | |
| 6816 | |
| 6817 | fi |
| 6818 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6819 | ac_ct_OTOOL=$OTOOL |
| 6820 | # Extract the first word of "otool", so it can be a program name with args. |
| 6821 | set dummy otool; ac_word=$2 |
| 6822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6823 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6824 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
| 6825 | $as_echo_n "(cached) " >&6 |
| 6826 | else |
| 6827 | if test -n "$ac_ct_OTOOL"; then |
| 6828 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6829 | else |
| 6830 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6831 | for as_dir in $PATH |
| 6832 | do |
| 6833 | IFS=$as_save_IFS |
| 6834 | test -z "$as_dir" && as_dir=. |
| 6835 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6836 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6837 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 6838 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6839 | break 2 |
| 6840 | fi |
| 6841 | done |
| 6842 | done |
| 6843 | IFS=$as_save_IFS |
| 6844 | |
| 6845 | fi |
| 6846 | fi |
| 6847 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6848 | if test -n "$ac_ct_OTOOL"; then |
| 6849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 6850 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 6851 | else |
| 6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6853 | $as_echo "no" >&6; } |
| 6854 | fi |
| 6855 | |
| 6856 | if test "x$ac_ct_OTOOL" = x; then |
| 6857 | OTOOL=":" |
| 6858 | else |
| 6859 | case $cross_compiling:$ac_tool_warned in |
| 6860 | yes:) |
| 6861 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6862 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6863 | ac_tool_warned=yes ;; |
| 6864 | esac |
| 6865 | OTOOL=$ac_ct_OTOOL |
| 6866 | fi |
| 6867 | else |
| 6868 | OTOOL="$ac_cv_prog_OTOOL" |
| 6869 | fi |
| 6870 | |
| 6871 | if test -n "$ac_tool_prefix"; then |
| 6872 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6873 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 6874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6875 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6876 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : |
| 6877 | $as_echo_n "(cached) " >&6 |
| 6878 | else |
| 6879 | if test -n "$OTOOL64"; then |
| 6880 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6881 | else |
| 6882 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6883 | for as_dir in $PATH |
| 6884 | do |
| 6885 | IFS=$as_save_IFS |
| 6886 | test -z "$as_dir" && as_dir=. |
| 6887 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6888 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6889 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 6890 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6891 | break 2 |
| 6892 | fi |
| 6893 | done |
| 6894 | done |
| 6895 | IFS=$as_save_IFS |
| 6896 | |
| 6897 | fi |
| 6898 | fi |
| 6899 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6900 | if test -n "$OTOOL64"; then |
| 6901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 6902 | $as_echo "$OTOOL64" >&6; } |
| 6903 | else |
| 6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6905 | $as_echo "no" >&6; } |
| 6906 | fi |
| 6907 | |
| 6908 | |
| 6909 | fi |
| 6910 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6911 | ac_ct_OTOOL64=$OTOOL64 |
| 6912 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6913 | set dummy otool64; ac_word=$2 |
| 6914 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6915 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6916 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
| 6917 | $as_echo_n "(cached) " >&6 |
| 6918 | else |
| 6919 | if test -n "$ac_ct_OTOOL64"; then |
| 6920 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6921 | else |
| 6922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6923 | for as_dir in $PATH |
| 6924 | do |
| 6925 | IFS=$as_save_IFS |
| 6926 | test -z "$as_dir" && as_dir=. |
| 6927 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6929 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 6930 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6931 | break 2 |
| 6932 | fi |
| 6933 | done |
| 6934 | done |
| 6935 | IFS=$as_save_IFS |
| 6936 | |
| 6937 | fi |
| 6938 | fi |
| 6939 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 6940 | if test -n "$ac_ct_OTOOL64"; then |
| 6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 6942 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 6943 | else |
| 6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6945 | $as_echo "no" >&6; } |
| 6946 | fi |
| 6947 | |
| 6948 | if test "x$ac_ct_OTOOL64" = x; then |
| 6949 | OTOOL64=":" |
| 6950 | else |
| 6951 | case $cross_compiling:$ac_tool_warned in |
| 6952 | yes:) |
| 6953 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6954 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6955 | ac_tool_warned=yes ;; |
| 6956 | esac |
| 6957 | OTOOL64=$ac_ct_OTOOL64 |
| 6958 | fi |
| 6959 | else |
| 6960 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 6961 | fi |
| 6962 | |
| 6963 | |
| 6964 | |
| 6965 | |
| 6966 | |
| 6967 | |
| 6968 | |
| 6969 | |
| 6970 | |
| 6971 | |
| 6972 | |
| 6973 | |
| 6974 | |
| 6975 | |
| 6976 | |
| 6977 | |
| 6978 | |
| 6979 | |
| 6980 | |
| 6981 | |
| 6982 | |
| 6983 | |
| 6984 | |
| 6985 | |
| 6986 | |
| 6987 | |
| 6988 | |
| 6989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 6990 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 6991 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
| 6992 | $as_echo_n "(cached) " >&6 |
| 6993 | else |
| 6994 | lt_cv_apple_cc_single_mod=no |
| 6995 | if test -z "${LT_MULTI_MODULE}"; then |
| 6996 | # By default we will add the -single_module flag. You can override |
| 6997 | # by either setting the environment variable LT_MULTI_MODULE |
| 6998 | # non-empty at configure time, or by adding -multi_module to the |
| 6999 | # link flags. |
| 7000 | rm -rf libconftest.dylib* |
| 7001 | echo "int foo(void){return 1;}" > conftest.c |
| 7002 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7003 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7004 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7005 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7006 | _lt_result=$? |
| 7007 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 7008 | lt_cv_apple_cc_single_mod=yes |
| 7009 | else |
| 7010 | cat conftest.err >&5 |
| 7011 | fi |
| 7012 | rm -rf libconftest.dylib* |
| 7013 | rm -f conftest.* |
| 7014 | fi |
| 7015 | fi |
| 7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7017 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7018 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7019 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7020 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
| 7021 | $as_echo_n "(cached) " >&6 |
| 7022 | else |
| 7023 | lt_cv_ld_exported_symbols_list=no |
| 7024 | save_LDFLAGS=$LDFLAGS |
| 7025 | echo "_main" > conftest.sym |
| 7026 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7028 | /* end confdefs.h. */ |
| 7029 | |
| 7030 | int |
| 7031 | main () |
| 7032 | { |
| 7033 | |
| 7034 | ; |
| 7035 | return 0; |
| 7036 | } |
| 7037 | _ACEOF |
| 7038 | if ac_fn_c_try_link "$LINENO"; then : |
| 7039 | lt_cv_ld_exported_symbols_list=yes |
| 7040 | else |
| 7041 | lt_cv_ld_exported_symbols_list=no |
| 7042 | fi |
| 7043 | rm -f core conftest.err conftest.$ac_objext \ |
| 7044 | conftest$ac_exeext conftest.$ac_ext |
| 7045 | LDFLAGS="$save_LDFLAGS" |
| 7046 | |
| 7047 | fi |
| 7048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7049 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7050 | case $host_os in |
| 7051 | rhapsody* | darwin1.[012]) |
| 7052 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7053 | darwin1.*) |
| 7054 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7055 | darwin*) # darwin 5.x on |
| 7056 | # if running on 10.5 or later, the deployment target defaults |
| 7057 | # to the OS version, if on x86, and 10.4, the deployment |
| 7058 | # target defaults to 10.4. Don't you love it? |
| 7059 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7060 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7061 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7062 | 10.[012]*) |
| 7063 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7064 | 10.*) |
| 7065 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7066 | esac |
| 7067 | ;; |
| 7068 | esac |
| 7069 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7070 | _lt_dar_single_mod='$single_module' |
| 7071 | fi |
| 7072 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7073 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7074 | else |
| 7075 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7076 | fi |
| 7077 | if test "$DSYMUTIL" != ":"; then |
| 7078 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7079 | else |
| 7080 | _lt_dsymutil= |
| 7081 | fi |
| 7082 | ;; |
| 7083 | esac |
| 7084 | |
| 7085 | |
| 7086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7087 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7088 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 7089 | $as_echo_n "(cached) " >&6 |
| 7090 | else |
| 7091 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7092 | /* end confdefs.h. */ |
| 7093 | #include <stdlib.h> |
| 7094 | #include <stdarg.h> |
| 7095 | #include <string.h> |
| 7096 | #include <float.h> |
| 7097 | |
| 7098 | int |
| 7099 | main () |
| 7100 | { |
| 7101 | |
| 7102 | ; |
| 7103 | return 0; |
| 7104 | } |
| 7105 | _ACEOF |
| 7106 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7107 | ac_cv_header_stdc=yes |
| 7108 | else |
| 7109 | ac_cv_header_stdc=no |
| 7110 | fi |
| 7111 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7112 | |
| 7113 | if test $ac_cv_header_stdc = yes; then |
| 7114 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7116 | /* end confdefs.h. */ |
| 7117 | #include <string.h> |
| 7118 | |
| 7119 | _ACEOF |
| 7120 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7121 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7122 | |
| 7123 | else |
| 7124 | ac_cv_header_stdc=no |
| 7125 | fi |
| 7126 | rm -f conftest* |
| 7127 | |
| 7128 | fi |
| 7129 | |
| 7130 | if test $ac_cv_header_stdc = yes; then |
| 7131 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7133 | /* end confdefs.h. */ |
| 7134 | #include <stdlib.h> |
| 7135 | |
| 7136 | _ACEOF |
| 7137 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7138 | $EGREP "free" >/dev/null 2>&1; then : |
| 7139 | |
| 7140 | else |
| 7141 | ac_cv_header_stdc=no |
| 7142 | fi |
| 7143 | rm -f conftest* |
| 7144 | |
| 7145 | fi |
| 7146 | |
| 7147 | if test $ac_cv_header_stdc = yes; then |
| 7148 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7149 | if test "$cross_compiling" = yes; then : |
| 7150 | : |
| 7151 | else |
| 7152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7153 | /* end confdefs.h. */ |
| 7154 | #include <ctype.h> |
| 7155 | #include <stdlib.h> |
| 7156 | #if ((' ' & 0x0FF) == 0x020) |
| 7157 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7158 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7159 | #else |
| 7160 | # define ISLOWER(c) \ |
| 7161 | (('a' <= (c) && (c) <= 'i') \ |
| 7162 | || ('j' <= (c) && (c) <= 'r') \ |
| 7163 | || ('s' <= (c) && (c) <= 'z')) |
| 7164 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7165 | #endif |
| 7166 | |
| 7167 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7168 | int |
| 7169 | main () |
| 7170 | { |
| 7171 | int i; |
| 7172 | for (i = 0; i < 256; i++) |
| 7173 | if (XOR (islower (i), ISLOWER (i)) |
| 7174 | || toupper (i) != TOUPPER (i)) |
| 7175 | return 2; |
| 7176 | return 0; |
| 7177 | } |
| 7178 | _ACEOF |
| 7179 | if ac_fn_c_try_run "$LINENO"; then : |
| 7180 | |
| 7181 | else |
| 7182 | ac_cv_header_stdc=no |
| 7183 | fi |
| 7184 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7185 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7186 | fi |
| 7187 | |
| 7188 | fi |
| 7189 | fi |
| 7190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7191 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 7192 | if test $ac_cv_header_stdc = yes; then |
| 7193 | |
| 7194 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 7195 | |
| 7196 | fi |
| 7197 | |
| 7198 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7199 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7200 | inttypes.h stdint.h unistd.h |
| 7201 | do : |
| 7202 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7203 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7204 | " |
| 7205 | eval as_val=\$$as_ac_Header |
| 7206 | if test "x$as_val" = x""yes; then : |
| 7207 | cat >>confdefs.h <<_ACEOF |
| 7208 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7209 | _ACEOF |
| 7210 | |
| 7211 | fi |
| 7212 | |
| 7213 | done |
| 7214 | |
| 7215 | |
| 7216 | for ac_header in dlfcn.h |
| 7217 | do : |
| 7218 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7219 | " |
| 7220 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
| 7221 | cat >>confdefs.h <<_ACEOF |
| 7222 | #define HAVE_DLFCN_H 1 |
| 7223 | _ACEOF |
| 7224 | |
| 7225 | fi |
| 7226 | |
| 7227 | done |
| 7228 | |
| 7229 | |
| 7230 | |
| 7231 | ac_ext=cpp |
| 7232 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7233 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7234 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7235 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7236 | if test -z "$CXX"; then |
| 7237 | if test -n "$CCC"; then |
| 7238 | CXX=$CCC |
| 7239 | else |
| 7240 | if test -n "$ac_tool_prefix"; then |
| 7241 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7242 | do |
| 7243 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7244 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7246 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7247 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 7248 | $as_echo_n "(cached) " >&6 |
| 7249 | else |
| 7250 | if test -n "$CXX"; then |
| 7251 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 7252 | else |
| 7253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7254 | for as_dir in $PATH |
| 7255 | do |
| 7256 | IFS=$as_save_IFS |
| 7257 | test -z "$as_dir" && as_dir=. |
| 7258 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7259 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7260 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 7261 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7262 | break 2 |
| 7263 | fi |
| 7264 | done |
| 7265 | done |
| 7266 | IFS=$as_save_IFS |
| 7267 | |
| 7268 | fi |
| 7269 | fi |
| 7270 | CXX=$ac_cv_prog_CXX |
| 7271 | if test -n "$CXX"; then |
| 7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 7273 | $as_echo "$CXX" >&6; } |
| 7274 | else |
| 7275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7276 | $as_echo "no" >&6; } |
| 7277 | fi |
| 7278 | |
| 7279 | |
| 7280 | test -n "$CXX" && break |
| 7281 | done |
| 7282 | fi |
| 7283 | if test -z "$CXX"; then |
| 7284 | ac_ct_CXX=$CXX |
| 7285 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7286 | do |
| 7287 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7288 | set dummy $ac_prog; ac_word=$2 |
| 7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7290 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7291 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 7292 | $as_echo_n "(cached) " >&6 |
| 7293 | else |
| 7294 | if test -n "$ac_ct_CXX"; then |
| 7295 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 7296 | else |
| 7297 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7298 | for as_dir in $PATH |
| 7299 | do |
| 7300 | IFS=$as_save_IFS |
| 7301 | test -z "$as_dir" && as_dir=. |
| 7302 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7303 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7304 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 7305 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7306 | break 2 |
| 7307 | fi |
| 7308 | done |
| 7309 | done |
| 7310 | IFS=$as_save_IFS |
| 7311 | |
| 7312 | fi |
| 7313 | fi |
| 7314 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 7315 | if test -n "$ac_ct_CXX"; then |
| 7316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 7317 | $as_echo "$ac_ct_CXX" >&6; } |
| 7318 | else |
| 7319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7320 | $as_echo "no" >&6; } |
| 7321 | fi |
| 7322 | |
| 7323 | |
| 7324 | test -n "$ac_ct_CXX" && break |
| 7325 | done |
| 7326 | |
| 7327 | if test "x$ac_ct_CXX" = x; then |
| 7328 | CXX="g++" |
| 7329 | else |
| 7330 | case $cross_compiling:$ac_tool_warned in |
| 7331 | yes:) |
| 7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7333 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7334 | ac_tool_warned=yes ;; |
| 7335 | esac |
| 7336 | CXX=$ac_ct_CXX |
| 7337 | fi |
| 7338 | fi |
| 7339 | |
| 7340 | fi |
| 7341 | fi |
| 7342 | # Provide some information about the compiler. |
| 7343 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 7344 | set X $ac_compile |
| 7345 | ac_compiler=$2 |
| 7346 | for ac_option in --version -v -V -qversion; do |
| 7347 | { { ac_try="$ac_compiler $ac_option >&5" |
| 7348 | case "(($ac_try" in |
| 7349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7350 | *) ac_try_echo=$ac_try;; |
| 7351 | esac |
| 7352 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7353 | $as_echo "$ac_try_echo"; } >&5 |
| 7354 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 7355 | ac_status=$? |
| 7356 | if test -s conftest.err; then |
| 7357 | sed '10a\ |
| 7358 | ... rest of stderr output deleted ... |
| 7359 | 10q' conftest.err >conftest.er1 |
| 7360 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7361 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7362 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7363 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7364 | test $ac_status = 0; } |
| 7365 | done |
| 7366 | |
| 7367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 7368 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 7369 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 7370 | $as_echo_n "(cached) " >&6 |
| 7371 | else |
| 7372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7373 | /* end confdefs.h. */ |
| 7374 | |
| 7375 | int |
| 7376 | main () |
| 7377 | { |
| 7378 | #ifndef __GNUC__ |
| 7379 | choke me |
| 7380 | #endif |
| 7381 | |
| 7382 | ; |
| 7383 | return 0; |
| 7384 | } |
| 7385 | _ACEOF |
| 7386 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7387 | ac_compiler_gnu=yes |
| 7388 | else |
| 7389 | ac_compiler_gnu=no |
| 7390 | fi |
| 7391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7392 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 7393 | |
| 7394 | fi |
| 7395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 7396 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 7397 | if test $ac_compiler_gnu = yes; then |
| 7398 | GXX=yes |
| 7399 | else |
| 7400 | GXX= |
| 7401 | fi |
| 7402 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 7403 | ac_save_CXXFLAGS=$CXXFLAGS |
| 7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 7405 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 7406 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 7407 | $as_echo_n "(cached) " >&6 |
| 7408 | else |
| 7409 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 7410 | ac_cxx_werror_flag=yes |
| 7411 | ac_cv_prog_cxx_g=no |
| 7412 | CXXFLAGS="-g" |
| 7413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7414 | /* end confdefs.h. */ |
| 7415 | |
| 7416 | int |
| 7417 | main () |
| 7418 | { |
| 7419 | |
| 7420 | ; |
| 7421 | return 0; |
| 7422 | } |
| 7423 | _ACEOF |
| 7424 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7425 | ac_cv_prog_cxx_g=yes |
| 7426 | else |
| 7427 | CXXFLAGS="" |
| 7428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7429 | /* end confdefs.h. */ |
| 7430 | |
| 7431 | int |
| 7432 | main () |
| 7433 | { |
| 7434 | |
| 7435 | ; |
| 7436 | return 0; |
| 7437 | } |
| 7438 | _ACEOF |
| 7439 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7440 | |
| 7441 | else |
| 7442 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7443 | CXXFLAGS="-g" |
| 7444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7445 | /* end confdefs.h. */ |
| 7446 | |
| 7447 | int |
| 7448 | main () |
| 7449 | { |
| 7450 | |
| 7451 | ; |
| 7452 | return 0; |
| 7453 | } |
| 7454 | _ACEOF |
| 7455 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7456 | ac_cv_prog_cxx_g=yes |
| 7457 | fi |
| 7458 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7459 | fi |
| 7460 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7461 | fi |
| 7462 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7463 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7464 | fi |
| 7465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 7466 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 7467 | if test "$ac_test_CXXFLAGS" = set; then |
| 7468 | CXXFLAGS=$ac_save_CXXFLAGS |
| 7469 | elif test $ac_cv_prog_cxx_g = yes; then |
| 7470 | if test "$GXX" = yes; then |
| 7471 | CXXFLAGS="-g -O2" |
| 7472 | else |
| 7473 | CXXFLAGS="-g" |
| 7474 | fi |
| 7475 | else |
| 7476 | if test "$GXX" = yes; then |
| 7477 | CXXFLAGS="-O2" |
| 7478 | else |
| 7479 | CXXFLAGS= |
| 7480 | fi |
| 7481 | fi |
| 7482 | ac_ext=c |
| 7483 | ac_cpp='$CPP $CPPFLAGS' |
| 7484 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7485 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7486 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7487 | |
| 7488 | depcc="$CXX" am_compiler_list= |
| 7489 | |
| 7490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 7491 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 7492 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 7493 | $as_echo_n "(cached) " >&6 |
| 7494 | else |
| 7495 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 7496 | # We make a subdir and do the tests there. Otherwise we can end up |
| 7497 | # making bogus files that we don't know about and never remove. For |
| 7498 | # instance it was reported that on HP-UX the gcc test will end up |
| 7499 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 7500 | # in D'. |
| 7501 | mkdir conftest.dir |
| 7502 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 7503 | # using a relative directory. |
| 7504 | cp "$am_depcomp" conftest.dir |
| 7505 | cd conftest.dir |
| 7506 | # We will build objects and dependencies in a subdirectory because |
| 7507 | # it helps to detect inapplicable dependency modes. For instance |
| 7508 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 7509 | # side effect of compilation, but ICC will put the dependencies in |
| 7510 | # the current directory while Tru64 will put them in the object |
| 7511 | # directory. |
| 7512 | mkdir sub |
| 7513 | |
| 7514 | am_cv_CXX_dependencies_compiler_type=none |
| 7515 | if test "$am_compiler_list" = ""; then |
| 7516 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 7517 | fi |
| 7518 | am__universal=false |
| 7519 | case " $depcc " in #( |
| 7520 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 7521 | esac |
| 7522 | |
| 7523 | for depmode in $am_compiler_list; do |
| 7524 | # Setup a source with many dependencies, because some compilers |
| 7525 | # like to wrap large dependency lists on column 80 (with \), and |
| 7526 | # we should not choose a depcomp mode which is confused by this. |
| 7527 | # |
| 7528 | # We need to recreate these files for each test, as the compiler may |
| 7529 | # overwrite some of them when testing with obscure command lines. |
| 7530 | # This happens at least with the AIX C compiler. |
| 7531 | : > sub/conftest.c |
| 7532 | for i in 1 2 3 4 5 6; do |
| 7533 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 7534 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 7535 | # Solaris 8's {/usr,}/bin/sh. |
| 7536 | touch sub/conftst$i.h |
| 7537 | done |
| 7538 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 7539 | |
| 7540 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 7541 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 7542 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 7543 | # versions had trouble with output in subdirs |
| 7544 | am__obj=sub/conftest.${OBJEXT-o} |
| 7545 | am__minus_obj="-o $am__obj" |
| 7546 | case $depmode in |
| 7547 | gcc) |
| 7548 | # This depmode causes a compiler race in universal mode. |
| 7549 | test "$am__universal" = false || continue |
| 7550 | ;; |
| 7551 | nosideeffect) |
| 7552 | # after this tag, mechanisms are not by side-effect, so they'll |
| 7553 | # only be used when explicitly requested |
| 7554 | if test "x$enable_dependency_tracking" = xyes; then |
| 7555 | continue |
| 7556 | else |
| 7557 | break |
| 7558 | fi |
| 7559 | ;; |
| 7560 | msvisualcpp | msvcmsys) |
| 7561 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 7562 | # not run yet. These depmodes are late enough in the game, and |
| 7563 | # so weak that their functioning should not be impacted. |
| 7564 | am__obj=conftest.${OBJEXT-o} |
| 7565 | am__minus_obj= |
| 7566 | ;; |
| 7567 | none) break ;; |
| 7568 | esac |
| 7569 | if depmode=$depmode \ |
| 7570 | source=sub/conftest.c object=$am__obj \ |
| 7571 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 7572 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 7573 | >/dev/null 2>conftest.err && |
| 7574 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 7575 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 7576 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 7577 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 7578 | # icc doesn't choke on unknown options, it will just issue warnings |
| 7579 | # or remarks (even with -Werror). So we grep stderr for any message |
| 7580 | # that says an option was ignored or not supported. |
| 7581 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 7582 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 7583 | # The diagnosis changed in icc 8.0: |
| 7584 | # icc: Command line remark: option '-MP' not supported |
| 7585 | if (grep 'ignoring option' conftest.err || |
| 7586 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 7587 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 7588 | break |
| 7589 | fi |
| 7590 | fi |
| 7591 | done |
| 7592 | |
| 7593 | cd .. |
| 7594 | rm -rf conftest.dir |
| 7595 | else |
| 7596 | am_cv_CXX_dependencies_compiler_type=none |
| 7597 | fi |
| 7598 | |
| 7599 | fi |
| 7600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 7601 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 7602 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 7603 | |
| 7604 | if |
| 7605 | test "x$enable_dependency_tracking" != xno \ |
| 7606 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 7607 | am__fastdepCXX_TRUE= |
| 7608 | am__fastdepCXX_FALSE='#' |
| 7609 | else |
| 7610 | am__fastdepCXX_TRUE='#' |
| 7611 | am__fastdepCXX_FALSE= |
| 7612 | fi |
| 7613 | |
| 7614 | |
| 7615 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 7616 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 7617 | (test "X$CXX" != "Xg++"))) ; then |
| 7618 | ac_ext=cpp |
| 7619 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7620 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7621 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7622 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 7624 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 7625 | if test -z "$CXXCPP"; then |
| 7626 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 7627 | $as_echo_n "(cached) " >&6 |
| 7628 | else |
| 7629 | # Double quotes because CXXCPP needs to be expanded |
| 7630 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 7631 | do |
| 7632 | ac_preproc_ok=false |
| 7633 | for ac_cxx_preproc_warn_flag in '' yes |
| 7634 | do |
| 7635 | # Use a header file that comes with gcc, so configuring glibc |
| 7636 | # with a fresh cross-compiler works. |
| 7637 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7638 | # <limits.h> exists even on freestanding compilers. |
| 7639 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7640 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7642 | /* end confdefs.h. */ |
| 7643 | #ifdef __STDC__ |
| 7644 | # include <limits.h> |
| 7645 | #else |
| 7646 | # include <assert.h> |
| 7647 | #endif |
| 7648 | Syntax error |
| 7649 | _ACEOF |
| 7650 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7651 | |
| 7652 | else |
| 7653 | # Broken: fails on valid input. |
| 7654 | continue |
| 7655 | fi |
| 7656 | rm -f conftest.err conftest.$ac_ext |
| 7657 | |
| 7658 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7659 | # can be detected and how. |
| 7660 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7661 | /* end confdefs.h. */ |
| 7662 | #include <ac_nonexistent.h> |
| 7663 | _ACEOF |
| 7664 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7665 | # Broken: success on invalid input. |
| 7666 | continue |
| 7667 | else |
| 7668 | # Passes both tests. |
| 7669 | ac_preproc_ok=: |
| 7670 | break |
| 7671 | fi |
| 7672 | rm -f conftest.err conftest.$ac_ext |
| 7673 | |
| 7674 | done |
| 7675 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7676 | rm -f conftest.err conftest.$ac_ext |
| 7677 | if $ac_preproc_ok; then : |
| 7678 | break |
| 7679 | fi |
| 7680 | |
| 7681 | done |
| 7682 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7683 | |
| 7684 | fi |
| 7685 | CXXCPP=$ac_cv_prog_CXXCPP |
| 7686 | else |
| 7687 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7688 | fi |
| 7689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 7690 | $as_echo "$CXXCPP" >&6; } |
| 7691 | ac_preproc_ok=false |
| 7692 | for ac_cxx_preproc_warn_flag in '' yes |
| 7693 | do |
| 7694 | # Use a header file that comes with gcc, so configuring glibc |
| 7695 | # with a fresh cross-compiler works. |
| 7696 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7697 | # <limits.h> exists even on freestanding compilers. |
| 7698 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7699 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7701 | /* end confdefs.h. */ |
| 7702 | #ifdef __STDC__ |
| 7703 | # include <limits.h> |
| 7704 | #else |
| 7705 | # include <assert.h> |
| 7706 | #endif |
| 7707 | Syntax error |
| 7708 | _ACEOF |
| 7709 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7710 | |
| 7711 | else |
| 7712 | # Broken: fails on valid input. |
| 7713 | continue |
| 7714 | fi |
| 7715 | rm -f conftest.err conftest.$ac_ext |
| 7716 | |
| 7717 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7718 | # can be detected and how. |
| 7719 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7720 | /* end confdefs.h. */ |
| 7721 | #include <ac_nonexistent.h> |
| 7722 | _ACEOF |
| 7723 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7724 | # Broken: success on invalid input. |
| 7725 | continue |
| 7726 | else |
| 7727 | # Passes both tests. |
| 7728 | ac_preproc_ok=: |
| 7729 | break |
| 7730 | fi |
| 7731 | rm -f conftest.err conftest.$ac_ext |
| 7732 | |
| 7733 | done |
| 7734 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7735 | rm -f conftest.err conftest.$ac_ext |
| 7736 | if $ac_preproc_ok; then : |
| 7737 | |
| 7738 | else |
| 7739 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7740 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7741 | _lt_caught_CXX_error=yes; } |
| 7742 | fi |
| 7743 | |
| 7744 | ac_ext=c |
| 7745 | ac_cpp='$CPP $CPPFLAGS' |
| 7746 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7747 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7748 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7749 | |
| 7750 | else |
| 7751 | _lt_caught_CXX_error=yes |
| 7752 | fi |
| 7753 | |
| 7754 | |
| 7755 | |
| 7756 | |
| 7757 | |
| 7758 | # Set options |
| 7759 | |
| 7760 | |
| 7761 | |
| 7762 | enable_dlopen=no |
| 7763 | |
| 7764 | |
| 7765 | enable_win32_dll=no |
| 7766 | |
| 7767 | |
| 7768 | # Check whether --enable-shared was given. |
| 7769 | if test "${enable_shared+set}" = set; then : |
| 7770 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7771 | case $enableval in |
| 7772 | yes) enable_shared=yes ;; |
| 7773 | no) enable_shared=no ;; |
| 7774 | *) |
| 7775 | enable_shared=no |
| 7776 | # Look at the argument we got. We use all the common list separators. |
| 7777 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7778 | for pkg in $enableval; do |
| 7779 | IFS="$lt_save_ifs" |
| 7780 | if test "X$pkg" = "X$p"; then |
| 7781 | enable_shared=yes |
| 7782 | fi |
| 7783 | done |
| 7784 | IFS="$lt_save_ifs" |
| 7785 | ;; |
| 7786 | esac |
| 7787 | else |
| 7788 | enable_shared=yes |
| 7789 | fi |
| 7790 | |
| 7791 | |
| 7792 | |
| 7793 | |
| 7794 | |
| 7795 | |
| 7796 | |
| 7797 | |
| 7798 | |
| 7799 | # Check whether --enable-static was given. |
| 7800 | if test "${enable_static+set}" = set; then : |
| 7801 | enableval=$enable_static; p=${PACKAGE-default} |
| 7802 | case $enableval in |
| 7803 | yes) enable_static=yes ;; |
| 7804 | no) enable_static=no ;; |
| 7805 | *) |
| 7806 | enable_static=no |
| 7807 | # Look at the argument we got. We use all the common list separators. |
| 7808 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7809 | for pkg in $enableval; do |
| 7810 | IFS="$lt_save_ifs" |
| 7811 | if test "X$pkg" = "X$p"; then |
| 7812 | enable_static=yes |
| 7813 | fi |
| 7814 | done |
| 7815 | IFS="$lt_save_ifs" |
| 7816 | ;; |
| 7817 | esac |
| 7818 | else |
| 7819 | enable_static=yes |
| 7820 | fi |
| 7821 | |
| 7822 | |
| 7823 | |
| 7824 | |
| 7825 | |
| 7826 | |
| 7827 | |
| 7828 | |
| 7829 | |
| 7830 | |
| 7831 | # Check whether --with-pic was given. |
| 7832 | if test "${with_pic+set}" = set; then : |
| 7833 | withval=$with_pic; pic_mode="$withval" |
| 7834 | else |
| 7835 | pic_mode=default |
| 7836 | fi |
| 7837 | |
| 7838 | |
| 7839 | test -z "$pic_mode" && pic_mode=default |
| 7840 | |
| 7841 | |
| 7842 | |
| 7843 | |
| 7844 | |
| 7845 | |
| 7846 | |
| 7847 | # Check whether --enable-fast-install was given. |
| 7848 | if test "${enable_fast_install+set}" = set; then : |
| 7849 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7850 | case $enableval in |
| 7851 | yes) enable_fast_install=yes ;; |
| 7852 | no) enable_fast_install=no ;; |
| 7853 | *) |
| 7854 | enable_fast_install=no |
| 7855 | # Look at the argument we got. We use all the common list separators. |
| 7856 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7857 | for pkg in $enableval; do |
| 7858 | IFS="$lt_save_ifs" |
| 7859 | if test "X$pkg" = "X$p"; then |
| 7860 | enable_fast_install=yes |
| 7861 | fi |
| 7862 | done |
| 7863 | IFS="$lt_save_ifs" |
| 7864 | ;; |
| 7865 | esac |
| 7866 | else |
| 7867 | enable_fast_install=yes |
| 7868 | fi |
| 7869 | |
| 7870 | |
| 7871 | |
| 7872 | |
| 7873 | |
| 7874 | |
| 7875 | |
| 7876 | |
| 7877 | |
| 7878 | |
| 7879 | |
| 7880 | # This can be used to rebuild libtool when needed |
| 7881 | LIBTOOL_DEPS="$ltmain" |
| 7882 | |
| 7883 | # Always use our own libtool. |
| 7884 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7885 | |
| 7886 | |
| 7887 | |
| 7888 | |
| 7889 | |
| 7890 | |
| 7891 | |
| 7892 | |
| 7893 | |
| 7894 | |
| 7895 | |
| 7896 | |
| 7897 | |
| 7898 | |
| 7899 | |
| 7900 | |
| 7901 | |
| 7902 | |
| 7903 | |
| 7904 | |
| 7905 | |
| 7906 | |
| 7907 | |
| 7908 | |
| 7909 | |
| 7910 | test -z "$LN_S" && LN_S="ln -s" |
| 7911 | |
| 7912 | |
| 7913 | |
| 7914 | |
| 7915 | |
| 7916 | |
| 7917 | |
| 7918 | |
| 7919 | |
| 7920 | |
| 7921 | |
| 7922 | |
| 7923 | |
| 7924 | |
| 7925 | if test -n "${ZSH_VERSION+set}" ; then |
| 7926 | setopt NO_GLOB_SUBST |
| 7927 | fi |
| 7928 | |
| 7929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 7930 | $as_echo_n "checking for objdir... " >&6; } |
| 7931 | if test "${lt_cv_objdir+set}" = set; then : |
| 7932 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7933 | else |
| 7934 | rm -f .libs 2>/dev/null |
| 7935 | mkdir .libs 2>/dev/null |
| 7936 | if test -d .libs; then |
| 7937 | lt_cv_objdir=.libs |
| 7938 | else |
| 7939 | # MS-DOS does not allow filenames that begin with a dot. |
| 7940 | lt_cv_objdir=_libs |
| 7941 | fi |
| 7942 | rmdir .libs 2>/dev/null |
| 7943 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 7945 | $as_echo "$lt_cv_objdir" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7946 | objdir=$lt_cv_objdir |
| 7947 | |
| 7948 | |
| 7949 | |
| 7950 | |
| 7951 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7952 | cat >>confdefs.h <<_ACEOF |
| 7953 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 7954 | _ACEOF |
| 7955 | |
| 7956 | |
| 7957 | |
| 7958 | |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | |
| 7963 | |
| 7964 | |
| 7965 | |
| 7966 | |
| 7967 | |
| 7968 | |
| 7969 | |
| 7970 | |
| 7971 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7972 | case $host_os in |
| 7973 | aix3*) |
| 7974 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7975 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7976 | # vanish in a puff of smoke. |
| 7977 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7978 | COLLECT_NAMES= |
| 7979 | export COLLECT_NAMES |
| 7980 | fi |
| 7981 | ;; |
| 7982 | esac |
| 7983 | |
| 7984 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 7985 | # metacharacters that are still active within double-quoted strings. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7986 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7987 | |
| 7988 | # Same as above, but do not quote variable references. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7989 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7990 | |
| 7991 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 7992 | # double_quote_subst'ed string. |
| 7993 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 7994 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7995 | # Sed substitution to delay expansion of an escaped single quote. |
| 7996 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 7997 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7998 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 7999 | no_glob_subst='s/\*/\\\*/g' |
| 8000 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8001 | # Global variables: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8002 | ofile=libtool |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8003 | can_build_shared=yes |
| 8004 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8005 | # All known linkers require a `.a' archive for static linking (except MSVC, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8006 | # which needs '.lib'). |
| 8007 | libext=a |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8008 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8009 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8010 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8011 | old_CC="$CC" |
| 8012 | old_CFLAGS="$CFLAGS" |
| 8013 | |
| 8014 | # Set sane defaults for various variables |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8015 | test -z "$CC" && CC=cc |
| 8016 | test -z "$LTCC" && LTCC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8017 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8018 | test -z "$LD" && LD=ld |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8019 | test -z "$ac_objext" && ac_objext=o |
| 8020 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8021 | for cc_temp in $compiler""; do |
| 8022 | case $cc_temp in |
| 8023 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8024 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8025 | \-*) ;; |
| 8026 | *) break;; |
| 8027 | esac |
| 8028 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8029 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8030 | |
| 8031 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8032 | # Only perform the check for file, if the check method requires it |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8033 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8034 | case $deplibs_check_method in |
| 8035 | file_magic*) |
| 8036 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8038 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8039 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 8040 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8041 | else |
| 8042 | case $MAGIC_CMD in |
| 8043 | [\\/*] | ?:[\\/]*) |
| 8044 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8045 | ;; |
| 8046 | *) |
| 8047 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8048 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8049 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8050 | for ac_dir in $ac_dummy; do |
| 8051 | IFS="$lt_save_ifs" |
| 8052 | test -z "$ac_dir" && ac_dir=. |
| 8053 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8054 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8055 | if test -n "$file_magic_test_file"; then |
| 8056 | case $deplibs_check_method in |
| 8057 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8058 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8059 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8060 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8061 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8062 | : |
| 8063 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8064 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8065 | |
| 8066 | *** Warning: the command libtool uses to detect shared libraries, |
| 8067 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8068 | *** The result is that libtool may fail to recognize shared libraries |
| 8069 | *** as such. This will affect the creation of libtool libraries that |
| 8070 | *** depend on shared libraries, but programs linked with such libtool |
| 8071 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8072 | *** may want to report the problem to your system manager and/or to |
| 8073 | *** bug-libtool@gnu.org |
| 8074 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8075 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8076 | fi ;; |
| 8077 | esac |
| 8078 | fi |
| 8079 | break |
| 8080 | fi |
| 8081 | done |
| 8082 | IFS="$lt_save_ifs" |
| 8083 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8084 | ;; |
| 8085 | esac |
| 8086 | fi |
| 8087 | |
| 8088 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8089 | if test -n "$MAGIC_CMD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8091 | $as_echo "$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8092 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8094 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8095 | fi |
| 8096 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8097 | |
| 8098 | |
| 8099 | |
| 8100 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8101 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8102 | if test -n "$ac_tool_prefix"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8104 | $as_echo_n "checking for file... " >&6; } |
| 8105 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 8106 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8107 | else |
| 8108 | case $MAGIC_CMD in |
| 8109 | [\\/*] | ?:[\\/]*) |
| 8110 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8111 | ;; |
| 8112 | *) |
| 8113 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8114 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8115 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8116 | for ac_dir in $ac_dummy; do |
| 8117 | IFS="$lt_save_ifs" |
| 8118 | test -z "$ac_dir" && ac_dir=. |
| 8119 | if test -f $ac_dir/file; then |
| 8120 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8121 | if test -n "$file_magic_test_file"; then |
| 8122 | case $deplibs_check_method in |
| 8123 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8124 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8125 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8126 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8127 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8128 | : |
| 8129 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8130 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8131 | |
| 8132 | *** Warning: the command libtool uses to detect shared libraries, |
| 8133 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8134 | *** The result is that libtool may fail to recognize shared libraries |
| 8135 | *** as such. This will affect the creation of libtool libraries that |
| 8136 | *** depend on shared libraries, but programs linked with such libtool |
| 8137 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8138 | *** may want to report the problem to your system manager and/or to |
| 8139 | *** bug-libtool@gnu.org |
| 8140 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8141 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8142 | fi ;; |
| 8143 | esac |
| 8144 | fi |
| 8145 | break |
| 8146 | fi |
| 8147 | done |
| 8148 | IFS="$lt_save_ifs" |
| 8149 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8150 | ;; |
| 8151 | esac |
| 8152 | fi |
| 8153 | |
| 8154 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8155 | if test -n "$MAGIC_CMD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8157 | $as_echo "$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8158 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8160 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8161 | fi |
| 8162 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8163 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8164 | else |
| 8165 | MAGIC_CMD=: |
| 8166 | fi |
| 8167 | fi |
| 8168 | |
| 8169 | fi |
| 8170 | ;; |
| 8171 | esac |
| 8172 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8173 | # Use C for the default configuration in the libtool script |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8174 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8175 | lt_save_CC="$CC" |
| 8176 | ac_ext=c |
| 8177 | ac_cpp='$CPP $CPPFLAGS' |
| 8178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8181 | |
| 8182 | |
| 8183 | # Source file extension for C test sources. |
| 8184 | ac_ext=c |
| 8185 | |
| 8186 | # Object file extension for compiled C test sources. |
| 8187 | objext=o |
| 8188 | objext=$objext |
| 8189 | |
| 8190 | # Code to be used in simple compile tests |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8191 | lt_simple_compile_test_code="int some_variable = 0;" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8192 | |
| 8193 | # Code to be used in simple link tests |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8194 | lt_simple_link_test_code='int main(){return(0);}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8195 | |
| 8196 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8197 | |
| 8198 | |
| 8199 | |
| 8200 | |
| 8201 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8202 | # If no C compiler was specified, use CC. |
| 8203 | LTCC=${LTCC-"$CC"} |
| 8204 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8205 | # If no C compiler flags were specified, use CFLAGS. |
| 8206 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8207 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8208 | # Allow CC to be a program name with arguments. |
| 8209 | compiler=$CC |
| 8210 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8211 | # Save the default compiler, since it gets overwritten when the other |
| 8212 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8213 | compiler_DEFAULT=$CC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8214 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8215 | # save warnings/boilerplate of simple test code |
| 8216 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8217 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8218 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8219 | _lt_compiler_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8220 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8221 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8222 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8223 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8224 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8225 | _lt_linker_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8226 | $RM -r conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8227 | |
| 8228 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8229 | if test -n "$compiler"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8230 | |
| 8231 | lt_prog_compiler_no_builtin_flag= |
| 8232 | |
| 8233 | if test "$GCC" = yes; then |
| 8234 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 8235 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8237 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8238 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
| 8239 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8240 | else |
| 8241 | lt_cv_prog_compiler_rtti_exceptions=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8242 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8243 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8244 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8245 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8246 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8247 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8248 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8249 | # The option is referenced via a variable to avoid confusing sed. |
| 8250 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8251 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8252 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8253 | -e 's:$: $lt_compiler_flag:'` |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 8254 | (eval echo "\"\$as_me:8254: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8255 | (eval "$lt_compile" 2>conftest.err) |
| 8256 | ac_status=$? |
| 8257 | cat conftest.err >&5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 8258 | echo "$as_me:8258: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8259 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8260 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8261 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8262 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8263 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8264 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8265 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8266 | fi |
| 8267 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8268 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8269 | |
| 8270 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8272 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8273 | |
| 8274 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8275 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8276 | else |
| 8277 | : |
| 8278 | fi |
| 8279 | |
| 8280 | fi |
| 8281 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8282 | |
| 8283 | |
| 8284 | |
| 8285 | |
| 8286 | |
| 8287 | lt_prog_compiler_wl= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8288 | lt_prog_compiler_pic= |
| 8289 | lt_prog_compiler_static= |
| 8290 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8292 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8293 | |
| 8294 | if test "$GCC" = yes; then |
| 8295 | lt_prog_compiler_wl='-Wl,' |
| 8296 | lt_prog_compiler_static='-static' |
| 8297 | |
| 8298 | case $host_os in |
| 8299 | aix*) |
| 8300 | # All AIX code is PIC. |
| 8301 | if test "$host_cpu" = ia64; then |
| 8302 | # AIX 5 now supports IA64 processor |
| 8303 | lt_prog_compiler_static='-Bstatic' |
| 8304 | fi |
| 8305 | ;; |
| 8306 | |
| 8307 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8308 | case $host_cpu in |
| 8309 | powerpc) |
| 8310 | # see comment about AmigaOS4 .so support |
| 8311 | lt_prog_compiler_pic='-fPIC' |
| 8312 | ;; |
| 8313 | m68k) |
| 8314 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8315 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8316 | # like `-m68040'. |
| 8317 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8318 | ;; |
| 8319 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8320 | ;; |
| 8321 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8322 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8323 | # PIC is the default for these OSes. |
| 8324 | ;; |
| 8325 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8326 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8327 | # This hack is so that the source file can tell whether it is being |
| 8328 | # built for inclusion in a dll (and should export symbols for example). |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8329 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8330 | # (--disable-auto-import) libraries |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8331 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8332 | ;; |
| 8333 | |
| 8334 | darwin* | rhapsody*) |
| 8335 | # PIC is the default on this platform |
| 8336 | # Common symbols not allowed in MH_DYLIB files |
| 8337 | lt_prog_compiler_pic='-fno-common' |
| 8338 | ;; |
| 8339 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8340 | hpux*) |
| 8341 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8342 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8343 | # sets the default TLS model and affects inlining. |
| 8344 | case $host_cpu in |
| 8345 | hppa*64*) |
| 8346 | # +Z the default |
| 8347 | ;; |
| 8348 | *) |
| 8349 | lt_prog_compiler_pic='-fPIC' |
| 8350 | ;; |
| 8351 | esac |
| 8352 | ;; |
| 8353 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8354 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8355 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8356 | # Instead, we relocate shared libraries at runtime. |
| 8357 | ;; |
| 8358 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8359 | msdosdjgpp*) |
| 8360 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8361 | # on systems that don't support them. |
| 8362 | lt_prog_compiler_can_build_shared=no |
| 8363 | enable_shared=no |
| 8364 | ;; |
| 8365 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8366 | *nto* | *qnx*) |
| 8367 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8368 | # it will coredump. |
| 8369 | lt_prog_compiler_pic='-fPIC -shared' |
| 8370 | ;; |
| 8371 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8372 | sysv4*MP*) |
| 8373 | if test -d /usr/nec; then |
| 8374 | lt_prog_compiler_pic=-Kconform_pic |
| 8375 | fi |
| 8376 | ;; |
| 8377 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8378 | *) |
| 8379 | lt_prog_compiler_pic='-fPIC' |
| 8380 | ;; |
| 8381 | esac |
| 8382 | else |
| 8383 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8384 | case $host_os in |
| 8385 | aix*) |
| 8386 | lt_prog_compiler_wl='-Wl,' |
| 8387 | if test "$host_cpu" = ia64; then |
| 8388 | # AIX 5 now supports IA64 processor |
| 8389 | lt_prog_compiler_static='-Bstatic' |
| 8390 | else |
| 8391 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8392 | fi |
| 8393 | ;; |
| 8394 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8395 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8396 | # This hack is so that the source file can tell whether it is being |
| 8397 | # built for inclusion in a dll (and should export symbols for example). |
| 8398 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8399 | ;; |
| 8400 | |
| 8401 | hpux9* | hpux10* | hpux11*) |
| 8402 | lt_prog_compiler_wl='-Wl,' |
| 8403 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8404 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8405 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8406 | hppa*64*|ia64*) |
| 8407 | # +Z the default |
| 8408 | ;; |
| 8409 | *) |
| 8410 | lt_prog_compiler_pic='+Z' |
| 8411 | ;; |
| 8412 | esac |
| 8413 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8414 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8415 | ;; |
| 8416 | |
| 8417 | irix5* | irix6* | nonstopux*) |
| 8418 | lt_prog_compiler_wl='-Wl,' |
| 8419 | # PIC (with -KPIC) is the default. |
| 8420 | lt_prog_compiler_static='-non_shared' |
| 8421 | ;; |
| 8422 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8423 | linux* | k*bsd*-gnu) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8424 | case $cc_basename in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8425 | # old Intel for x86_64 which still supported -KPIC. |
| 8426 | ecc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8427 | lt_prog_compiler_wl='-Wl,' |
| 8428 | lt_prog_compiler_pic='-KPIC' |
| 8429 | lt_prog_compiler_static='-static' |
| 8430 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8431 | # icc used to be incompatible with GCC. |
| 8432 | # ICC 10 doesn't accept -KPIC any more. |
| 8433 | icc* | ifort*) |
| 8434 | lt_prog_compiler_wl='-Wl,' |
| 8435 | lt_prog_compiler_pic='-fPIC' |
| 8436 | lt_prog_compiler_static='-static' |
| 8437 | ;; |
| 8438 | # Lahey Fortran 8.1. |
| 8439 | lf95*) |
| 8440 | lt_prog_compiler_wl='-Wl,' |
| 8441 | lt_prog_compiler_pic='--shared' |
| 8442 | lt_prog_compiler_static='--static' |
| 8443 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8444 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 8445 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8446 | # which looks to be a dead project) |
| 8447 | lt_prog_compiler_wl='-Wl,' |
| 8448 | lt_prog_compiler_pic='-fpic' |
| 8449 | lt_prog_compiler_static='-Bstatic' |
| 8450 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8451 | ccc*) |
| 8452 | lt_prog_compiler_wl='-Wl,' |
| 8453 | # All Alpha code is PIC. |
| 8454 | lt_prog_compiler_static='-non_shared' |
| 8455 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8456 | xl*) |
| 8457 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 8458 | lt_prog_compiler_wl='-Wl,' |
| 8459 | lt_prog_compiler_pic='-qpic' |
| 8460 | lt_prog_compiler_static='-qstaticlink' |
| 8461 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8462 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8463 | case `$CC -V 2>&1 | sed 5q` in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8464 | *Sun\ C*) |
| 8465 | # Sun C 5.9 |
| 8466 | lt_prog_compiler_pic='-KPIC' |
| 8467 | lt_prog_compiler_static='-Bstatic' |
| 8468 | lt_prog_compiler_wl='-Wl,' |
| 8469 | ;; |
| 8470 | *Sun\ F*) |
| 8471 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8472 | lt_prog_compiler_pic='-KPIC' |
| 8473 | lt_prog_compiler_static='-Bstatic' |
| 8474 | lt_prog_compiler_wl='' |
| 8475 | ;; |
| 8476 | esac |
| 8477 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8478 | esac |
| 8479 | ;; |
| 8480 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8481 | newsos6) |
| 8482 | lt_prog_compiler_pic='-KPIC' |
| 8483 | lt_prog_compiler_static='-Bstatic' |
| 8484 | ;; |
| 8485 | |
| 8486 | *nto* | *qnx*) |
| 8487 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8488 | # it will coredump. |
| 8489 | lt_prog_compiler_pic='-fPIC -shared' |
| 8490 | ;; |
| 8491 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8492 | osf3* | osf4* | osf5*) |
| 8493 | lt_prog_compiler_wl='-Wl,' |
| 8494 | # All OSF/1 code is PIC. |
| 8495 | lt_prog_compiler_static='-non_shared' |
| 8496 | ;; |
| 8497 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8498 | rdos*) |
| 8499 | lt_prog_compiler_static='-non_shared' |
| 8500 | ;; |
| 8501 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8502 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8503 | lt_prog_compiler_pic='-KPIC' |
| 8504 | lt_prog_compiler_static='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8505 | case $cc_basename in |
| 8506 | f77* | f90* | f95*) |
| 8507 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8508 | *) |
| 8509 | lt_prog_compiler_wl='-Wl,';; |
| 8510 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8511 | ;; |
| 8512 | |
| 8513 | sunos4*) |
| 8514 | lt_prog_compiler_wl='-Qoption ld ' |
| 8515 | lt_prog_compiler_pic='-PIC' |
| 8516 | lt_prog_compiler_static='-Bstatic' |
| 8517 | ;; |
| 8518 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8519 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8520 | lt_prog_compiler_wl='-Wl,' |
| 8521 | lt_prog_compiler_pic='-KPIC' |
| 8522 | lt_prog_compiler_static='-Bstatic' |
| 8523 | ;; |
| 8524 | |
| 8525 | sysv4*MP*) |
| 8526 | if test -d /usr/nec ;then |
| 8527 | lt_prog_compiler_pic='-Kconform_pic' |
| 8528 | lt_prog_compiler_static='-Bstatic' |
| 8529 | fi |
| 8530 | ;; |
| 8531 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8532 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8533 | lt_prog_compiler_wl='-Wl,' |
| 8534 | lt_prog_compiler_pic='-KPIC' |
| 8535 | lt_prog_compiler_static='-Bstatic' |
| 8536 | ;; |
| 8537 | |
| 8538 | unicos*) |
| 8539 | lt_prog_compiler_wl='-Wl,' |
| 8540 | lt_prog_compiler_can_build_shared=no |
| 8541 | ;; |
| 8542 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8543 | uts4*) |
| 8544 | lt_prog_compiler_pic='-pic' |
| 8545 | lt_prog_compiler_static='-Bstatic' |
| 8546 | ;; |
| 8547 | |
| 8548 | *) |
| 8549 | lt_prog_compiler_can_build_shared=no |
| 8550 | ;; |
| 8551 | esac |
| 8552 | fi |
| 8553 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8554 | case $host_os in |
| 8555 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8556 | *djgpp*) |
| 8557 | lt_prog_compiler_pic= |
| 8558 | ;; |
| 8559 | *) |
| 8560 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8561 | ;; |
| 8562 | esac |
| 8563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
| 8564 | $as_echo "$lt_prog_compiler_pic" >&6; } |
| 8565 | |
| 8566 | |
| 8567 | |
| 8568 | |
| 8569 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8570 | |
| 8571 | # |
| 8572 | # Check to make sure the PIC flag actually works. |
| 8573 | # |
| 8574 | if test -n "$lt_prog_compiler_pic"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8575 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8576 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8577 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
| 8578 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8579 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8580 | lt_cv_prog_compiler_pic_works=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8581 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8582 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8583 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8584 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8585 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8586 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8587 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8588 | # The option is referenced via a variable to avoid confusing sed. |
| 8589 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8590 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8591 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8592 | -e 's:$: $lt_compiler_flag:'` |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 8593 | (eval echo "\"\$as_me:8593: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8594 | (eval "$lt_compile" 2>conftest.err) |
| 8595 | ac_status=$? |
| 8596 | cat conftest.err >&5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 8597 | echo "$as_me:8597: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8598 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8599 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8600 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8601 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8602 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8603 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8604 | lt_cv_prog_compiler_pic_works=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8605 | fi |
| 8606 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8607 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8608 | |
| 8609 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8611 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8612 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8613 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8614 | case $lt_prog_compiler_pic in |
| 8615 | "" | " "*) ;; |
| 8616 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8617 | esac |
| 8618 | else |
| 8619 | lt_prog_compiler_pic= |
| 8620 | lt_prog_compiler_can_build_shared=no |
| 8621 | fi |
| 8622 | |
| 8623 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8624 | |
| 8625 | |
| 8626 | |
| 8627 | |
| 8628 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8629 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8630 | # |
| 8631 | # Check to make sure the static flag actually works. |
| 8632 | # |
| 8633 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8635 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8636 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
| 8637 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8638 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8639 | lt_cv_prog_compiler_static_works=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8640 | save_LDFLAGS="$LDFLAGS" |
| 8641 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8642 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8643 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8644 | # The linker can only warn and ignore the option if not recognized |
| 8645 | # So say no if there are warnings |
| 8646 | if test -s conftest.err; then |
| 8647 | # Append any errors to the config.log. |
| 8648 | cat conftest.err 1>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8649 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8650 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8651 | if diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8652 | lt_cv_prog_compiler_static_works=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8653 | fi |
| 8654 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8655 | lt_cv_prog_compiler_static_works=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8656 | fi |
| 8657 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8658 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8659 | LDFLAGS="$save_LDFLAGS" |
| 8660 | |
| 8661 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8663 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8664 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8665 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8666 | : |
| 8667 | else |
| 8668 | lt_prog_compiler_static= |
| 8669 | fi |
| 8670 | |
| 8671 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8672 | |
| 8673 | |
| 8674 | |
| 8675 | |
| 8676 | |
| 8677 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8678 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8679 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8680 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8681 | else |
| 8682 | lt_cv_prog_compiler_c_o=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8683 | $RM -r conftest 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8684 | mkdir conftest |
| 8685 | cd conftest |
| 8686 | mkdir out |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8687 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8688 | |
| 8689 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8690 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8691 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8692 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8693 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8694 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8695 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8696 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8697 | -e 's:$: $lt_compiler_flag:'` |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 8698 | (eval echo "\"\$as_me:8698: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8699 | (eval "$lt_compile" 2>out/conftest.err) |
| 8700 | ac_status=$? |
| 8701 | cat out/conftest.err >&5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 8702 | echo "$as_me:8702: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8703 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8704 | then |
| 8705 | # The compiler can only warn and ignore the option if not recognized |
| 8706 | # So say no if there are warnings |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8707 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8708 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8709 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8710 | lt_cv_prog_compiler_c_o=yes |
| 8711 | fi |
| 8712 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8713 | chmod u+w . 2>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8714 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8715 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8716 | # template instantiation |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8717 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8718 | $RM out/* && rmdir out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8719 | cd .. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8720 | $RM -r conftest |
| 8721 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8722 | |
| 8723 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8724 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8725 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8726 | |
| 8727 | |
| 8728 | |
| 8729 | |
| 8730 | |
| 8731 | |
| 8732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8733 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8734 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8735 | $as_echo_n "(cached) " >&6 |
| 8736 | else |
| 8737 | lt_cv_prog_compiler_c_o=no |
| 8738 | $RM -r conftest 2>/dev/null |
| 8739 | mkdir conftest |
| 8740 | cd conftest |
| 8741 | mkdir out |
| 8742 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8743 | |
| 8744 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8745 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8746 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8747 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8748 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8749 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8750 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8751 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8752 | -e 's:$: $lt_compiler_flag:'` |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 8753 | (eval echo "\"\$as_me:8753: $lt_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8754 | (eval "$lt_compile" 2>out/conftest.err) |
| 8755 | ac_status=$? |
| 8756 | cat out/conftest.err >&5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 8757 | echo "$as_me:8757: \$? = $ac_status" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8758 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8759 | then |
| 8760 | # The compiler can only warn and ignore the option if not recognized |
| 8761 | # So say no if there are warnings |
| 8762 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 8763 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8764 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8765 | lt_cv_prog_compiler_c_o=yes |
| 8766 | fi |
| 8767 | fi |
| 8768 | chmod u+w . 2>&5 |
| 8769 | $RM conftest* |
| 8770 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8771 | # template instantiation |
| 8772 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8773 | $RM out/* && rmdir out |
| 8774 | cd .. |
| 8775 | $RM -r conftest |
| 8776 | $RM conftest* |
| 8777 | |
| 8778 | fi |
| 8779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8780 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8781 | |
| 8782 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8783 | |
| 8784 | |
| 8785 | hard_links="nottested" |
| 8786 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8787 | # do not overwrite the value of need_locks provided by the user |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 8789 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8790 | hard_links=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8791 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8792 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8793 | touch conftest.a |
| 8794 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8795 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 8797 | $as_echo "$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8798 | if test "$hard_links" = no; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8799 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8800 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8801 | need_locks=warn |
| 8802 | fi |
| 8803 | else |
| 8804 | need_locks=no |
| 8805 | fi |
| 8806 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8807 | |
| 8808 | |
| 8809 | |
| 8810 | |
| 8811 | |
| 8812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 8813 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8814 | |
| 8815 | runpath_var= |
| 8816 | allow_undefined_flag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8817 | always_export_symbols=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8818 | archive_cmds= |
| 8819 | archive_expsym_cmds= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8820 | compiler_needs_object=no |
| 8821 | enable_shared_with_static_runtimes=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8822 | export_dynamic_flag_spec= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8823 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8824 | hardcode_automatic=no |
| 8825 | hardcode_direct=no |
| 8826 | hardcode_direct_absolute=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8827 | hardcode_libdir_flag_spec= |
| 8828 | hardcode_libdir_flag_spec_ld= |
| 8829 | hardcode_libdir_separator= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8830 | hardcode_minus_L=no |
| 8831 | hardcode_shlibpath_var=unsupported |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8832 | inherit_rpath=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8833 | link_all_deplibs=unknown |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8834 | module_cmds= |
| 8835 | module_expsym_cmds= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8836 | old_archive_from_new_cmds= |
| 8837 | old_archive_from_expsyms_cmds= |
| 8838 | thread_safe_flag_spec= |
| 8839 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8840 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8841 | # included in the symbol list |
| 8842 | include_expsyms= |
| 8843 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8844 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8845 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8846 | # as well as any symbol that contains `d'. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8847 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8848 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8849 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8850 | # the symbol is explicitly referenced. Since portable code cannot |
| 8851 | # rely on this symbol name, it's probably fine to never include it in |
| 8852 | # preloaded symbol tables. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8853 | # Exclude shared library initialization/finalization symbols. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8854 | extract_expsyms_cmds= |
| 8855 | |
| 8856 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8857 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8858 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8859 | # When not using gcc, we currently assume that we are using |
| 8860 | # Microsoft Visual C++. |
| 8861 | if test "$GCC" != yes; then |
| 8862 | with_gnu_ld=no |
| 8863 | fi |
| 8864 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8865 | interix*) |
| 8866 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8867 | with_gnu_ld=yes |
| 8868 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8869 | openbsd*) |
| 8870 | with_gnu_ld=no |
| 8871 | ;; |
| 8872 | esac |
| 8873 | |
| 8874 | ld_shlibs=yes |
| 8875 | if test "$with_gnu_ld" = yes; then |
| 8876 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8877 | wlarc='${wl}' |
| 8878 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8879 | # Set some defaults for GNU ld with shared library support. These |
| 8880 | # are reset later if shared libraries are not supported. Putting them |
| 8881 | # here allows them to be overridden if necessary. |
| 8882 | runpath_var=LD_RUN_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8883 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8884 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8885 | # ancient GNU ld didn't support --whole-archive et. al. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8886 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8887 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8888 | else |
| 8889 | whole_archive_flag_spec= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8890 | fi |
| 8891 | supports_anon_versioning=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8892 | case `$LD -v 2>&1` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8893 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8894 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8895 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8896 | *\ 2.11.*) ;; # other 2.11 versions |
| 8897 | *) supports_anon_versioning=yes ;; |
| 8898 | esac |
| 8899 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8900 | # See if GNU ld supports shared libraries. |
| 8901 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8902 | aix[3-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8903 | # On AIX/PPC, the GNU linker is very broken |
| 8904 | if test "$host_cpu" != ia64; then |
| 8905 | ld_shlibs=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8906 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8907 | |
| 8908 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 8909 | *** to be unable to reliably create shared libraries on AIX. |
| 8910 | *** Therefore, libtool is disabling shared libraries support. If you |
| 8911 | *** really care for shared libraries, you may want to modify your PATH |
| 8912 | *** so that a non-GNU linker is found, and then restart. |
| 8913 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8914 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8915 | fi |
| 8916 | ;; |
| 8917 | |
| 8918 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8919 | case $host_cpu in |
| 8920 | powerpc) |
| 8921 | # see comment about AmigaOS4 .so support |
| 8922 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8923 | archive_expsym_cmds='' |
| 8924 | ;; |
| 8925 | m68k) |
| 8926 | 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)' |
| 8927 | hardcode_libdir_flag_spec='-L$libdir' |
| 8928 | hardcode_minus_L=yes |
| 8929 | ;; |
| 8930 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8931 | ;; |
| 8932 | |
| 8933 | beos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8934 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8935 | allow_undefined_flag=unsupported |
| 8936 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8937 | # support --undefined. This deserves some investigation. FIXME |
| 8938 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8939 | else |
| 8940 | ld_shlibs=no |
| 8941 | fi |
| 8942 | ;; |
| 8943 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8944 | cygwin* | mingw* | pw32* | cegcc*) |
| 8945 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8946 | # as there is no search path for DLLs. |
| 8947 | hardcode_libdir_flag_spec='-L$libdir' |
| 8948 | allow_undefined_flag=unsupported |
| 8949 | always_export_symbols=no |
| 8950 | enable_shared_with_static_runtimes=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8951 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8952 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8953 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8954 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8955 | # If the export-symbols file already is a .def file (1st line |
| 8956 | # is EXPORTS), use it as is; otherwise, prepend... |
| 8957 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8958 | cp $export_symbols $output_objdir/$soname.def; |
| 8959 | else |
| 8960 | echo EXPORTS > $output_objdir/$soname.def; |
| 8961 | cat $export_symbols >> $output_objdir/$soname.def; |
| 8962 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8963 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8964 | else |
| 8965 | ld_shlibs=no |
| 8966 | fi |
| 8967 | ;; |
| 8968 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8969 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8970 | hardcode_direct=no |
| 8971 | hardcode_shlibpath_var=no |
| 8972 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8973 | export_dynamic_flag_spec='${wl}-E' |
| 8974 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8975 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8976 | # default) and relocated if they conflict, which is a slow very memory |
| 8977 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 8978 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8979 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8980 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8981 | 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' |
| 8982 | ;; |
| 8983 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8984 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 8985 | tmp_diet=no |
| 8986 | if test "$host_os" = linux-dietlibc; then |
| 8987 | case $cc_basename in |
| 8988 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 8989 | esac |
| 8990 | fi |
| 8991 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 8992 | && test "$tmp_diet" = no |
| 8993 | then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8994 | tmp_addflag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8995 | tmp_sharedflag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8996 | case $cc_basename,$host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8997 | pgcc*) # Portland Group C compiler |
| 8998 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8999 | tmp_addflag=' $pic_flag' |
| 9000 | ;; |
| 9001 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9002 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9003 | tmp_addflag=' $pic_flag -Mnomain' ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9004 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9005 | tmp_addflag=' -i_dynamic' ;; |
| 9006 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9007 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9008 | ifc* | ifort*) # Intel Fortran compiler |
| 9009 | tmp_addflag=' -nofor_main' ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9010 | lf95*) # Lahey Fortran 8.1 |
| 9011 | whole_archive_flag_spec= |
| 9012 | tmp_sharedflag='--shared' ;; |
| 9013 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9014 | tmp_sharedflag='-qmkshrobj' |
| 9015 | tmp_addflag= ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9016 | esac |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9017 | case `$CC -V 2>&1 | sed 5q` in |
| 9018 | *Sun\ C*) # Sun C 5.9 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9019 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 9020 | compiler_needs_object=yes |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9021 | tmp_sharedflag='-G' ;; |
| 9022 | *Sun\ F*) # Sun Fortran 8.3 |
| 9023 | tmp_sharedflag='-G' ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9024 | esac |
| 9025 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9026 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9027 | if test "x$supports_anon_versioning" = xyes; then |
| 9028 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9029 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9030 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9031 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9032 | fi |
| 9033 | |
| 9034 | case $cc_basename in |
| 9035 | xlf*) |
| 9036 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9037 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9038 | hardcode_libdir_flag_spec= |
| 9039 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 9040 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 9041 | if test "x$supports_anon_versioning" = xyes; then |
| 9042 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9043 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9044 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9045 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9046 | fi |
| 9047 | ;; |
| 9048 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9049 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9050 | ld_shlibs=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9051 | fi |
| 9052 | ;; |
| 9053 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 9054 | netbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9055 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9056 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9057 | wlarc= |
| 9058 | else |
| 9059 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9060 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9061 | fi |
| 9062 | ;; |
| 9063 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9064 | solaris*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9065 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9066 | ld_shlibs=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9067 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9068 | |
| 9069 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9070 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9071 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9072 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9073 | *** your PATH or compiler configuration so that the native linker is |
| 9074 | *** used, and then restart. |
| 9075 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9076 | _LT_EOF |
| 9077 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9078 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9079 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9080 | else |
| 9081 | ld_shlibs=no |
| 9082 | fi |
| 9083 | ;; |
| 9084 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9085 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9086 | case `$LD -v 2>&1` in |
| 9087 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9088 | ld_shlibs=no |
| 9089 | cat <<_LT_EOF 1>&2 |
| 9090 | |
| 9091 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9092 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9093 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9094 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9095 | *** your PATH or compiler configuration so that the native linker is |
| 9096 | *** used, and then restart. |
| 9097 | |
| 9098 | _LT_EOF |
| 9099 | ;; |
| 9100 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9101 | # For security reasons, it is highly recommended that you always |
| 9102 | # use absolute paths for naming shared libraries, and exclude the |
| 9103 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9104 | # requires that you compile everything twice, which is a pain. |
| 9105 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9106 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9107 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9108 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9109 | else |
| 9110 | ld_shlibs=no |
| 9111 | fi |
| 9112 | ;; |
| 9113 | esac |
| 9114 | ;; |
| 9115 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9116 | sunos4*) |
| 9117 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9118 | wlarc= |
| 9119 | hardcode_direct=yes |
| 9120 | hardcode_shlibpath_var=no |
| 9121 | ;; |
| 9122 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9123 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9124 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9125 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9126 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9127 | else |
| 9128 | ld_shlibs=no |
| 9129 | fi |
| 9130 | ;; |
| 9131 | esac |
| 9132 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9133 | if test "$ld_shlibs" = no; then |
| 9134 | runpath_var= |
| 9135 | hardcode_libdir_flag_spec= |
| 9136 | export_dynamic_flag_spec= |
| 9137 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9138 | fi |
| 9139 | else |
| 9140 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9141 | case $host_os in |
| 9142 | aix3*) |
| 9143 | allow_undefined_flag=unsupported |
| 9144 | always_export_symbols=yes |
| 9145 | 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' |
| 9146 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9147 | # are no directories specified by -L. |
| 9148 | hardcode_minus_L=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9149 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9150 | # Neither direct hardcoding nor static linking is supported with a |
| 9151 | # broken collect2. |
| 9152 | hardcode_direct=unsupported |
| 9153 | fi |
| 9154 | ;; |
| 9155 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9156 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9157 | if test "$host_cpu" = ia64; then |
| 9158 | # On IA64, the linker does run time linking by default, so we don't |
| 9159 | # have to do anything special. |
| 9160 | aix_use_runtimelinking=no |
| 9161 | exp_sym_flag='-Bexport' |
| 9162 | no_entry_flag="" |
| 9163 | else |
| 9164 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9165 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9166 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9167 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9168 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9169 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9170 | fi |
| 9171 | aix_use_runtimelinking=no |
| 9172 | |
| 9173 | # Test if we are trying to use run time linking or normal |
| 9174 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9175 | # need to do runtime linking. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9176 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9177 | for ld_flag in $LDFLAGS; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9178 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9179 | aix_use_runtimelinking=yes |
| 9180 | break |
| 9181 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9182 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9183 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9184 | esac |
| 9185 | |
| 9186 | exp_sym_flag='-bexport' |
| 9187 | no_entry_flag='-bnoentry' |
| 9188 | fi |
| 9189 | |
| 9190 | # When large executables or shared objects are built, AIX ld can |
| 9191 | # have problems creating the table of contents. If linking a library |
| 9192 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9193 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9194 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9195 | |
| 9196 | archive_cmds='' |
| 9197 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9198 | hardcode_direct_absolute=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9199 | hardcode_libdir_separator=':' |
| 9200 | link_all_deplibs=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9201 | file_list_spec='${wl}-f,' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9202 | |
| 9203 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9204 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9205 | # We only want to do this on AIX 4.2 and lower, the check |
| 9206 | # below for broken collect2 doesn't work under 4.3+ |
| 9207 | collect2name=`${CC} -print-prog-name=collect2` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9208 | if test -f "$collect2name" && |
| 9209 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9210 | then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9211 | # We have reworked collect2 |
| 9212 | : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9213 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9214 | # We have old collect2 |
| 9215 | hardcode_direct=unsupported |
| 9216 | # It fails to find uninstalled libraries when the uninstalled |
| 9217 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9218 | # to unsupported forces relinking |
| 9219 | hardcode_minus_L=yes |
| 9220 | hardcode_libdir_flag_spec='-L$libdir' |
| 9221 | hardcode_libdir_separator= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9222 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9223 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9224 | esac |
| 9225 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9226 | if test "$aix_use_runtimelinking" = yes; then |
| 9227 | shared_flag="$shared_flag "'${wl}-G' |
| 9228 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9229 | else |
| 9230 | # not using gcc |
| 9231 | if test "$host_cpu" = ia64; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9232 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9233 | # chokes on -Wl,-G. The following line is correct: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9234 | shared_flag='-G' |
| 9235 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9236 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9237 | shared_flag='${wl}-G' |
| 9238 | else |
| 9239 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9240 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9241 | fi |
| 9242 | fi |
| 9243 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9244 | export_dynamic_flag_spec='${wl}-bexpall' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9245 | # It seems that -bexpall does not export symbols beginning with |
| 9246 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9247 | always_export_symbols=yes |
| 9248 | if test "$aix_use_runtimelinking" = yes; then |
| 9249 | # Warning - without using the other runtime loading flags (-brtl), |
| 9250 | # -berok will link without error, but may produce a broken library. |
| 9251 | allow_undefined_flag='-berok' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9252 | # Determine the default libpath from the value encoded in an |
| 9253 | # empty executable. |
| 9254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9255 | /* end confdefs.h. */ |
| 9256 | |
| 9257 | int |
| 9258 | main () |
| 9259 | { |
| 9260 | |
| 9261 | ; |
| 9262 | return 0; |
| 9263 | } |
| 9264 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9265 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9266 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9267 | lt_aix_libpath_sed=' |
| 9268 | /Import File Strings/,/^$/ { |
| 9269 | /^0/ { |
| 9270 | s/^0 *\(.*\)$/\1/ |
| 9271 | p |
| 9272 | } |
| 9273 | }' |
| 9274 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9275 | # Check for a 64-bit object if we didn't find anything. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9276 | if test -z "$aix_libpath"; then |
| 9277 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9278 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9279 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9280 | rm -f core conftest.err conftest.$ac_objext \ |
| 9281 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9282 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9283 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9284 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9285 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 9286 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9287 | if test "$host_cpu" = ia64; then |
| 9288 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9289 | allow_undefined_flag="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9290 | 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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9291 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9292 | # Determine the default libpath from the value encoded in an |
| 9293 | # empty executable. |
| 9294 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9295 | /* end confdefs.h. */ |
| 9296 | |
| 9297 | int |
| 9298 | main () |
| 9299 | { |
| 9300 | |
| 9301 | ; |
| 9302 | return 0; |
| 9303 | } |
| 9304 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9305 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9306 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9307 | lt_aix_libpath_sed=' |
| 9308 | /Import File Strings/,/^$/ { |
| 9309 | /^0/ { |
| 9310 | s/^0 *\(.*\)$/\1/ |
| 9311 | p |
| 9312 | } |
| 9313 | }' |
| 9314 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9315 | # Check for a 64-bit object if we didn't find anything. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9316 | if test -z "$aix_libpath"; then |
| 9317 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9318 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9319 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9320 | rm -f core conftest.err conftest.$ac_objext \ |
| 9321 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9322 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9323 | |
| 9324 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9325 | # Warning - without using the other run time loading flags, |
| 9326 | # -berok will link without error, but may produce a broken library. |
| 9327 | no_undefined_flag=' ${wl}-bernotok' |
| 9328 | allow_undefined_flag=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9329 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9330 | whole_archive_flag_spec='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9331 | archive_cmds_need_lc=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9332 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9333 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9334 | fi |
| 9335 | fi |
| 9336 | ;; |
| 9337 | |
| 9338 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9339 | case $host_cpu in |
| 9340 | powerpc) |
| 9341 | # see comment about AmigaOS4 .so support |
| 9342 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9343 | archive_expsym_cmds='' |
| 9344 | ;; |
| 9345 | m68k) |
| 9346 | 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)' |
| 9347 | hardcode_libdir_flag_spec='-L$libdir' |
| 9348 | hardcode_minus_L=yes |
| 9349 | ;; |
| 9350 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9351 | ;; |
| 9352 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9353 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9354 | export_dynamic_flag_spec=-rdynamic |
| 9355 | ;; |
| 9356 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9357 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9358 | # When not using gcc, we currently assume that we are using |
| 9359 | # Microsoft Visual C++. |
| 9360 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9361 | # no search path for DLLs. |
| 9362 | hardcode_libdir_flag_spec=' ' |
| 9363 | allow_undefined_flag=unsupported |
| 9364 | # Tell ltmain to make .lib files, not .a files. |
| 9365 | libext=lib |
| 9366 | # Tell ltmain to make .dll files, not .so files. |
| 9367 | shrext_cmds=".dll" |
| 9368 | # FIXME: Setting linknames here is a bad hack. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9369 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9370 | # The linker will automatically build a .lib file if we build a DLL. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9371 | old_archive_from_new_cmds='true' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9372 | # FIXME: Should let the user specify the lib program. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9373 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9374 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9375 | enable_shared_with_static_runtimes=yes |
| 9376 | ;; |
| 9377 | |
| 9378 | darwin* | rhapsody*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9379 | |
| 9380 | |
| 9381 | archive_cmds_need_lc=no |
| 9382 | hardcode_direct=no |
| 9383 | hardcode_automatic=yes |
| 9384 | hardcode_shlibpath_var=unsupported |
| 9385 | whole_archive_flag_spec='' |
| 9386 | link_all_deplibs=yes |
| 9387 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9388 | case $cc_basename in |
| 9389 | ifort*) _lt_dar_can_shared=yes ;; |
| 9390 | *) _lt_dar_can_shared=$GCC ;; |
| 9391 | esac |
| 9392 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9393 | output_verbose_link_cmd=echo |
| 9394 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9395 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9396 | 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}" |
| 9397 | 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}" |
| 9398 | |
| 9399 | else |
| 9400 | ld_shlibs=no |
| 9401 | fi |
| 9402 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9403 | ;; |
| 9404 | |
| 9405 | dgux*) |
| 9406 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9407 | hardcode_libdir_flag_spec='-L$libdir' |
| 9408 | hardcode_shlibpath_var=no |
| 9409 | ;; |
| 9410 | |
| 9411 | freebsd1*) |
| 9412 | ld_shlibs=no |
| 9413 | ;; |
| 9414 | |
| 9415 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9416 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9417 | # does not break anything, and helps significantly (at the cost of a little |
| 9418 | # extra space). |
| 9419 | freebsd2.2*) |
| 9420 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9421 | hardcode_libdir_flag_spec='-R$libdir' |
| 9422 | hardcode_direct=yes |
| 9423 | hardcode_shlibpath_var=no |
| 9424 | ;; |
| 9425 | |
| 9426 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9427 | freebsd2*) |
| 9428 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9429 | hardcode_direct=yes |
| 9430 | hardcode_minus_L=yes |
| 9431 | hardcode_shlibpath_var=no |
| 9432 | ;; |
| 9433 | |
| 9434 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9435 | freebsd* | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9436 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 9437 | hardcode_libdir_flag_spec='-R$libdir' |
| 9438 | hardcode_direct=yes |
| 9439 | hardcode_shlibpath_var=no |
| 9440 | ;; |
| 9441 | |
| 9442 | hpux9*) |
| 9443 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9444 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9445 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9446 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9447 | fi |
| 9448 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9449 | hardcode_libdir_separator=: |
| 9450 | hardcode_direct=yes |
| 9451 | |
| 9452 | # hardcode_minus_L: Not really in the search PATH, |
| 9453 | # but as the default location of the library. |
| 9454 | hardcode_minus_L=yes |
| 9455 | export_dynamic_flag_spec='${wl}-E' |
| 9456 | ;; |
| 9457 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9458 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9459 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9460 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9461 | else |
| 9462 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9463 | fi |
| 9464 | if test "$with_gnu_ld" = no; then |
| 9465 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9466 | hardcode_libdir_flag_spec_ld='+b $libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9467 | hardcode_libdir_separator=: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9468 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9469 | hardcode_direct_absolute=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9470 | export_dynamic_flag_spec='${wl}-E' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9471 | # hardcode_minus_L: Not really in the search PATH, |
| 9472 | # but as the default location of the library. |
| 9473 | hardcode_minus_L=yes |
| 9474 | fi |
| 9475 | ;; |
| 9476 | |
| 9477 | hpux11*) |
| 9478 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9479 | case $host_cpu in |
| 9480 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9481 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9482 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9483 | ia64*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9484 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9485 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9486 | *) |
| 9487 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9488 | ;; |
| 9489 | esac |
| 9490 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9491 | case $host_cpu in |
| 9492 | hppa*64*) |
| 9493 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9494 | ;; |
| 9495 | ia64*) |
| 9496 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9497 | ;; |
| 9498 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9499 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9500 | ;; |
| 9501 | esac |
| 9502 | fi |
| 9503 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9504 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9505 | hardcode_libdir_separator=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9506 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9507 | case $host_cpu in |
| 9508 | hppa*64*|ia64*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9509 | hardcode_direct=no |
| 9510 | hardcode_shlibpath_var=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9511 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9512 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9513 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9514 | hardcode_direct_absolute=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9515 | export_dynamic_flag_spec='${wl}-E' |
| 9516 | |
| 9517 | # hardcode_minus_L: Not really in the search PATH, |
| 9518 | # but as the default location of the library. |
| 9519 | hardcode_minus_L=yes |
| 9520 | ;; |
| 9521 | esac |
| 9522 | fi |
| 9523 | ;; |
| 9524 | |
| 9525 | irix5* | irix6* | nonstopux*) |
| 9526 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9527 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 9528 | # Try to use the -exported_symbol ld option, if it does not |
| 9529 | # work, assume that -exports_file does not work either and |
| 9530 | # implicitly export all symbols. |
| 9531 | save_LDFLAGS="$LDFLAGS" |
| 9532 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9533 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9534 | /* end confdefs.h. */ |
| 9535 | int foo(void) {} |
| 9536 | _ACEOF |
| 9537 | if ac_fn_c_try_link "$LINENO"; then : |
| 9538 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
| 9539 | |
| 9540 | fi |
| 9541 | rm -f core conftest.err conftest.$ac_objext \ |
| 9542 | conftest$ac_exeext conftest.$ac_ext |
| 9543 | LDFLAGS="$save_LDFLAGS" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9544 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9545 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 9546 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9547 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9548 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9549 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9550 | hardcode_libdir_separator=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9551 | inherit_rpath=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9552 | link_all_deplibs=yes |
| 9553 | ;; |
| 9554 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 9555 | netbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9556 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9557 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9558 | else |
| 9559 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9560 | fi |
| 9561 | hardcode_libdir_flag_spec='-R$libdir' |
| 9562 | hardcode_direct=yes |
| 9563 | hardcode_shlibpath_var=no |
| 9564 | ;; |
| 9565 | |
| 9566 | newsos6) |
| 9567 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9568 | hardcode_direct=yes |
| 9569 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9570 | hardcode_libdir_separator=: |
| 9571 | hardcode_shlibpath_var=no |
| 9572 | ;; |
| 9573 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9574 | *nto* | *qnx*) |
| 9575 | ;; |
| 9576 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9577 | openbsd*) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9578 | if test -f /usr/libexec/ld.so; then |
| 9579 | hardcode_direct=yes |
| 9580 | hardcode_shlibpath_var=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9581 | hardcode_direct_absolute=yes |
| 9582 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9583 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9584 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9585 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9586 | export_dynamic_flag_spec='${wl}-E' |
| 9587 | else |
| 9588 | case $host_os in |
| 9589 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9590 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9591 | hardcode_libdir_flag_spec='-R$libdir' |
| 9592 | ;; |
| 9593 | *) |
| 9594 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9595 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9596 | ;; |
| 9597 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9598 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9599 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9600 | ld_shlibs=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9601 | fi |
| 9602 | ;; |
| 9603 | |
| 9604 | os2*) |
| 9605 | hardcode_libdir_flag_spec='-L$libdir' |
| 9606 | hardcode_minus_L=yes |
| 9607 | allow_undefined_flag=unsupported |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9608 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' |
| 9609 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9610 | ;; |
| 9611 | |
| 9612 | osf3*) |
| 9613 | if test "$GCC" = yes; then |
| 9614 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9615 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9616 | else |
| 9617 | allow_undefined_flag=' -expect_unresolved \*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9618 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9619 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9620 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9621 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9622 | hardcode_libdir_separator=: |
| 9623 | ;; |
| 9624 | |
| 9625 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9626 | if test "$GCC" = yes; then |
| 9627 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9628 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9629 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9630 | else |
| 9631 | allow_undefined_flag=' -expect_unresolved \*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9632 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 9633 | 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~ |
| 9634 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9635 | |
| 9636 | # Both c and cxx compiler support -rpath directly |
| 9637 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9638 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9639 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9640 | hardcode_libdir_separator=: |
| 9641 | ;; |
| 9642 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9643 | solaris*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9644 | no_undefined_flag=' -z defs' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9645 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9646 | wlarc='${wl}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9647 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9648 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9649 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9650 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9651 | case `$CC -V 2>&1` in |
| 9652 | *"Compilers 5.0"*) |
| 9653 | wlarc='' |
| 9654 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9655 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9656 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9657 | ;; |
| 9658 | *) |
| 9659 | wlarc='${wl}' |
| 9660 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9661 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9662 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9663 | ;; |
| 9664 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9665 | fi |
| 9666 | hardcode_libdir_flag_spec='-R$libdir' |
| 9667 | hardcode_shlibpath_var=no |
| 9668 | case $host_os in |
| 9669 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9670 | *) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9671 | # The compiler driver will combine and reorder linker options, |
| 9672 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9673 | # but is careful enough not to reorder. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9674 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9675 | if test "$GCC" = yes; then |
| 9676 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9677 | else |
| 9678 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9679 | fi |
| 9680 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9681 | esac |
| 9682 | link_all_deplibs=yes |
| 9683 | ;; |
| 9684 | |
| 9685 | sunos4*) |
| 9686 | if test "x$host_vendor" = xsequent; then |
| 9687 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9688 | # files that make .init and .fini sections work. |
| 9689 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9690 | else |
| 9691 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9692 | fi |
| 9693 | hardcode_libdir_flag_spec='-L$libdir' |
| 9694 | hardcode_direct=yes |
| 9695 | hardcode_minus_L=yes |
| 9696 | hardcode_shlibpath_var=no |
| 9697 | ;; |
| 9698 | |
| 9699 | sysv4) |
| 9700 | case $host_vendor in |
| 9701 | sni) |
| 9702 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9703 | hardcode_direct=yes # is this really true??? |
| 9704 | ;; |
| 9705 | siemens) |
| 9706 | ## LD is ld it makes a PLAMLIB |
| 9707 | ## CC just makes a GrossModule. |
| 9708 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9709 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9710 | hardcode_direct=no |
| 9711 | ;; |
| 9712 | motorola) |
| 9713 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9714 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9715 | ;; |
| 9716 | esac |
| 9717 | runpath_var='LD_RUN_PATH' |
| 9718 | hardcode_shlibpath_var=no |
| 9719 | ;; |
| 9720 | |
| 9721 | sysv4.3*) |
| 9722 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9723 | hardcode_shlibpath_var=no |
| 9724 | export_dynamic_flag_spec='-Bexport' |
| 9725 | ;; |
| 9726 | |
| 9727 | sysv4*MP*) |
| 9728 | if test -d /usr/nec; then |
| 9729 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9730 | hardcode_shlibpath_var=no |
| 9731 | runpath_var=LD_RUN_PATH |
| 9732 | hardcode_runpath_var=yes |
| 9733 | ld_shlibs=yes |
| 9734 | fi |
| 9735 | ;; |
| 9736 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9737 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9738 | no_undefined_flag='${wl}-z,text' |
| 9739 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9740 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9741 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 9742 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 9743 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9744 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9745 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 9746 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9747 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9748 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 9749 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9750 | ;; |
| 9751 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9752 | sysv5* | sco3.2v5* | sco5v6*) |
| 9753 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9754 | # link with -lc, and that would cause any symbols used from libc to |
| 9755 | # always be unresolved, which means just about no library would |
| 9756 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9757 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9758 | # as -z defs. |
| 9759 | no_undefined_flag='${wl}-z,text' |
| 9760 | allow_undefined_flag='${wl}-z,nodefs' |
| 9761 | archive_cmds_need_lc=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9762 | hardcode_shlibpath_var=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9763 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9764 | hardcode_libdir_separator=':' |
| 9765 | link_all_deplibs=yes |
| 9766 | export_dynamic_flag_spec='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9767 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9768 | |
| 9769 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9770 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9771 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9772 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9773 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9774 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9775 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9776 | ;; |
| 9777 | |
| 9778 | uts4*) |
| 9779 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9780 | hardcode_libdir_flag_spec='-L$libdir' |
| 9781 | hardcode_shlibpath_var=no |
| 9782 | ;; |
| 9783 | |
| 9784 | *) |
| 9785 | ld_shlibs=no |
| 9786 | ;; |
| 9787 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9788 | |
| 9789 | if test x$host_vendor = xsni; then |
| 9790 | case $host in |
| 9791 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9792 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9793 | ;; |
| 9794 | esac |
| 9795 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9796 | fi |
| 9797 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 9799 | $as_echo "$ld_shlibs" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9800 | test "$ld_shlibs" = no && can_build_shared=no |
| 9801 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9802 | with_gnu_ld=$with_gnu_ld |
| 9803 | |
| 9804 | |
| 9805 | |
| 9806 | |
| 9807 | |
| 9808 | |
| 9809 | |
| 9810 | |
| 9811 | |
| 9812 | |
| 9813 | |
| 9814 | |
| 9815 | |
| 9816 | |
| 9817 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9818 | # |
| 9819 | # Do we need to explicitly link libc? |
| 9820 | # |
| 9821 | case "x$archive_cmds_need_lc" in |
| 9822 | x|xyes) |
| 9823 | # Assume -lc should be added |
| 9824 | archive_cmds_need_lc=yes |
| 9825 | |
| 9826 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9827 | case $archive_cmds in |
| 9828 | *'~'*) |
| 9829 | # FIXME: we may have to deal with multi-command sequences. |
| 9830 | ;; |
| 9831 | '$CC '*) |
| 9832 | # Test whether the compiler implicitly links with -lc since on some |
| 9833 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9834 | # to ld, don't add -lc before -lgcc. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 9836 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 9837 | $RM conftest* |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9838 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9839 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9840 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9841 | (eval $ac_compile) 2>&5 |
| 9842 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9844 | test $ac_status = 0; } 2>conftest.err; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9845 | soname=conftest |
| 9846 | lib=conftest |
| 9847 | libobjs=conftest.$ac_objext |
| 9848 | deplibs= |
| 9849 | wl=$lt_prog_compiler_wl |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9850 | pic_flag=$lt_prog_compiler_pic |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9851 | compiler_flags=-v |
| 9852 | linker_flags=-v |
| 9853 | verstring= |
| 9854 | output_objdir=. |
| 9855 | libname=conftest |
| 9856 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9857 | allow_undefined_flag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9858 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 9859 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9860 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9861 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9862 | test $ac_status = 0; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9863 | then |
| 9864 | archive_cmds_need_lc=no |
| 9865 | else |
| 9866 | archive_cmds_need_lc=yes |
| 9867 | fi |
| 9868 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9869 | else |
| 9870 | cat conftest.err 1>&5 |
| 9871 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9872 | $RM conftest* |
| 9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
| 9874 | $as_echo "$archive_cmds_need_lc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9875 | ;; |
| 9876 | esac |
| 9877 | fi |
| 9878 | ;; |
| 9879 | esac |
| 9880 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9881 | |
| 9882 | |
| 9883 | |
| 9884 | |
| 9885 | |
| 9886 | |
| 9887 | |
| 9888 | |
| 9889 | |
| 9890 | |
| 9891 | |
| 9892 | |
| 9893 | |
| 9894 | |
| 9895 | |
| 9896 | |
| 9897 | |
| 9898 | |
| 9899 | |
| 9900 | |
| 9901 | |
| 9902 | |
| 9903 | |
| 9904 | |
| 9905 | |
| 9906 | |
| 9907 | |
| 9908 | |
| 9909 | |
| 9910 | |
| 9911 | |
| 9912 | |
| 9913 | |
| 9914 | |
| 9915 | |
| 9916 | |
| 9917 | |
| 9918 | |
| 9919 | |
| 9920 | |
| 9921 | |
| 9922 | |
| 9923 | |
| 9924 | |
| 9925 | |
| 9926 | |
| 9927 | |
| 9928 | |
| 9929 | |
| 9930 | |
| 9931 | |
| 9932 | |
| 9933 | |
| 9934 | |
| 9935 | |
| 9936 | |
| 9937 | |
| 9938 | |
| 9939 | |
| 9940 | |
| 9941 | |
| 9942 | |
| 9943 | |
| 9944 | |
| 9945 | |
| 9946 | |
| 9947 | |
| 9948 | |
| 9949 | |
| 9950 | |
| 9951 | |
| 9952 | |
| 9953 | |
| 9954 | |
| 9955 | |
| 9956 | |
| 9957 | |
| 9958 | |
| 9959 | |
| 9960 | |
| 9961 | |
| 9962 | |
| 9963 | |
| 9964 | |
| 9965 | |
| 9966 | |
| 9967 | |
| 9968 | |
| 9969 | |
| 9970 | |
| 9971 | |
| 9972 | |
| 9973 | |
| 9974 | |
| 9975 | |
| 9976 | |
| 9977 | |
| 9978 | |
| 9979 | |
| 9980 | |
| 9981 | |
| 9982 | |
| 9983 | |
| 9984 | |
| 9985 | |
| 9986 | |
| 9987 | |
| 9988 | |
| 9989 | |
| 9990 | |
| 9991 | |
| 9992 | |
| 9993 | |
| 9994 | |
| 9995 | |
| 9996 | |
| 9997 | |
| 9998 | |
| 9999 | |
| 10000 | |
| 10001 | |
| 10002 | |
| 10003 | |
| 10004 | |
| 10005 | |
| 10006 | |
| 10007 | |
| 10008 | |
| 10009 | |
| 10010 | |
| 10011 | |
| 10012 | |
| 10013 | |
| 10014 | |
| 10015 | |
| 10016 | |
| 10017 | |
| 10018 | |
| 10019 | |
| 10020 | |
| 10021 | |
| 10022 | |
| 10023 | |
| 10024 | |
| 10025 | |
| 10026 | |
| 10027 | |
| 10028 | |
| 10029 | |
| 10030 | |
| 10031 | |
| 10032 | |
| 10033 | |
| 10034 | |
| 10035 | |
| 10036 | |
| 10037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10038 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10039 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10040 | if test "$GCC" = yes; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10041 | case $host_os in |
| 10042 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10043 | *) lt_awk_arg="/^libraries:/" ;; |
| 10044 | esac |
| 10045 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10046 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10047 | # if the path contains ";" then we assume it to be the separator |
| 10048 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10049 | # assumed that no part of a normal pathname contains ";" but that should |
| 10050 | # okay in the real world where ";" in dirpaths is itself problematic. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10051 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10052 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10053 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10054 | fi |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10055 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10056 | # and add multilib dir if necessary. |
| 10057 | lt_tmp_lt_search_path_spec= |
| 10058 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10059 | for lt_sys_path in $lt_search_path_spec; do |
| 10060 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10061 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10062 | else |
| 10063 | test -d "$lt_sys_path" && \ |
| 10064 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10065 | fi |
| 10066 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10067 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10068 | BEGIN {RS=" "; FS="/|\n";} { |
| 10069 | lt_foo=""; |
| 10070 | lt_count=0; |
| 10071 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10072 | if ($lt_i != "" && $lt_i != ".") { |
| 10073 | if ($lt_i == "..") { |
| 10074 | lt_count++; |
| 10075 | } else { |
| 10076 | if (lt_count == 0) { |
| 10077 | lt_foo="/" $lt_i lt_foo; |
| 10078 | } else { |
| 10079 | lt_count--; |
| 10080 | } |
| 10081 | } |
| 10082 | } |
| 10083 | } |
| 10084 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10085 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10086 | }'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10087 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10088 | else |
| 10089 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10090 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10091 | library_names_spec= |
| 10092 | libname_spec='lib$name' |
| 10093 | soname_spec= |
| 10094 | shrext_cmds=".so" |
| 10095 | postinstall_cmds= |
| 10096 | postuninstall_cmds= |
| 10097 | finish_cmds= |
| 10098 | finish_eval= |
| 10099 | shlibpath_var= |
| 10100 | shlibpath_overrides_runpath=unknown |
| 10101 | version_type=none |
| 10102 | dynamic_linker="$host_os ld.so" |
| 10103 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10104 | need_lib_prefix=unknown |
| 10105 | hardcode_into_libs=no |
| 10106 | |
| 10107 | # when you set need_version to no, make sure it does not cause -set_version |
| 10108 | # flags to be left without arguments |
| 10109 | need_version=unknown |
| 10110 | |
| 10111 | case $host_os in |
| 10112 | aix3*) |
| 10113 | version_type=linux |
| 10114 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10115 | shlibpath_var=LIBPATH |
| 10116 | |
| 10117 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10118 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10119 | ;; |
| 10120 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10121 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10122 | version_type=linux |
| 10123 | need_lib_prefix=no |
| 10124 | need_version=no |
| 10125 | hardcode_into_libs=yes |
| 10126 | if test "$host_cpu" = ia64; then |
| 10127 | # AIX 5 supports IA64 |
| 10128 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10129 | shlibpath_var=LD_LIBRARY_PATH |
| 10130 | else |
| 10131 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10132 | # for dependence libraries. The import file would start with |
| 10133 | # the line `#! .'. This would cause the generated library to |
| 10134 | # depend on `.', always an invalid library. This was fixed in |
| 10135 | # development snapshots of GCC prior to 3.0. |
| 10136 | case $host_os in |
| 10137 | aix4 | aix4.[01] | aix4.[01].*) |
| 10138 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10139 | echo ' yes ' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10140 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10141 | : |
| 10142 | else |
| 10143 | can_build_shared=no |
| 10144 | fi |
| 10145 | ;; |
| 10146 | esac |
| 10147 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10148 | # soname into executable. Probably we can add versioning support to |
| 10149 | # collect2, so additional links can be useful in future. |
| 10150 | if test "$aix_use_runtimelinking" = yes; then |
| 10151 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10152 | # instead of lib<name>.a to let people know that these are not |
| 10153 | # typical AIX shared libraries. |
| 10154 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10155 | else |
| 10156 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10157 | # and later when we are not doing run time linking. |
| 10158 | library_names_spec='${libname}${release}.a $libname.a' |
| 10159 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10160 | fi |
| 10161 | shlibpath_var=LIBPATH |
| 10162 | fi |
| 10163 | ;; |
| 10164 | |
| 10165 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10166 | case $host_cpu in |
| 10167 | powerpc) |
| 10168 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10169 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10170 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10171 | ;; |
| 10172 | m68k) |
| 10173 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10174 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10175 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 10176 | ;; |
| 10177 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10178 | ;; |
| 10179 | |
| 10180 | beos*) |
| 10181 | library_names_spec='${libname}${shared_ext}' |
| 10182 | dynamic_linker="$host_os ld.so" |
| 10183 | shlibpath_var=LIBRARY_PATH |
| 10184 | ;; |
| 10185 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10186 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10187 | version_type=linux |
| 10188 | need_version=no |
| 10189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10190 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10191 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10192 | shlibpath_var=LD_LIBRARY_PATH |
| 10193 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10194 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10195 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10196 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10197 | # libtool to hard-code these into programs |
| 10198 | ;; |
| 10199 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10200 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10201 | version_type=windows |
| 10202 | shrext_cmds=".dll" |
| 10203 | need_version=no |
| 10204 | need_lib_prefix=no |
| 10205 | |
| 10206 | case $GCC,$host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10207 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10208 | library_names_spec='$libname.dll.a' |
| 10209 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10210 | postinstall_cmds='base_file=`basename \${file}`~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10211 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10212 | dldir=$destdir/`dirname \$dlpath`~ |
| 10213 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10214 | $install_prog $dir/$dlname \$dldir/$dlname~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10215 | chmod a+x \$dldir/$dlname~ |
| 10216 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10217 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10218 | fi' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10219 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10220 | dlpath=$dir/\$dldll~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10221 | $RM \$dlpath' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10222 | shlibpath_overrides_runpath=yes |
| 10223 | |
| 10224 | case $host_os in |
| 10225 | cygwin*) |
| 10226 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10227 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10228 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 10229 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10230 | mingw* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10231 | # MinGW DLLs use traditional 'lib' prefix |
| 10232 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10233 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10234 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10235 | # It is most probably a Windows format PATH printed by |
| 10236 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 10237 | # path with ; separators, and with drive letters. We can handle the |
| 10238 | # drive letters (cygwin fileutils understands them), so leave them, |
| 10239 | # especially as we might pass files found there to a mingw objdump, |
| 10240 | # which wouldn't understand a cygwinified path. Ahh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10241 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10242 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10243 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10244 | fi |
| 10245 | ;; |
| 10246 | pw32*) |
| 10247 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10248 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10249 | ;; |
| 10250 | esac |
| 10251 | ;; |
| 10252 | |
| 10253 | *) |
| 10254 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10255 | ;; |
| 10256 | esac |
| 10257 | dynamic_linker='Win32 ld.exe' |
| 10258 | # FIXME: first we should search . and the directory the executable is in |
| 10259 | shlibpath_var=PATH |
| 10260 | ;; |
| 10261 | |
| 10262 | darwin* | rhapsody*) |
| 10263 | dynamic_linker="$host_os dyld" |
| 10264 | version_type=darwin |
| 10265 | need_lib_prefix=no |
| 10266 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10267 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10268 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10269 | shlibpath_overrides_runpath=yes |
| 10270 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10271 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10272 | |
| 10273 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10274 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10275 | ;; |
| 10276 | |
| 10277 | dgux*) |
| 10278 | version_type=linux |
| 10279 | need_lib_prefix=no |
| 10280 | need_version=no |
| 10281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10282 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10283 | shlibpath_var=LD_LIBRARY_PATH |
| 10284 | ;; |
| 10285 | |
| 10286 | freebsd1*) |
| 10287 | dynamic_linker=no |
| 10288 | ;; |
| 10289 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10290 | freebsd* | dragonfly*) |
| 10291 | # DragonFly does not have aout. When/if they implement a new |
| 10292 | # versioning mechanism, adjust this. |
| 10293 | if test -x /usr/bin/objformat; then |
| 10294 | objformat=`/usr/bin/objformat` |
| 10295 | else |
| 10296 | case $host_os in |
| 10297 | freebsd[123]*) objformat=aout ;; |
| 10298 | *) objformat=elf ;; |
| 10299 | esac |
| 10300 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10301 | version_type=freebsd-$objformat |
| 10302 | case $version_type in |
| 10303 | freebsd-elf*) |
| 10304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10305 | need_version=no |
| 10306 | need_lib_prefix=no |
| 10307 | ;; |
| 10308 | freebsd-*) |
| 10309 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10310 | need_version=yes |
| 10311 | ;; |
| 10312 | esac |
| 10313 | shlibpath_var=LD_LIBRARY_PATH |
| 10314 | case $host_os in |
| 10315 | freebsd2*) |
| 10316 | shlibpath_overrides_runpath=yes |
| 10317 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10318 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10319 | shlibpath_overrides_runpath=yes |
| 10320 | hardcode_into_libs=yes |
| 10321 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10322 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10323 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10324 | shlibpath_overrides_runpath=no |
| 10325 | hardcode_into_libs=yes |
| 10326 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10327 | *) # from 4.6 on, and DragonFly |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10328 | shlibpath_overrides_runpath=yes |
| 10329 | hardcode_into_libs=yes |
| 10330 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10331 | esac |
| 10332 | ;; |
| 10333 | |
| 10334 | gnu*) |
| 10335 | version_type=linux |
| 10336 | need_lib_prefix=no |
| 10337 | need_version=no |
| 10338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10339 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10340 | shlibpath_var=LD_LIBRARY_PATH |
| 10341 | hardcode_into_libs=yes |
| 10342 | ;; |
| 10343 | |
| 10344 | hpux9* | hpux10* | hpux11*) |
| 10345 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10346 | # link against other versions. |
| 10347 | version_type=sunos |
| 10348 | need_lib_prefix=no |
| 10349 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10350 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10351 | ia64*) |
| 10352 | shrext_cmds='.so' |
| 10353 | hardcode_into_libs=yes |
| 10354 | dynamic_linker="$host_os dld.so" |
| 10355 | shlibpath_var=LD_LIBRARY_PATH |
| 10356 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10358 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10359 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10360 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10361 | else |
| 10362 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10363 | fi |
| 10364 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10365 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10366 | hppa*64*) |
| 10367 | shrext_cmds='.sl' |
| 10368 | hardcode_into_libs=yes |
| 10369 | dynamic_linker="$host_os dld.sl" |
| 10370 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10371 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10373 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10374 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10375 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10376 | ;; |
| 10377 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10378 | shrext_cmds='.sl' |
| 10379 | dynamic_linker="$host_os dld.sl" |
| 10380 | shlibpath_var=SHLIB_PATH |
| 10381 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10383 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10384 | ;; |
| 10385 | esac |
| 10386 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10387 | postinstall_cmds='chmod 555 $lib' |
| 10388 | ;; |
| 10389 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10390 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10391 | version_type=linux |
| 10392 | need_lib_prefix=no |
| 10393 | need_version=no |
| 10394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10395 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10396 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10397 | shlibpath_var=LD_LIBRARY_PATH |
| 10398 | shlibpath_overrides_runpath=no |
| 10399 | hardcode_into_libs=yes |
| 10400 | ;; |
| 10401 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10402 | irix5* | irix6* | nonstopux*) |
| 10403 | case $host_os in |
| 10404 | nonstopux*) version_type=nonstopux ;; |
| 10405 | *) |
| 10406 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10407 | version_type=linux |
| 10408 | else |
| 10409 | version_type=irix |
| 10410 | fi ;; |
| 10411 | esac |
| 10412 | need_lib_prefix=no |
| 10413 | need_version=no |
| 10414 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10416 | case $host_os in |
| 10417 | irix5* | nonstopux*) |
| 10418 | libsuff= shlibsuff= |
| 10419 | ;; |
| 10420 | *) |
| 10421 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10422 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10423 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10424 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10425 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10426 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10427 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10428 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10429 | esac |
| 10430 | ;; |
| 10431 | esac |
| 10432 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10433 | shlibpath_overrides_runpath=no |
| 10434 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10435 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10436 | hardcode_into_libs=yes |
| 10437 | ;; |
| 10438 | |
| 10439 | # No shared lib support for Linux oldld, aout, or coff. |
| 10440 | linux*oldld* | linux*aout* | linux*coff*) |
| 10441 | dynamic_linker=no |
| 10442 | ;; |
| 10443 | |
| 10444 | # This must be Linux ELF. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10445 | linux* | k*bsd*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10446 | version_type=linux |
| 10447 | need_lib_prefix=no |
| 10448 | need_version=no |
| 10449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10450 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10451 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10452 | shlibpath_var=LD_LIBRARY_PATH |
| 10453 | shlibpath_overrides_runpath=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10454 | # Some binutils ld are patched to set DT_RUNPATH |
| 10455 | save_LDFLAGS=$LDFLAGS |
| 10456 | save_libdir=$libdir |
| 10457 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10458 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10460 | /* end confdefs.h. */ |
| 10461 | |
| 10462 | int |
| 10463 | main () |
| 10464 | { |
| 10465 | |
| 10466 | ; |
| 10467 | return 0; |
| 10468 | } |
| 10469 | _ACEOF |
| 10470 | if ac_fn_c_try_link "$LINENO"; then : |
| 10471 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 10472 | shlibpath_overrides_runpath=yes |
| 10473 | fi |
| 10474 | fi |
| 10475 | rm -f core conftest.err conftest.$ac_objext \ |
| 10476 | conftest$ac_exeext conftest.$ac_ext |
| 10477 | LDFLAGS=$save_LDFLAGS |
| 10478 | libdir=$save_libdir |
| 10479 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10480 | # This implies no fast_install, which is unacceptable. |
| 10481 | # Some rework will be needed to allow for fast_install |
| 10482 | # before this can be enabled. |
| 10483 | hardcode_into_libs=yes |
| 10484 | |
| 10485 | # Append ld.so.conf contents to the search path |
| 10486 | if test -f /etc/ld.so.conf; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10487 | 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;/^$/d' | tr '\n' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10488 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10489 | fi |
| 10490 | |
| 10491 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10492 | # powerpc, because MkLinux only supported shared libraries with the |
| 10493 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10494 | # most powerpc-linux boxes support dynamic linking these days and |
| 10495 | # people can always --disable-shared, the test was removed, and we |
| 10496 | # assume the GNU/Linux dynamic linker is in use. |
| 10497 | dynamic_linker='GNU/Linux ld.so' |
| 10498 | ;; |
| 10499 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10500 | netbsd*) |
| 10501 | version_type=sunos |
| 10502 | need_lib_prefix=no |
| 10503 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10504 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10506 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10507 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10508 | else |
| 10509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10510 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10511 | dynamic_linker='NetBSD ld.elf_so' |
| 10512 | fi |
| 10513 | shlibpath_var=LD_LIBRARY_PATH |
| 10514 | shlibpath_overrides_runpath=yes |
| 10515 | hardcode_into_libs=yes |
| 10516 | ;; |
| 10517 | |
| 10518 | newsos6) |
| 10519 | version_type=linux |
| 10520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10521 | shlibpath_var=LD_LIBRARY_PATH |
| 10522 | shlibpath_overrides_runpath=yes |
| 10523 | ;; |
| 10524 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10525 | *nto* | *qnx*) |
| 10526 | version_type=qnx |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10527 | need_lib_prefix=no |
| 10528 | need_version=no |
| 10529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10530 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10531 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10532 | shlibpath_overrides_runpath=no |
| 10533 | hardcode_into_libs=yes |
| 10534 | dynamic_linker='ldqnx.so' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10535 | ;; |
| 10536 | |
| 10537 | openbsd*) |
| 10538 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10539 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10540 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10541 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10542 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10543 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10544 | *) need_version=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10545 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10547 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10548 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10549 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10550 | case $host_os in |
| 10551 | openbsd2.[89] | openbsd2.[89].*) |
| 10552 | shlibpath_overrides_runpath=no |
| 10553 | ;; |
| 10554 | *) |
| 10555 | shlibpath_overrides_runpath=yes |
| 10556 | ;; |
| 10557 | esac |
| 10558 | else |
| 10559 | shlibpath_overrides_runpath=yes |
| 10560 | fi |
| 10561 | ;; |
| 10562 | |
| 10563 | os2*) |
| 10564 | libname_spec='$name' |
| 10565 | shrext_cmds=".dll" |
| 10566 | need_lib_prefix=no |
| 10567 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10568 | dynamic_linker='OS/2 ld.exe' |
| 10569 | shlibpath_var=LIBPATH |
| 10570 | ;; |
| 10571 | |
| 10572 | osf3* | osf4* | osf5*) |
| 10573 | version_type=osf |
| 10574 | need_lib_prefix=no |
| 10575 | need_version=no |
| 10576 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10577 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10578 | shlibpath_var=LD_LIBRARY_PATH |
| 10579 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10580 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10581 | ;; |
| 10582 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10583 | rdos*) |
| 10584 | dynamic_linker=no |
| 10585 | ;; |
| 10586 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10587 | solaris*) |
| 10588 | version_type=linux |
| 10589 | need_lib_prefix=no |
| 10590 | need_version=no |
| 10591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10592 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10593 | shlibpath_var=LD_LIBRARY_PATH |
| 10594 | shlibpath_overrides_runpath=yes |
| 10595 | hardcode_into_libs=yes |
| 10596 | # ldd complains unless libraries are executable |
| 10597 | postinstall_cmds='chmod +x $lib' |
| 10598 | ;; |
| 10599 | |
| 10600 | sunos4*) |
| 10601 | version_type=sunos |
| 10602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10603 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10604 | shlibpath_var=LD_LIBRARY_PATH |
| 10605 | shlibpath_overrides_runpath=yes |
| 10606 | if test "$with_gnu_ld" = yes; then |
| 10607 | need_lib_prefix=no |
| 10608 | fi |
| 10609 | need_version=yes |
| 10610 | ;; |
| 10611 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10612 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10613 | version_type=linux |
| 10614 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10615 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10616 | shlibpath_var=LD_LIBRARY_PATH |
| 10617 | case $host_vendor in |
| 10618 | sni) |
| 10619 | shlibpath_overrides_runpath=no |
| 10620 | need_lib_prefix=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10621 | runpath_var=LD_RUN_PATH |
| 10622 | ;; |
| 10623 | siemens) |
| 10624 | need_lib_prefix=no |
| 10625 | ;; |
| 10626 | motorola) |
| 10627 | need_lib_prefix=no |
| 10628 | need_version=no |
| 10629 | shlibpath_overrides_runpath=no |
| 10630 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10631 | ;; |
| 10632 | esac |
| 10633 | ;; |
| 10634 | |
| 10635 | sysv4*MP*) |
| 10636 | if test -d /usr/nec ;then |
| 10637 | version_type=linux |
| 10638 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10639 | soname_spec='$libname${shared_ext}.$major' |
| 10640 | shlibpath_var=LD_LIBRARY_PATH |
| 10641 | fi |
| 10642 | ;; |
| 10643 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10644 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10645 | version_type=freebsd-elf |
| 10646 | need_lib_prefix=no |
| 10647 | need_version=no |
| 10648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10649 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10650 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10651 | shlibpath_overrides_runpath=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10652 | hardcode_into_libs=yes |
| 10653 | if test "$with_gnu_ld" = yes; then |
| 10654 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10655 | else |
| 10656 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10657 | case $host_os in |
| 10658 | sco3.2v5*) |
| 10659 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10660 | ;; |
| 10661 | esac |
| 10662 | fi |
| 10663 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10664 | ;; |
| 10665 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10666 | tpf*) |
| 10667 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10668 | version_type=linux |
| 10669 | need_lib_prefix=no |
| 10670 | need_version=no |
| 10671 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10672 | shlibpath_var=LD_LIBRARY_PATH |
| 10673 | shlibpath_overrides_runpath=no |
| 10674 | hardcode_into_libs=yes |
| 10675 | ;; |
| 10676 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10677 | uts4*) |
| 10678 | version_type=linux |
| 10679 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10680 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10681 | shlibpath_var=LD_LIBRARY_PATH |
| 10682 | ;; |
| 10683 | |
| 10684 | *) |
| 10685 | dynamic_linker=no |
| 10686 | ;; |
| 10687 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 10689 | $as_echo "$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10690 | test "$dynamic_linker" = no && can_build_shared=no |
| 10691 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10692 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10693 | if test "$GCC" = yes; then |
| 10694 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10695 | fi |
| 10696 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10697 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10698 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10699 | fi |
| 10700 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10701 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10702 | fi |
| 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 10791 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10792 | hardcode_action= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10793 | if test -n "$hardcode_libdir_flag_spec" || |
| 10794 | test -n "$runpath_var" || |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10795 | test "X$hardcode_automatic" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10796 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10797 | # We can hardcode non-existent directories. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10798 | if test "$hardcode_direct" != no && |
| 10799 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10800 | # have to relink, otherwise we might link with an installed library |
| 10801 | # when we should be linking with a yet-to-be-installed one |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10802 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10803 | test "$hardcode_minus_L" != no; then |
| 10804 | # Linking always hardcodes the temporary library directory. |
| 10805 | hardcode_action=relink |
| 10806 | else |
| 10807 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10808 | hardcode_action=immediate |
| 10809 | fi |
| 10810 | else |
| 10811 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10812 | # directories. |
| 10813 | hardcode_action=unsupported |
| 10814 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 10816 | $as_echo "$hardcode_action" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10817 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10818 | if test "$hardcode_action" = relink || |
| 10819 | test "$inherit_rpath" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10820 | # Fast installation is not supported |
| 10821 | enable_fast_install=no |
| 10822 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10823 | test "$enable_shared" = no; then |
| 10824 | # Fast installation is not necessary |
| 10825 | enable_fast_install=needless |
| 10826 | fi |
| 10827 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10828 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10829 | |
| 10830 | |
| 10831 | |
| 10832 | |
| 10833 | if test "x$enable_dlopen" != xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10834 | enable_dlopen=unknown |
| 10835 | enable_dlopen_self=unknown |
| 10836 | enable_dlopen_self_static=unknown |
| 10837 | else |
| 10838 | lt_cv_dlopen=no |
| 10839 | lt_cv_dlopen_libs= |
| 10840 | |
| 10841 | case $host_os in |
| 10842 | beos*) |
| 10843 | lt_cv_dlopen="load_add_on" |
| 10844 | lt_cv_dlopen_libs= |
| 10845 | lt_cv_dlopen_self=yes |
| 10846 | ;; |
| 10847 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10848 | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10849 | lt_cv_dlopen="LoadLibrary" |
| 10850 | lt_cv_dlopen_libs= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10851 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10852 | |
| 10853 | cygwin*) |
| 10854 | lt_cv_dlopen="dlopen" |
| 10855 | lt_cv_dlopen_libs= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10856 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10857 | |
| 10858 | darwin*) |
| 10859 | # if libdl is installed we need to link against it |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10861 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10862 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 10863 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10864 | else |
| 10865 | ac_check_lib_save_LIBS=$LIBS |
| 10866 | LIBS="-ldl $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10868 | /* end confdefs.h. */ |
| 10869 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10870 | /* Override any GCC internal prototype to avoid an error. |
| 10871 | Use char because int might match the return type of a GCC |
| 10872 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10873 | #ifdef __cplusplus |
| 10874 | extern "C" |
| 10875 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10876 | char dlopen (); |
| 10877 | int |
| 10878 | main () |
| 10879 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10880 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10881 | ; |
| 10882 | return 0; |
| 10883 | } |
| 10884 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10885 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10886 | ac_cv_lib_dl_dlopen=yes |
| 10887 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10888 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10889 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10890 | rm -f core conftest.err conftest.$ac_objext \ |
| 10891 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10892 | LIBS=$ac_check_lib_save_LIBS |
| 10893 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10895 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10896 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10897 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10898 | else |
| 10899 | |
| 10900 | lt_cv_dlopen="dyld" |
| 10901 | lt_cv_dlopen_libs= |
| 10902 | lt_cv_dlopen_self=yes |
| 10903 | |
| 10904 | fi |
| 10905 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10906 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10907 | |
| 10908 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10909 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 10910 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10911 | lt_cv_dlopen="shl_load" |
| 10912 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 10914 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 10915 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| 10916 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10917 | else |
| 10918 | ac_check_lib_save_LIBS=$LIBS |
| 10919 | LIBS="-ldld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10921 | /* end confdefs.h. */ |
| 10922 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10923 | /* Override any GCC internal prototype to avoid an error. |
| 10924 | Use char because int might match the return type of a GCC |
| 10925 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10926 | #ifdef __cplusplus |
| 10927 | extern "C" |
| 10928 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10929 | char shl_load (); |
| 10930 | int |
| 10931 | main () |
| 10932 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10933 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10934 | ; |
| 10935 | return 0; |
| 10936 | } |
| 10937 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10938 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10939 | ac_cv_lib_dld_shl_load=yes |
| 10940 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10941 | ac_cv_lib_dld_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10942 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10943 | rm -f core conftest.err conftest.$ac_objext \ |
| 10944 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10945 | LIBS=$ac_check_lib_save_LIBS |
| 10946 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10948 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 10949 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10950 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10951 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10952 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 10953 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10954 | lt_cv_dlopen="dlopen" |
| 10955 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10957 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10958 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 10959 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10960 | else |
| 10961 | ac_check_lib_save_LIBS=$LIBS |
| 10962 | LIBS="-ldl $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10963 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10964 | /* end confdefs.h. */ |
| 10965 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10966 | /* Override any GCC internal prototype to avoid an error. |
| 10967 | Use char because int might match the return type of a GCC |
| 10968 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10969 | #ifdef __cplusplus |
| 10970 | extern "C" |
| 10971 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10972 | char dlopen (); |
| 10973 | int |
| 10974 | main () |
| 10975 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10976 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10977 | ; |
| 10978 | return 0; |
| 10979 | } |
| 10980 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10981 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10982 | ac_cv_lib_dl_dlopen=yes |
| 10983 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10984 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10985 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10986 | rm -f core conftest.err conftest.$ac_objext \ |
| 10987 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10988 | LIBS=$ac_check_lib_save_LIBS |
| 10989 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10990 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10991 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10992 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10993 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10994 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 10996 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 10997 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| 10998 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10999 | else |
| 11000 | ac_check_lib_save_LIBS=$LIBS |
| 11001 | LIBS="-lsvld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11002 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11003 | /* end confdefs.h. */ |
| 11004 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11005 | /* Override any GCC internal prototype to avoid an error. |
| 11006 | Use char because int might match the return type of a GCC |
| 11007 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11008 | #ifdef __cplusplus |
| 11009 | extern "C" |
| 11010 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11011 | char dlopen (); |
| 11012 | int |
| 11013 | main () |
| 11014 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11015 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11016 | ; |
| 11017 | return 0; |
| 11018 | } |
| 11019 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11020 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11021 | ac_cv_lib_svld_dlopen=yes |
| 11022 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11023 | ac_cv_lib_svld_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11024 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11025 | rm -f core conftest.err conftest.$ac_objext \ |
| 11026 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11027 | LIBS=$ac_check_lib_save_LIBS |
| 11028 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11030 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11031 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11032 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11033 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11035 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11036 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| 11037 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11038 | else |
| 11039 | ac_check_lib_save_LIBS=$LIBS |
| 11040 | LIBS="-ldld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11042 | /* end confdefs.h. */ |
| 11043 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11044 | /* Override any GCC internal prototype to avoid an error. |
| 11045 | Use char because int might match the return type of a GCC |
| 11046 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11047 | #ifdef __cplusplus |
| 11048 | extern "C" |
| 11049 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11050 | char dld_link (); |
| 11051 | int |
| 11052 | main () |
| 11053 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11054 | return dld_link (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11055 | ; |
| 11056 | return 0; |
| 11057 | } |
| 11058 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11059 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11060 | ac_cv_lib_dld_dld_link=yes |
| 11061 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11062 | ac_cv_lib_dld_dld_link=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11063 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11064 | rm -f core conftest.err conftest.$ac_objext \ |
| 11065 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11066 | LIBS=$ac_check_lib_save_LIBS |
| 11067 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11068 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11069 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11070 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11071 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11072 | fi |
| 11073 | |
| 11074 | |
| 11075 | fi |
| 11076 | |
| 11077 | |
| 11078 | fi |
| 11079 | |
| 11080 | |
| 11081 | fi |
| 11082 | |
| 11083 | |
| 11084 | fi |
| 11085 | |
| 11086 | |
| 11087 | fi |
| 11088 | |
| 11089 | ;; |
| 11090 | esac |
| 11091 | |
| 11092 | if test "x$lt_cv_dlopen" != xno; then |
| 11093 | enable_dlopen=yes |
| 11094 | else |
| 11095 | enable_dlopen=no |
| 11096 | fi |
| 11097 | |
| 11098 | case $lt_cv_dlopen in |
| 11099 | dlopen) |
| 11100 | save_CPPFLAGS="$CPPFLAGS" |
| 11101 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11102 | |
| 11103 | save_LDFLAGS="$LDFLAGS" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11104 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11105 | |
| 11106 | save_LIBS="$LIBS" |
| 11107 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11108 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11110 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11111 | if test "${lt_cv_dlopen_self+set}" = set; then : |
| 11112 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11113 | else |
| 11114 | if test "$cross_compiling" = yes; then : |
| 11115 | lt_cv_dlopen_self=cross |
| 11116 | else |
| 11117 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11118 | lt_status=$lt_dlunknown |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11119 | cat > conftest.$ac_ext <<_LT_EOF |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 11120 | #line 11120 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11121 | #include "confdefs.h" |
| 11122 | |
| 11123 | #if HAVE_DLFCN_H |
| 11124 | #include <dlfcn.h> |
| 11125 | #endif |
| 11126 | |
| 11127 | #include <stdio.h> |
| 11128 | |
| 11129 | #ifdef RTLD_GLOBAL |
| 11130 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11131 | #else |
| 11132 | # ifdef DL_GLOBAL |
| 11133 | # define LT_DLGLOBAL DL_GLOBAL |
| 11134 | # else |
| 11135 | # define LT_DLGLOBAL 0 |
| 11136 | # endif |
| 11137 | #endif |
| 11138 | |
| 11139 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11140 | find out it does not work in some platform. */ |
| 11141 | #ifndef LT_DLLAZY_OR_NOW |
| 11142 | # ifdef RTLD_LAZY |
| 11143 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11144 | # else |
| 11145 | # ifdef DL_LAZY |
| 11146 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11147 | # else |
| 11148 | # ifdef RTLD_NOW |
| 11149 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11150 | # else |
| 11151 | # ifdef DL_NOW |
| 11152 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11153 | # else |
| 11154 | # define LT_DLLAZY_OR_NOW 0 |
| 11155 | # endif |
| 11156 | # endif |
| 11157 | # endif |
| 11158 | # endif |
| 11159 | #endif |
| 11160 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11161 | void fnord() { int i=42;} |
| 11162 | int main () |
| 11163 | { |
| 11164 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11165 | int status = $lt_dlunknown; |
| 11166 | |
| 11167 | if (self) |
| 11168 | { |
| 11169 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11170 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11171 | /* dlclose (self); */ |
| 11172 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11173 | else |
| 11174 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11175 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11176 | return status; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11177 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11178 | _LT_EOF |
| 11179 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11180 | (eval $ac_link) 2>&5 |
| 11181 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11182 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11183 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11184 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11185 | lt_status=$? |
| 11186 | case x$lt_status in |
| 11187 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11188 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11189 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11190 | esac |
| 11191 | else : |
| 11192 | # compilation failed |
| 11193 | lt_cv_dlopen_self=no |
| 11194 | fi |
| 11195 | fi |
| 11196 | rm -fr conftest* |
| 11197 | |
| 11198 | |
| 11199 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11201 | $as_echo "$lt_cv_dlopen_self" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11202 | |
| 11203 | if test "x$lt_cv_dlopen_self" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11204 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11206 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11207 | if test "${lt_cv_dlopen_self_static+set}" = set; then : |
| 11208 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11209 | else |
| 11210 | if test "$cross_compiling" = yes; then : |
| 11211 | lt_cv_dlopen_self_static=cross |
| 11212 | else |
| 11213 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11214 | lt_status=$lt_dlunknown |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11215 | cat > conftest.$ac_ext <<_LT_EOF |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 11216 | #line 11216 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11217 | #include "confdefs.h" |
| 11218 | |
| 11219 | #if HAVE_DLFCN_H |
| 11220 | #include <dlfcn.h> |
| 11221 | #endif |
| 11222 | |
| 11223 | #include <stdio.h> |
| 11224 | |
| 11225 | #ifdef RTLD_GLOBAL |
| 11226 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11227 | #else |
| 11228 | # ifdef DL_GLOBAL |
| 11229 | # define LT_DLGLOBAL DL_GLOBAL |
| 11230 | # else |
| 11231 | # define LT_DLGLOBAL 0 |
| 11232 | # endif |
| 11233 | #endif |
| 11234 | |
| 11235 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11236 | find out it does not work in some platform. */ |
| 11237 | #ifndef LT_DLLAZY_OR_NOW |
| 11238 | # ifdef RTLD_LAZY |
| 11239 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11240 | # else |
| 11241 | # ifdef DL_LAZY |
| 11242 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11243 | # else |
| 11244 | # ifdef RTLD_NOW |
| 11245 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11246 | # else |
| 11247 | # ifdef DL_NOW |
| 11248 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11249 | # else |
| 11250 | # define LT_DLLAZY_OR_NOW 0 |
| 11251 | # endif |
| 11252 | # endif |
| 11253 | # endif |
| 11254 | # endif |
| 11255 | #endif |
| 11256 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11257 | void fnord() { int i=42;} |
| 11258 | int main () |
| 11259 | { |
| 11260 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11261 | int status = $lt_dlunknown; |
| 11262 | |
| 11263 | if (self) |
| 11264 | { |
| 11265 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11266 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11267 | /* dlclose (self); */ |
| 11268 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11269 | else |
| 11270 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11271 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11272 | return status; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11273 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11274 | _LT_EOF |
| 11275 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11276 | (eval $ac_link) 2>&5 |
| 11277 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11278 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11279 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11280 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11281 | lt_status=$? |
| 11282 | case x$lt_status in |
| 11283 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11284 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11285 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11286 | esac |
| 11287 | else : |
| 11288 | # compilation failed |
| 11289 | lt_cv_dlopen_self_static=no |
| 11290 | fi |
| 11291 | fi |
| 11292 | rm -fr conftest* |
| 11293 | |
| 11294 | |
| 11295 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11297 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11298 | fi |
| 11299 | |
| 11300 | CPPFLAGS="$save_CPPFLAGS" |
| 11301 | LDFLAGS="$save_LDFLAGS" |
| 11302 | LIBS="$save_LIBS" |
| 11303 | ;; |
| 11304 | esac |
| 11305 | |
| 11306 | case $lt_cv_dlopen_self in |
| 11307 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11308 | *) enable_dlopen_self=unknown ;; |
| 11309 | esac |
| 11310 | |
| 11311 | case $lt_cv_dlopen_self_static in |
| 11312 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11313 | *) enable_dlopen_self_static=unknown ;; |
| 11314 | esac |
| 11315 | fi |
| 11316 | |
| 11317 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11318 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11319 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11320 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11321 | |
| 11322 | |
| 11323 | |
| 11324 | |
| 11325 | |
| 11326 | |
| 11327 | |
| 11328 | |
| 11329 | |
| 11330 | |
| 11331 | |
| 11332 | |
| 11333 | striplib= |
| 11334 | old_striplib= |
| 11335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 11336 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 11337 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11338 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11339 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11341 | $as_echo "yes" >&6; } |
| 11342 | else |
| 11343 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11344 | case $host_os in |
| 11345 | darwin*) |
| 11346 | if test -n "$STRIP" ; then |
| 11347 | striplib="$STRIP -x" |
| 11348 | old_striplib="$STRIP -S" |
| 11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11350 | $as_echo "yes" >&6; } |
| 11351 | else |
| 11352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11353 | $as_echo "no" >&6; } |
| 11354 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11355 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11356 | *) |
| 11357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11358 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11359 | ;; |
| 11360 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11361 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11362 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11363 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11364 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11365 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11366 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11367 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11368 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11369 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11370 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11371 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11372 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11373 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11374 | # Report which library types will actually be built |
| 11375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 11376 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 11377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 11378 | $as_echo "$can_build_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11379 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 11381 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 11382 | test "$can_build_shared" = "no" && enable_shared=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11383 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11384 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11385 | # are all built from PIC. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11386 | case $host_os in |
| 11387 | aix3*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11388 | test "$enable_shared" = yes && enable_static=no |
| 11389 | if test -n "$RANLIB"; then |
| 11390 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11391 | postinstall_cmds='$RANLIB $lib' |
| 11392 | fi |
| 11393 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11394 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11395 | aix[4-9]*) |
| 11396 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11397 | test "$enable_shared" = yes && enable_static=no |
| 11398 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11399 | ;; |
| 11400 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 11402 | $as_echo "$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11403 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 11405 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 11406 | # Make sure either enable_shared or enable_static is yes. |
| 11407 | test "$enable_shared" = yes || enable_static=yes |
| 11408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 11409 | $as_echo "$enable_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11410 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11411 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11412 | |
| 11413 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11414 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11415 | ac_ext=c |
| 11416 | ac_cpp='$CPP $CPPFLAGS' |
| 11417 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11418 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11419 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11420 | |
| 11421 | CC="$lt_save_CC" |
| 11422 | |
| 11423 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11424 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11425 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11426 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11427 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11428 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11429 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11430 | archive_cmds_need_lc_CXX=no |
| 11431 | allow_undefined_flag_CXX= |
| 11432 | always_export_symbols_CXX=no |
| 11433 | archive_expsym_cmds_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11434 | compiler_needs_object_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11435 | export_dynamic_flag_spec_CXX= |
| 11436 | hardcode_direct_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11437 | hardcode_direct_absolute_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11438 | hardcode_libdir_flag_spec_CXX= |
| 11439 | hardcode_libdir_flag_spec_ld_CXX= |
| 11440 | hardcode_libdir_separator_CXX= |
| 11441 | hardcode_minus_L_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11442 | hardcode_shlibpath_var_CXX=unsupported |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11443 | hardcode_automatic_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11444 | inherit_rpath_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11445 | module_cmds_CXX= |
| 11446 | module_expsym_cmds_CXX= |
| 11447 | link_all_deplibs_CXX=unknown |
| 11448 | old_archive_cmds_CXX=$old_archive_cmds |
| 11449 | no_undefined_flag_CXX= |
| 11450 | whole_archive_flag_spec_CXX= |
| 11451 | enable_shared_with_static_runtimes_CXX=no |
| 11452 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11453 | # Source file extension for C++ test sources. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11454 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11455 | |
| 11456 | # Object file extension for compiled C++ test sources. |
| 11457 | objext=o |
| 11458 | objext_CXX=$objext |
| 11459 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11460 | # No sense in running all these tests if we already determined that |
| 11461 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 11462 | # are currently assumed to apply to all compilers on this platform, |
| 11463 | # and will be corrupted by setting them based on a non-working compiler. |
| 11464 | if test "$_lt_caught_CXX_error" != yes; then |
| 11465 | # Code to be used in simple compile tests |
| 11466 | lt_simple_compile_test_code="int some_variable = 0;" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11467 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11468 | # Code to be used in simple link tests |
| 11469 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11470 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11471 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11472 | |
| 11473 | |
| 11474 | |
| 11475 | |
| 11476 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11477 | |
| 11478 | # If no C compiler was specified, use CC. |
| 11479 | LTCC=${LTCC-"$CC"} |
| 11480 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11481 | # If no C compiler flags were specified, use CFLAGS. |
| 11482 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11483 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11484 | # Allow CC to be a program name with arguments. |
| 11485 | compiler=$CC |
| 11486 | |
| 11487 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11488 | # save warnings/boilerplate of simple test code |
| 11489 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11490 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11491 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11492 | _lt_compiler_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11493 | $RM conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11494 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11495 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11496 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11497 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11498 | _lt_linker_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11499 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11500 | |
| 11501 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11502 | # Allow CC to be a program name with arguments. |
| 11503 | lt_save_CC=$CC |
| 11504 | lt_save_LD=$LD |
| 11505 | lt_save_GCC=$GCC |
| 11506 | GCC=$GXX |
| 11507 | lt_save_with_gnu_ld=$with_gnu_ld |
| 11508 | lt_save_path_LD=$lt_cv_path_LD |
| 11509 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11510 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11511 | else |
| 11512 | $as_unset lt_cv_prog_gnu_ld |
| 11513 | fi |
| 11514 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11515 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11516 | else |
| 11517 | $as_unset lt_cv_path_LD |
| 11518 | fi |
| 11519 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 11520 | CC=${CXX-"c++"} |
| 11521 | compiler=$CC |
| 11522 | compiler_CXX=$CC |
| 11523 | for cc_temp in $compiler""; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11524 | case $cc_temp in |
| 11525 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11526 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11527 | \-*) ;; |
| 11528 | *) break;; |
| 11529 | esac |
| 11530 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11531 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11532 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11533 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11534 | if test -n "$compiler"; then |
| 11535 | # We don't want -fno-exception when compiling C++ code, so set the |
| 11536 | # no_builtin_flag separately |
| 11537 | if test "$GXX" = yes; then |
| 11538 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11539 | else |
| 11540 | lt_prog_compiler_no_builtin_flag_CXX= |
| 11541 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11542 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11543 | if test "$GXX" = yes; then |
| 11544 | # Set up default GNU C++ configuration |
| 11545 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11546 | |
| 11547 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11548 | # Check whether --with-gnu-ld was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11549 | if test "${with_gnu_ld+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11550 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11551 | else |
| 11552 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11553 | fi |
| 11554 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11555 | ac_prog=ld |
| 11556 | if test "$GCC" = yes; then |
| 11557 | # Check if gcc -print-prog-name=ld gives a path. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 11559 | $as_echo_n "checking for ld used by $CC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11560 | case $host in |
| 11561 | *-*-mingw*) |
| 11562 | # gcc leaves a trailing carriage return which upsets mingw |
| 11563 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11564 | *) |
| 11565 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11566 | esac |
| 11567 | case $ac_prog in |
| 11568 | # Accept absolute paths. |
| 11569 | [\\/]* | ?:[\\/]*) |
| 11570 | re_direlt='/[^/][^/]*/\.\./' |
| 11571 | # Canonicalize the pathname of ld |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11572 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 11573 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 11574 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11575 | done |
| 11576 | test -z "$LD" && LD="$ac_prog" |
| 11577 | ;; |
| 11578 | "") |
| 11579 | # If it fails, then pretend we aren't using GCC. |
| 11580 | ac_prog=ld |
| 11581 | ;; |
| 11582 | *) |
| 11583 | # If it is relative, then search for the first ld in PATH. |
| 11584 | with_gnu_ld=unknown |
| 11585 | ;; |
| 11586 | esac |
| 11587 | elif test "$with_gnu_ld" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 11589 | $as_echo_n "checking for GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11590 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11591 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 11592 | $as_echo_n "checking for non-GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11593 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11594 | if test "${lt_cv_path_LD+set}" = set; then : |
| 11595 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11596 | else |
| 11597 | if test -z "$LD"; then |
| 11598 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11599 | for ac_dir in $PATH; do |
| 11600 | IFS="$lt_save_ifs" |
| 11601 | test -z "$ac_dir" && ac_dir=. |
| 11602 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11603 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11604 | # Check to see if the program is GNU ld. I'd rather use --version, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11605 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11606 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11607 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11608 | *GNU* | *'with BFD'*) |
| 11609 | test "$with_gnu_ld" != no && break |
| 11610 | ;; |
| 11611 | *) |
| 11612 | test "$with_gnu_ld" != yes && break |
| 11613 | ;; |
| 11614 | esac |
| 11615 | fi |
| 11616 | done |
| 11617 | IFS="$lt_save_ifs" |
| 11618 | else |
| 11619 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11620 | fi |
| 11621 | fi |
| 11622 | |
| 11623 | LD="$lt_cv_path_LD" |
| 11624 | if test -n "$LD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11625 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 11626 | $as_echo "$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11627 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11628 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11629 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11630 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11631 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 11633 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 11634 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 11635 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11636 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11637 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11638 | case `$LD -v 2>&1 </dev/null` in |
| 11639 | *GNU* | *'with BFD'*) |
| 11640 | lt_cv_prog_gnu_ld=yes |
| 11641 | ;; |
| 11642 | *) |
| 11643 | lt_cv_prog_gnu_ld=no |
| 11644 | ;; |
| 11645 | esac |
| 11646 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 11648 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11649 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11650 | |
| 11651 | |
| 11652 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11653 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11654 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11655 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11656 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11657 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11658 | # archiving commands below assume that GNU ld is being used. |
| 11659 | if test "$with_gnu_ld" = yes; then |
| 11660 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11661 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11662 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11663 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11664 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11665 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11666 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11667 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11668 | # investigate it a little bit more. (MM) |
| 11669 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11670 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11671 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11672 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 11673 | $GREP 'no-whole-archive' > /dev/null; then |
| 11674 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11675 | else |
| 11676 | whole_archive_flag_spec_CXX= |
| 11677 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11678 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11679 | with_gnu_ld=no |
| 11680 | wlarc= |
| 11681 | |
| 11682 | # A generic and very simple default shared library creation |
| 11683 | # command for GNU C++ for the case where it uses the native |
| 11684 | # linker, instead of GNU ld. If possible, this setting should |
| 11685 | # overridden to take advantage of the native linker features on |
| 11686 | # the platform it is being used on. |
| 11687 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11688 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11689 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11690 | # Commands to make compiler produce verbose output that lists |
| 11691 | # what "hidden" libraries, object files and flags are used when |
| 11692 | # linking a shared library. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11693 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 11694 | |
| 11695 | else |
| 11696 | GXX=no |
| 11697 | with_gnu_ld=no |
| 11698 | wlarc= |
| 11699 | fi |
| 11700 | |
| 11701 | # PORTME: fill in a description of your system's C++ link characteristics |
| 11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11703 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 11704 | ld_shlibs_CXX=yes |
| 11705 | case $host_os in |
| 11706 | aix3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11707 | # FIXME: insert proper C++ library support |
| 11708 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11709 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11710 | aix[4-9]*) |
| 11711 | if test "$host_cpu" = ia64; then |
| 11712 | # On IA64, the linker does run time linking by default, so we don't |
| 11713 | # have to do anything special. |
| 11714 | aix_use_runtimelinking=no |
| 11715 | exp_sym_flag='-Bexport' |
| 11716 | no_entry_flag="" |
| 11717 | else |
| 11718 | aix_use_runtimelinking=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11719 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11720 | # Test if we are trying to use run time linking or normal |
| 11721 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11722 | # need to do runtime linking. |
| 11723 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11724 | for ld_flag in $LDFLAGS; do |
| 11725 | case $ld_flag in |
| 11726 | *-brtl*) |
| 11727 | aix_use_runtimelinking=yes |
| 11728 | break |
| 11729 | ;; |
| 11730 | esac |
| 11731 | done |
| 11732 | ;; |
| 11733 | esac |
| 11734 | |
| 11735 | exp_sym_flag='-bexport' |
| 11736 | no_entry_flag='-bnoentry' |
| 11737 | fi |
| 11738 | |
| 11739 | # When large executables or shared objects are built, AIX ld can |
| 11740 | # have problems creating the table of contents. If linking a library |
| 11741 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11742 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11743 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11744 | |
| 11745 | archive_cmds_CXX='' |
| 11746 | hardcode_direct_CXX=yes |
| 11747 | hardcode_direct_absolute_CXX=yes |
| 11748 | hardcode_libdir_separator_CXX=':' |
| 11749 | link_all_deplibs_CXX=yes |
| 11750 | file_list_spec_CXX='${wl}-f,' |
| 11751 | |
| 11752 | if test "$GXX" = yes; then |
| 11753 | case $host_os in aix4.[012]|aix4.[012].*) |
| 11754 | # We only want to do this on AIX 4.2 and lower, the check |
| 11755 | # below for broken collect2 doesn't work under 4.3+ |
| 11756 | collect2name=`${CC} -print-prog-name=collect2` |
| 11757 | if test -f "$collect2name" && |
| 11758 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 11759 | then |
| 11760 | # We have reworked collect2 |
| 11761 | : |
| 11762 | else |
| 11763 | # We have old collect2 |
| 11764 | hardcode_direct_CXX=unsupported |
| 11765 | # It fails to find uninstalled libraries when the uninstalled |
| 11766 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11767 | # to unsupported forces relinking |
| 11768 | hardcode_minus_L_CXX=yes |
| 11769 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11770 | hardcode_libdir_separator_CXX= |
| 11771 | fi |
| 11772 | esac |
| 11773 | shared_flag='-shared' |
| 11774 | if test "$aix_use_runtimelinking" = yes; then |
| 11775 | shared_flag="$shared_flag "'${wl}-G' |
| 11776 | fi |
| 11777 | else |
| 11778 | # not using gcc |
| 11779 | if test "$host_cpu" = ia64; then |
| 11780 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11781 | # chokes on -Wl,-G. The following line is correct: |
| 11782 | shared_flag='-G' |
| 11783 | else |
| 11784 | if test "$aix_use_runtimelinking" = yes; then |
| 11785 | shared_flag='${wl}-G' |
| 11786 | else |
| 11787 | shared_flag='${wl}-bM:SRE' |
| 11788 | fi |
| 11789 | fi |
| 11790 | fi |
| 11791 | |
| 11792 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 11793 | # It seems that -bexpall does not export symbols beginning with |
| 11794 | # underscore (_), so it is better to generate a list of symbols to |
| 11795 | # export. |
| 11796 | always_export_symbols_CXX=yes |
| 11797 | if test "$aix_use_runtimelinking" = yes; then |
| 11798 | # Warning - without using the other runtime loading flags (-brtl), |
| 11799 | # -berok will link without error, but may produce a broken library. |
| 11800 | allow_undefined_flag_CXX='-berok' |
| 11801 | # Determine the default libpath from the value encoded in an empty |
| 11802 | # executable. |
| 11803 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11804 | /* end confdefs.h. */ |
| 11805 | |
| 11806 | int |
| 11807 | main () |
| 11808 | { |
| 11809 | |
| 11810 | ; |
| 11811 | return 0; |
| 11812 | } |
| 11813 | _ACEOF |
| 11814 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 11815 | |
| 11816 | lt_aix_libpath_sed=' |
| 11817 | /Import File Strings/,/^$/ { |
| 11818 | /^0/ { |
| 11819 | s/^0 *\(.*\)$/\1/ |
| 11820 | p |
| 11821 | } |
| 11822 | }' |
| 11823 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11824 | # Check for a 64-bit object if we didn't find anything. |
| 11825 | if test -z "$aix_libpath"; then |
| 11826 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11827 | fi |
| 11828 | fi |
| 11829 | rm -f core conftest.err conftest.$ac_objext \ |
| 11830 | conftest$ac_exeext conftest.$ac_ext |
| 11831 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11832 | |
| 11833 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11834 | |
| 11835 | archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
| 11836 | else |
| 11837 | if test "$host_cpu" = ia64; then |
| 11838 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11839 | allow_undefined_flag_CXX="-z nodefs" |
| 11840 | 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" |
| 11841 | else |
| 11842 | # Determine the default libpath from the value encoded in an |
| 11843 | # empty executable. |
| 11844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11845 | /* end confdefs.h. */ |
| 11846 | |
| 11847 | int |
| 11848 | main () |
| 11849 | { |
| 11850 | |
| 11851 | ; |
| 11852 | return 0; |
| 11853 | } |
| 11854 | _ACEOF |
| 11855 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 11856 | |
| 11857 | lt_aix_libpath_sed=' |
| 11858 | /Import File Strings/,/^$/ { |
| 11859 | /^0/ { |
| 11860 | s/^0 *\(.*\)$/\1/ |
| 11861 | p |
| 11862 | } |
| 11863 | }' |
| 11864 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11865 | # Check for a 64-bit object if we didn't find anything. |
| 11866 | if test -z "$aix_libpath"; then |
| 11867 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11868 | fi |
| 11869 | fi |
| 11870 | rm -f core conftest.err conftest.$ac_objext \ |
| 11871 | conftest$ac_exeext conftest.$ac_ext |
| 11872 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11873 | |
| 11874 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11875 | # Warning - without using the other run time loading flags, |
| 11876 | # -berok will link without error, but may produce a broken library. |
| 11877 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11878 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 11879 | # Exported symbols can be pulled into shared objects from archives |
| 11880 | whole_archive_flag_spec_CXX='$convenience' |
| 11881 | archive_cmds_need_lc_CXX=yes |
| 11882 | # This is similar to how AIX traditionally builds its shared |
| 11883 | # libraries. |
| 11884 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
| 11885 | fi |
| 11886 | fi |
| 11887 | ;; |
| 11888 | |
| 11889 | beos*) |
| 11890 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11891 | allow_undefined_flag_CXX=unsupported |
| 11892 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11893 | # support --undefined. This deserves some investigation. FIXME |
| 11894 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11895 | else |
| 11896 | ld_shlibs_CXX=no |
| 11897 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11898 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11899 | |
| 11900 | chorus*) |
| 11901 | case $cc_basename in |
| 11902 | *) |
| 11903 | # FIXME: insert proper C++ library support |
| 11904 | ld_shlibs_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11905 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11906 | esac |
| 11907 | ;; |
| 11908 | |
| 11909 | cygwin* | mingw* | pw32* | cegcc*) |
| 11910 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11911 | # as there is no search path for DLLs. |
| 11912 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11913 | allow_undefined_flag_CXX=unsupported |
| 11914 | always_export_symbols_CXX=no |
| 11915 | enable_shared_with_static_runtimes_CXX=yes |
| 11916 | |
| 11917 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 11918 | 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' |
| 11919 | # If the export-symbols file already is a .def file (1st line |
| 11920 | # is EXPORTS), use it as is; otherwise, prepend... |
| 11921 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11922 | cp $export_symbols $output_objdir/$soname.def; |
| 11923 | else |
| 11924 | echo EXPORTS > $output_objdir/$soname.def; |
| 11925 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11926 | fi~ |
| 11927 | $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' |
| 11928 | else |
| 11929 | ld_shlibs_CXX=no |
| 11930 | fi |
| 11931 | ;; |
| 11932 | darwin* | rhapsody*) |
| 11933 | |
| 11934 | |
| 11935 | archive_cmds_need_lc_CXX=no |
| 11936 | hardcode_direct_CXX=no |
| 11937 | hardcode_automatic_CXX=yes |
| 11938 | hardcode_shlibpath_var_CXX=unsupported |
| 11939 | whole_archive_flag_spec_CXX='' |
| 11940 | link_all_deplibs_CXX=yes |
| 11941 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 11942 | case $cc_basename in |
| 11943 | ifort*) _lt_dar_can_shared=yes ;; |
| 11944 | *) _lt_dar_can_shared=$GCC ;; |
| 11945 | esac |
| 11946 | if test "$_lt_dar_can_shared" = "yes"; then |
| 11947 | output_verbose_link_cmd=echo |
| 11948 | 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}" |
| 11949 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 11950 | 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}" |
| 11951 | 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}" |
| 11952 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 11953 | 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}" |
| 11954 | 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}" |
| 11955 | fi |
| 11956 | |
| 11957 | else |
| 11958 | ld_shlibs_CXX=no |
| 11959 | fi |
| 11960 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11961 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11962 | |
| 11963 | dgux*) |
| 11964 | case $cc_basename in |
| 11965 | ec++*) |
| 11966 | # FIXME: insert proper C++ library support |
| 11967 | ld_shlibs_CXX=no |
| 11968 | ;; |
| 11969 | ghcx*) |
| 11970 | # Green Hills C++ Compiler |
| 11971 | # FIXME: insert proper C++ library support |
| 11972 | ld_shlibs_CXX=no |
| 11973 | ;; |
| 11974 | *) |
| 11975 | # FIXME: insert proper C++ library support |
| 11976 | ld_shlibs_CXX=no |
| 11977 | ;; |
| 11978 | esac |
| 11979 | ;; |
| 11980 | |
| 11981 | freebsd[12]*) |
| 11982 | # C++ shared libraries reported to be fairly broken before |
| 11983 | # switch to ELF |
| 11984 | ld_shlibs_CXX=no |
| 11985 | ;; |
| 11986 | |
| 11987 | freebsd-elf*) |
| 11988 | archive_cmds_need_lc_CXX=no |
| 11989 | ;; |
| 11990 | |
| 11991 | freebsd* | dragonfly*) |
| 11992 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 11993 | # conventions |
| 11994 | ld_shlibs_CXX=yes |
| 11995 | ;; |
| 11996 | |
| 11997 | gnu*) |
| 11998 | ;; |
| 11999 | |
| 12000 | hpux9*) |
| 12001 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12002 | hardcode_libdir_separator_CXX=: |
| 12003 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12004 | hardcode_direct_CXX=yes |
| 12005 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12006 | # but as the default |
| 12007 | # location of the library. |
| 12008 | |
| 12009 | case $cc_basename in |
| 12010 | CC*) |
| 12011 | # FIXME: insert proper C++ library support |
| 12012 | ld_shlibs_CXX=no |
| 12013 | ;; |
| 12014 | aCC*) |
| 12015 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 12016 | # Commands to make compiler produce verbose output that lists |
| 12017 | # what "hidden" libraries, object files and flags are used when |
| 12018 | # linking a shared library. |
| 12019 | # |
| 12020 | # There doesn't appear to be a way to prevent this compiler from |
| 12021 | # explicitly linking system object files so we need to strip them |
| 12022 | # from the output so that they don't get included in the library |
| 12023 | # dependencies. |
| 12024 | 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; $ECHO "X$list" | $Xsed' |
| 12025 | ;; |
| 12026 | *) |
| 12027 | if test "$GXX" = yes; then |
| 12028 | archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
| 12029 | else |
| 12030 | # FIXME: insert proper C++ library support |
| 12031 | ld_shlibs_CXX=no |
| 12032 | fi |
| 12033 | ;; |
| 12034 | esac |
| 12035 | ;; |
| 12036 | |
| 12037 | hpux10*|hpux11*) |
| 12038 | if test $with_gnu_ld = no; then |
| 12039 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12040 | hardcode_libdir_separator_CXX=: |
| 12041 | |
| 12042 | case $host_cpu in |
| 12043 | hppa*64*|ia64*) |
| 12044 | ;; |
| 12045 | *) |
| 12046 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12047 | ;; |
| 12048 | esac |
| 12049 | fi |
| 12050 | case $host_cpu in |
| 12051 | hppa*64*|ia64*) |
| 12052 | hardcode_direct_CXX=no |
| 12053 | hardcode_shlibpath_var_CXX=no |
| 12054 | ;; |
| 12055 | *) |
| 12056 | hardcode_direct_CXX=yes |
| 12057 | hardcode_direct_absolute_CXX=yes |
| 12058 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12059 | # but as the default |
| 12060 | # location of the library. |
| 12061 | ;; |
| 12062 | esac |
| 12063 | |
| 12064 | case $cc_basename in |
| 12065 | CC*) |
| 12066 | # FIXME: insert proper C++ library support |
| 12067 | ld_shlibs_CXX=no |
| 12068 | ;; |
| 12069 | aCC*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12070 | case $host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12071 | hppa*64*) |
| 12072 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12073 | ;; |
| 12074 | ia64*) |
| 12075 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12076 | ;; |
| 12077 | *) |
| 12078 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12079 | ;; |
| 12080 | esac |
| 12081 | # Commands to make compiler produce verbose output that lists |
| 12082 | # what "hidden" libraries, object files and flags are used when |
| 12083 | # linking a shared library. |
| 12084 | # |
| 12085 | # There doesn't appear to be a way to prevent this compiler from |
| 12086 | # explicitly linking system object files so we need to strip them |
| 12087 | # from the output so that they don't get included in the library |
| 12088 | # dependencies. |
| 12089 | 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; $ECHO "X$list" | $Xsed' |
| 12090 | ;; |
| 12091 | *) |
| 12092 | if test "$GXX" = yes; then |
| 12093 | if test $with_gnu_ld = no; then |
| 12094 | case $host_cpu in |
| 12095 | hppa*64*) |
| 12096 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12097 | ;; |
| 12098 | ia64*) |
| 12099 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12100 | ;; |
| 12101 | *) |
| 12102 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12103 | ;; |
| 12104 | esac |
| 12105 | fi |
| 12106 | else |
| 12107 | # FIXME: insert proper C++ library support |
| 12108 | ld_shlibs_CXX=no |
| 12109 | fi |
| 12110 | ;; |
| 12111 | esac |
| 12112 | ;; |
| 12113 | |
| 12114 | interix[3-9]*) |
| 12115 | hardcode_direct_CXX=no |
| 12116 | hardcode_shlibpath_var_CXX=no |
| 12117 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12118 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12119 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12120 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12121 | # default) and relocated if they conflict, which is a slow very memory |
| 12122 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 12123 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12124 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12125 | 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' |
| 12126 | 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' |
| 12127 | ;; |
| 12128 | irix5* | irix6*) |
| 12129 | case $cc_basename in |
| 12130 | CC*) |
| 12131 | # SGI C++ |
| 12132 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 12133 | |
| 12134 | # Archives containing C++ object files must be created using |
| 12135 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 12136 | # necessary to make sure instantiated templates are included |
| 12137 | # in the archive. |
| 12138 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 12139 | ;; |
| 12140 | *) |
| 12141 | if test "$GXX" = yes; then |
| 12142 | if test "$with_gnu_ld" = no; then |
| 12143 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 12144 | else |
| 12145 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib' |
| 12146 | fi |
| 12147 | fi |
| 12148 | link_all_deplibs_CXX=yes |
| 12149 | ;; |
| 12150 | esac |
| 12151 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12152 | hardcode_libdir_separator_CXX=: |
| 12153 | inherit_rpath_CXX=yes |
| 12154 | ;; |
| 12155 | |
| 12156 | linux* | k*bsd*-gnu) |
| 12157 | case $cc_basename in |
| 12158 | KCC*) |
| 12159 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12160 | |
| 12161 | # KCC will only create a shared library if the output file |
| 12162 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12163 | # to its proper name (with version) after linking. |
| 12164 | 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' |
| 12165 | 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' |
| 12166 | # Commands to make compiler produce verbose output that lists |
| 12167 | # what "hidden" libraries, object files and flags are used when |
| 12168 | # linking a shared library. |
| 12169 | # |
| 12170 | # There doesn't appear to be a way to prevent this compiler from |
| 12171 | # explicitly linking system object files so we need to strip them |
| 12172 | # from the output so that they don't get included in the library |
| 12173 | # dependencies. |
| 12174 | 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; $ECHO "X$list" | $Xsed' |
| 12175 | |
| 12176 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12177 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12178 | |
| 12179 | # Archives containing C++ object files must be created using |
| 12180 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 12181 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 12182 | ;; |
| 12183 | icpc* | ecpc* ) |
| 12184 | # Intel C++ |
| 12185 | with_gnu_ld=yes |
| 12186 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 12187 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 12188 | # earlier do not add the objects themselves. |
| 12189 | case `$CC -V 2>&1` in |
| 12190 | *"Version 7."*) |
| 12191 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12192 | 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' |
| 12193 | ;; |
| 12194 | *) # Version 8.0 or newer |
| 12195 | tmp_idyn= |
| 12196 | case $host_cpu in |
| 12197 | ia64*) tmp_idyn=' -i_dynamic';; |
| 12198 | esac |
| 12199 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12200 | 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' |
| 12201 | ;; |
| 12202 | esac |
| 12203 | archive_cmds_need_lc_CXX=no |
| 12204 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12205 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12206 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 12207 | ;; |
| 12208 | pgCC* | pgcpp*) |
| 12209 | # Portland Group C++ compiler |
| 12210 | case `$CC -V` in |
| 12211 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
| 12212 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 12213 | rm -rf $tpldir~ |
| 12214 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 12215 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 12216 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 12217 | rm -rf $tpldir~ |
| 12218 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 12219 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 12220 | $RANLIB $oldlib' |
| 12221 | archive_cmds_CXX='tpldir=Template.dir~ |
| 12222 | rm -rf $tpldir~ |
| 12223 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 12224 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12225 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 12226 | rm -rf $tpldir~ |
| 12227 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 12228 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12229 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12230 | *) # Version 6 will use weak symbols |
| 12231 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12232 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12233 | ;; |
| 12234 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12235 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12236 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 12237 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12238 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 12239 | ;; |
| 12240 | cxx*) |
| 12241 | # Compaq C++ |
| 12242 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12243 | 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' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12244 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12245 | runpath_var=LD_RUN_PATH |
| 12246 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12247 | hardcode_libdir_separator_CXX=: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12248 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12249 | # Commands to make compiler produce verbose output that lists |
| 12250 | # what "hidden" libraries, object files and flags are used when |
| 12251 | # linking a shared library. |
| 12252 | # |
| 12253 | # There doesn't appear to be a way to prevent this compiler from |
| 12254 | # explicitly linking system object files so we need to strip them |
| 12255 | # from the output so that they don't get included in the library |
| 12256 | # dependencies. |
| 12257 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 12258 | ;; |
| 12259 | xl*) |
| 12260 | # IBM XL 8.0 on PPC, with GNU ld |
| 12261 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12262 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12263 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12264 | if test "x$supports_anon_versioning" = xyes; then |
| 12265 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12266 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12267 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12268 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12269 | fi |
| 12270 | ;; |
| 12271 | *) |
| 12272 | case `$CC -V 2>&1 | sed 5q` in |
| 12273 | *Sun\ C*) |
| 12274 | # Sun C++ 5.9 |
| 12275 | no_undefined_flag_CXX=' -zdefs' |
| 12276 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12277 | 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' |
| 12278 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12279 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' |
| 12280 | compiler_needs_object_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12281 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12282 | # Not sure whether something based on |
| 12283 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 12284 | # would be better. |
| 12285 | output_verbose_link_cmd='echo' |
| 12286 | |
| 12287 | # Archives containing C++ object files must be created using |
| 12288 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12289 | # necessary to make sure instantiated templates are included |
| 12290 | # in the archive. |
| 12291 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12292 | ;; |
| 12293 | esac |
| 12294 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12295 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12296 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12297 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12298 | lynxos*) |
| 12299 | # FIXME: insert proper C++ library support |
| 12300 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12301 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12302 | |
| 12303 | m88k*) |
| 12304 | # FIXME: insert proper C++ library support |
| 12305 | ld_shlibs_CXX=no |
| 12306 | ;; |
| 12307 | |
| 12308 | mvs*) |
| 12309 | case $cc_basename in |
| 12310 | cxx*) |
| 12311 | # FIXME: insert proper C++ library support |
| 12312 | ld_shlibs_CXX=no |
| 12313 | ;; |
| 12314 | *) |
| 12315 | # FIXME: insert proper C++ library support |
| 12316 | ld_shlibs_CXX=no |
| 12317 | ;; |
| 12318 | esac |
| 12319 | ;; |
| 12320 | |
| 12321 | netbsd*) |
| 12322 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12323 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 12324 | wlarc= |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12325 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12326 | hardcode_direct_CXX=yes |
| 12327 | hardcode_shlibpath_var_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12328 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12329 | # Workaround some broken pre-1.5 toolchains |
| 12330 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12331 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12332 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12333 | *nto* | *qnx*) |
| 12334 | ld_shlibs_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12335 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12336 | |
| 12337 | openbsd2*) |
| 12338 | # C++ shared libraries are fairly broken |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12339 | ld_shlibs_CXX=no |
| 12340 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12341 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12342 | openbsd*) |
| 12343 | if test -f /usr/libexec/ld.so; then |
| 12344 | hardcode_direct_CXX=yes |
| 12345 | hardcode_shlibpath_var_CXX=no |
| 12346 | hardcode_direct_absolute_CXX=yes |
| 12347 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12348 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12349 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12350 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 12351 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12352 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12353 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12354 | output_verbose_link_cmd=echo |
| 12355 | else |
| 12356 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12357 | fi |
| 12358 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12359 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12360 | osf3* | osf4* | osf5*) |
| 12361 | case $cc_basename in |
| 12362 | KCC*) |
| 12363 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12364 | |
| 12365 | # KCC will only create a shared library if the output file |
| 12366 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12367 | # to its proper name (with version) after linking. |
| 12368 | 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' |
| 12369 | |
| 12370 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12371 | hardcode_libdir_separator_CXX=: |
| 12372 | |
| 12373 | # Archives containing C++ object files must be created using |
| 12374 | # the KAI C++ compiler. |
| 12375 | case $host in |
| 12376 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 12377 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 12378 | esac |
| 12379 | ;; |
| 12380 | RCC*) |
| 12381 | # Rational C++ 2.4.1 |
| 12382 | # FIXME: insert proper C++ library support |
| 12383 | ld_shlibs_CXX=no |
| 12384 | ;; |
| 12385 | cxx*) |
| 12386 | case $host in |
| 12387 | osf3*) |
| 12388 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12389 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 12390 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12391 | ;; |
| 12392 | *) |
| 12393 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 12394 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' |
| 12395 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 12396 | echo "-hidden">> $lib.exp~ |
| 12397 | $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~ |
| 12398 | $RM $lib.exp' |
| 12399 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12400 | ;; |
| 12401 | esac |
| 12402 | |
| 12403 | hardcode_libdir_separator_CXX=: |
| 12404 | |
| 12405 | # Commands to make compiler produce verbose output that lists |
| 12406 | # what "hidden" libraries, object files and flags are used when |
| 12407 | # linking a shared library. |
| 12408 | # |
| 12409 | # There doesn't appear to be a way to prevent this compiler from |
| 12410 | # explicitly linking system object files so we need to strip them |
| 12411 | # from the output so that they don't get included in the library |
| 12412 | # dependencies. |
| 12413 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed' |
| 12414 | ;; |
| 12415 | *) |
| 12416 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12417 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12418 | case $host in |
| 12419 | osf3*) |
| 12420 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 12421 | ;; |
| 12422 | *) |
| 12423 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
| 12424 | ;; |
| 12425 | esac |
| 12426 | |
| 12427 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12428 | hardcode_libdir_separator_CXX=: |
| 12429 | |
| 12430 | # Commands to make compiler produce verbose output that lists |
| 12431 | # what "hidden" libraries, object files and flags are used when |
| 12432 | # linking a shared library. |
| 12433 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12434 | |
| 12435 | else |
| 12436 | # FIXME: insert proper C++ library support |
| 12437 | ld_shlibs_CXX=no |
| 12438 | fi |
| 12439 | ;; |
| 12440 | esac |
| 12441 | ;; |
| 12442 | |
| 12443 | psos*) |
| 12444 | # FIXME: insert proper C++ library support |
| 12445 | ld_shlibs_CXX=no |
| 12446 | ;; |
| 12447 | |
| 12448 | sunos4*) |
| 12449 | case $cc_basename in |
| 12450 | CC*) |
| 12451 | # Sun C++ 4.x |
| 12452 | # FIXME: insert proper C++ library support |
| 12453 | ld_shlibs_CXX=no |
| 12454 | ;; |
| 12455 | lcc*) |
| 12456 | # Lucid |
| 12457 | # FIXME: insert proper C++ library support |
| 12458 | ld_shlibs_CXX=no |
| 12459 | ;; |
| 12460 | *) |
| 12461 | # FIXME: insert proper C++ library support |
| 12462 | ld_shlibs_CXX=no |
| 12463 | ;; |
| 12464 | esac |
| 12465 | ;; |
| 12466 | |
| 12467 | solaris*) |
| 12468 | case $cc_basename in |
| 12469 | CC*) |
| 12470 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12471 | archive_cmds_need_lc_CXX=yes |
| 12472 | no_undefined_flag_CXX=' -zdefs' |
| 12473 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12474 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12475 | $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' |
| 12476 | |
| 12477 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12478 | hardcode_shlibpath_var_CXX=no |
| 12479 | case $host_os in |
| 12480 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12481 | *) |
| 12482 | # The compiler driver will combine and reorder linker options, |
| 12483 | # but understands `-z linker_flag'. |
| 12484 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12485 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 12486 | ;; |
| 12487 | esac |
| 12488 | link_all_deplibs_CXX=yes |
| 12489 | |
| 12490 | output_verbose_link_cmd='echo' |
| 12491 | |
| 12492 | # Archives containing C++ object files must be created using |
| 12493 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12494 | # necessary to make sure instantiated templates are included |
| 12495 | # in the archive. |
| 12496 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12497 | ;; |
| 12498 | gcx*) |
| 12499 | # Green Hills C++ Compiler |
| 12500 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12501 | |
| 12502 | # The C++ compiler must be used to create the archive. |
| 12503 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12504 | ;; |
| 12505 | *) |
| 12506 | # GNU C++ compiler with Solaris linker |
| 12507 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12508 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12509 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 12510 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12511 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12512 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12513 | |
| 12514 | # Commands to make compiler produce verbose output that lists |
| 12515 | # what "hidden" libraries, object files and flags are used when |
| 12516 | # linking a shared library. |
| 12517 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12518 | else |
| 12519 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12520 | # platform. |
| 12521 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12522 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12523 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12524 | |
| 12525 | # Commands to make compiler produce verbose output that lists |
| 12526 | # what "hidden" libraries, object files and flags are used when |
| 12527 | # linking a shared library. |
| 12528 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12529 | fi |
| 12530 | |
| 12531 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12532 | case $host_os in |
| 12533 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12534 | *) |
| 12535 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 12536 | ;; |
| 12537 | esac |
| 12538 | fi |
| 12539 | ;; |
| 12540 | esac |
| 12541 | ;; |
| 12542 | |
| 12543 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12544 | no_undefined_flag_CXX='${wl}-z,text' |
| 12545 | archive_cmds_need_lc_CXX=no |
| 12546 | hardcode_shlibpath_var_CXX=no |
| 12547 | runpath_var='LD_RUN_PATH' |
| 12548 | |
| 12549 | case $cc_basename in |
| 12550 | CC*) |
| 12551 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12552 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12553 | ;; |
| 12554 | *) |
| 12555 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12556 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12557 | ;; |
| 12558 | esac |
| 12559 | ;; |
| 12560 | |
| 12561 | sysv5* | sco3.2v5* | sco5v6*) |
| 12562 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12563 | # link with -lc, and that would cause any symbols used from libc to |
| 12564 | # always be unresolved, which means just about no library would |
| 12565 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12566 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12567 | # as -z defs. |
| 12568 | no_undefined_flag_CXX='${wl}-z,text' |
| 12569 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12570 | archive_cmds_need_lc_CXX=no |
| 12571 | hardcode_shlibpath_var_CXX=no |
| 12572 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 12573 | hardcode_libdir_separator_CXX=':' |
| 12574 | link_all_deplibs_CXX=yes |
| 12575 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12576 | runpath_var='LD_RUN_PATH' |
| 12577 | |
| 12578 | case $cc_basename in |
| 12579 | CC*) |
| 12580 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12581 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12582 | ;; |
| 12583 | *) |
| 12584 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12585 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12586 | ;; |
| 12587 | esac |
| 12588 | ;; |
| 12589 | |
| 12590 | tandem*) |
| 12591 | case $cc_basename in |
| 12592 | NCC*) |
| 12593 | # NonStop-UX NCC 3.20 |
| 12594 | # FIXME: insert proper C++ library support |
| 12595 | ld_shlibs_CXX=no |
| 12596 | ;; |
| 12597 | *) |
| 12598 | # FIXME: insert proper C++ library support |
| 12599 | ld_shlibs_CXX=no |
| 12600 | ;; |
| 12601 | esac |
| 12602 | ;; |
| 12603 | |
| 12604 | vxworks*) |
| 12605 | # FIXME: insert proper C++ library support |
| 12606 | ld_shlibs_CXX=no |
| 12607 | ;; |
| 12608 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12609 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12610 | # FIXME: insert proper C++ library support |
| 12611 | ld_shlibs_CXX=no |
| 12612 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12613 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12614 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 12616 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 12617 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12618 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12619 | GCC_CXX="$GXX" |
| 12620 | LD_CXX="$LD" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12621 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12622 | ## CAVEAT EMPTOR: |
| 12623 | ## There is no encapsulation within the following macros, do not change |
| 12624 | ## the running order or otherwise move them around unless you know exactly |
| 12625 | ## what you are doing... |
| 12626 | # Dependencies to place before and after the object being linked: |
| 12627 | predep_objects_CXX= |
| 12628 | postdep_objects_CXX= |
| 12629 | predeps_CXX= |
| 12630 | postdeps_CXX= |
| 12631 | compiler_lib_search_path_CXX= |
| 12632 | |
| 12633 | cat > conftest.$ac_ext <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12634 | class Foo |
| 12635 | { |
| 12636 | public: |
| 12637 | Foo (void) { a = 0; } |
| 12638 | private: |
| 12639 | int a; |
| 12640 | }; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12641 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12642 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12643 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12644 | (eval $ac_compile) 2>&5 |
| 12645 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12647 | test $ac_status = 0; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12648 | # Parse the compiler output and extract the necessary |
| 12649 | # objects, libraries and library flags. |
| 12650 | |
| 12651 | # Sentinel used to keep track of whether or not we are before |
| 12652 | # the conftest object file. |
| 12653 | pre_test_object_deps_done=no |
| 12654 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12655 | for p in `eval "$output_verbose_link_cmd"`; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12656 | case $p in |
| 12657 | |
| 12658 | -L* | -R* | -l*) |
| 12659 | # Some compilers place space between "-{L,R}" and the path. |
| 12660 | # Remove the space. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12661 | if test $p = "-L" || |
| 12662 | test $p = "-R"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12663 | prev=$p |
| 12664 | continue |
| 12665 | else |
| 12666 | prev= |
| 12667 | fi |
| 12668 | |
| 12669 | if test "$pre_test_object_deps_done" = no; then |
| 12670 | case $p in |
| 12671 | -L* | -R*) |
| 12672 | # Internal compiler library paths should come after those |
| 12673 | # provided the user. The postdeps already come after the |
| 12674 | # user supplied libs so there is no need to process them. |
| 12675 | if test -z "$compiler_lib_search_path_CXX"; then |
| 12676 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12677 | else |
| 12678 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12679 | fi |
| 12680 | ;; |
| 12681 | # The "-l" case would never come before the object being |
| 12682 | # linked, so don't bother handling this case. |
| 12683 | esac |
| 12684 | else |
| 12685 | if test -z "$postdeps_CXX"; then |
| 12686 | postdeps_CXX="${prev}${p}" |
| 12687 | else |
| 12688 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12689 | fi |
| 12690 | fi |
| 12691 | ;; |
| 12692 | |
| 12693 | *.$objext) |
| 12694 | # This assumes that the test object file only shows up |
| 12695 | # once in the compiler output. |
| 12696 | if test "$p" = "conftest.$objext"; then |
| 12697 | pre_test_object_deps_done=yes |
| 12698 | continue |
| 12699 | fi |
| 12700 | |
| 12701 | if test "$pre_test_object_deps_done" = no; then |
| 12702 | if test -z "$predep_objects_CXX"; then |
| 12703 | predep_objects_CXX="$p" |
| 12704 | else |
| 12705 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12706 | fi |
| 12707 | else |
| 12708 | if test -z "$postdep_objects_CXX"; then |
| 12709 | postdep_objects_CXX="$p" |
| 12710 | else |
| 12711 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12712 | fi |
| 12713 | fi |
| 12714 | ;; |
| 12715 | |
| 12716 | *) ;; # Ignore the rest. |
| 12717 | |
| 12718 | esac |
| 12719 | done |
| 12720 | |
| 12721 | # Clean up. |
| 12722 | rm -f a.out a.exe |
| 12723 | else |
| 12724 | echo "libtool.m4: error: problem compiling CXX test program" |
| 12725 | fi |
| 12726 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12727 | $RM -f confest.$objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12728 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12729 | # PORTME: override above test on systems where it is broken |
| 12730 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12731 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12732 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12733 | # hack all around it, let's just trust "g++" to DTRT. |
| 12734 | predep_objects_CXX= |
| 12735 | postdep_objects_CXX= |
| 12736 | postdeps_CXX= |
| 12737 | ;; |
| 12738 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12739 | linux*) |
| 12740 | case `$CC -V 2>&1 | sed 5q` in |
| 12741 | *Sun\ C*) |
| 12742 | # Sun C++ 5.9 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12743 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12744 | # The more standards-conforming stlport4 library is |
| 12745 | # incompatible with the Cstd library. Avoid specifying |
| 12746 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 12747 | # -library=stlport4 depends on it. |
| 12748 | case " $CXX $CXXFLAGS " in |
| 12749 | *" -library=stlport4 "*) |
| 12750 | solaris_use_stlport4=yes |
| 12751 | ;; |
| 12752 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12753 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12754 | if test "$solaris_use_stlport4" != yes; then |
| 12755 | postdeps_CXX='-library=Cstd -library=Crun' |
| 12756 | fi |
| 12757 | ;; |
| 12758 | esac |
| 12759 | ;; |
| 12760 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12761 | solaris*) |
| 12762 | case $cc_basename in |
| 12763 | CC*) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12764 | # The more standards-conforming stlport4 library is |
| 12765 | # incompatible with the Cstd library. Avoid specifying |
| 12766 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 12767 | # -library=stlport4 depends on it. |
| 12768 | case " $CXX $CXXFLAGS " in |
| 12769 | *" -library=stlport4 "*) |
| 12770 | solaris_use_stlport4=yes |
| 12771 | ;; |
| 12772 | esac |
| 12773 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12774 | # Adding this requires a known-good setup of shared libraries for |
| 12775 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12776 | # archive will be linked into the output, leading to subtle bugs. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12777 | if test "$solaris_use_stlport4" != yes; then |
| 12778 | postdeps_CXX='-library=Cstd -library=Crun' |
| 12779 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12780 | ;; |
| 12781 | esac |
| 12782 | ;; |
| 12783 | esac |
| 12784 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12785 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12786 | case " $postdeps_CXX " in |
| 12787 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12788 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12789 | compiler_lib_search_dirs_CXX= |
| 12790 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 12791 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 12792 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12793 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12794 | |
| 12795 | |
| 12796 | |
| 12797 | |
| 12798 | |
| 12799 | |
| 12800 | |
| 12801 | |
| 12802 | |
| 12803 | |
| 12804 | |
| 12805 | |
| 12806 | |
| 12807 | |
| 12808 | |
| 12809 | |
| 12810 | |
| 12811 | |
| 12812 | |
| 12813 | |
| 12814 | |
| 12815 | |
| 12816 | |
| 12817 | |
| 12818 | |
| 12819 | |
| 12820 | |
| 12821 | |
| 12822 | |
| 12823 | |
| 12824 | lt_prog_compiler_wl_CXX= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12825 | lt_prog_compiler_pic_CXX= |
| 12826 | lt_prog_compiler_static_CXX= |
| 12827 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12828 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 12829 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12830 | |
| 12831 | # C++ specific cases for pic, static, wl, etc. |
| 12832 | if test "$GXX" = yes; then |
| 12833 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12834 | lt_prog_compiler_static_CXX='-static' |
| 12835 | |
| 12836 | case $host_os in |
| 12837 | aix*) |
| 12838 | # All AIX code is PIC. |
| 12839 | if test "$host_cpu" = ia64; then |
| 12840 | # AIX 5 now supports IA64 processor |
| 12841 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12842 | fi |
| 12843 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12844 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12845 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12846 | case $host_cpu in |
| 12847 | powerpc) |
| 12848 | # see comment about AmigaOS4 .so support |
| 12849 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12850 | ;; |
| 12851 | m68k) |
| 12852 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12853 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12854 | # like `-m68040'. |
| 12855 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12856 | ;; |
| 12857 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12858 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12859 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12860 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12861 | # PIC is the default for these OSes. |
| 12862 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12863 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12864 | # This hack is so that the source file can tell whether it is being |
| 12865 | # built for inclusion in a dll (and should export symbols for example). |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12866 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 12867 | # (--disable-auto-import) libraries |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12868 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12869 | ;; |
| 12870 | darwin* | rhapsody*) |
| 12871 | # PIC is the default on this platform |
| 12872 | # Common symbols not allowed in MH_DYLIB files |
| 12873 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12874 | ;; |
| 12875 | *djgpp*) |
| 12876 | # DJGPP does not support shared libraries at all |
| 12877 | lt_prog_compiler_pic_CXX= |
| 12878 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12879 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12880 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12881 | # Instead, we relocate shared libraries at runtime. |
| 12882 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12883 | sysv4*MP*) |
| 12884 | if test -d /usr/nec; then |
| 12885 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12886 | fi |
| 12887 | ;; |
| 12888 | hpux*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12889 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 12890 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 12891 | # sets the default TLS model and affects inlining. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12892 | case $host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12893 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12894 | ;; |
| 12895 | *) |
| 12896 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12897 | ;; |
| 12898 | esac |
| 12899 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12900 | *qnx* | *nto*) |
| 12901 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 12902 | # it will coredump. |
| 12903 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 12904 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12905 | *) |
| 12906 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12907 | ;; |
| 12908 | esac |
| 12909 | else |
| 12910 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12911 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12912 | # All AIX code is PIC. |
| 12913 | if test "$host_cpu" = ia64; then |
| 12914 | # AIX 5 now supports IA64 processor |
| 12915 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12916 | else |
| 12917 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12918 | fi |
| 12919 | ;; |
| 12920 | chorus*) |
| 12921 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12922 | cxch68*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12923 | # Green Hills C++ Compiler |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12924 | # _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" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12925 | ;; |
| 12926 | esac |
| 12927 | ;; |
| 12928 | dgux*) |
| 12929 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12930 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12931 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12932 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12933 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12934 | # Green Hills C++ Compiler |
| 12935 | lt_prog_compiler_pic_CXX='-pic' |
| 12936 | ;; |
| 12937 | *) |
| 12938 | ;; |
| 12939 | esac |
| 12940 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12941 | freebsd* | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12942 | # FreeBSD uses GNU C++ |
| 12943 | ;; |
| 12944 | hpux9* | hpux10* | hpux11*) |
| 12945 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12946 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12947 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12948 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12949 | if test "$host_cpu" != ia64; then |
| 12950 | lt_prog_compiler_pic_CXX='+Z' |
| 12951 | fi |
| 12952 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12953 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12954 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12955 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 12956 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12957 | hppa*64*|ia64*) |
| 12958 | # +Z the default |
| 12959 | ;; |
| 12960 | *) |
| 12961 | lt_prog_compiler_pic_CXX='+Z' |
| 12962 | ;; |
| 12963 | esac |
| 12964 | ;; |
| 12965 | *) |
| 12966 | ;; |
| 12967 | esac |
| 12968 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12969 | interix*) |
| 12970 | # This is c89, which is MS Visual C++ (no shared libs) |
| 12971 | # Anyone wants to do a port? |
| 12972 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12973 | irix5* | irix6* | nonstopux*) |
| 12974 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12975 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12976 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12977 | lt_prog_compiler_static_CXX='-non_shared' |
| 12978 | # CC pic flag -KPIC is the default. |
| 12979 | ;; |
| 12980 | *) |
| 12981 | ;; |
| 12982 | esac |
| 12983 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12984 | linux* | k*bsd*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12985 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12986 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12987 | # KAI C++ Compiler |
| 12988 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12989 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12990 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12991 | ecpc* ) |
| 12992 | # old Intel C++ for x86_64 which still supported -KPIC. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12993 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12994 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12995 | lt_prog_compiler_static_CXX='-static' |
| 12996 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12997 | icpc* ) |
| 12998 | # Intel C++, used to be incompatible with GCC. |
| 12999 | # ICC 10 doesn't accept -KPIC any more. |
| 13000 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13001 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13002 | lt_prog_compiler_static_CXX='-static' |
| 13003 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13004 | pgCC* | pgcpp*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13005 | # Portland Group C++ compiler |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13006 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13007 | lt_prog_compiler_pic_CXX='-fpic' |
| 13008 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13009 | ;; |
| 13010 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13011 | # Compaq C++ |
| 13012 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13013 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13014 | lt_prog_compiler_pic_CXX= |
| 13015 | lt_prog_compiler_static_CXX='-non_shared' |
| 13016 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13017 | xlc* | xlC*) |
| 13018 | # IBM XL 8.0 on PPC |
| 13019 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13020 | lt_prog_compiler_pic_CXX='-qpic' |
| 13021 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 13022 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13023 | *) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13024 | case `$CC -V 2>&1 | sed 5q` in |
| 13025 | *Sun\ C*) |
| 13026 | # Sun C++ 5.9 |
| 13027 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13028 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13029 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13030 | ;; |
| 13031 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13032 | ;; |
| 13033 | esac |
| 13034 | ;; |
| 13035 | lynxos*) |
| 13036 | ;; |
| 13037 | m88k*) |
| 13038 | ;; |
| 13039 | mvs*) |
| 13040 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13041 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13042 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 13043 | ;; |
| 13044 | *) |
| 13045 | ;; |
| 13046 | esac |
| 13047 | ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 13048 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13049 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13050 | *qnx* | *nto*) |
| 13051 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13052 | # it will coredump. |
| 13053 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 13054 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13055 | osf3* | osf4* | osf5*) |
| 13056 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13057 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13058 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13059 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13060 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13061 | # Rational C++ 2.4.1 |
| 13062 | lt_prog_compiler_pic_CXX='-pic' |
| 13063 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13064 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13065 | # Digital/Compaq C++ |
| 13066 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13067 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13068 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13069 | lt_prog_compiler_pic_CXX= |
| 13070 | lt_prog_compiler_static_CXX='-non_shared' |
| 13071 | ;; |
| 13072 | *) |
| 13073 | ;; |
| 13074 | esac |
| 13075 | ;; |
| 13076 | psos*) |
| 13077 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13078 | solaris*) |
| 13079 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13080 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13081 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13082 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13083 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13084 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13085 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13086 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13087 | # Green Hills C++ Compiler |
| 13088 | lt_prog_compiler_pic_CXX='-PIC' |
| 13089 | ;; |
| 13090 | *) |
| 13091 | ;; |
| 13092 | esac |
| 13093 | ;; |
| 13094 | sunos4*) |
| 13095 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13096 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13097 | # Sun C++ 4.x |
| 13098 | lt_prog_compiler_pic_CXX='-pic' |
| 13099 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13100 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13101 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13102 | # Lucid |
| 13103 | lt_prog_compiler_pic_CXX='-pic' |
| 13104 | ;; |
| 13105 | *) |
| 13106 | ;; |
| 13107 | esac |
| 13108 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13109 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13110 | case $cc_basename in |
| 13111 | CC*) |
| 13112 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13113 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13114 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13115 | ;; |
| 13116 | esac |
| 13117 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13118 | tandem*) |
| 13119 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13120 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13121 | # NonStop-UX NCC 3.20 |
| 13122 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13123 | ;; |
| 13124 | *) |
| 13125 | ;; |
| 13126 | esac |
| 13127 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13128 | vxworks*) |
| 13129 | ;; |
| 13130 | *) |
| 13131 | lt_prog_compiler_can_build_shared_CXX=no |
| 13132 | ;; |
| 13133 | esac |
| 13134 | fi |
| 13135 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13136 | case $host_os in |
| 13137 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13138 | *djgpp*) |
| 13139 | lt_prog_compiler_pic_CXX= |
| 13140 | ;; |
| 13141 | *) |
| 13142 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 13143 | ;; |
| 13144 | esac |
| 13145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
| 13146 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
| 13147 | |
| 13148 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13149 | |
| 13150 | # |
| 13151 | # Check to make sure the PIC flag actually works. |
| 13152 | # |
| 13153 | if test -n "$lt_prog_compiler_pic_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 13155 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 13156 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : |
| 13157 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13158 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13159 | lt_cv_prog_compiler_pic_works_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13160 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13161 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13162 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 13163 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13164 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13165 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13166 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13167 | # The option is referenced via a variable to avoid confusing sed. |
| 13168 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13169 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13170 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13171 | -e 's:$: $lt_compiler_flag:'` |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 13172 | (eval echo "\"\$as_me:13172: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13173 | (eval "$lt_compile" 2>conftest.err) |
| 13174 | ac_status=$? |
| 13175 | cat conftest.err >&5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 13176 | echo "$as_me:13176: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13177 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13178 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13179 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13180 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13181 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13182 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13183 | lt_cv_prog_compiler_pic_works_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13184 | fi |
| 13185 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13186 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13187 | |
| 13188 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 13190 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13191 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13192 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13193 | case $lt_prog_compiler_pic_CXX in |
| 13194 | "" | " "*) ;; |
| 13195 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 13196 | esac |
| 13197 | else |
| 13198 | lt_prog_compiler_pic_CXX= |
| 13199 | lt_prog_compiler_can_build_shared_CXX=no |
| 13200 | fi |
| 13201 | |
| 13202 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13203 | |
| 13204 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13205 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13206 | # |
| 13207 | # Check to make sure the static flag actually works. |
| 13208 | # |
| 13209 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13211 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 13212 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : |
| 13213 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13214 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13215 | lt_cv_prog_compiler_static_works_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13216 | save_LDFLAGS="$LDFLAGS" |
| 13217 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13218 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13219 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13220 | # The linker can only warn and ignore the option if not recognized |
| 13221 | # So say no if there are warnings |
| 13222 | if test -s conftest.err; then |
| 13223 | # Append any errors to the config.log. |
| 13224 | cat conftest.err 1>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13225 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13226 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13227 | if diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13228 | lt_cv_prog_compiler_static_works_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13229 | fi |
| 13230 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13231 | lt_cv_prog_compiler_static_works_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13232 | fi |
| 13233 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13234 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13235 | LDFLAGS="$save_LDFLAGS" |
| 13236 | |
| 13237 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 13239 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13240 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13241 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13242 | : |
| 13243 | else |
| 13244 | lt_prog_compiler_static_CXX= |
| 13245 | fi |
| 13246 | |
| 13247 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13248 | |
| 13249 | |
| 13250 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13251 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13252 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13253 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13254 | else |
| 13255 | lt_cv_prog_compiler_c_o_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13256 | $RM -r conftest 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13257 | mkdir conftest |
| 13258 | cd conftest |
| 13259 | mkdir out |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13260 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13261 | |
| 13262 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13263 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13264 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13265 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13266 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13267 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13268 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13269 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13270 | -e 's:$: $lt_compiler_flag:'` |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 13271 | (eval echo "\"\$as_me:13271: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13272 | (eval "$lt_compile" 2>out/conftest.err) |
| 13273 | ac_status=$? |
| 13274 | cat out/conftest.err >&5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 13275 | echo "$as_me:13275: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13276 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13277 | then |
| 13278 | # The compiler can only warn and ignore the option if not recognized |
| 13279 | # So say no if there are warnings |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13280 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13281 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13282 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13283 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13284 | fi |
| 13285 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13286 | chmod u+w . 2>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13287 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13288 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13289 | # template instantiation |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13290 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13291 | $RM out/* && rmdir out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13292 | cd .. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13293 | $RM -r conftest |
| 13294 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13295 | |
| 13296 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13298 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13299 | |
| 13300 | |
| 13301 | |
| 13302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13303 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13304 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13305 | $as_echo_n "(cached) " >&6 |
| 13306 | else |
| 13307 | lt_cv_prog_compiler_c_o_CXX=no |
| 13308 | $RM -r conftest 2>/dev/null |
| 13309 | mkdir conftest |
| 13310 | cd conftest |
| 13311 | mkdir out |
| 13312 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13313 | |
| 13314 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13315 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13316 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13317 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13318 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13319 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13320 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13321 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13322 | -e 's:$: $lt_compiler_flag:'` |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 13323 | (eval echo "\"\$as_me:13323: $lt_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13324 | (eval "$lt_compile" 2>out/conftest.err) |
| 13325 | ac_status=$? |
| 13326 | cat out/conftest.err >&5 |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 13327 | echo "$as_me:13327: \$? = $ac_status" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13328 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13329 | then |
| 13330 | # The compiler can only warn and ignore the option if not recognized |
| 13331 | # So say no if there are warnings |
| 13332 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 13333 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13334 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13335 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13336 | fi |
| 13337 | fi |
| 13338 | chmod u+w . 2>&5 |
| 13339 | $RM conftest* |
| 13340 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13341 | # template instantiation |
| 13342 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13343 | $RM out/* && rmdir out |
| 13344 | cd .. |
| 13345 | $RM -r conftest |
| 13346 | $RM conftest* |
| 13347 | |
| 13348 | fi |
| 13349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13350 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13351 | |
| 13352 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13353 | |
| 13354 | |
| 13355 | hard_links="nottested" |
| 13356 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 13357 | # do not overwrite the value of need_locks provided by the user |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 13359 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13360 | hard_links=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13361 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13362 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13363 | touch conftest.a |
| 13364 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13365 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13366 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 13367 | $as_echo "$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13368 | if test "$hard_links" = no; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13369 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13370 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13371 | need_locks=warn |
| 13372 | fi |
| 13373 | else |
| 13374 | need_locks=no |
| 13375 | fi |
| 13376 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13377 | |
| 13378 | |
| 13379 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13380 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13381 | |
| 13382 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13383 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13384 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13385 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13386 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13387 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 13388 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13389 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13390 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13391 | fi |
| 13392 | ;; |
| 13393 | pw32*) |
| 13394 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 13395 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13396 | cygwin* | mingw* | cegcc*) |
| 13397 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 13398 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13399 | *) |
| 13400 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13401 | ;; |
| 13402 | esac |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13403 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13404 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 13406 | $as_echo "$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13407 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13408 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13409 | with_gnu_ld_CXX=$with_gnu_ld |
| 13410 | |
| 13411 | |
| 13412 | |
| 13413 | |
| 13414 | |
| 13415 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13416 | # |
| 13417 | # Do we need to explicitly link libc? |
| 13418 | # |
| 13419 | case "x$archive_cmds_need_lc_CXX" in |
| 13420 | x|xyes) |
| 13421 | # Assume -lc should be added |
| 13422 | archive_cmds_need_lc_CXX=yes |
| 13423 | |
| 13424 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13425 | case $archive_cmds_CXX in |
| 13426 | *'~'*) |
| 13427 | # FIXME: we may have to deal with multi-command sequences. |
| 13428 | ;; |
| 13429 | '$CC '*) |
| 13430 | # Test whether the compiler implicitly links with -lc since on some |
| 13431 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13432 | # to ld, don't add -lc before -lgcc. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 13434 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 13435 | $RM conftest* |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13436 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13437 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13438 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13439 | (eval $ac_compile) 2>&5 |
| 13440 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13442 | test $ac_status = 0; } 2>conftest.err; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13443 | soname=conftest |
| 13444 | lib=conftest |
| 13445 | libobjs=conftest.$ac_objext |
| 13446 | deplibs= |
| 13447 | wl=$lt_prog_compiler_wl_CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13448 | pic_flag=$lt_prog_compiler_pic_CXX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13449 | compiler_flags=-v |
| 13450 | linker_flags=-v |
| 13451 | verstring= |
| 13452 | output_objdir=. |
| 13453 | libname=conftest |
| 13454 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 13455 | allow_undefined_flag_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13456 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 13457 | (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13458 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13459 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13460 | test $ac_status = 0; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13461 | then |
| 13462 | archive_cmds_need_lc_CXX=no |
| 13463 | else |
| 13464 | archive_cmds_need_lc_CXX=yes |
| 13465 | fi |
| 13466 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 13467 | else |
| 13468 | cat conftest.err 1>&5 |
| 13469 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13470 | $RM conftest* |
| 13471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 |
| 13472 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13473 | ;; |
| 13474 | esac |
| 13475 | fi |
| 13476 | ;; |
| 13477 | esac |
| 13478 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13479 | |
| 13480 | |
| 13481 | |
| 13482 | |
| 13483 | |
| 13484 | |
| 13485 | |
| 13486 | |
| 13487 | |
| 13488 | |
| 13489 | |
| 13490 | |
| 13491 | |
| 13492 | |
| 13493 | |
| 13494 | |
| 13495 | |
| 13496 | |
| 13497 | |
| 13498 | |
| 13499 | |
| 13500 | |
| 13501 | |
| 13502 | |
| 13503 | |
| 13504 | |
| 13505 | |
| 13506 | |
| 13507 | |
| 13508 | |
| 13509 | |
| 13510 | |
| 13511 | |
| 13512 | |
| 13513 | |
| 13514 | |
| 13515 | |
| 13516 | |
| 13517 | |
| 13518 | |
| 13519 | |
| 13520 | |
| 13521 | |
| 13522 | |
| 13523 | |
| 13524 | |
| 13525 | |
| 13526 | |
| 13527 | |
| 13528 | |
| 13529 | |
| 13530 | |
| 13531 | |
| 13532 | |
| 13533 | |
| 13534 | |
| 13535 | |
| 13536 | |
| 13537 | |
| 13538 | |
| 13539 | |
| 13540 | |
| 13541 | |
| 13542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 13543 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 13544 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13545 | library_names_spec= |
| 13546 | libname_spec='lib$name' |
| 13547 | soname_spec= |
| 13548 | shrext_cmds=".so" |
| 13549 | postinstall_cmds= |
| 13550 | postuninstall_cmds= |
| 13551 | finish_cmds= |
| 13552 | finish_eval= |
| 13553 | shlibpath_var= |
| 13554 | shlibpath_overrides_runpath=unknown |
| 13555 | version_type=none |
| 13556 | dynamic_linker="$host_os ld.so" |
| 13557 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13558 | need_lib_prefix=unknown |
| 13559 | hardcode_into_libs=no |
| 13560 | |
| 13561 | # when you set need_version to no, make sure it does not cause -set_version |
| 13562 | # flags to be left without arguments |
| 13563 | need_version=unknown |
| 13564 | |
| 13565 | case $host_os in |
| 13566 | aix3*) |
| 13567 | version_type=linux |
| 13568 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13569 | shlibpath_var=LIBPATH |
| 13570 | |
| 13571 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13572 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13573 | ;; |
| 13574 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13575 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13576 | version_type=linux |
| 13577 | need_lib_prefix=no |
| 13578 | need_version=no |
| 13579 | hardcode_into_libs=yes |
| 13580 | if test "$host_cpu" = ia64; then |
| 13581 | # AIX 5 supports IA64 |
| 13582 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13583 | shlibpath_var=LD_LIBRARY_PATH |
| 13584 | else |
| 13585 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13586 | # for dependence libraries. The import file would start with |
| 13587 | # the line `#! .'. This would cause the generated library to |
| 13588 | # depend on `.', always an invalid library. This was fixed in |
| 13589 | # development snapshots of GCC prior to 3.0. |
| 13590 | case $host_os in |
| 13591 | aix4 | aix4.[01] | aix4.[01].*) |
| 13592 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13593 | echo ' yes ' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13594 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13595 | : |
| 13596 | else |
| 13597 | can_build_shared=no |
| 13598 | fi |
| 13599 | ;; |
| 13600 | esac |
| 13601 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13602 | # soname into executable. Probably we can add versioning support to |
| 13603 | # collect2, so additional links can be useful in future. |
| 13604 | if test "$aix_use_runtimelinking" = yes; then |
| 13605 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13606 | # instead of lib<name>.a to let people know that these are not |
| 13607 | # typical AIX shared libraries. |
| 13608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13609 | else |
| 13610 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13611 | # and later when we are not doing run time linking. |
| 13612 | library_names_spec='${libname}${release}.a $libname.a' |
| 13613 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13614 | fi |
| 13615 | shlibpath_var=LIBPATH |
| 13616 | fi |
| 13617 | ;; |
| 13618 | |
| 13619 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13620 | case $host_cpu in |
| 13621 | powerpc) |
| 13622 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 13623 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 13624 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13625 | ;; |
| 13626 | m68k) |
| 13627 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13628 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13629 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 13630 | ;; |
| 13631 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13632 | ;; |
| 13633 | |
| 13634 | beos*) |
| 13635 | library_names_spec='${libname}${shared_ext}' |
| 13636 | dynamic_linker="$host_os ld.so" |
| 13637 | shlibpath_var=LIBRARY_PATH |
| 13638 | ;; |
| 13639 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13640 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13641 | version_type=linux |
| 13642 | need_version=no |
| 13643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13644 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13645 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13646 | shlibpath_var=LD_LIBRARY_PATH |
| 13647 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13648 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13649 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13650 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13651 | # libtool to hard-code these into programs |
| 13652 | ;; |
| 13653 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13654 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13655 | version_type=windows |
| 13656 | shrext_cmds=".dll" |
| 13657 | need_version=no |
| 13658 | need_lib_prefix=no |
| 13659 | |
| 13660 | case $GCC,$host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13661 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13662 | library_names_spec='$libname.dll.a' |
| 13663 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13664 | postinstall_cmds='base_file=`basename \${file}`~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13665 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13666 | dldir=$destdir/`dirname \$dlpath`~ |
| 13667 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13668 | $install_prog $dir/$dlname \$dldir/$dlname~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13669 | chmod a+x \$dldir/$dlname~ |
| 13670 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13671 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13672 | fi' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13673 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13674 | dlpath=$dir/\$dldll~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13675 | $RM \$dlpath' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13676 | shlibpath_overrides_runpath=yes |
| 13677 | |
| 13678 | case $host_os in |
| 13679 | cygwin*) |
| 13680 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13681 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13682 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13683 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13684 | mingw* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13685 | # MinGW DLLs use traditional 'lib' prefix |
| 13686 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13687 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13688 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13689 | # It is most probably a Windows format PATH printed by |
| 13690 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13691 | # path with ; separators, and with drive letters. We can handle the |
| 13692 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13693 | # especially as we might pass files found there to a mingw objdump, |
| 13694 | # which wouldn't understand a cygwinified path. Ahh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13695 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13696 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13697 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13698 | fi |
| 13699 | ;; |
| 13700 | pw32*) |
| 13701 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13702 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13703 | ;; |
| 13704 | esac |
| 13705 | ;; |
| 13706 | |
| 13707 | *) |
| 13708 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13709 | ;; |
| 13710 | esac |
| 13711 | dynamic_linker='Win32 ld.exe' |
| 13712 | # FIXME: first we should search . and the directory the executable is in |
| 13713 | shlibpath_var=PATH |
| 13714 | ;; |
| 13715 | |
| 13716 | darwin* | rhapsody*) |
| 13717 | dynamic_linker="$host_os dyld" |
| 13718 | version_type=darwin |
| 13719 | need_lib_prefix=no |
| 13720 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13721 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13722 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13723 | shlibpath_overrides_runpath=yes |
| 13724 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13725 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13726 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13727 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13728 | ;; |
| 13729 | |
| 13730 | dgux*) |
| 13731 | version_type=linux |
| 13732 | need_lib_prefix=no |
| 13733 | need_version=no |
| 13734 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13735 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13736 | shlibpath_var=LD_LIBRARY_PATH |
| 13737 | ;; |
| 13738 | |
| 13739 | freebsd1*) |
| 13740 | dynamic_linker=no |
| 13741 | ;; |
| 13742 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13743 | freebsd* | dragonfly*) |
| 13744 | # DragonFly does not have aout. When/if they implement a new |
| 13745 | # versioning mechanism, adjust this. |
| 13746 | if test -x /usr/bin/objformat; then |
| 13747 | objformat=`/usr/bin/objformat` |
| 13748 | else |
| 13749 | case $host_os in |
| 13750 | freebsd[123]*) objformat=aout ;; |
| 13751 | *) objformat=elf ;; |
| 13752 | esac |
| 13753 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13754 | version_type=freebsd-$objformat |
| 13755 | case $version_type in |
| 13756 | freebsd-elf*) |
| 13757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13758 | need_version=no |
| 13759 | need_lib_prefix=no |
| 13760 | ;; |
| 13761 | freebsd-*) |
| 13762 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13763 | need_version=yes |
| 13764 | ;; |
| 13765 | esac |
| 13766 | shlibpath_var=LD_LIBRARY_PATH |
| 13767 | case $host_os in |
| 13768 | freebsd2*) |
| 13769 | shlibpath_overrides_runpath=yes |
| 13770 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13771 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13772 | shlibpath_overrides_runpath=yes |
| 13773 | hardcode_into_libs=yes |
| 13774 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13775 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13776 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13777 | shlibpath_overrides_runpath=no |
| 13778 | hardcode_into_libs=yes |
| 13779 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13780 | *) # from 4.6 on, and DragonFly |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13781 | shlibpath_overrides_runpath=yes |
| 13782 | hardcode_into_libs=yes |
| 13783 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13784 | esac |
| 13785 | ;; |
| 13786 | |
| 13787 | gnu*) |
| 13788 | version_type=linux |
| 13789 | need_lib_prefix=no |
| 13790 | need_version=no |
| 13791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13792 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13793 | shlibpath_var=LD_LIBRARY_PATH |
| 13794 | hardcode_into_libs=yes |
| 13795 | ;; |
| 13796 | |
| 13797 | hpux9* | hpux10* | hpux11*) |
| 13798 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13799 | # link against other versions. |
| 13800 | version_type=sunos |
| 13801 | need_lib_prefix=no |
| 13802 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13803 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13804 | ia64*) |
| 13805 | shrext_cmds='.so' |
| 13806 | hardcode_into_libs=yes |
| 13807 | dynamic_linker="$host_os dld.so" |
| 13808 | shlibpath_var=LD_LIBRARY_PATH |
| 13809 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13811 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13812 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13813 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13814 | else |
| 13815 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13816 | fi |
| 13817 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13818 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13819 | hppa*64*) |
| 13820 | shrext_cmds='.sl' |
| 13821 | hardcode_into_libs=yes |
| 13822 | dynamic_linker="$host_os dld.sl" |
| 13823 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13824 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13826 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13827 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13828 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13829 | ;; |
| 13830 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13831 | shrext_cmds='.sl' |
| 13832 | dynamic_linker="$host_os dld.sl" |
| 13833 | shlibpath_var=SHLIB_PATH |
| 13834 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13835 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13836 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13837 | ;; |
| 13838 | esac |
| 13839 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13840 | postinstall_cmds='chmod 555 $lib' |
| 13841 | ;; |
| 13842 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13843 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13844 | version_type=linux |
| 13845 | need_lib_prefix=no |
| 13846 | need_version=no |
| 13847 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13848 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13849 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13850 | shlibpath_var=LD_LIBRARY_PATH |
| 13851 | shlibpath_overrides_runpath=no |
| 13852 | hardcode_into_libs=yes |
| 13853 | ;; |
| 13854 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13855 | irix5* | irix6* | nonstopux*) |
| 13856 | case $host_os in |
| 13857 | nonstopux*) version_type=nonstopux ;; |
| 13858 | *) |
| 13859 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13860 | version_type=linux |
| 13861 | else |
| 13862 | version_type=irix |
| 13863 | fi ;; |
| 13864 | esac |
| 13865 | need_lib_prefix=no |
| 13866 | need_version=no |
| 13867 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13869 | case $host_os in |
| 13870 | irix5* | nonstopux*) |
| 13871 | libsuff= shlibsuff= |
| 13872 | ;; |
| 13873 | *) |
| 13874 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13875 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13876 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13877 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13878 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13879 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13880 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13881 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13882 | esac |
| 13883 | ;; |
| 13884 | esac |
| 13885 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13886 | shlibpath_overrides_runpath=no |
| 13887 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13888 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13889 | hardcode_into_libs=yes |
| 13890 | ;; |
| 13891 | |
| 13892 | # No shared lib support for Linux oldld, aout, or coff. |
| 13893 | linux*oldld* | linux*aout* | linux*coff*) |
| 13894 | dynamic_linker=no |
| 13895 | ;; |
| 13896 | |
| 13897 | # This must be Linux ELF. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13898 | linux* | k*bsd*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13899 | version_type=linux |
| 13900 | need_lib_prefix=no |
| 13901 | need_version=no |
| 13902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13903 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13904 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13905 | shlibpath_var=LD_LIBRARY_PATH |
| 13906 | shlibpath_overrides_runpath=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13907 | # Some binutils ld are patched to set DT_RUNPATH |
| 13908 | save_LDFLAGS=$LDFLAGS |
| 13909 | save_libdir=$libdir |
| 13910 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 13911 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 13912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13913 | /* end confdefs.h. */ |
| 13914 | |
| 13915 | int |
| 13916 | main () |
| 13917 | { |
| 13918 | |
| 13919 | ; |
| 13920 | return 0; |
| 13921 | } |
| 13922 | _ACEOF |
| 13923 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 13924 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 13925 | shlibpath_overrides_runpath=yes |
| 13926 | fi |
| 13927 | fi |
| 13928 | rm -f core conftest.err conftest.$ac_objext \ |
| 13929 | conftest$ac_exeext conftest.$ac_ext |
| 13930 | LDFLAGS=$save_LDFLAGS |
| 13931 | libdir=$save_libdir |
| 13932 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13933 | # This implies no fast_install, which is unacceptable. |
| 13934 | # Some rework will be needed to allow for fast_install |
| 13935 | # before this can be enabled. |
| 13936 | hardcode_into_libs=yes |
| 13937 | |
| 13938 | # Append ld.so.conf contents to the search path |
| 13939 | if test -f /etc/ld.so.conf; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13940 | 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;/^$/d' | tr '\n' ' '` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13941 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13942 | fi |
| 13943 | |
| 13944 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13945 | # powerpc, because MkLinux only supported shared libraries with the |
| 13946 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13947 | # most powerpc-linux boxes support dynamic linking these days and |
| 13948 | # people can always --disable-shared, the test was removed, and we |
| 13949 | # assume the GNU/Linux dynamic linker is in use. |
| 13950 | dynamic_linker='GNU/Linux ld.so' |
| 13951 | ;; |
| 13952 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13953 | netbsd*) |
| 13954 | version_type=sunos |
| 13955 | need_lib_prefix=no |
| 13956 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13957 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13958 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13959 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13960 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13961 | else |
| 13962 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13963 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13964 | dynamic_linker='NetBSD ld.elf_so' |
| 13965 | fi |
| 13966 | shlibpath_var=LD_LIBRARY_PATH |
| 13967 | shlibpath_overrides_runpath=yes |
| 13968 | hardcode_into_libs=yes |
| 13969 | ;; |
| 13970 | |
| 13971 | newsos6) |
| 13972 | version_type=linux |
| 13973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13974 | shlibpath_var=LD_LIBRARY_PATH |
| 13975 | shlibpath_overrides_runpath=yes |
| 13976 | ;; |
| 13977 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13978 | *nto* | *qnx*) |
| 13979 | version_type=qnx |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13980 | need_lib_prefix=no |
| 13981 | need_version=no |
| 13982 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13983 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13984 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13985 | shlibpath_overrides_runpath=no |
| 13986 | hardcode_into_libs=yes |
| 13987 | dynamic_linker='ldqnx.so' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13988 | ;; |
| 13989 | |
| 13990 | openbsd*) |
| 13991 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13992 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13993 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13994 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13995 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13996 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13997 | *) need_version=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13998 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14000 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14001 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14002 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14003 | case $host_os in |
| 14004 | openbsd2.[89] | openbsd2.[89].*) |
| 14005 | shlibpath_overrides_runpath=no |
| 14006 | ;; |
| 14007 | *) |
| 14008 | shlibpath_overrides_runpath=yes |
| 14009 | ;; |
| 14010 | esac |
| 14011 | else |
| 14012 | shlibpath_overrides_runpath=yes |
| 14013 | fi |
| 14014 | ;; |
| 14015 | |
| 14016 | os2*) |
| 14017 | libname_spec='$name' |
| 14018 | shrext_cmds=".dll" |
| 14019 | need_lib_prefix=no |
| 14020 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14021 | dynamic_linker='OS/2 ld.exe' |
| 14022 | shlibpath_var=LIBPATH |
| 14023 | ;; |
| 14024 | |
| 14025 | osf3* | osf4* | osf5*) |
| 14026 | version_type=osf |
| 14027 | need_lib_prefix=no |
| 14028 | need_version=no |
| 14029 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14030 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14031 | shlibpath_var=LD_LIBRARY_PATH |
| 14032 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14033 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14034 | ;; |
| 14035 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 14036 | rdos*) |
| 14037 | dynamic_linker=no |
| 14038 | ;; |
| 14039 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14040 | solaris*) |
| 14041 | version_type=linux |
| 14042 | need_lib_prefix=no |
| 14043 | need_version=no |
| 14044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14045 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14046 | shlibpath_var=LD_LIBRARY_PATH |
| 14047 | shlibpath_overrides_runpath=yes |
| 14048 | hardcode_into_libs=yes |
| 14049 | # ldd complains unless libraries are executable |
| 14050 | postinstall_cmds='chmod +x $lib' |
| 14051 | ;; |
| 14052 | |
| 14053 | sunos4*) |
| 14054 | version_type=sunos |
| 14055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14056 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14057 | shlibpath_var=LD_LIBRARY_PATH |
| 14058 | shlibpath_overrides_runpath=yes |
| 14059 | if test "$with_gnu_ld" = yes; then |
| 14060 | need_lib_prefix=no |
| 14061 | fi |
| 14062 | need_version=yes |
| 14063 | ;; |
| 14064 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14065 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14066 | version_type=linux |
| 14067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14068 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14069 | shlibpath_var=LD_LIBRARY_PATH |
| 14070 | case $host_vendor in |
| 14071 | sni) |
| 14072 | shlibpath_overrides_runpath=no |
| 14073 | need_lib_prefix=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14074 | runpath_var=LD_RUN_PATH |
| 14075 | ;; |
| 14076 | siemens) |
| 14077 | need_lib_prefix=no |
| 14078 | ;; |
| 14079 | motorola) |
| 14080 | need_lib_prefix=no |
| 14081 | need_version=no |
| 14082 | shlibpath_overrides_runpath=no |
| 14083 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14084 | ;; |
| 14085 | esac |
| 14086 | ;; |
| 14087 | |
| 14088 | sysv4*MP*) |
| 14089 | if test -d /usr/nec ;then |
| 14090 | version_type=linux |
| 14091 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14092 | soname_spec='$libname${shared_ext}.$major' |
| 14093 | shlibpath_var=LD_LIBRARY_PATH |
| 14094 | fi |
| 14095 | ;; |
| 14096 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14097 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14098 | version_type=freebsd-elf |
| 14099 | need_lib_prefix=no |
| 14100 | need_version=no |
| 14101 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14102 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14103 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14104 | shlibpath_overrides_runpath=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14105 | hardcode_into_libs=yes |
| 14106 | if test "$with_gnu_ld" = yes; then |
| 14107 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14108 | else |
| 14109 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14110 | case $host_os in |
| 14111 | sco3.2v5*) |
| 14112 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 14113 | ;; |
| 14114 | esac |
| 14115 | fi |
| 14116 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 14117 | ;; |
| 14118 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14119 | tpf*) |
| 14120 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 14121 | version_type=linux |
| 14122 | need_lib_prefix=no |
| 14123 | need_version=no |
| 14124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14125 | shlibpath_var=LD_LIBRARY_PATH |
| 14126 | shlibpath_overrides_runpath=no |
| 14127 | hardcode_into_libs=yes |
| 14128 | ;; |
| 14129 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14130 | uts4*) |
| 14131 | version_type=linux |
| 14132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14133 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14134 | shlibpath_var=LD_LIBRARY_PATH |
| 14135 | ;; |
| 14136 | |
| 14137 | *) |
| 14138 | dynamic_linker=no |
| 14139 | ;; |
| 14140 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 14142 | $as_echo "$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14143 | test "$dynamic_linker" = no && can_build_shared=no |
| 14144 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14145 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14146 | if test "$GCC" = yes; then |
| 14147 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14148 | fi |
| 14149 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14150 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 14151 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 14152 | fi |
| 14153 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 14154 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 14155 | fi |
| 14156 | |
| 14157 | |
| 14158 | |
| 14159 | |
| 14160 | |
| 14161 | |
| 14162 | |
| 14163 | |
| 14164 | |
| 14165 | |
| 14166 | |
| 14167 | |
| 14168 | |
| 14169 | |
| 14170 | |
| 14171 | |
| 14172 | |
| 14173 | |
| 14174 | |
| 14175 | |
| 14176 | |
| 14177 | |
| 14178 | |
| 14179 | |
| 14180 | |
| 14181 | |
| 14182 | |
| 14183 | |
| 14184 | |
| 14185 | |
| 14186 | |
| 14187 | |
| 14188 | |
| 14189 | |
| 14190 | |
| 14191 | |
| 14192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 14193 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14194 | hardcode_action_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14195 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 14196 | test -n "$runpath_var_CXX" || |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14197 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14198 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14199 | # We can hardcode non-existent directories. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14200 | if test "$hardcode_direct_CXX" != no && |
| 14201 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14202 | # have to relink, otherwise we might link with an installed library |
| 14203 | # when we should be linking with a yet-to-be-installed one |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14204 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14205 | test "$hardcode_minus_L_CXX" != no; then |
| 14206 | # Linking always hardcodes the temporary library directory. |
| 14207 | hardcode_action_CXX=relink |
| 14208 | else |
| 14209 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14210 | hardcode_action_CXX=immediate |
| 14211 | fi |
| 14212 | else |
| 14213 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14214 | # directories. |
| 14215 | hardcode_action_CXX=unsupported |
| 14216 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 14218 | $as_echo "$hardcode_action_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14219 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14220 | if test "$hardcode_action_CXX" = relink || |
| 14221 | test "$inherit_rpath_CXX" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14222 | # Fast installation is not supported |
| 14223 | enable_fast_install=no |
| 14224 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14225 | test "$enable_shared" = no; then |
| 14226 | # Fast installation is not necessary |
| 14227 | enable_fast_install=needless |
| 14228 | fi |
| 14229 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14230 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14231 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14232 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14233 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14234 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14235 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14236 | fi # test -n "$compiler" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14237 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14238 | CC=$lt_save_CC |
| 14239 | LDCXX=$LD |
| 14240 | LD=$lt_save_LD |
| 14241 | GCC=$lt_save_GCC |
| 14242 | with_gnu_ld=$lt_save_with_gnu_ld |
| 14243 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 14244 | lt_cv_path_LD=$lt_save_path_LD |
| 14245 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 14246 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 14247 | fi # test "$_lt_caught_CXX_error" != yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14248 | |
| 14249 | ac_ext=c |
| 14250 | ac_cpp='$CPP $CPPFLAGS' |
| 14251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14254 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14255 | |
| 14256 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14257 | |
| 14258 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14259 | |
| 14260 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14261 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14262 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14263 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14264 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14265 | |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14266 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14267 | ac_config_commands="$ac_config_commands libtool" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14268 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14269 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14270 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14271 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14272 | # Only expand once: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14273 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14274 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14275 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14276 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 14278 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 14279 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 14280 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14281 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14283 | /* end confdefs.h. */ |
| 14284 | #include <stdlib.h> |
| 14285 | #include <stdarg.h> |
| 14286 | #include <string.h> |
| 14287 | #include <float.h> |
| 14288 | |
| 14289 | int |
| 14290 | main () |
| 14291 | { |
| 14292 | |
| 14293 | ; |
| 14294 | return 0; |
| 14295 | } |
| 14296 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14297 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14298 | ac_cv_header_stdc=yes |
| 14299 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14300 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14301 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14302 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14303 | |
| 14304 | if test $ac_cv_header_stdc = yes; then |
| 14305 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14307 | /* end confdefs.h. */ |
| 14308 | #include <string.h> |
| 14309 | |
| 14310 | _ACEOF |
| 14311 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14312 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 14313 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14314 | else |
| 14315 | ac_cv_header_stdc=no |
| 14316 | fi |
| 14317 | rm -f conftest* |
| 14318 | |
| 14319 | fi |
| 14320 | |
| 14321 | if test $ac_cv_header_stdc = yes; then |
| 14322 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14323 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14324 | /* end confdefs.h. */ |
| 14325 | #include <stdlib.h> |
| 14326 | |
| 14327 | _ACEOF |
| 14328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14329 | $EGREP "free" >/dev/null 2>&1; then : |
| 14330 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14331 | else |
| 14332 | ac_cv_header_stdc=no |
| 14333 | fi |
| 14334 | rm -f conftest* |
| 14335 | |
| 14336 | fi |
| 14337 | |
| 14338 | if test $ac_cv_header_stdc = yes; then |
| 14339 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14340 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14341 | : |
| 14342 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14344 | /* end confdefs.h. */ |
| 14345 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14346 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14347 | #if ((' ' & 0x0FF) == 0x020) |
| 14348 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 14349 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 14350 | #else |
| 14351 | # define ISLOWER(c) \ |
| 14352 | (('a' <= (c) && (c) <= 'i') \ |
| 14353 | || ('j' <= (c) && (c) <= 'r') \ |
| 14354 | || ('s' <= (c) && (c) <= 'z')) |
| 14355 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 14356 | #endif |
| 14357 | |
| 14358 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 14359 | int |
| 14360 | main () |
| 14361 | { |
| 14362 | int i; |
| 14363 | for (i = 0; i < 256; i++) |
| 14364 | if (XOR (islower (i), ISLOWER (i)) |
| 14365 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14366 | return 2; |
| 14367 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14368 | } |
| 14369 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14370 | if ac_fn_c_try_run "$LINENO"; then : |
| 14371 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14372 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14373 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14374 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14375 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14376 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14377 | fi |
| 14378 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14379 | fi |
| 14380 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 14382 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14383 | if test $ac_cv_header_stdc = yes; then |
| 14384 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14385 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14386 | |
| 14387 | fi |
| 14388 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame^] | 14389 | # =========================================================================== |
| 14390 | # http://www.nongnu.org/autoconf-archive/ax_pthread.html |
| 14391 | # =========================================================================== |
| 14392 | # |
| 14393 | # SYNOPSIS |
| 14394 | # |
| 14395 | # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
| 14396 | # |
| 14397 | # DESCRIPTION |
| 14398 | # |
| 14399 | # This macro figures out how to build C programs using POSIX threads. It |
| 14400 | # sets the PTHREAD_LIBS output variable to the threads library and linker |
| 14401 | # flags, and the PTHREAD_CFLAGS output variable to any special C compiler |
| 14402 | # flags that are needed. (The user can also force certain compiler |
| 14403 | # flags/libs to be tested by setting these environment variables.) |
| 14404 | # |
| 14405 | # Also sets PTHREAD_CC to any special C compiler that is needed for |
| 14406 | # multi-threaded programs (defaults to the value of CC otherwise). (This |
| 14407 | # is necessary on AIX to use the special cc_r compiler alias.) |
| 14408 | # |
| 14409 | # NOTE: You are assumed to not only compile your program with these flags, |
| 14410 | # but also link it with them as well. e.g. you should link with |
| 14411 | # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS |
| 14412 | # |
| 14413 | # If you are only building threads programs, you may wish to use these |
| 14414 | # variables in your default LIBS, CFLAGS, and CC: |
| 14415 | # |
| 14416 | # LIBS="$PTHREAD_LIBS $LIBS" |
| 14417 | # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14418 | # CC="$PTHREAD_CC" |
| 14419 | # |
| 14420 | # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant |
| 14421 | # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name |
| 14422 | # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). |
| 14423 | # |
| 14424 | # ACTION-IF-FOUND is a list of shell commands to run if a threads library |
| 14425 | # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it |
| 14426 | # is not found. If ACTION-IF-FOUND is not specified, the default action |
| 14427 | # will define HAVE_PTHREAD. |
| 14428 | # |
| 14429 | # Please let the authors know if this macro fails on any platform, or if |
| 14430 | # you have any other suggestions or comments. This macro was based on work |
| 14431 | # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help |
| 14432 | # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by |
| 14433 | # Alejandro Forero Cuervo to the autoconf macro repository. We are also |
| 14434 | # grateful for the helpful feedback of numerous users. |
| 14435 | # |
| 14436 | # LICENSE |
| 14437 | # |
| 14438 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> |
| 14439 | # |
| 14440 | # This program is free software: you can redistribute it and/or modify it |
| 14441 | # under the terms of the GNU General Public License as published by the |
| 14442 | # Free Software Foundation, either version 3 of the License, or (at your |
| 14443 | # option) any later version. |
| 14444 | # |
| 14445 | # This program is distributed in the hope that it will be useful, but |
| 14446 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14447 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 14448 | # Public License for more details. |
| 14449 | # |
| 14450 | # You should have received a copy of the GNU General Public License along |
| 14451 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
| 14452 | # |
| 14453 | # As a special exception, the respective Autoconf Macro's copyright owner |
| 14454 | # gives unlimited permission to copy, distribute and modify the configure |
| 14455 | # scripts that are the output of Autoconf when processing the Macro. You |
| 14456 | # need not follow the terms of the GNU General Public License when using |
| 14457 | # or distributing such scripts, even though portions of the text of the |
| 14458 | # Macro appear in them. The GNU General Public License (GPL) does govern |
| 14459 | # all other use of the material that constitutes the Autoconf Macro. |
| 14460 | # |
| 14461 | # This special exception to the GPL applies to versions of the Autoconf |
| 14462 | # Macro released by the Autoconf Archive. When you make and distribute a |
| 14463 | # modified version of the Autoconf Macro, you may extend this special |
| 14464 | # exception to the GPL to apply to your modified version as well. |
| 14465 | |
| 14466 | #serial 6 |
| 14467 | |
| 14468 | # This is what autoupdate's m4 run will expand. It fires |
| 14469 | # the warning (with _au_warn_XXX), outputs it into the |
| 14470 | # updated configure.ac (with AC_DIAGNOSE), and then outputs |
| 14471 | # the replacement expansion. |
| 14472 | |
| 14473 | |
| 14474 | # This is an auxiliary macro that is also run when |
| 14475 | # autoupdate runs m4. It simply calls m4_warning, but |
| 14476 | # we need a wrapper so that each warning is emitted only |
| 14477 | # once. We break the quoting in m4_warning's argument in |
| 14478 | # order to expand this macro's arguments, not AU_DEFUN's. |
| 14479 | |
| 14480 | |
| 14481 | # Finally, this is the expansion that is picked up by |
| 14482 | # autoconf. It tells the user to run autoupdate, and |
| 14483 | # then outputs the replacement expansion. We do not care |
| 14484 | # about autoupdate's warning because that contains |
| 14485 | # information on what to do *after* running autoupdate. |
| 14486 | |
| 14487 | |
| 14488 | |
| 14489 | |
| 14490 | ac_ext=c |
| 14491 | ac_cpp='$CPP $CPPFLAGS' |
| 14492 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14493 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14494 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14495 | |
| 14496 | ax_pthread_ok=no |
| 14497 | |
| 14498 | # We used to check for pthread.h first, but this fails if pthread.h |
| 14499 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 14500 | # It gets checked for in the link test anyway. |
| 14501 | |
| 14502 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 14503 | # etcetera environment variables, and if threads linking works using |
| 14504 | # them: |
| 14505 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 14506 | save_CFLAGS="$CFLAGS" |
| 14507 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14508 | save_LIBS="$LIBS" |
| 14509 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 14511 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 14512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14513 | /* end confdefs.h. */ |
| 14514 | |
| 14515 | /* Override any GCC internal prototype to avoid an error. |
| 14516 | Use char because int might match the return type of a GCC |
| 14517 | builtin and then its argument prototype would still apply. */ |
| 14518 | #ifdef __cplusplus |
| 14519 | extern "C" |
| 14520 | #endif |
| 14521 | char pthread_join (); |
| 14522 | int |
| 14523 | main () |
| 14524 | { |
| 14525 | return pthread_join (); |
| 14526 | ; |
| 14527 | return 0; |
| 14528 | } |
| 14529 | _ACEOF |
| 14530 | if ac_fn_c_try_link "$LINENO"; then : |
| 14531 | ax_pthread_ok=yes |
| 14532 | fi |
| 14533 | rm -f core conftest.err conftest.$ac_objext \ |
| 14534 | conftest$ac_exeext conftest.$ac_ext |
| 14535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 14536 | $as_echo "$ax_pthread_ok" >&6; } |
| 14537 | if test x"$ax_pthread_ok" = xno; then |
| 14538 | PTHREAD_LIBS="" |
| 14539 | PTHREAD_CFLAGS="" |
| 14540 | fi |
| 14541 | LIBS="$save_LIBS" |
| 14542 | CFLAGS="$save_CFLAGS" |
| 14543 | fi |
| 14544 | |
| 14545 | # We must check for the threads library under a number of different |
| 14546 | # names; the ordering is very important because some systems |
| 14547 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 14548 | # libraries is broken (non-POSIX). |
| 14549 | |
| 14550 | # Create a list of thread flags to try. Items starting with a "-" are |
| 14551 | # C compiler flags, and other items are library names, except for "none" |
| 14552 | # which indicates that we try without any flags at all, and "pthread-config" |
| 14553 | # which is a program returning the flags for the Pth emulation library. |
| 14554 | |
| 14555 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 14556 | |
| 14557 | # The ordering *is* (sometimes) important. Some notes on the |
| 14558 | # individual items follow: |
| 14559 | |
| 14560 | # pthreads: AIX (must check this before -lpthread) |
| 14561 | # none: in case threads are in libc; should be tried before -Kthread and |
| 14562 | # other compiler flags to prevent continual compiler warnings |
| 14563 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 14564 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 14565 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 14566 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 14567 | # -pthreads: Solaris/gcc |
| 14568 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 14569 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 14570 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 14571 | # also defines -D_REENTRANT) |
| 14572 | # ... -mt is also the pthreads flag for HP/aCC |
| 14573 | # pthread: Linux, etcetera |
| 14574 | # --thread-safe: KAI C++ |
| 14575 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 14576 | |
| 14577 | case "${host_cpu}-${host_os}" in |
| 14578 | *solaris*) |
| 14579 | |
| 14580 | # On Solaris (at least, for some versions), libc contains stubbed |
| 14581 | # (non-functional) versions of the pthreads routines, so link-based |
| 14582 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 14583 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 14584 | # a function called by this macro, so we could check for that, but |
| 14585 | # who knows whether they'll stub that too in a future libc.) So, |
| 14586 | # we'll just look for -pthreads and -lpthread first: |
| 14587 | |
| 14588 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 14589 | ;; |
| 14590 | |
| 14591 | *-darwin*) |
| 14592 | acx_pthread_flags="-pthread $acx_pthread_flags" |
| 14593 | ;; |
| 14594 | esac |
| 14595 | |
| 14596 | if test x"$ax_pthread_ok" = xno; then |
| 14597 | for flag in $ax_pthread_flags; do |
| 14598 | |
| 14599 | case $flag in |
| 14600 | none) |
| 14601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 14602 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 14603 | ;; |
| 14604 | |
| 14605 | -*) |
| 14606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 14607 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 14608 | PTHREAD_CFLAGS="$flag" |
| 14609 | ;; |
| 14610 | |
| 14611 | pthread-config) |
| 14612 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 14613 | set dummy pthread-config; ac_word=$2 |
| 14614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14615 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14616 | if test "${ac_cv_prog_ax_pthread_config+set}" = set; then : |
| 14617 | $as_echo_n "(cached) " >&6 |
| 14618 | else |
| 14619 | if test -n "$ax_pthread_config"; then |
| 14620 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 14621 | else |
| 14622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14623 | for as_dir in $PATH |
| 14624 | do |
| 14625 | IFS=$as_save_IFS |
| 14626 | test -z "$as_dir" && as_dir=. |
| 14627 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14628 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 14629 | ac_cv_prog_ax_pthread_config="yes" |
| 14630 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14631 | break 2 |
| 14632 | fi |
| 14633 | done |
| 14634 | done |
| 14635 | IFS=$as_save_IFS |
| 14636 | |
| 14637 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 14638 | fi |
| 14639 | fi |
| 14640 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 14641 | if test -n "$ax_pthread_config"; then |
| 14642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 14643 | $as_echo "$ax_pthread_config" >&6; } |
| 14644 | else |
| 14645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14646 | $as_echo "no" >&6; } |
| 14647 | fi |
| 14648 | |
| 14649 | |
| 14650 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 14651 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 14652 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 14653 | ;; |
| 14654 | |
| 14655 | *) |
| 14656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 14657 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 14658 | PTHREAD_LIBS="-l$flag" |
| 14659 | ;; |
| 14660 | esac |
| 14661 | |
| 14662 | save_LIBS="$LIBS" |
| 14663 | save_CFLAGS="$CFLAGS" |
| 14664 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14665 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14666 | |
| 14667 | # Check for various functions. We must include pthread.h, |
| 14668 | # since some functions may be macros. (On the Sequent, we |
| 14669 | # need a special flag -Kthread to make this header compile.) |
| 14670 | # We check for pthread_join because it is in -lpthread on IRIX |
| 14671 | # while pthread_create is in libc. We check for pthread_attr_init |
| 14672 | # due to DEC craziness with -lpthreads. We check for |
| 14673 | # pthread_cleanup_push because it is one of the few pthread |
| 14674 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 14675 | # We try pthread_create on general principles. |
| 14676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14677 | /* end confdefs.h. */ |
| 14678 | #include <pthread.h> |
| 14679 | static void routine(void* a) {a=0;} |
| 14680 | static void* start_routine(void* a) {return a;} |
| 14681 | int |
| 14682 | main () |
| 14683 | { |
| 14684 | pthread_t th; pthread_attr_t attr; |
| 14685 | pthread_join(th, 0); |
| 14686 | pthread_attr_init(&attr); |
| 14687 | pthread_cleanup_push(routine, 0); |
| 14688 | pthread_create(&th,0,start_routine,0); |
| 14689 | pthread_cleanup_pop(0); |
| 14690 | ; |
| 14691 | return 0; |
| 14692 | } |
| 14693 | _ACEOF |
| 14694 | if ac_fn_c_try_link "$LINENO"; then : |
| 14695 | ax_pthread_ok=yes |
| 14696 | fi |
| 14697 | rm -f core conftest.err conftest.$ac_objext \ |
| 14698 | conftest$ac_exeext conftest.$ac_ext |
| 14699 | |
| 14700 | LIBS="$save_LIBS" |
| 14701 | CFLAGS="$save_CFLAGS" |
| 14702 | |
| 14703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 14704 | $as_echo "$ax_pthread_ok" >&6; } |
| 14705 | if test "x$ax_pthread_ok" = xyes; then |
| 14706 | break; |
| 14707 | fi |
| 14708 | |
| 14709 | PTHREAD_LIBS="" |
| 14710 | PTHREAD_CFLAGS="" |
| 14711 | done |
| 14712 | fi |
| 14713 | |
| 14714 | # Various other checks: |
| 14715 | if test "x$ax_pthread_ok" = xyes; then |
| 14716 | save_LIBS="$LIBS" |
| 14717 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14718 | save_CFLAGS="$CFLAGS" |
| 14719 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14720 | |
| 14721 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 14722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 14723 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 14724 | attr_name=unknown |
| 14725 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 14726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14727 | /* end confdefs.h. */ |
| 14728 | #include <pthread.h> |
| 14729 | int |
| 14730 | main () |
| 14731 | { |
| 14732 | int attr=$attr; return attr; |
| 14733 | ; |
| 14734 | return 0; |
| 14735 | } |
| 14736 | _ACEOF |
| 14737 | if ac_fn_c_try_link "$LINENO"; then : |
| 14738 | attr_name=$attr; break |
| 14739 | fi |
| 14740 | rm -f core conftest.err conftest.$ac_objext \ |
| 14741 | conftest$ac_exeext conftest.$ac_ext |
| 14742 | done |
| 14743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 14744 | $as_echo "$attr_name" >&6; } |
| 14745 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 14746 | |
| 14747 | cat >>confdefs.h <<_ACEOF |
| 14748 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 14749 | _ACEOF |
| 14750 | |
| 14751 | fi |
| 14752 | |
| 14753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 14754 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 14755 | flag=no |
| 14756 | case "${host_cpu}-${host_os}" in |
| 14757 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 14758 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 14759 | esac |
| 14760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 14761 | $as_echo "${flag}" >&6; } |
| 14762 | if test "x$flag" != xno; then |
| 14763 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 14764 | fi |
| 14765 | |
| 14766 | LIBS="$save_LIBS" |
| 14767 | CFLAGS="$save_CFLAGS" |
| 14768 | |
| 14769 | # More AIX lossage: must compile with xlc_r or cc_r |
| 14770 | if test x"$GCC" != xyes; then |
| 14771 | for ac_prog in xlc_r cc_r |
| 14772 | do |
| 14773 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14774 | set dummy $ac_prog; ac_word=$2 |
| 14775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14776 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14777 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : |
| 14778 | $as_echo_n "(cached) " >&6 |
| 14779 | else |
| 14780 | if test -n "$PTHREAD_CC"; then |
| 14781 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 14782 | else |
| 14783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14784 | for as_dir in $PATH |
| 14785 | do |
| 14786 | IFS=$as_save_IFS |
| 14787 | test -z "$as_dir" && as_dir=. |
| 14788 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 14790 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 14791 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14792 | break 2 |
| 14793 | fi |
| 14794 | done |
| 14795 | done |
| 14796 | IFS=$as_save_IFS |
| 14797 | |
| 14798 | fi |
| 14799 | fi |
| 14800 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 14801 | if test -n "$PTHREAD_CC"; then |
| 14802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 14803 | $as_echo "$PTHREAD_CC" >&6; } |
| 14804 | else |
| 14805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14806 | $as_echo "no" >&6; } |
| 14807 | fi |
| 14808 | |
| 14809 | |
| 14810 | test -n "$PTHREAD_CC" && break |
| 14811 | done |
| 14812 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 14813 | |
| 14814 | else |
| 14815 | PTHREAD_CC=$CC |
| 14816 | fi |
| 14817 | else |
| 14818 | PTHREAD_CC="$CC" |
| 14819 | fi |
| 14820 | |
| 14821 | |
| 14822 | |
| 14823 | |
| 14824 | |
| 14825 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 14826 | if test x"$ax_pthread_ok" = xyes; then |
| 14827 | |
| 14828 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 14829 | |
| 14830 | : |
| 14831 | else |
| 14832 | ax_pthread_ok=no |
| 14833 | |
| 14834 | fi |
| 14835 | ac_ext=c |
| 14836 | ac_cpp='$CPP $CPPFLAGS' |
| 14837 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14838 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14839 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14840 | |
| 14841 | |
| 14842 | |
| 14843 | # Check whether --enable-m32 was given. |
| 14844 | if test "${enable_m32+set}" = set; then : |
| 14845 | enableval=$enable_m32; case "${enableval}" in |
| 14846 | yes) |
| 14847 | CFLAGS=$(CFLAGS) -m32 |
| 14848 | usem32=true |
| 14849 | ;; |
| 14850 | no) |
| 14851 | usem32=false |
| 14852 | ;; |
| 14853 | *) |
| 14854 | as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5 |
| 14855 | ;; |
| 14856 | esac |
| 14857 | else |
| 14858 | usem32=false |
| 14859 | fi |
| 14860 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14861 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14862 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14863 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14864 | enableval=$enable_selftest; case "${enableval}" in |
| 14865 | yes) |
| 14866 | selftest=true |
| 14867 | ;; |
| 14868 | no) |
| 14869 | selftest=false |
| 14870 | ;; |
| 14871 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14872 | as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14873 | ;; |
| 14874 | esac |
| 14875 | else |
| 14876 | selftest=false |
| 14877 | fi |
| 14878 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14879 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14880 | SELFTEST_TRUE= |
| 14881 | SELFTEST_FALSE='#' |
| 14882 | else |
| 14883 | SELFTEST_TRUE='#' |
| 14884 | SELFTEST_FALSE= |
| 14885 | fi |
| 14886 | |
| 14887 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14888 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14889 | |
| 14890 | cat >confcache <<\_ACEOF |
| 14891 | # This file is a shell script that caches the results of configure |
| 14892 | # tests run on this system so they can be shared between configure |
| 14893 | # scripts and configure runs, see configure's option --config-cache. |
| 14894 | # It is not useful on other systems. If it contains results you don't |
| 14895 | # want to keep, you may remove or edit it. |
| 14896 | # |
| 14897 | # config.status only pays attention to the cache file if you give it |
| 14898 | # the --recheck option to rerun configure. |
| 14899 | # |
| 14900 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 14901 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 14902 | # following values. |
| 14903 | |
| 14904 | _ACEOF |
| 14905 | |
| 14906 | # The following way of writing the cache mishandles newlines in values, |
| 14907 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14908 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14909 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 14910 | # and sets the high bit in the cache file unless we assign to the vars. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14911 | ( |
| 14912 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 14913 | eval ac_val=\$$ac_var |
| 14914 | case $ac_val in #( |
| 14915 | *${as_nl}*) |
| 14916 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14917 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 14918 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14919 | esac |
| 14920 | case $ac_var in #( |
| 14921 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14922 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 14923 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14924 | esac ;; |
| 14925 | esac |
| 14926 | done |
| 14927 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14928 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14929 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 14930 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14931 | # `set' does not quote correctly, so add quotes: double-quote |
| 14932 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14933 | sed -n \ |
| 14934 | "s/'/'\\\\''/g; |
| 14935 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14936 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14937 | *) |
| 14938 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14939 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14940 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14941 | esac | |
| 14942 | sort |
| 14943 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14944 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14945 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14946 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14947 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14948 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 14949 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14950 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 14951 | :end' >>confcache |
| 14952 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 14953 | if test -w "$cache_file"; then |
| 14954 | test "x$cache_file" != "x/dev/null" && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14955 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 14956 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14957 | cat confcache >$cache_file |
| 14958 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14959 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 14960 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14961 | fi |
| 14962 | fi |
| 14963 | rm -f confcache |
| 14964 | |
| 14965 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 14966 | # Let make expand exec_prefix. |
| 14967 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 14968 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14969 | DEFS=-DHAVE_CONFIG_H |
| 14970 | |
| 14971 | ac_libobjs= |
| 14972 | ac_ltlibobjs= |
| 14973 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14974 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14975 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14976 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14977 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 14978 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14979 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 14980 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14981 | done |
| 14982 | LIBOBJS=$ac_libobjs |
| 14983 | |
| 14984 | LTLIBOBJS=$ac_ltlibobjs |
| 14985 | |
| 14986 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14987 | if test -n "$EXEEXT"; then |
| 14988 | am__EXEEXT_TRUE= |
| 14989 | am__EXEEXT_FALSE='#' |
| 14990 | else |
| 14991 | am__EXEEXT_TRUE='#' |
| 14992 | am__EXEEXT_FALSE= |
| 14993 | fi |
| 14994 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14995 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14996 | as_fn_error "conditional \"AMDEP\" was never defined. |
| 14997 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14998 | fi |
| 14999 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15000 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 15001 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15002 | fi |
| 15003 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15004 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 15005 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 15006 | fi |
| 15007 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 15008 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 15009 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15010 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15011 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15012 | as_fn_error "conditional \"SELFTEST\" was never defined. |
| 15013 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15014 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15015 | |
| 15016 | : ${CONFIG_STATUS=./config.status} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15017 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15018 | ac_clean_files_save=$ac_clean_files |
| 15019 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15020 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 15021 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15022 | as_write_fail=0 |
| 15023 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15024 | #! $SHELL |
| 15025 | # Generated by $as_me. |
| 15026 | # Run this file to recreate the current configuration. |
| 15027 | # Compiler output produced by configure, useful for debugging |
| 15028 | # configure, is in config.log if it exists. |
| 15029 | |
| 15030 | debug=false |
| 15031 | ac_cs_recheck=false |
| 15032 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15033 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15034 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15035 | export SHELL |
| 15036 | _ASEOF |
| 15037 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 15038 | ## -------------------- ## |
| 15039 | ## M4sh Initialization. ## |
| 15040 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15041 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15042 | # Be more Bourne compatible |
| 15043 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15044 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15045 | emulate sh |
| 15046 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15047 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15048 | # is contrary to our usage. Disable this feature. |
| 15049 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15050 | setopt NO_GLOB_SUBST |
| 15051 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15052 | case `(set -o) 2>/dev/null` in #( |
| 15053 | *posix*) : |
| 15054 | set -o posix ;; #( |
| 15055 | *) : |
| 15056 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15057 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15058 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15059 | |
| 15060 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15061 | as_nl=' |
| 15062 | ' |
| 15063 | export as_nl |
| 15064 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 15065 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 15066 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15067 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15068 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 15069 | # but without wasting forks for bash or zsh. |
| 15070 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 15071 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15072 | as_echo='print -r --' |
| 15073 | as_echo_n='print -rn --' |
| 15074 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15075 | as_echo='printf %s\n' |
| 15076 | as_echo_n='printf %s' |
| 15077 | else |
| 15078 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 15079 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 15080 | as_echo_n='/usr/ucb/echo -n' |
| 15081 | else |
| 15082 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 15083 | as_echo_n_body='eval |
| 15084 | arg=$1; |
| 15085 | case $arg in #( |
| 15086 | *"$as_nl"*) |
| 15087 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 15088 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 15089 | esac; |
| 15090 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 15091 | ' |
| 15092 | export as_echo_n_body |
| 15093 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 15094 | fi |
| 15095 | export as_echo_body |
| 15096 | as_echo='sh -c $as_echo_body as_echo' |
| 15097 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15098 | |
| 15099 | # The user is always right. |
| 15100 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15101 | PATH_SEPARATOR=: |
| 15102 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 15103 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 15104 | PATH_SEPARATOR=';' |
| 15105 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15106 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15107 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15108 | |
| 15109 | # IFS |
| 15110 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15111 | # there to prevent editors from complaining about space-tab. |
| 15112 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15113 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15114 | IFS=" "" $as_nl" |
| 15115 | |
| 15116 | # Find who we are. Look in the path if we contain no directory separator. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15117 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15118 | *[\\/]* ) as_myself=$0 ;; |
| 15119 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15120 | for as_dir in $PATH |
| 15121 | do |
| 15122 | IFS=$as_save_IFS |
| 15123 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15124 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15125 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15126 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15127 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15128 | ;; |
| 15129 | esac |
| 15130 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15131 | # in which case we are not to be found in the path. |
| 15132 | if test "x$as_myself" = x; then |
| 15133 | as_myself=$0 |
| 15134 | fi |
| 15135 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15136 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15137 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15138 | fi |
| 15139 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15140 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 15141 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 15142 | # suppresses any "Segmentation fault" message there. '((' could |
| 15143 | # trigger a bug in pdksh 5.2.14. |
| 15144 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 15145 | do eval test x\${$as_var+set} = xset \ |
| 15146 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15147 | done |
| 15148 | PS1='$ ' |
| 15149 | PS2='> ' |
| 15150 | PS4='+ ' |
| 15151 | |
| 15152 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15153 | LC_ALL=C |
| 15154 | export LC_ALL |
| 15155 | LANGUAGE=C |
| 15156 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15157 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15158 | # CDPATH. |
| 15159 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15160 | |
| 15161 | |
| 15162 | # as_fn_error ERROR [LINENO LOG_FD] |
| 15163 | # --------------------------------- |
| 15164 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 15165 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 15166 | # script with status $?, using 1 if that was 0. |
| 15167 | as_fn_error () |
| 15168 | { |
| 15169 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 15170 | if test "$3"; then |
| 15171 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 15172 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 15173 | fi |
| 15174 | $as_echo "$as_me: error: $1" >&2 |
| 15175 | as_fn_exit $as_status |
| 15176 | } # as_fn_error |
| 15177 | |
| 15178 | |
| 15179 | # as_fn_set_status STATUS |
| 15180 | # ----------------------- |
| 15181 | # Set $? to STATUS, without forking. |
| 15182 | as_fn_set_status () |
| 15183 | { |
| 15184 | return $1 |
| 15185 | } # as_fn_set_status |
| 15186 | |
| 15187 | # as_fn_exit STATUS |
| 15188 | # ----------------- |
| 15189 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 15190 | as_fn_exit () |
| 15191 | { |
| 15192 | set +e |
| 15193 | as_fn_set_status $1 |
| 15194 | exit $1 |
| 15195 | } # as_fn_exit |
| 15196 | |
| 15197 | # as_fn_unset VAR |
| 15198 | # --------------- |
| 15199 | # Portably unset VAR. |
| 15200 | as_fn_unset () |
| 15201 | { |
| 15202 | { eval $1=; unset $1;} |
| 15203 | } |
| 15204 | as_unset=as_fn_unset |
| 15205 | # as_fn_append VAR VALUE |
| 15206 | # ---------------------- |
| 15207 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 15208 | # advantage of any shell optimizations that allow amortized linear growth over |
| 15209 | # repeated appends, instead of the typical quadratic growth present in naive |
| 15210 | # implementations. |
| 15211 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 15212 | eval 'as_fn_append () |
| 15213 | { |
| 15214 | eval $1+=\$2 |
| 15215 | }' |
| 15216 | else |
| 15217 | as_fn_append () |
| 15218 | { |
| 15219 | eval $1=\$$1\$2 |
| 15220 | } |
| 15221 | fi # as_fn_append |
| 15222 | |
| 15223 | # as_fn_arith ARG... |
| 15224 | # ------------------ |
| 15225 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 15226 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 15227 | # must be portable across $(()) and expr. |
| 15228 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 15229 | eval 'as_fn_arith () |
| 15230 | { |
| 15231 | as_val=$(( $* )) |
| 15232 | }' |
| 15233 | else |
| 15234 | as_fn_arith () |
| 15235 | { |
| 15236 | as_val=`expr "$@" || test $? -eq 1` |
| 15237 | } |
| 15238 | fi # as_fn_arith |
| 15239 | |
| 15240 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15241 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15242 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15243 | as_expr=expr |
| 15244 | else |
| 15245 | as_expr=false |
| 15246 | fi |
| 15247 | |
| 15248 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15249 | as_basename=basename |
| 15250 | else |
| 15251 | as_basename=false |
| 15252 | fi |
| 15253 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15254 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15255 | as_dirname=dirname |
| 15256 | else |
| 15257 | as_dirname=false |
| 15258 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15259 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15260 | as_me=`$as_basename -- "$0" || |
| 15261 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15262 | X"$0" : 'X\(//\)$' \| \ |
| 15263 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15264 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15265 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15266 | s//\1/ |
| 15267 | q |
| 15268 | } |
| 15269 | /^X\/\(\/\/\)$/{ |
| 15270 | s//\1/ |
| 15271 | q |
| 15272 | } |
| 15273 | /^X\/\(\/\).*/{ |
| 15274 | s//\1/ |
| 15275 | q |
| 15276 | } |
| 15277 | s/.*/./; q'` |
| 15278 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15279 | # Avoid depending upon Character Ranges. |
| 15280 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15281 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15282 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15283 | as_cr_digits='0123456789' |
| 15284 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15285 | |
| 15286 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15287 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15288 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15289 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15290 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15291 | xy) ECHO_C='\c';; |
| 15292 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 15293 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15294 | esac;; |
| 15295 | *) |
| 15296 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15297 | esac |
| 15298 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15299 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15300 | if test -d conf$$.dir; then |
| 15301 | rm -f conf$$.dir/conf$$.file |
| 15302 | else |
| 15303 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15304 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15305 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15306 | if (echo >conf$$.file) 2>/dev/null; then |
| 15307 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15308 | as_ln_s='ln -s' |
| 15309 | # ... but there are two gotchas: |
| 15310 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15311 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15312 | # In both cases, we have to default to `cp -p'. |
| 15313 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 15314 | as_ln_s='cp -p' |
| 15315 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15316 | as_ln_s=ln |
| 15317 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15318 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15319 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15320 | else |
| 15321 | as_ln_s='cp -p' |
| 15322 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15323 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15324 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15325 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15326 | |
| 15327 | # as_fn_mkdir_p |
| 15328 | # ------------- |
| 15329 | # Create "$as_dir" as a directory, including parents if necessary. |
| 15330 | as_fn_mkdir_p () |
| 15331 | { |
| 15332 | |
| 15333 | case $as_dir in #( |
| 15334 | -*) as_dir=./$as_dir;; |
| 15335 | esac |
| 15336 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 15337 | as_dirs= |
| 15338 | while :; do |
| 15339 | case $as_dir in #( |
| 15340 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 15341 | *) as_qdir=$as_dir;; |
| 15342 | esac |
| 15343 | as_dirs="'$as_qdir' $as_dirs" |
| 15344 | as_dir=`$as_dirname -- "$as_dir" || |
| 15345 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15346 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15347 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15348 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 15349 | $as_echo X"$as_dir" | |
| 15350 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15351 | s//\1/ |
| 15352 | q |
| 15353 | } |
| 15354 | /^X\(\/\/\)[^/].*/{ |
| 15355 | s//\1/ |
| 15356 | q |
| 15357 | } |
| 15358 | /^X\(\/\/\)$/{ |
| 15359 | s//\1/ |
| 15360 | q |
| 15361 | } |
| 15362 | /^X\(\/\).*/{ |
| 15363 | s//\1/ |
| 15364 | q |
| 15365 | } |
| 15366 | s/.*/./; q'` |
| 15367 | test -d "$as_dir" && break |
| 15368 | done |
| 15369 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 15370 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 15371 | |
| 15372 | |
| 15373 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15374 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15375 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15376 | else |
| 15377 | test -d ./-p && rmdir ./-p |
| 15378 | as_mkdir_p=false |
| 15379 | fi |
| 15380 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15381 | if test -x / >/dev/null 2>&1; then |
| 15382 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15383 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15384 | if ls -dL / >/dev/null 2>&1; then |
| 15385 | as_ls_L_option=L |
| 15386 | else |
| 15387 | as_ls_L_option= |
| 15388 | fi |
| 15389 | as_test_x=' |
| 15390 | eval sh -c '\'' |
| 15391 | if test -d "$1"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15392 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15393 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15394 | case $1 in #( |
| 15395 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15396 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15397 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15398 | ???[sx]*):;;*)false;;esac;fi |
| 15399 | '\'' sh |
| 15400 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15401 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15402 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15403 | |
| 15404 | # Sed expression to map a string onto a valid CPP name. |
| 15405 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15406 | |
| 15407 | # Sed expression to map a string onto a valid variable name. |
| 15408 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15409 | |
| 15410 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15411 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15412 | ## ----------------------------------- ## |
| 15413 | ## Main body of $CONFIG_STATUS script. ## |
| 15414 | ## ----------------------------------- ## |
| 15415 | _ASEOF |
| 15416 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15417 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15418 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15419 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15420 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15421 | # values after options handling. |
| 15422 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 15423 | This file was extended by breakpad $as_me 0.1, which was |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15424 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15425 | |
| 15426 | CONFIG_FILES = $CONFIG_FILES |
| 15427 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15428 | CONFIG_LINKS = $CONFIG_LINKS |
| 15429 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15430 | $ $0 $@ |
| 15431 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15432 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15433 | " |
| 15434 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15435 | _ACEOF |
| 15436 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15437 | case $ac_config_files in *" |
| 15438 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 15439 | esac |
| 15440 | |
| 15441 | case $ac_config_headers in *" |
| 15442 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 15443 | esac |
| 15444 | |
| 15445 | |
| 15446 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15447 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15448 | config_files="$ac_config_files" |
| 15449 | config_headers="$ac_config_headers" |
| 15450 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15451 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15452 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15453 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15454 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15455 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15456 | \`$as_me' instantiates files and other configuration actions |
| 15457 | from templates according to the current configuration. Unless the files |
| 15458 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15459 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15460 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15461 | |
| 15462 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15463 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15464 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15465 | -q, --quiet, --silent |
| 15466 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15467 | -d, --debug don't remove temporary files |
| 15468 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15469 | --file=FILE[:TEMPLATE] |
| 15470 | instantiate the configuration file FILE |
| 15471 | --header=FILE[:TEMPLATE] |
| 15472 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15473 | |
| 15474 | Configuration files: |
| 15475 | $config_files |
| 15476 | |
| 15477 | Configuration headers: |
| 15478 | $config_headers |
| 15479 | |
| 15480 | Configuration commands: |
| 15481 | $config_commands |
| 15482 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15483 | Report bugs to <opensource@google.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15484 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15485 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15486 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15487 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15488 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 15489 | breakpad config.status 0.1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15490 | configured by $0, generated by GNU Autoconf 2.65, |
| 15491 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15492 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15493 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15494 | This config.status script is free software; the Free Software Foundation |
| 15495 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15496 | |
| 15497 | ac_pwd='$ac_pwd' |
| 15498 | srcdir='$srcdir' |
| 15499 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15500 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15501 | AWK='$AWK' |
| 15502 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15503 | _ACEOF |
| 15504 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15505 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15506 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15507 | ac_need_defaults=: |
| 15508 | while test $# != 0 |
| 15509 | do |
| 15510 | case $1 in |
| 15511 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15512 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15513 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15514 | ac_shift=: |
| 15515 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15516 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15517 | ac_option=$1 |
| 15518 | ac_optarg=$2 |
| 15519 | ac_shift=shift |
| 15520 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15521 | esac |
| 15522 | |
| 15523 | case $ac_option in |
| 15524 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15525 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15526 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15527 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15528 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15529 | --config | --confi | --conf | --con | --co | --c ) |
| 15530 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15531 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15532 | debug=: ;; |
| 15533 | --file | --fil | --fi | --f ) |
| 15534 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15535 | case $ac_optarg in |
| 15536 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15537 | esac |
| 15538 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15539 | ac_need_defaults=false;; |
| 15540 | --header | --heade | --head | --hea ) |
| 15541 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15542 | case $ac_optarg in |
| 15543 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15544 | esac |
| 15545 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15546 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15547 | --he | --h) |
| 15548 | # Conflict between --help and --header |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15549 | as_fn_error "ambiguous option: \`$1' |
| 15550 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15551 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15552 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15553 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15554 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15555 | ac_cs_silent=: ;; |
| 15556 | |
| 15557 | # This is an error. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15558 | -*) as_fn_error "unrecognized option: \`$1' |
| 15559 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15560 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15561 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15562 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15563 | |
| 15564 | esac |
| 15565 | shift |
| 15566 | done |
| 15567 | |
| 15568 | ac_configure_extra_args= |
| 15569 | |
| 15570 | if $ac_cs_silent; then |
| 15571 | exec 6>/dev/null |
| 15572 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15573 | fi |
| 15574 | |
| 15575 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15576 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15577 | if \$ac_cs_recheck; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15578 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15579 | shift |
| 15580 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 15581 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15582 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15583 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15584 | fi |
| 15585 | |
| 15586 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15587 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15588 | exec 5>>config.log |
| 15589 | { |
| 15590 | echo |
| 15591 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15592 | ## Running $as_me. ## |
| 15593 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15594 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15595 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15596 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15597 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15598 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15599 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15600 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15601 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15602 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 15603 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15604 | |
| 15605 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15606 | # if CDPATH is set. |
| 15607 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15608 | |
| 15609 | sed_quote_subst='$sed_quote_subst' |
| 15610 | double_quote_subst='$double_quote_subst' |
| 15611 | delay_variable_subst='$delay_variable_subst' |
| 15612 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15613 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 15614 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 15615 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15616 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 15617 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 15618 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15619 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 15620 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15621 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15622 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 15623 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15624 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 15625 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 15626 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15627 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15628 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15629 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15630 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 15631 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 15632 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 15633 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15634 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15635 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 15636 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15637 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15638 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15639 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15640 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15641 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 15642 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 15643 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 15644 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15645 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15646 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 15647 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15648 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15649 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15650 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15651 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15652 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 15653 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15654 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 15655 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15656 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' |
| 15657 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 15658 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 15659 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15660 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15661 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15662 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15663 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15664 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15665 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15666 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 15667 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 15668 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15669 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 15670 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15671 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15672 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 15673 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15674 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15675 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15676 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 15677 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 15678 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15679 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15680 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 15681 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15682 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15683 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15684 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15685 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15686 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15687 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15688 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15689 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15690 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15691 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15692 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 15693 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 15694 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 15695 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 15696 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15697 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15698 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15699 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15700 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15701 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 15702 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15703 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15704 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15705 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15706 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15707 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 15708 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 15709 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15710 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 15711 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15712 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15713 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15714 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15715 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15716 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15717 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15718 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15719 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15720 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 15721 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15722 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15723 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15724 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 15725 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 15726 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 15727 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15728 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15729 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15730 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15731 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 15732 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 15733 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 15734 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 15735 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15736 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15737 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15738 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15739 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15740 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15741 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15742 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15743 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15744 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15745 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15746 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15747 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15748 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15749 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15750 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15751 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15752 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15753 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15754 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15755 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15756 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15757 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15758 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15759 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15760 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15761 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15762 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15763 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15764 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15765 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15766 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15767 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15768 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15769 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15770 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15771 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15772 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15773 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15774 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15775 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15776 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15777 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15778 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15779 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15780 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15781 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15782 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15783 | |
| 15784 | LTCC='$LTCC' |
| 15785 | LTCFLAGS='$LTCFLAGS' |
| 15786 | compiler='$compiler_DEFAULT' |
| 15787 | |
| 15788 | # Quote evaled strings. |
| 15789 | for var in SED \ |
| 15790 | GREP \ |
| 15791 | EGREP \ |
| 15792 | FGREP \ |
| 15793 | LD \ |
| 15794 | NM \ |
| 15795 | LN_S \ |
| 15796 | lt_SP2NL \ |
| 15797 | lt_NL2SP \ |
| 15798 | reload_flag \ |
| 15799 | OBJDUMP \ |
| 15800 | deplibs_check_method \ |
| 15801 | file_magic_cmd \ |
| 15802 | AR \ |
| 15803 | AR_FLAGS \ |
| 15804 | STRIP \ |
| 15805 | RANLIB \ |
| 15806 | CC \ |
| 15807 | CFLAGS \ |
| 15808 | compiler \ |
| 15809 | lt_cv_sys_global_symbol_pipe \ |
| 15810 | lt_cv_sys_global_symbol_to_cdecl \ |
| 15811 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15812 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 15813 | SHELL \ |
| 15814 | ECHO \ |
| 15815 | lt_prog_compiler_no_builtin_flag \ |
| 15816 | lt_prog_compiler_wl \ |
| 15817 | lt_prog_compiler_pic \ |
| 15818 | lt_prog_compiler_static \ |
| 15819 | lt_cv_prog_compiler_c_o \ |
| 15820 | need_locks \ |
| 15821 | DSYMUTIL \ |
| 15822 | NMEDIT \ |
| 15823 | LIPO \ |
| 15824 | OTOOL \ |
| 15825 | OTOOL64 \ |
| 15826 | shrext_cmds \ |
| 15827 | export_dynamic_flag_spec \ |
| 15828 | whole_archive_flag_spec \ |
| 15829 | compiler_needs_object \ |
| 15830 | with_gnu_ld \ |
| 15831 | allow_undefined_flag \ |
| 15832 | no_undefined_flag \ |
| 15833 | hardcode_libdir_flag_spec \ |
| 15834 | hardcode_libdir_flag_spec_ld \ |
| 15835 | hardcode_libdir_separator \ |
| 15836 | fix_srcfile_path \ |
| 15837 | exclude_expsyms \ |
| 15838 | include_expsyms \ |
| 15839 | file_list_spec \ |
| 15840 | variables_saved_for_relink \ |
| 15841 | libname_spec \ |
| 15842 | library_names_spec \ |
| 15843 | soname_spec \ |
| 15844 | finish_eval \ |
| 15845 | old_striplib \ |
| 15846 | striplib \ |
| 15847 | compiler_lib_search_dirs \ |
| 15848 | predep_objects \ |
| 15849 | postdep_objects \ |
| 15850 | predeps \ |
| 15851 | postdeps \ |
| 15852 | compiler_lib_search_path \ |
| 15853 | LD_CXX \ |
| 15854 | compiler_CXX \ |
| 15855 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 15856 | lt_prog_compiler_wl_CXX \ |
| 15857 | lt_prog_compiler_pic_CXX \ |
| 15858 | lt_prog_compiler_static_CXX \ |
| 15859 | lt_cv_prog_compiler_c_o_CXX \ |
| 15860 | export_dynamic_flag_spec_CXX \ |
| 15861 | whole_archive_flag_spec_CXX \ |
| 15862 | compiler_needs_object_CXX \ |
| 15863 | with_gnu_ld_CXX \ |
| 15864 | allow_undefined_flag_CXX \ |
| 15865 | no_undefined_flag_CXX \ |
| 15866 | hardcode_libdir_flag_spec_CXX \ |
| 15867 | hardcode_libdir_flag_spec_ld_CXX \ |
| 15868 | hardcode_libdir_separator_CXX \ |
| 15869 | fix_srcfile_path_CXX \ |
| 15870 | exclude_expsyms_CXX \ |
| 15871 | include_expsyms_CXX \ |
| 15872 | file_list_spec_CXX \ |
| 15873 | compiler_lib_search_dirs_CXX \ |
| 15874 | predep_objects_CXX \ |
| 15875 | postdep_objects_CXX \ |
| 15876 | predeps_CXX \ |
| 15877 | postdeps_CXX \ |
| 15878 | compiler_lib_search_path_CXX; do |
| 15879 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 15880 | *[\\\\\\\`\\"\\\$]*) |
| 15881 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 15882 | ;; |
| 15883 | *) |
| 15884 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15885 | ;; |
| 15886 | esac |
| 15887 | done |
| 15888 | |
| 15889 | # Double-quote double-evaled strings. |
| 15890 | for var in reload_cmds \ |
| 15891 | old_postinstall_cmds \ |
| 15892 | old_postuninstall_cmds \ |
| 15893 | old_archive_cmds \ |
| 15894 | extract_expsyms_cmds \ |
| 15895 | old_archive_from_new_cmds \ |
| 15896 | old_archive_from_expsyms_cmds \ |
| 15897 | archive_cmds \ |
| 15898 | archive_expsym_cmds \ |
| 15899 | module_cmds \ |
| 15900 | module_expsym_cmds \ |
| 15901 | export_symbols_cmds \ |
| 15902 | prelink_cmds \ |
| 15903 | postinstall_cmds \ |
| 15904 | postuninstall_cmds \ |
| 15905 | finish_cmds \ |
| 15906 | sys_lib_search_path_spec \ |
| 15907 | sys_lib_dlsearch_path_spec \ |
| 15908 | old_archive_cmds_CXX \ |
| 15909 | old_archive_from_new_cmds_CXX \ |
| 15910 | old_archive_from_expsyms_cmds_CXX \ |
| 15911 | archive_cmds_CXX \ |
| 15912 | archive_expsym_cmds_CXX \ |
| 15913 | module_cmds_CXX \ |
| 15914 | module_expsym_cmds_CXX \ |
| 15915 | export_symbols_cmds_CXX \ |
| 15916 | prelink_cmds_CXX; do |
| 15917 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 15918 | *[\\\\\\\`\\"\\\$]*) |
| 15919 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 15920 | ;; |
| 15921 | *) |
| 15922 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15923 | ;; |
| 15924 | esac |
| 15925 | done |
| 15926 | |
| 15927 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 15928 | case \$lt_ECHO in |
| 15929 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 15930 | ;; |
| 15931 | esac |
| 15932 | |
| 15933 | ac_aux_dir='$ac_aux_dir' |
| 15934 | xsi_shell='$xsi_shell' |
| 15935 | lt_shell_append='$lt_shell_append' |
| 15936 | |
| 15937 | # See if we are running on zsh, and set the options which allow our |
| 15938 | # commands through without removal of \ escapes INIT. |
| 15939 | if test -n "\${ZSH_VERSION+set}" ; then |
| 15940 | setopt NO_GLOB_SUBST |
| 15941 | fi |
| 15942 | |
| 15943 | |
| 15944 | PACKAGE='$PACKAGE' |
| 15945 | VERSION='$VERSION' |
| 15946 | TIMESTAMP='$TIMESTAMP' |
| 15947 | RM='$RM' |
| 15948 | ofile='$ofile' |
| 15949 | |
| 15950 | |
| 15951 | |
| 15952 | |
| 15953 | |
| 15954 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15955 | _ACEOF |
| 15956 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15957 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15958 | |
| 15959 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15960 | for ac_config_target in $ac_config_targets |
| 15961 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15962 | case $ac_config_target in |
| 15963 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 15964 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15965 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15966 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 15967 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15968 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15969 | esac |
| 15970 | done |
| 15971 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15972 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15973 | # If the user did not use the arguments to specify the items to instantiate, |
| 15974 | # then the envvar interface is used. Set only those that are not. |
| 15975 | # We use the long form for the default assignment because of an extremely |
| 15976 | # bizarre bug on SunOS 4.1.3. |
| 15977 | if $ac_need_defaults; then |
| 15978 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15979 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15980 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15981 | fi |
| 15982 | |
| 15983 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15984 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15985 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15986 | # Hook for its removal unless debugging. |
| 15987 | # Note that there is a small window in which the directory will not be cleaned: |
| 15988 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15989 | $debug || |
| 15990 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15991 | tmp= |
| 15992 | trap 'exit_status=$? |
| 15993 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15994 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15995 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15996 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15997 | # Create a (secure) tmp directory for tmp files. |
| 15998 | |
| 15999 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16000 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16001 | test -n "$tmp" && test -d "$tmp" |
| 16002 | } || |
| 16003 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16004 | tmp=./conf$$-$RANDOM |
| 16005 | (umask 077 && mkdir "$tmp") |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16006 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16007 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16008 | # Set up the scripts for CONFIG_FILES section. |
| 16009 | # No need to generate them if there are no CONFIG_FILES. |
| 16010 | # This happens for instance with `./config.status config.h'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16011 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16012 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16013 | |
| 16014 | ac_cr=`echo X | tr X '\015'` |
| 16015 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16016 | # But we know of no other shell where ac_cr would be empty at this |
| 16017 | # point, so we can use a bashism as a fallback. |
| 16018 | if test "x$ac_cr" = x; then |
| 16019 | eval ac_cr=\$\'\\r\' |
| 16020 | fi |
| 16021 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16022 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 16023 | ac_cs_awk_cr='\r' |
| 16024 | else |
| 16025 | ac_cs_awk_cr=$ac_cr |
| 16026 | fi |
| 16027 | |
| 16028 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16029 | _ACEOF |
| 16030 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16031 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16032 | { |
| 16033 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16034 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16035 | echo "_ACEOF" |
| 16036 | } >conf$$subs.sh || |
| 16037 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16038 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16039 | ac_delim='%!_!# ' |
| 16040 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16041 | . ./conf$$subs.sh || |
| 16042 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16043 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16044 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16045 | if test $ac_delim_n = $ac_delim_num; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16046 | break |
| 16047 | elif $ac_last_try; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16048 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16049 | else |
| 16050 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16051 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16052 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16053 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16054 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16055 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16056 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16057 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16058 | sed -n ' |
| 16059 | h |
| 16060 | s/^/S["/; s/!.*/"]=/ |
| 16061 | p |
| 16062 | g |
| 16063 | s/^[^!]*!// |
| 16064 | :repl |
| 16065 | t repl |
| 16066 | s/'"$ac_delim"'$// |
| 16067 | t delim |
| 16068 | :nl |
| 16069 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 16070 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16071 | t more1 |
| 16072 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16073 | p |
| 16074 | n |
| 16075 | b repl |
| 16076 | :more1 |
| 16077 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16078 | p |
| 16079 | g |
| 16080 | s/.\{148\}// |
| 16081 | t nl |
| 16082 | :delim |
| 16083 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 16084 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16085 | t more2 |
| 16086 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16087 | p |
| 16088 | b |
| 16089 | :more2 |
| 16090 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16091 | p |
| 16092 | g |
| 16093 | s/.\{148\}// |
| 16094 | t delim |
| 16095 | ' <conf$$subs.awk | sed ' |
| 16096 | /^[^""]/{ |
| 16097 | N |
| 16098 | s/\n// |
| 16099 | } |
| 16100 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16101 | rm -f conf$$subs.awk |
| 16102 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16103 | _ACAWK |
| 16104 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 16105 | for (key in S) S_is_set[key] = 1 |
| 16106 | FS = "" |
| 16107 | |
| 16108 | } |
| 16109 | { |
| 16110 | line = $ 0 |
| 16111 | nfields = split(line, field, "@") |
| 16112 | substed = 0 |
| 16113 | len = length(field[1]) |
| 16114 | for (i = 2; i < nfields; i++) { |
| 16115 | key = field[i] |
| 16116 | keylen = length(key) |
| 16117 | if (S_is_set[key]) { |
| 16118 | value = S[key] |
| 16119 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16120 | len += length(value) + length(field[++i]) |
| 16121 | substed = 1 |
| 16122 | } else |
| 16123 | len += 1 + keylen |
| 16124 | } |
| 16125 | |
| 16126 | print line |
| 16127 | } |
| 16128 | |
| 16129 | _ACAWK |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16130 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16131 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16132 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16133 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16134 | else |
| 16135 | cat |
| 16136 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 16137 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16138 | _ACEOF |
| 16139 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16140 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16141 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16142 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16143 | # (actually we leave an empty line to preserve line numbers). |
| 16144 | if test "x$srcdir" = x.; then |
| 16145 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16146 | s/:*\$(srcdir):*/:/ |
| 16147 | s/:*\${srcdir}:*/:/ |
| 16148 | s/:*@srcdir@:*/:/ |
| 16149 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16150 | s/:*$// |
| 16151 | s/^[^=]*=[ ]*$// |
| 16152 | }' |
| 16153 | fi |
| 16154 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16155 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16156 | fi # test -n "$CONFIG_FILES" |
| 16157 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16158 | # Set up the scripts for CONFIG_HEADERS section. |
| 16159 | # No need to generate them if there are no CONFIG_HEADERS. |
| 16160 | # This happens for instance with `./config.status Makefile'. |
| 16161 | if test -n "$CONFIG_HEADERS"; then |
| 16162 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 16163 | BEGIN { |
| 16164 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16165 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16166 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 16167 | # here-document in config.status, that substitutes the proper values into |
| 16168 | # config.h.in to produce config.h. |
| 16169 | |
| 16170 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 16171 | # handling of long lines. |
| 16172 | ac_delim='%!_!# ' |
| 16173 | for ac_last_try in false false :; do |
| 16174 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 16175 | if test -z "$ac_t"; then |
| 16176 | break |
| 16177 | elif $ac_last_try; then |
| 16178 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 16179 | else |
| 16180 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16181 | fi |
| 16182 | done |
| 16183 | |
| 16184 | # For the awk script, D is an array of macro values keyed by name, |
| 16185 | # likewise P contains macro parameters if any. Preserve backslash |
| 16186 | # newline sequences. |
| 16187 | |
| 16188 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 16189 | sed -n ' |
| 16190 | s/.\{148\}/&'"$ac_delim"'/g |
| 16191 | t rset |
| 16192 | :rset |
| 16193 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 16194 | t def |
| 16195 | d |
| 16196 | :def |
| 16197 | s/\\$// |
| 16198 | t bsnl |
| 16199 | s/["\\]/\\&/g |
| 16200 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16201 | D["\1"]=" \3"/p |
| 16202 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 16203 | d |
| 16204 | :bsnl |
| 16205 | s/["\\]/\\&/g |
| 16206 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16207 | D["\1"]=" \3\\\\\\n"\\/p |
| 16208 | t cont |
| 16209 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 16210 | t cont |
| 16211 | d |
| 16212 | :cont |
| 16213 | n |
| 16214 | s/.\{148\}/&'"$ac_delim"'/g |
| 16215 | t clear |
| 16216 | :clear |
| 16217 | s/\\$// |
| 16218 | t bsnlc |
| 16219 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 16220 | d |
| 16221 | :bsnlc |
| 16222 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 16223 | b cont |
| 16224 | ' <confdefs.h | sed ' |
| 16225 | s/'"$ac_delim"'/"\\\ |
| 16226 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16227 | |
| 16228 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16229 | for (key in D) D_is_set[key] = 1 |
| 16230 | FS = "" |
| 16231 | } |
| 16232 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 16233 | line = \$ 0 |
| 16234 | split(line, arg, " ") |
| 16235 | if (arg[1] == "#") { |
| 16236 | defundef = arg[2] |
| 16237 | mac1 = arg[3] |
| 16238 | } else { |
| 16239 | defundef = substr(arg[1], 2) |
| 16240 | mac1 = arg[2] |
| 16241 | } |
| 16242 | split(mac1, mac2, "(") #) |
| 16243 | macro = mac2[1] |
| 16244 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 16245 | if (D_is_set[macro]) { |
| 16246 | # Preserve the white space surrounding the "#". |
| 16247 | print prefix "define", macro P[macro] D[macro] |
| 16248 | next |
| 16249 | } else { |
| 16250 | # Replace #undef with comments. This is necessary, for example, |
| 16251 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 16252 | # on some systems where configure will not decide to define it. |
| 16253 | if (defundef == "undef") { |
| 16254 | print "/*", prefix defundef, macro, "*/" |
| 16255 | next |
| 16256 | } |
| 16257 | } |
| 16258 | } |
| 16259 | { print } |
| 16260 | _ACAWK |
| 16261 | _ACEOF |
| 16262 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16263 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 16264 | fi # test -n "$CONFIG_HEADERS" |
| 16265 | |
| 16266 | |
| 16267 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 16268 | shift |
| 16269 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16270 | do |
| 16271 | case $ac_tag in |
| 16272 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16273 | esac |
| 16274 | case $ac_mode$ac_tag in |
| 16275 | :[FHL]*:*);; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16276 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16277 | :[FH]-) ac_tag=-:-;; |
| 16278 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16279 | esac |
| 16280 | ac_save_IFS=$IFS |
| 16281 | IFS=: |
| 16282 | set x $ac_tag |
| 16283 | IFS=$ac_save_IFS |
| 16284 | shift |
| 16285 | ac_file=$1 |
| 16286 | shift |
| 16287 | |
| 16288 | case $ac_mode in |
| 16289 | :L) ac_source=$1;; |
| 16290 | :[FH]) |
| 16291 | ac_file_inputs= |
| 16292 | for ac_f |
| 16293 | do |
| 16294 | case $ac_f in |
| 16295 | -) ac_f="$tmp/stdin";; |
| 16296 | *) # Look for the file first in the build tree, then in the source tree |
| 16297 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16298 | # because $ac_f cannot contain `:'. |
| 16299 | test -f "$ac_f" || |
| 16300 | case $ac_f in |
| 16301 | [\\/$]*) false;; |
| 16302 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16303 | esac || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16304 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16305 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16306 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 16307 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16308 | done |
| 16309 | |
| 16310 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16311 | # use $as_me), people would be surprised to read: |
| 16312 | # /* config.h. Generated by config.status. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16313 | configure_input='Generated from '` |
| 16314 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 16315 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16316 | if test x"$ac_file" != x-; then |
| 16317 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16318 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 16319 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16320 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16321 | # Neutralize special characters interpreted by sed in replacement strings. |
| 16322 | case $configure_input in #( |
| 16323 | *\&* | *\|* | *\\* ) |
| 16324 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 16325 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 16326 | *) ac_sed_conf_input=$configure_input;; |
| 16327 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16328 | |
| 16329 | case $ac_tag in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16330 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 16331 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16332 | esac |
| 16333 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16334 | esac |
| 16335 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16336 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16337 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16338 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16339 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16340 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16341 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16342 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16343 | s//\1/ |
| 16344 | q |
| 16345 | } |
| 16346 | /^X\(\/\/\)[^/].*/{ |
| 16347 | s//\1/ |
| 16348 | q |
| 16349 | } |
| 16350 | /^X\(\/\/\)$/{ |
| 16351 | s//\1/ |
| 16352 | q |
| 16353 | } |
| 16354 | /^X\(\/\).*/{ |
| 16355 | s//\1/ |
| 16356 | q |
| 16357 | } |
| 16358 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16359 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16360 | ac_builddir=. |
| 16361 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16362 | case "$ac_dir" in |
| 16363 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16364 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16365 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16366 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16367 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16368 | case $ac_top_builddir_sub in |
| 16369 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16370 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16371 | esac ;; |
| 16372 | esac |
| 16373 | ac_abs_top_builddir=$ac_pwd |
| 16374 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16375 | # for backward compatibility: |
| 16376 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16377 | |
| 16378 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16379 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16380 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16381 | ac_top_srcdir=$ac_top_builddir_sub |
| 16382 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16383 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16384 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16385 | ac_top_srcdir=$srcdir |
| 16386 | ac_abs_top_srcdir=$srcdir ;; |
| 16387 | *) # Relative name. |
| 16388 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16389 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16390 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16391 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16392 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16393 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16394 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16395 | case $ac_mode in |
| 16396 | :F) |
| 16397 | # |
| 16398 | # CONFIG_FILE |
| 16399 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16400 | |
| 16401 | case $INSTALL in |
| 16402 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16403 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16404 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 16405 | ac_MKDIR_P=$MKDIR_P |
| 16406 | case $MKDIR_P in |
| 16407 | [\\/$]* | ?:[\\/]* ) ;; |
| 16408 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 16409 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16410 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16411 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16412 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16413 | # If the template does not know about datarootdir, expand it. |
| 16414 | # FIXME: This hack should be removed a few years after 2.60. |
| 16415 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16416 | ac_sed_dataroot=' |
| 16417 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16418 | p |
| 16419 | q |
| 16420 | } |
| 16421 | /@datadir@/p |
| 16422 | /@docdir@/p |
| 16423 | /@infodir@/p |
| 16424 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16425 | /@mandir@/p' |
| 16426 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16427 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16428 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16429 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16430 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16431 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16432 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16433 | ac_datarootdir_hack=' |
| 16434 | s&@datadir@&$datadir&g |
| 16435 | s&@docdir@&$docdir&g |
| 16436 | s&@infodir@&$infodir&g |
| 16437 | s&@localedir@&$localedir&g |
| 16438 | s&@mandir@&$mandir&g |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16439 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16440 | esac |
| 16441 | _ACEOF |
| 16442 | |
| 16443 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16444 | # Shell code in configure.ac might set extrasub. |
| 16445 | # FIXME: do we really want to maintain this feature? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16446 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16447 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16448 | $extrasub |
| 16449 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16450 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16451 | :t |
| 16452 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16453 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16454 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16455 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16456 | s&@srcdir@&$ac_srcdir&;t t |
| 16457 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16458 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16459 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16460 | s&@builddir@&$ac_builddir&;t t |
| 16461 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16462 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16463 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 16464 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16465 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16466 | " |
| 16467 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 16468 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16469 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16470 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16471 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16472 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16473 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16474 | which seems to be undefined. Please make sure it is defined." >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16475 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16476 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16477 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16478 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16479 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16480 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 16481 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 16482 | esac \ |
| 16483 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16484 | ;; |
| 16485 | :H) |
| 16486 | # |
| 16487 | # CONFIG_HEADER |
| 16488 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16489 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16490 | { |
| 16491 | $as_echo "/* $configure_input */" \ |
| 16492 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 16493 | } >"$tmp/config.h" \ |
| 16494 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 16495 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 16496 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 16497 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16498 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16499 | rm -f "$ac_file" |
| 16500 | mv "$tmp/config.h" "$ac_file" \ |
| 16501 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16502 | fi |
| 16503 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16504 | $as_echo "/* $configure_input */" \ |
| 16505 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 16506 | || as_fn_error "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16507 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16508 | # Compute "$ac_file"'s index in $config_headers. |
| 16509 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16510 | _am_stamp_count=1 |
| 16511 | for _am_header in $config_headers :; do |
| 16512 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16513 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16514 | break ;; |
| 16515 | * ) |
| 16516 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 16517 | esac |
| 16518 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16519 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 16520 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16521 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 16522 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 16523 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 16524 | $as_echo X"$_am_arg" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16525 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16526 | s//\1/ |
| 16527 | q |
| 16528 | } |
| 16529 | /^X\(\/\/\)[^/].*/{ |
| 16530 | s//\1/ |
| 16531 | q |
| 16532 | } |
| 16533 | /^X\(\/\/\)$/{ |
| 16534 | s//\1/ |
| 16535 | q |
| 16536 | } |
| 16537 | /^X\(\/\).*/{ |
| 16538 | s//\1/ |
| 16539 | q |
| 16540 | } |
| 16541 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 16542 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16543 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16544 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 16545 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16546 | ;; |
| 16547 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16548 | |
| 16549 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16550 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16551 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 16552 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 16553 | # are listed without --file. Let's play safe and only enable the eval |
| 16554 | # if we detect the quoting. |
| 16555 | case $CONFIG_FILES in |
| 16556 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 16557 | *) set x $CONFIG_FILES ;; |
| 16558 | esac |
| 16559 | shift |
| 16560 | for mf |
| 16561 | do |
| 16562 | # Strip MF so we end up with the name of the file. |
| 16563 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 16564 | # Check whether this is an Automake generated Makefile or not. |
| 16565 | # We used to match only the files named `Makefile.in', but |
| 16566 | # some people rename them; so instead we look at the file content. |
| 16567 | # Grep'ing the first line is not enough: some people post-process |
| 16568 | # each Makefile.in and add a new line on top of each file to say so. |
| 16569 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 16570 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 16571 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 16572 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16573 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16574 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 16575 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16576 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16577 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16578 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16579 | s//\1/ |
| 16580 | q |
| 16581 | } |
| 16582 | /^X\(\/\/\)[^/].*/{ |
| 16583 | s//\1/ |
| 16584 | q |
| 16585 | } |
| 16586 | /^X\(\/\/\)$/{ |
| 16587 | s//\1/ |
| 16588 | q |
| 16589 | } |
| 16590 | /^X\(\/\).*/{ |
| 16591 | s//\1/ |
| 16592 | q |
| 16593 | } |
| 16594 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16595 | else |
| 16596 | continue |
| 16597 | fi |
| 16598 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 16599 | # from the Makefile without running `make'. |
| 16600 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 16601 | test -z "$DEPDIR" && continue |
| 16602 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 16603 | test -z "am__include" && continue |
| 16604 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 16605 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 16606 | U=`sed -n 's/^U = //p' < "$mf"` |
| 16607 | # Find all dependency output files, they are included files with |
| 16608 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 16609 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 16610 | # expansion. |
| 16611 | for file in `sed -n " |
| 16612 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 16613 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 16614 | # Make sure the directory exists. |
| 16615 | test -f "$dirpart/$file" && continue |
| 16616 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16617 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16618 | X"$file" : 'X\(//\)[^/]' \| \ |
| 16619 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16620 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16621 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16622 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16623 | s//\1/ |
| 16624 | q |
| 16625 | } |
| 16626 | /^X\(\/\/\)[^/].*/{ |
| 16627 | s//\1/ |
| 16628 | q |
| 16629 | } |
| 16630 | /^X\(\/\/\)$/{ |
| 16631 | s//\1/ |
| 16632 | q |
| 16633 | } |
| 16634 | /^X\(\/\).*/{ |
| 16635 | s//\1/ |
| 16636 | q |
| 16637 | } |
| 16638 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16639 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 16640 | # echo "creating $dirpart/$file" |
| 16641 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16642 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16643 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16644 | } |
| 16645 | ;; |
| 16646 | "libtool":C) |
| 16647 | |
| 16648 | # See if we are running on zsh, and set the options which allow our |
| 16649 | # commands through without removal of \ escapes. |
| 16650 | if test -n "${ZSH_VERSION+set}" ; then |
| 16651 | setopt NO_GLOB_SUBST |
| 16652 | fi |
| 16653 | |
| 16654 | cfgfile="${ofile}T" |
| 16655 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 16656 | $RM "$cfgfile" |
| 16657 | |
| 16658 | cat <<_LT_EOF >> "$cfgfile" |
| 16659 | #! $SHELL |
| 16660 | |
| 16661 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 16662 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 16663 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16664 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 16665 | # |
| 16666 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 16667 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 16668 | # Written by Gordon Matzigkeit, 1996 |
| 16669 | # |
| 16670 | # This file is part of GNU Libtool. |
| 16671 | # |
| 16672 | # GNU Libtool is free software; you can redistribute it and/or |
| 16673 | # modify it under the terms of the GNU General Public License as |
| 16674 | # published by the Free Software Foundation; either version 2 of |
| 16675 | # the License, or (at your option) any later version. |
| 16676 | # |
| 16677 | # As a special exception to the GNU General Public License, |
| 16678 | # if you distribute this file as part of a program or library that |
| 16679 | # is built using GNU Libtool, you may include this file under the |
| 16680 | # same distribution terms that you use for the rest of that program. |
| 16681 | # |
| 16682 | # GNU Libtool is distributed in the hope that it will be useful, |
| 16683 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16684 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16685 | # GNU General Public License for more details. |
| 16686 | # |
| 16687 | # You should have received a copy of the GNU General Public License |
| 16688 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 16689 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 16690 | # obtained by writing to the Free Software Foundation, Inc., |
| 16691 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16692 | |
| 16693 | |
| 16694 | # The names of the tagged configurations supported by this script. |
| 16695 | available_tags="CXX " |
| 16696 | |
| 16697 | # ### BEGIN LIBTOOL CONFIG |
| 16698 | |
| 16699 | # Which release of libtool.m4 was used? |
| 16700 | macro_version=$macro_version |
| 16701 | macro_revision=$macro_revision |
| 16702 | |
| 16703 | # Whether or not to build shared libraries. |
| 16704 | build_libtool_libs=$enable_shared |
| 16705 | |
| 16706 | # Whether or not to build static libraries. |
| 16707 | build_old_libs=$enable_static |
| 16708 | |
| 16709 | # What type of objects to build. |
| 16710 | pic_mode=$pic_mode |
| 16711 | |
| 16712 | # Whether or not to optimize for fast installation. |
| 16713 | fast_install=$enable_fast_install |
| 16714 | |
| 16715 | # The host system. |
| 16716 | host_alias=$host_alias |
| 16717 | host=$host |
| 16718 | host_os=$host_os |
| 16719 | |
| 16720 | # The build system. |
| 16721 | build_alias=$build_alias |
| 16722 | build=$build |
| 16723 | build_os=$build_os |
| 16724 | |
| 16725 | # A sed program that does not truncate output. |
| 16726 | SED=$lt_SED |
| 16727 | |
| 16728 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 16729 | Xsed="\$SED -e 1s/^X//" |
| 16730 | |
| 16731 | # A grep program that handles long lines. |
| 16732 | GREP=$lt_GREP |
| 16733 | |
| 16734 | # An ERE matcher. |
| 16735 | EGREP=$lt_EGREP |
| 16736 | |
| 16737 | # A literal string matcher. |
| 16738 | FGREP=$lt_FGREP |
| 16739 | |
| 16740 | # A BSD- or MS-compatible name lister. |
| 16741 | NM=$lt_NM |
| 16742 | |
| 16743 | # Whether we need soft or hard links. |
| 16744 | LN_S=$lt_LN_S |
| 16745 | |
| 16746 | # What is the maximum length of a command? |
| 16747 | max_cmd_len=$max_cmd_len |
| 16748 | |
| 16749 | # Object file suffix (normally "o"). |
| 16750 | objext=$ac_objext |
| 16751 | |
| 16752 | # Executable file suffix (normally ""). |
| 16753 | exeext=$exeext |
| 16754 | |
| 16755 | # whether the shell understands "unset". |
| 16756 | lt_unset=$lt_unset |
| 16757 | |
| 16758 | # turn spaces into newlines. |
| 16759 | SP2NL=$lt_lt_SP2NL |
| 16760 | |
| 16761 | # turn newlines into spaces. |
| 16762 | NL2SP=$lt_lt_NL2SP |
| 16763 | |
| 16764 | # How to create reloadable object files. |
| 16765 | reload_flag=$lt_reload_flag |
| 16766 | reload_cmds=$lt_reload_cmds |
| 16767 | |
| 16768 | # An object symbol dumper. |
| 16769 | OBJDUMP=$lt_OBJDUMP |
| 16770 | |
| 16771 | # Method to check whether dependent libraries are shared objects. |
| 16772 | deplibs_check_method=$lt_deplibs_check_method |
| 16773 | |
| 16774 | # Command to use when deplibs_check_method == "file_magic". |
| 16775 | file_magic_cmd=$lt_file_magic_cmd |
| 16776 | |
| 16777 | # The archiver. |
| 16778 | AR=$lt_AR |
| 16779 | AR_FLAGS=$lt_AR_FLAGS |
| 16780 | |
| 16781 | # A symbol stripping program. |
| 16782 | STRIP=$lt_STRIP |
| 16783 | |
| 16784 | # Commands used to install an old-style archive. |
| 16785 | RANLIB=$lt_RANLIB |
| 16786 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16787 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16788 | |
| 16789 | # A C compiler. |
| 16790 | LTCC=$lt_CC |
| 16791 | |
| 16792 | # LTCC compiler flags. |
| 16793 | LTCFLAGS=$lt_CFLAGS |
| 16794 | |
| 16795 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16796 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16797 | |
| 16798 | # Transform the output of nm in a proper C declaration. |
| 16799 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16800 | |
| 16801 | # Transform the output of nm in a C name address pair. |
| 16802 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16803 | |
| 16804 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 16805 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 16806 | |
| 16807 | # The name of the directory that contains temporary libtool files. |
| 16808 | objdir=$objdir |
| 16809 | |
| 16810 | # Shell to use when invoking shell scripts. |
| 16811 | SHELL=$lt_SHELL |
| 16812 | |
| 16813 | # An echo program that does not interpret backslashes. |
| 16814 | ECHO=$lt_ECHO |
| 16815 | |
| 16816 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 16817 | MAGIC_CMD=$MAGIC_CMD |
| 16818 | |
| 16819 | # Must we lock files when doing compilation? |
| 16820 | need_locks=$lt_need_locks |
| 16821 | |
| 16822 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 16823 | DSYMUTIL=$lt_DSYMUTIL |
| 16824 | |
| 16825 | # Tool to change global to local symbols on Mac OS X. |
| 16826 | NMEDIT=$lt_NMEDIT |
| 16827 | |
| 16828 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 16829 | LIPO=$lt_LIPO |
| 16830 | |
| 16831 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 16832 | OTOOL=$lt_OTOOL |
| 16833 | |
| 16834 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 16835 | OTOOL64=$lt_OTOOL64 |
| 16836 | |
| 16837 | # Old archive suffix (normally "a"). |
| 16838 | libext=$libext |
| 16839 | |
| 16840 | # Shared library suffix (normally ".so"). |
| 16841 | shrext_cmds=$lt_shrext_cmds |
| 16842 | |
| 16843 | # The commands to extract the exported symbol list from a shared archive. |
| 16844 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16845 | |
| 16846 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16847 | # restored at link time. |
| 16848 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 16849 | |
| 16850 | # Do we need the "lib" prefix for modules? |
| 16851 | need_lib_prefix=$need_lib_prefix |
| 16852 | |
| 16853 | # Do we need a version for libraries? |
| 16854 | need_version=$need_version |
| 16855 | |
| 16856 | # Library versioning type. |
| 16857 | version_type=$version_type |
| 16858 | |
| 16859 | # Shared library runtime path variable. |
| 16860 | runpath_var=$runpath_var |
| 16861 | |
| 16862 | # Shared library path variable. |
| 16863 | shlibpath_var=$shlibpath_var |
| 16864 | |
| 16865 | # Is shlibpath searched before the hard-coded library search path? |
| 16866 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16867 | |
| 16868 | # Format of library name prefix. |
| 16869 | libname_spec=$lt_libname_spec |
| 16870 | |
| 16871 | # List of archive names. First name is the real one, the rest are links. |
| 16872 | # The last name is the one that the linker finds with -lNAME |
| 16873 | library_names_spec=$lt_library_names_spec |
| 16874 | |
| 16875 | # The coded name of the library, if different from the real name. |
| 16876 | soname_spec=$lt_soname_spec |
| 16877 | |
| 16878 | # Command to use after installation of a shared archive. |
| 16879 | postinstall_cmds=$lt_postinstall_cmds |
| 16880 | |
| 16881 | # Command to use after uninstallation of a shared archive. |
| 16882 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16883 | |
| 16884 | # Commands used to finish a libtool library installation in a directory. |
| 16885 | finish_cmds=$lt_finish_cmds |
| 16886 | |
| 16887 | # As "finish_cmds", except a single script fragment to be evaled but |
| 16888 | # not shown. |
| 16889 | finish_eval=$lt_finish_eval |
| 16890 | |
| 16891 | # Whether we should hardcode library paths into libraries. |
| 16892 | hardcode_into_libs=$hardcode_into_libs |
| 16893 | |
| 16894 | # Compile-time system search path for libraries. |
| 16895 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16896 | |
| 16897 | # Run-time system search path for libraries. |
| 16898 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16899 | |
| 16900 | # Whether dlopen is supported. |
| 16901 | dlopen_support=$enable_dlopen |
| 16902 | |
| 16903 | # Whether dlopen of programs is supported. |
| 16904 | dlopen_self=$enable_dlopen_self |
| 16905 | |
| 16906 | # Whether dlopen of statically linked programs is supported. |
| 16907 | dlopen_self_static=$enable_dlopen_self_static |
| 16908 | |
| 16909 | # Commands to strip libraries. |
| 16910 | old_striplib=$lt_old_striplib |
| 16911 | striplib=$lt_striplib |
| 16912 | |
| 16913 | |
| 16914 | # The linker used to build libraries. |
| 16915 | LD=$lt_LD |
| 16916 | |
| 16917 | # Commands used to build an old-style archive. |
| 16918 | old_archive_cmds=$lt_old_archive_cmds |
| 16919 | |
| 16920 | # A language specific compiler. |
| 16921 | CC=$lt_compiler |
| 16922 | |
| 16923 | # Is the compiler the GNU compiler? |
| 16924 | with_gcc=$GCC |
| 16925 | |
| 16926 | # Compiler flag to turn off builtin functions. |
| 16927 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 16928 | |
| 16929 | # How to pass a linker flag through the compiler. |
| 16930 | wl=$lt_lt_prog_compiler_wl |
| 16931 | |
| 16932 | # Additional compiler flags for building library objects. |
| 16933 | pic_flag=$lt_lt_prog_compiler_pic |
| 16934 | |
| 16935 | # Compiler flag to prevent dynamic linking. |
| 16936 | link_static_flag=$lt_lt_prog_compiler_static |
| 16937 | |
| 16938 | # Does compiler simultaneously support -c and -o options? |
| 16939 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 16940 | |
| 16941 | # Whether or not to add -lc for building shared libraries. |
| 16942 | build_libtool_need_lc=$archive_cmds_need_lc |
| 16943 | |
| 16944 | # Whether or not to disallow shared libs when runtime libs are static. |
| 16945 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 16946 | |
| 16947 | # Compiler flag to allow reflexive dlopens. |
| 16948 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 16949 | |
| 16950 | # Compiler flag to generate shared objects directly from archives. |
| 16951 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 16952 | |
| 16953 | # Whether the compiler copes with passing no objects directly. |
| 16954 | compiler_needs_object=$lt_compiler_needs_object |
| 16955 | |
| 16956 | # Create an old-style archive from a shared archive. |
| 16957 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 16958 | |
| 16959 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16960 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 16961 | |
| 16962 | # Commands used to build a shared archive. |
| 16963 | archive_cmds=$lt_archive_cmds |
| 16964 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 16965 | |
| 16966 | # Commands used to build a loadable module if different from building |
| 16967 | # a shared archive. |
| 16968 | module_cmds=$lt_module_cmds |
| 16969 | module_expsym_cmds=$lt_module_expsym_cmds |
| 16970 | |
| 16971 | # Whether we are building with GNU ld or not. |
| 16972 | with_gnu_ld=$lt_with_gnu_ld |
| 16973 | |
| 16974 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16975 | allow_undefined_flag=$lt_allow_undefined_flag |
| 16976 | |
| 16977 | # Flag that enforces no undefined symbols. |
| 16978 | no_undefined_flag=$lt_no_undefined_flag |
| 16979 | |
| 16980 | # Flag to hardcode \$libdir into a binary during linking. |
| 16981 | # This must work even if \$libdir does not exist |
| 16982 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 16983 | |
| 16984 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 16985 | # during linking. This must work even if \$libdir does not exist. |
| 16986 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 16987 | |
| 16988 | # Whether we need a single "-rpath" flag with a separated argument. |
| 16989 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 16990 | |
| 16991 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16992 | # DIR into the resulting binary. |
| 16993 | hardcode_direct=$hardcode_direct |
| 16994 | |
| 16995 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16996 | # DIR into the resulting binary and the resulting library dependency is |
| 16997 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 16998 | # library is relocated. |
| 16999 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 17000 | |
| 17001 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 17002 | # into the resulting binary. |
| 17003 | hardcode_minus_L=$hardcode_minus_L |
| 17004 | |
| 17005 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 17006 | # into the resulting binary. |
| 17007 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17008 | |
| 17009 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 17010 | # into the library and all subsequent libraries and executables linked |
| 17011 | # against it. |
| 17012 | hardcode_automatic=$hardcode_automatic |
| 17013 | |
| 17014 | # Set to yes if linker adds runtime paths of dependent libraries |
| 17015 | # to runtime path list. |
| 17016 | inherit_rpath=$inherit_rpath |
| 17017 | |
| 17018 | # Whether libtool must link a program against all its dependency libraries. |
| 17019 | link_all_deplibs=$link_all_deplibs |
| 17020 | |
| 17021 | # Fix the shell variable \$srcfile for the compiler. |
| 17022 | fix_srcfile_path=$lt_fix_srcfile_path |
| 17023 | |
| 17024 | # Set to "yes" if exported symbols are required. |
| 17025 | always_export_symbols=$always_export_symbols |
| 17026 | |
| 17027 | # The commands to list exported symbols. |
| 17028 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17029 | |
| 17030 | # Symbols that should not be listed in the preloaded symbols. |
| 17031 | exclude_expsyms=$lt_exclude_expsyms |
| 17032 | |
| 17033 | # Symbols that must always be exported. |
| 17034 | include_expsyms=$lt_include_expsyms |
| 17035 | |
| 17036 | # Commands necessary for linking programs (against libraries) with templates. |
| 17037 | prelink_cmds=$lt_prelink_cmds |
| 17038 | |
| 17039 | # Specify filename containing input files. |
| 17040 | file_list_spec=$lt_file_list_spec |
| 17041 | |
| 17042 | # How to hardcode a shared library path into an executable. |
| 17043 | hardcode_action=$hardcode_action |
| 17044 | |
| 17045 | # The directories searched by this compiler when creating a shared library. |
| 17046 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 17047 | |
| 17048 | # Dependencies to place before and after the objects being linked to |
| 17049 | # create a shared library. |
| 17050 | predep_objects=$lt_predep_objects |
| 17051 | postdep_objects=$lt_postdep_objects |
| 17052 | predeps=$lt_predeps |
| 17053 | postdeps=$lt_postdeps |
| 17054 | |
| 17055 | # The library search path used internally by the compiler when linking |
| 17056 | # a shared library. |
| 17057 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17058 | |
| 17059 | # ### END LIBTOOL CONFIG |
| 17060 | |
| 17061 | _LT_EOF |
| 17062 | |
| 17063 | case $host_os in |
| 17064 | aix3*) |
| 17065 | cat <<\_LT_EOF >> "$cfgfile" |
| 17066 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17067 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17068 | # vanish in a puff of smoke. |
| 17069 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17070 | COLLECT_NAMES= |
| 17071 | export COLLECT_NAMES |
| 17072 | fi |
| 17073 | _LT_EOF |
| 17074 | ;; |
| 17075 | esac |
| 17076 | |
| 17077 | |
| 17078 | ltmain="$ac_aux_dir/ltmain.sh" |
| 17079 | |
| 17080 | |
| 17081 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17082 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17083 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17084 | # is reportedly fixed, but why not run on old versions too? |
| 17085 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 17086 | || (rm -f "$cfgfile"; exit 1) |
| 17087 | |
| 17088 | case $xsi_shell in |
| 17089 | yes) |
| 17090 | cat << \_LT_EOF >> "$cfgfile" |
| 17091 | |
| 17092 | # func_dirname file append nondir_replacement |
| 17093 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 17094 | # otherwise set result to NONDIR_REPLACEMENT. |
| 17095 | func_dirname () |
| 17096 | { |
| 17097 | case ${1} in |
| 17098 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 17099 | * ) func_dirname_result="${3}" ;; |
| 17100 | esac |
| 17101 | } |
| 17102 | |
| 17103 | # func_basename file |
| 17104 | func_basename () |
| 17105 | { |
| 17106 | func_basename_result="${1##*/}" |
| 17107 | } |
| 17108 | |
| 17109 | # func_dirname_and_basename file append nondir_replacement |
| 17110 | # perform func_basename and func_dirname in a single function |
| 17111 | # call: |
| 17112 | # dirname: Compute the dirname of FILE. If nonempty, |
| 17113 | # add APPEND to the result, otherwise set result |
| 17114 | # to NONDIR_REPLACEMENT. |
| 17115 | # value returned in "$func_dirname_result" |
| 17116 | # basename: Compute filename of FILE. |
| 17117 | # value retuned in "$func_basename_result" |
| 17118 | # Implementation must be kept synchronized with func_dirname |
| 17119 | # and func_basename. For efficiency, we do not delegate to |
| 17120 | # those functions but instead duplicate the functionality here. |
| 17121 | func_dirname_and_basename () |
| 17122 | { |
| 17123 | case ${1} in |
| 17124 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 17125 | * ) func_dirname_result="${3}" ;; |
| 17126 | esac |
| 17127 | func_basename_result="${1##*/}" |
| 17128 | } |
| 17129 | |
| 17130 | # func_stripname prefix suffix name |
| 17131 | # strip PREFIX and SUFFIX off of NAME. |
| 17132 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 17133 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 17134 | # dot (in which case that matches only a dot). |
| 17135 | func_stripname () |
| 17136 | { |
| 17137 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 17138 | # positional parameters, so assign one to ordinary parameter first. |
| 17139 | func_stripname_result=${3} |
| 17140 | func_stripname_result=${func_stripname_result#"${1}"} |
| 17141 | func_stripname_result=${func_stripname_result%"${2}"} |
| 17142 | } |
| 17143 | |
| 17144 | # func_opt_split |
| 17145 | func_opt_split () |
| 17146 | { |
| 17147 | func_opt_split_opt=${1%%=*} |
| 17148 | func_opt_split_arg=${1#*=} |
| 17149 | } |
| 17150 | |
| 17151 | # func_lo2o object |
| 17152 | func_lo2o () |
| 17153 | { |
| 17154 | case ${1} in |
| 17155 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 17156 | *) func_lo2o_result=${1} ;; |
| 17157 | esac |
| 17158 | } |
| 17159 | |
| 17160 | # func_xform libobj-or-source |
| 17161 | func_xform () |
| 17162 | { |
| 17163 | func_xform_result=${1%.*}.lo |
| 17164 | } |
| 17165 | |
| 17166 | # func_arith arithmetic-term... |
| 17167 | func_arith () |
| 17168 | { |
| 17169 | func_arith_result=$(( $* )) |
| 17170 | } |
| 17171 | |
| 17172 | # func_len string |
| 17173 | # STRING may not start with a hyphen. |
| 17174 | func_len () |
| 17175 | { |
| 17176 | func_len_result=${#1} |
| 17177 | } |
| 17178 | |
| 17179 | _LT_EOF |
| 17180 | ;; |
| 17181 | *) # Bourne compatible functions. |
| 17182 | cat << \_LT_EOF >> "$cfgfile" |
| 17183 | |
| 17184 | # func_dirname file append nondir_replacement |
| 17185 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 17186 | # otherwise set result to NONDIR_REPLACEMENT. |
| 17187 | func_dirname () |
| 17188 | { |
| 17189 | # Extract subdirectory from the argument. |
| 17190 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 17191 | if test "X$func_dirname_result" = "X${1}"; then |
| 17192 | func_dirname_result="${3}" |
| 17193 | else |
| 17194 | func_dirname_result="$func_dirname_result${2}" |
| 17195 | fi |
| 17196 | } |
| 17197 | |
| 17198 | # func_basename file |
| 17199 | func_basename () |
| 17200 | { |
| 17201 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 17202 | } |
| 17203 | |
| 17204 | |
| 17205 | # func_stripname prefix suffix name |
| 17206 | # strip PREFIX and SUFFIX off of NAME. |
| 17207 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 17208 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 17209 | # dot (in which case that matches only a dot). |
| 17210 | # func_strip_suffix prefix name |
| 17211 | func_stripname () |
| 17212 | { |
| 17213 | case ${2} in |
| 17214 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 17215 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 17216 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 17217 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 17218 | esac |
| 17219 | } |
| 17220 | |
| 17221 | # sed scripts: |
| 17222 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 17223 | my_sed_long_arg='1s/^-[^=]*=//' |
| 17224 | |
| 17225 | # func_opt_split |
| 17226 | func_opt_split () |
| 17227 | { |
| 17228 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 17229 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 17230 | } |
| 17231 | |
| 17232 | # func_lo2o object |
| 17233 | func_lo2o () |
| 17234 | { |
| 17235 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 17236 | } |
| 17237 | |
| 17238 | # func_xform libobj-or-source |
| 17239 | func_xform () |
| 17240 | { |
| 17241 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 17242 | } |
| 17243 | |
| 17244 | # func_arith arithmetic-term... |
| 17245 | func_arith () |
| 17246 | { |
| 17247 | func_arith_result=`expr "$@"` |
| 17248 | } |
| 17249 | |
| 17250 | # func_len string |
| 17251 | # STRING may not start with a hyphen. |
| 17252 | func_len () |
| 17253 | { |
| 17254 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 17255 | } |
| 17256 | |
| 17257 | _LT_EOF |
| 17258 | esac |
| 17259 | |
| 17260 | case $lt_shell_append in |
| 17261 | yes) |
| 17262 | cat << \_LT_EOF >> "$cfgfile" |
| 17263 | |
| 17264 | # func_append var value |
| 17265 | # Append VALUE to the end of shell variable VAR. |
| 17266 | func_append () |
| 17267 | { |
| 17268 | eval "$1+=\$2" |
| 17269 | } |
| 17270 | _LT_EOF |
| 17271 | ;; |
| 17272 | *) |
| 17273 | cat << \_LT_EOF >> "$cfgfile" |
| 17274 | |
| 17275 | # func_append var value |
| 17276 | # Append VALUE to the end of shell variable VAR. |
| 17277 | func_append () |
| 17278 | { |
| 17279 | eval "$1=\$$1\$2" |
| 17280 | } |
| 17281 | |
| 17282 | _LT_EOF |
| 17283 | ;; |
| 17284 | esac |
| 17285 | |
| 17286 | |
| 17287 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 17288 | || (rm -f "$cfgfile"; exit 1) |
| 17289 | |
| 17290 | mv -f "$cfgfile" "$ofile" || |
| 17291 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 17292 | chmod +x "$ofile" |
| 17293 | |
| 17294 | |
| 17295 | cat <<_LT_EOF >> "$ofile" |
| 17296 | |
| 17297 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 17298 | |
| 17299 | # The linker used to build libraries. |
| 17300 | LD=$lt_LD_CXX |
| 17301 | |
| 17302 | # Commands used to build an old-style archive. |
| 17303 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 17304 | |
| 17305 | # A language specific compiler. |
| 17306 | CC=$lt_compiler_CXX |
| 17307 | |
| 17308 | # Is the compiler the GNU compiler? |
| 17309 | with_gcc=$GCC_CXX |
| 17310 | |
| 17311 | # Compiler flag to turn off builtin functions. |
| 17312 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 17313 | |
| 17314 | # How to pass a linker flag through the compiler. |
| 17315 | wl=$lt_lt_prog_compiler_wl_CXX |
| 17316 | |
| 17317 | # Additional compiler flags for building library objects. |
| 17318 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 17319 | |
| 17320 | # Compiler flag to prevent dynamic linking. |
| 17321 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 17322 | |
| 17323 | # Does compiler simultaneously support -c and -o options? |
| 17324 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 17325 | |
| 17326 | # Whether or not to add -lc for building shared libraries. |
| 17327 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 17328 | |
| 17329 | # Whether or not to disallow shared libs when runtime libs are static. |
| 17330 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 17331 | |
| 17332 | # Compiler flag to allow reflexive dlopens. |
| 17333 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 17334 | |
| 17335 | # Compiler flag to generate shared objects directly from archives. |
| 17336 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 17337 | |
| 17338 | # Whether the compiler copes with passing no objects directly. |
| 17339 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 17340 | |
| 17341 | # Create an old-style archive from a shared archive. |
| 17342 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 17343 | |
| 17344 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17345 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 17346 | |
| 17347 | # Commands used to build a shared archive. |
| 17348 | archive_cmds=$lt_archive_cmds_CXX |
| 17349 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 17350 | |
| 17351 | # Commands used to build a loadable module if different from building |
| 17352 | # a shared archive. |
| 17353 | module_cmds=$lt_module_cmds_CXX |
| 17354 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 17355 | |
| 17356 | # Whether we are building with GNU ld or not. |
| 17357 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 17358 | |
| 17359 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17360 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 17361 | |
| 17362 | # Flag that enforces no undefined symbols. |
| 17363 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 17364 | |
| 17365 | # Flag to hardcode \$libdir into a binary during linking. |
| 17366 | # This must work even if \$libdir does not exist |
| 17367 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 17368 | |
| 17369 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 17370 | # during linking. This must work even if \$libdir does not exist. |
| 17371 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 17372 | |
| 17373 | # Whether we need a single "-rpath" flag with a separated argument. |
| 17374 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 17375 | |
| 17376 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17377 | # DIR into the resulting binary. |
| 17378 | hardcode_direct=$hardcode_direct_CXX |
| 17379 | |
| 17380 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17381 | # DIR into the resulting binary and the resulting library dependency is |
| 17382 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 17383 | # library is relocated. |
| 17384 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 17385 | |
| 17386 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 17387 | # into the resulting binary. |
| 17388 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 17389 | |
| 17390 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 17391 | # into the resulting binary. |
| 17392 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 17393 | |
| 17394 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 17395 | # into the library and all subsequent libraries and executables linked |
| 17396 | # against it. |
| 17397 | hardcode_automatic=$hardcode_automatic_CXX |
| 17398 | |
| 17399 | # Set to yes if linker adds runtime paths of dependent libraries |
| 17400 | # to runtime path list. |
| 17401 | inherit_rpath=$inherit_rpath_CXX |
| 17402 | |
| 17403 | # Whether libtool must link a program against all its dependency libraries. |
| 17404 | link_all_deplibs=$link_all_deplibs_CXX |
| 17405 | |
| 17406 | # Fix the shell variable \$srcfile for the compiler. |
| 17407 | fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 17408 | |
| 17409 | # Set to "yes" if exported symbols are required. |
| 17410 | always_export_symbols=$always_export_symbols_CXX |
| 17411 | |
| 17412 | # The commands to list exported symbols. |
| 17413 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 17414 | |
| 17415 | # Symbols that should not be listed in the preloaded symbols. |
| 17416 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 17417 | |
| 17418 | # Symbols that must always be exported. |
| 17419 | include_expsyms=$lt_include_expsyms_CXX |
| 17420 | |
| 17421 | # Commands necessary for linking programs (against libraries) with templates. |
| 17422 | prelink_cmds=$lt_prelink_cmds_CXX |
| 17423 | |
| 17424 | # Specify filename containing input files. |
| 17425 | file_list_spec=$lt_file_list_spec_CXX |
| 17426 | |
| 17427 | # How to hardcode a shared library path into an executable. |
| 17428 | hardcode_action=$hardcode_action_CXX |
| 17429 | |
| 17430 | # The directories searched by this compiler when creating a shared library. |
| 17431 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 17432 | |
| 17433 | # Dependencies to place before and after the objects being linked to |
| 17434 | # create a shared library. |
| 17435 | predep_objects=$lt_predep_objects_CXX |
| 17436 | postdep_objects=$lt_postdep_objects_CXX |
| 17437 | predeps=$lt_predeps_CXX |
| 17438 | postdeps=$lt_postdeps_CXX |
| 17439 | |
| 17440 | # The library search path used internally by the compiler when linking |
| 17441 | # a shared library. |
| 17442 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 17443 | |
| 17444 | # ### END LIBTOOL TAG CONFIG: CXX |
| 17445 | _LT_EOF |
| 17446 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17447 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17448 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17449 | esac |
| 17450 | done # for ac_tag |
| 17451 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17452 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17453 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17454 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17455 | ac_clean_files=$ac_clean_files_save |
| 17456 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17457 | test $ac_write_fail = 0 || |
| 17458 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 17459 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17460 | |
| 17461 | # configure is writing to config.log, and then calls config.status. |
| 17462 | # config.status does its own redirection, appending to config.log. |
| 17463 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17464 | # by configure, so config.status won't be able to write to it; its |
| 17465 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17466 | # effectively closing config.log, so it can be properly (re)opened and |
| 17467 | # appended to by config.status. When coming back to configure, we |
| 17468 | # need to make the FD available again. |
| 17469 | if test "$no_create" != yes; then |
| 17470 | ac_cs_success=: |
| 17471 | ac_config_status_args= |
| 17472 | test "$silent" = yes && |
| 17473 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17474 | exec 5>/dev/null |
| 17475 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17476 | exec 5>>config.log |
| 17477 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17478 | # would make configure fail if this is the last instruction. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17479 | $ac_cs_success || as_fn_exit $? |
| 17480 | fi |
| 17481 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17482 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17483 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17484 | fi |
| 17485 | |