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 |
| 752 | LIBTOOL_DEPS |
| 753 | CXXCPP |
| 754 | OTOOL64 |
| 755 | OTOOL |
| 756 | LIPO |
| 757 | NMEDIT |
| 758 | DSYMUTIL |
| 759 | lt_ECHO |
| 760 | RANLIB |
| 761 | AR |
| 762 | OBJDUMP |
| 763 | LN_S |
| 764 | NM |
| 765 | ac_ct_DUMPBIN |
| 766 | DUMPBIN |
| 767 | LD |
| 768 | FGREP |
| 769 | EGREP |
| 770 | GREP |
| 771 | SED |
| 772 | host_os |
| 773 | host_vendor |
| 774 | host_cpu |
| 775 | host |
| 776 | build_os |
| 777 | build_vendor |
| 778 | build_cpu |
| 779 | build |
| 780 | LIBTOOL |
| 781 | am__fastdepCXX_FALSE |
| 782 | am__fastdepCXX_TRUE |
| 783 | CXXDEPMODE |
| 784 | ac_ct_CXX |
| 785 | CXXFLAGS |
| 786 | CXX |
| 787 | CPP |
| 788 | am__fastdepCC_FALSE |
| 789 | am__fastdepCC_TRUE |
| 790 | CCDEPMODE |
| 791 | AMDEPBACKSLASH |
| 792 | AMDEP_FALSE |
| 793 | AMDEP_TRUE |
| 794 | am__quote |
| 795 | am__include |
| 796 | DEPDIR |
| 797 | OBJEXT |
| 798 | EXEEXT |
| 799 | ac_ct_CC |
| 800 | CPPFLAGS |
| 801 | LDFLAGS |
| 802 | CFLAGS |
| 803 | CC |
| 804 | am__untar |
| 805 | am__tar |
| 806 | AMTAR |
| 807 | am__leading_dot |
| 808 | SET_MAKE |
| 809 | AWK |
| 810 | mkdir_p |
| 811 | MKDIR_P |
| 812 | INSTALL_STRIP_PROGRAM |
| 813 | STRIP |
| 814 | install_sh |
| 815 | MAKEINFO |
| 816 | AUTOHEADER |
| 817 | AUTOMAKE |
| 818 | AUTOCONF |
| 819 | ACLOCAL |
| 820 | VERSION |
| 821 | PACKAGE |
| 822 | CYGPATH_W |
| 823 | am__isrc |
| 824 | INSTALL_DATA |
| 825 | INSTALL_SCRIPT |
| 826 | INSTALL_PROGRAM |
| 827 | target_alias |
| 828 | host_alias |
| 829 | build_alias |
| 830 | LIBS |
| 831 | ECHO_T |
| 832 | ECHO_N |
| 833 | ECHO_C |
| 834 | DEFS |
| 835 | mandir |
| 836 | localedir |
| 837 | libdir |
| 838 | psdir |
| 839 | pdfdir |
| 840 | dvidir |
| 841 | htmldir |
| 842 | infodir |
| 843 | docdir |
| 844 | oldincludedir |
| 845 | includedir |
| 846 | localstatedir |
| 847 | sharedstatedir |
| 848 | sysconfdir |
| 849 | datadir |
| 850 | datarootdir |
| 851 | libexecdir |
| 852 | sbindir |
| 853 | bindir |
| 854 | program_transform_name |
| 855 | prefix |
| 856 | exec_prefix |
| 857 | PACKAGE_URL |
| 858 | PACKAGE_BUGREPORT |
| 859 | PACKAGE_STRING |
| 860 | PACKAGE_VERSION |
| 861 | PACKAGE_TARNAME |
| 862 | PACKAGE_NAME |
| 863 | PATH_SEPARATOR |
| 864 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 865 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 866 | ac_user_opts=' |
| 867 | enable_option_checking |
| 868 | enable_dependency_tracking |
| 869 | enable_shared |
| 870 | enable_static |
| 871 | with_pic |
| 872 | enable_fast_install |
| 873 | with_gnu_ld |
| 874 | enable_libtool_lock |
| 875 | enable_selftest |
| 876 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 877 | ac_precious_vars='build_alias |
| 878 | host_alias |
| 879 | target_alias |
| 880 | CC |
| 881 | CFLAGS |
| 882 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 883 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 884 | CPPFLAGS |
| 885 | CPP |
| 886 | CXX |
| 887 | CXXFLAGS |
| 888 | CCC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 889 | CXXCPP' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 890 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 891 | |
| 892 | # Initialize some variables set by options. |
| 893 | ac_init_help= |
| 894 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 895 | ac_unrecognized_opts= |
| 896 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 897 | # The variables have the same names as the options, with |
| 898 | # dashes changed to underlines. |
| 899 | cache_file=/dev/null |
| 900 | exec_prefix=NONE |
| 901 | no_create= |
| 902 | no_recursion= |
| 903 | prefix=NONE |
| 904 | program_prefix=NONE |
| 905 | program_suffix=NONE |
| 906 | program_transform_name=s,x,x, |
| 907 | silent= |
| 908 | site= |
| 909 | srcdir= |
| 910 | verbose= |
| 911 | x_includes=NONE |
| 912 | x_libraries=NONE |
| 913 | |
| 914 | # Installation directory options. |
| 915 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 916 | # and all the variables that are supposed to be based on exec_prefix |
| 917 | # by default will actually change. |
| 918 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 919 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 920 | bindir='${exec_prefix}/bin' |
| 921 | sbindir='${exec_prefix}/sbin' |
| 922 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 923 | datarootdir='${prefix}/share' |
| 924 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 925 | sysconfdir='${prefix}/etc' |
| 926 | sharedstatedir='${prefix}/com' |
| 927 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 928 | includedir='${prefix}/include' |
| 929 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 930 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 931 | infodir='${datarootdir}/info' |
| 932 | htmldir='${docdir}' |
| 933 | dvidir='${docdir}' |
| 934 | pdfdir='${docdir}' |
| 935 | psdir='${docdir}' |
| 936 | libdir='${exec_prefix}/lib' |
| 937 | localedir='${datarootdir}/locale' |
| 938 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 939 | |
| 940 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 941 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 942 | for ac_option |
| 943 | do |
| 944 | # If the previous option needs an argument, assign it. |
| 945 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 946 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 947 | ac_prev= |
| 948 | continue |
| 949 | fi |
| 950 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 951 | case $ac_option in |
| 952 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 953 | *) ac_optarg=yes ;; |
| 954 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 955 | |
| 956 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 957 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 958 | case $ac_dashdash$ac_option in |
| 959 | --) |
| 960 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 961 | |
| 962 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 963 | ac_prev=bindir ;; |
| 964 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 965 | bindir=$ac_optarg ;; |
| 966 | |
| 967 | -build | --build | --buil | --bui | --bu) |
| 968 | ac_prev=build_alias ;; |
| 969 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 970 | build_alias=$ac_optarg ;; |
| 971 | |
| 972 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 973 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 974 | ac_prev=cache_file ;; |
| 975 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 976 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 977 | cache_file=$ac_optarg ;; |
| 978 | |
| 979 | --config-cache | -C) |
| 980 | cache_file=config.cache ;; |
| 981 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 982 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 983 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 984 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 985 | datadir=$ac_optarg ;; |
| 986 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 987 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 988 | | --dataroo | --dataro | --datar) |
| 989 | ac_prev=datarootdir ;; |
| 990 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 991 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 992 | datarootdir=$ac_optarg ;; |
| 993 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 994 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 995 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 996 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 997 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 998 | as_fn_error "invalid feature name: $ac_useropt" |
| 999 | ac_useropt_orig=$ac_useropt |
| 1000 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1001 | case $ac_user_opts in |
| 1002 | *" |
| 1003 | "enable_$ac_useropt" |
| 1004 | "*) ;; |
| 1005 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1006 | ac_unrecognized_sep=', ';; |
| 1007 | esac |
| 1008 | eval enable_$ac_useropt=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1009 | |
| 1010 | -docdir | --docdir | --docdi | --doc | --do) |
| 1011 | ac_prev=docdir ;; |
| 1012 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1013 | docdir=$ac_optarg ;; |
| 1014 | |
| 1015 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1016 | ac_prev=dvidir ;; |
| 1017 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1018 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1019 | |
| 1020 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1021 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1022 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1023 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1024 | as_fn_error "invalid feature name: $ac_useropt" |
| 1025 | ac_useropt_orig=$ac_useropt |
| 1026 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1027 | case $ac_user_opts in |
| 1028 | *" |
| 1029 | "enable_$ac_useropt" |
| 1030 | "*) ;; |
| 1031 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1032 | ac_unrecognized_sep=', ';; |
| 1033 | esac |
| 1034 | eval enable_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1035 | |
| 1036 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1037 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1038 | | --exec | --exe | --ex) |
| 1039 | ac_prev=exec_prefix ;; |
| 1040 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1041 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1042 | | --exec=* | --exe=* | --ex=*) |
| 1043 | exec_prefix=$ac_optarg ;; |
| 1044 | |
| 1045 | -gas | --gas | --ga | --g) |
| 1046 | # Obsolete; use --with-gas. |
| 1047 | with_gas=yes ;; |
| 1048 | |
| 1049 | -help | --help | --hel | --he | -h) |
| 1050 | ac_init_help=long ;; |
| 1051 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1052 | ac_init_help=recursive ;; |
| 1053 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1054 | ac_init_help=short ;; |
| 1055 | |
| 1056 | -host | --host | --hos | --ho) |
| 1057 | ac_prev=host_alias ;; |
| 1058 | -host=* | --host=* | --hos=* | --ho=*) |
| 1059 | host_alias=$ac_optarg ;; |
| 1060 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1061 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1062 | ac_prev=htmldir ;; |
| 1063 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1064 | | --ht=*) |
| 1065 | htmldir=$ac_optarg ;; |
| 1066 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1067 | -includedir | --includedir | --includedi | --included | --include \ |
| 1068 | | --includ | --inclu | --incl | --inc) |
| 1069 | ac_prev=includedir ;; |
| 1070 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1071 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1072 | includedir=$ac_optarg ;; |
| 1073 | |
| 1074 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1075 | ac_prev=infodir ;; |
| 1076 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1077 | infodir=$ac_optarg ;; |
| 1078 | |
| 1079 | -libdir | --libdir | --libdi | --libd) |
| 1080 | ac_prev=libdir ;; |
| 1081 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1082 | libdir=$ac_optarg ;; |
| 1083 | |
| 1084 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1085 | | --libexe | --libex | --libe) |
| 1086 | ac_prev=libexecdir ;; |
| 1087 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1088 | | --libexe=* | --libex=* | --libe=*) |
| 1089 | libexecdir=$ac_optarg ;; |
| 1090 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1091 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1092 | ac_prev=localedir ;; |
| 1093 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1094 | localedir=$ac_optarg ;; |
| 1095 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1096 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1097 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1098 | ac_prev=localstatedir ;; |
| 1099 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1100 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1101 | localstatedir=$ac_optarg ;; |
| 1102 | |
| 1103 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1104 | ac_prev=mandir ;; |
| 1105 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1106 | mandir=$ac_optarg ;; |
| 1107 | |
| 1108 | -nfp | --nfp | --nf) |
| 1109 | # Obsolete; use --without-fp. |
| 1110 | with_fp=no ;; |
| 1111 | |
| 1112 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1113 | | --no-cr | --no-c | -n) |
| 1114 | no_create=yes ;; |
| 1115 | |
| 1116 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1117 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1118 | no_recursion=yes ;; |
| 1119 | |
| 1120 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1121 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1122 | | --oldin | --oldi | --old | --ol | --o) |
| 1123 | ac_prev=oldincludedir ;; |
| 1124 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1125 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1126 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1127 | oldincludedir=$ac_optarg ;; |
| 1128 | |
| 1129 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1130 | ac_prev=prefix ;; |
| 1131 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1132 | prefix=$ac_optarg ;; |
| 1133 | |
| 1134 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1135 | | --program-pre | --program-pr | --program-p) |
| 1136 | ac_prev=program_prefix ;; |
| 1137 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1138 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1139 | program_prefix=$ac_optarg ;; |
| 1140 | |
| 1141 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1142 | | --program-suf | --program-su | --program-s) |
| 1143 | ac_prev=program_suffix ;; |
| 1144 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1145 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1146 | program_suffix=$ac_optarg ;; |
| 1147 | |
| 1148 | -program-transform-name | --program-transform-name \ |
| 1149 | | --program-transform-nam | --program-transform-na \ |
| 1150 | | --program-transform-n | --program-transform- \ |
| 1151 | | --program-transform | --program-transfor \ |
| 1152 | | --program-transfo | --program-transf \ |
| 1153 | | --program-trans | --program-tran \ |
| 1154 | | --progr-tra | --program-tr | --program-t) |
| 1155 | ac_prev=program_transform_name ;; |
| 1156 | -program-transform-name=* | --program-transform-name=* \ |
| 1157 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1158 | | --program-transform-n=* | --program-transform-=* \ |
| 1159 | | --program-transform=* | --program-transfor=* \ |
| 1160 | | --program-transfo=* | --program-transf=* \ |
| 1161 | | --program-trans=* | --program-tran=* \ |
| 1162 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1163 | program_transform_name=$ac_optarg ;; |
| 1164 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1165 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1166 | ac_prev=pdfdir ;; |
| 1167 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1168 | pdfdir=$ac_optarg ;; |
| 1169 | |
| 1170 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1171 | ac_prev=psdir ;; |
| 1172 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1173 | psdir=$ac_optarg ;; |
| 1174 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1175 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1176 | | -silent | --silent | --silen | --sile | --sil) |
| 1177 | silent=yes ;; |
| 1178 | |
| 1179 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1180 | ac_prev=sbindir ;; |
| 1181 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1182 | | --sbi=* | --sb=*) |
| 1183 | sbindir=$ac_optarg ;; |
| 1184 | |
| 1185 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1186 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1187 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1188 | | --sha | --sh) |
| 1189 | ac_prev=sharedstatedir ;; |
| 1190 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1191 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1192 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1193 | | --sha=* | --sh=*) |
| 1194 | sharedstatedir=$ac_optarg ;; |
| 1195 | |
| 1196 | -site | --site | --sit) |
| 1197 | ac_prev=site ;; |
| 1198 | -site=* | --site=* | --sit=*) |
| 1199 | site=$ac_optarg ;; |
| 1200 | |
| 1201 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1202 | ac_prev=srcdir ;; |
| 1203 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1204 | srcdir=$ac_optarg ;; |
| 1205 | |
| 1206 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1207 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1208 | ac_prev=sysconfdir ;; |
| 1209 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1210 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1211 | sysconfdir=$ac_optarg ;; |
| 1212 | |
| 1213 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1214 | ac_prev=target_alias ;; |
| 1215 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1216 | target_alias=$ac_optarg ;; |
| 1217 | |
| 1218 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1219 | verbose=yes ;; |
| 1220 | |
| 1221 | -version | --version | --versio | --versi | --vers | -V) |
| 1222 | ac_init_version=: ;; |
| 1223 | |
| 1224 | -with-* | --with-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1225 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1226 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1227 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1228 | as_fn_error "invalid package name: $ac_useropt" |
| 1229 | ac_useropt_orig=$ac_useropt |
| 1230 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1231 | case $ac_user_opts in |
| 1232 | *" |
| 1233 | "with_$ac_useropt" |
| 1234 | "*) ;; |
| 1235 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1236 | ac_unrecognized_sep=', ';; |
| 1237 | esac |
| 1238 | eval with_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1239 | |
| 1240 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1241 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1242 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1243 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1244 | as_fn_error "invalid package name: $ac_useropt" |
| 1245 | ac_useropt_orig=$ac_useropt |
| 1246 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1247 | case $ac_user_opts in |
| 1248 | *" |
| 1249 | "with_$ac_useropt" |
| 1250 | "*) ;; |
| 1251 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1252 | ac_unrecognized_sep=', ';; |
| 1253 | esac |
| 1254 | eval with_$ac_useropt=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1255 | |
| 1256 | --x) |
| 1257 | # Obsolete; use --with-x. |
| 1258 | with_x=yes ;; |
| 1259 | |
| 1260 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1261 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1262 | ac_prev=x_includes ;; |
| 1263 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1264 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1265 | x_includes=$ac_optarg ;; |
| 1266 | |
| 1267 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1268 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1269 | ac_prev=x_libraries ;; |
| 1270 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1271 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1272 | x_libraries=$ac_optarg ;; |
| 1273 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1274 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1275 | Try \`$0 --help' for more information." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1276 | ;; |
| 1277 | |
| 1278 | *=*) |
| 1279 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1280 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1281 | case $ac_envvar in #( |
| 1282 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1283 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1284 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1285 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1286 | export $ac_envvar ;; |
| 1287 | |
| 1288 | *) |
| 1289 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1290 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1291 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1292 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1293 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1294 | ;; |
| 1295 | |
| 1296 | esac |
| 1297 | done |
| 1298 | |
| 1299 | if test -n "$ac_prev"; then |
| 1300 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1301 | as_fn_error "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1302 | fi |
| 1303 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1304 | if test -n "$ac_unrecognized_opts"; then |
| 1305 | case $enable_option_checking in |
| 1306 | no) ;; |
| 1307 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1308 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1309 | esac |
| 1310 | fi |
| 1311 | |
| 1312 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1313 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1314 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1315 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1316 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1317 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1318 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1319 | # Remove trailing slashes. |
| 1320 | case $ac_val in |
| 1321 | */ ) |
| 1322 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1323 | eval $ac_var=\$ac_val;; |
| 1324 | esac |
| 1325 | # Be sure to have absolute directory names. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1326 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1327 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1328 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1329 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1330 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1331 | done |
| 1332 | |
| 1333 | # There might be people who depend on the old broken behavior: `$host' |
| 1334 | # used to hold the argument of --host etc. |
| 1335 | # FIXME: To remove some day. |
| 1336 | build=$build_alias |
| 1337 | host=$host_alias |
| 1338 | target=$target_alias |
| 1339 | |
| 1340 | # FIXME: To remove some day. |
| 1341 | if test "x$host_alias" != x; then |
| 1342 | if test "x$build_alias" = x; then |
| 1343 | cross_compiling=maybe |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1344 | $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] | 1345 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1346 | elif test "x$build_alias" != "x$host_alias"; then |
| 1347 | cross_compiling=yes |
| 1348 | fi |
| 1349 | fi |
| 1350 | |
| 1351 | ac_tool_prefix= |
| 1352 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1353 | |
| 1354 | test "$silent" = yes && exec 6>/dev/null |
| 1355 | |
| 1356 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1357 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1358 | ac_ls_di=`ls -di .` && |
| 1359 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1360 | as_fn_error "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1361 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1362 | as_fn_error "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1363 | |
| 1364 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1365 | # Find the source files, if location was not specified. |
| 1366 | if test -z "$srcdir"; then |
| 1367 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1368 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1369 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1370 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1371 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1372 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1373 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1374 | $as_echo X"$as_myself" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1375 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1376 | s//\1/ |
| 1377 | q |
| 1378 | } |
| 1379 | /^X\(\/\/\)[^/].*/{ |
| 1380 | s//\1/ |
| 1381 | q |
| 1382 | } |
| 1383 | /^X\(\/\/\)$/{ |
| 1384 | s//\1/ |
| 1385 | q |
| 1386 | } |
| 1387 | /^X\(\/\).*/{ |
| 1388 | s//\1/ |
| 1389 | q |
| 1390 | } |
| 1391 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1392 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1393 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1394 | srcdir=.. |
| 1395 | fi |
| 1396 | else |
| 1397 | ac_srcdir_defaulted=no |
| 1398 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1399 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1400 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1401 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1402 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1403 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1404 | ac_abs_confdir=`( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1405 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1406 | pwd)` |
| 1407 | # When building in place, set srcdir=. |
| 1408 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1409 | srcdir=. |
| 1410 | fi |
| 1411 | # Remove unnecessary trailing slashes from srcdir. |
| 1412 | # Double slashes in file names in object file debugging info |
| 1413 | # mess up M-x gdb in Emacs. |
| 1414 | case $srcdir in |
| 1415 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1416 | esac |
| 1417 | for ac_var in $ac_precious_vars; do |
| 1418 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1419 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1420 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1421 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1422 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1423 | |
| 1424 | # |
| 1425 | # Report the --help message. |
| 1426 | # |
| 1427 | if test "$ac_init_help" = "long"; then |
| 1428 | # Omit some internal or obsolete options to make the list less imposing. |
| 1429 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1430 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1431 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1432 | |
| 1433 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1434 | |
| 1435 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1436 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1437 | |
| 1438 | Defaults for the options are specified in brackets. |
| 1439 | |
| 1440 | Configuration: |
| 1441 | -h, --help display this help and exit |
| 1442 | --help=short display options specific to this package |
| 1443 | --help=recursive display the short help of all the included packages |
| 1444 | -V, --version display version information and exit |
| 1445 | -q, --quiet, --silent do not print \`checking...' messages |
| 1446 | --cache-file=FILE cache test results in FILE [disabled] |
| 1447 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1448 | -n, --no-create do not create output files |
| 1449 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1450 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1451 | Installation directories: |
| 1452 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1453 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1454 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1455 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1456 | |
| 1457 | By default, \`make install' will install all the files in |
| 1458 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1459 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1460 | for instance \`--prefix=\$HOME'. |
| 1461 | |
| 1462 | For better control, use the options below. |
| 1463 | |
| 1464 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1465 | --bindir=DIR user executables [EPREFIX/bin] |
| 1466 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1467 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1468 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1469 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1470 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1471 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1472 | --includedir=DIR C header files [PREFIX/include] |
| 1473 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1474 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1475 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1476 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1477 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1478 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1479 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
| 1480 | --htmldir=DIR html documentation [DOCDIR] |
| 1481 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1482 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1483 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1484 | _ACEOF |
| 1485 | |
| 1486 | cat <<\_ACEOF |
| 1487 | |
| 1488 | Program names: |
| 1489 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1490 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1491 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1492 | |
| 1493 | System types: |
| 1494 | --build=BUILD configure for building on BUILD [guessed] |
| 1495 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1496 | _ACEOF |
| 1497 | fi |
| 1498 | |
| 1499 | if test -n "$ac_init_help"; then |
| 1500 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1501 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1502 | esac |
| 1503 | cat <<\_ACEOF |
| 1504 | |
| 1505 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1506 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1507 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1508 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1509 | --disable-dependency-tracking speeds up one-time build |
| 1510 | --enable-dependency-tracking do not reject slow dependency extractors |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1511 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1512 | --enable-static[=PKGS] build static libraries [default=yes] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1513 | --enable-fast-install[=PKGS] |
| 1514 | optimize for fast installation [default=yes] |
| 1515 | --disable-libtool-lock avoid locking (might break parallel builds) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1516 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1517 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1518 | |
| 1519 | Optional Packages: |
| 1520 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1521 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1522 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1523 | both] |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1524 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1525 | |
| 1526 | Some influential environment variables: |
| 1527 | CC C compiler command |
| 1528 | CFLAGS C compiler flags |
| 1529 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1530 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1531 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 1532 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1533 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1534 | CPP C preprocessor |
| 1535 | CXX C++ compiler command |
| 1536 | CXXFLAGS C++ compiler flags |
| 1537 | CXXCPP C++ preprocessor |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1538 | |
| 1539 | Use these variables to override the choices made by `configure' or to help |
| 1540 | it to find libraries and programs with nonstandard names/locations. |
| 1541 | |
| 1542 | Report bugs to <opensource@google.com>. |
| 1543 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1544 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1545 | fi |
| 1546 | |
| 1547 | if test "$ac_init_help" = "recursive"; then |
| 1548 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1549 | 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] | 1550 | test -d "$ac_dir" || |
| 1551 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1552 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1553 | ac_builddir=. |
| 1554 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1555 | case "$ac_dir" in |
| 1556 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1557 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1558 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1559 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1560 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1561 | case $ac_top_builddir_sub in |
| 1562 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1563 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1564 | esac ;; |
| 1565 | esac |
| 1566 | ac_abs_top_builddir=$ac_pwd |
| 1567 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1568 | # for backward compatibility: |
| 1569 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1570 | |
| 1571 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1572 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1573 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1574 | ac_top_srcdir=$ac_top_builddir_sub |
| 1575 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1576 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1577 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1578 | ac_top_srcdir=$srcdir |
| 1579 | ac_abs_top_srcdir=$srcdir ;; |
| 1580 | *) # Relative name. |
| 1581 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1582 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1583 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1584 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1585 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1586 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1587 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1588 | # Check for guested configure. |
| 1589 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1590 | echo && |
| 1591 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1592 | elif test -f "$ac_srcdir/configure"; then |
| 1593 | echo && |
| 1594 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1595 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1596 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1597 | fi || ac_status=$? |
| 1598 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1599 | done |
| 1600 | fi |
| 1601 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1602 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1603 | if $ac_init_version; then |
| 1604 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1605 | breakpad configure 0.1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 1606 | generated by GNU Autoconf 2.65 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1607 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1608 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1609 | This configure script is free software; the Free Software Foundation |
| 1610 | gives unlimited permission to copy, distribute and modify it. |
| 1611 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1612 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1613 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1614 | |
| 1615 | ## ------------------------ ## |
| 1616 | ## Autoconf initialization. ## |
| 1617 | ## ------------------------ ## |
| 1618 | |
| 1619 | # ac_fn_c_try_compile LINENO |
| 1620 | # -------------------------- |
| 1621 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1622 | ac_fn_c_try_compile () |
| 1623 | { |
| 1624 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1625 | rm -f conftest.$ac_objext |
| 1626 | if { { ac_try="$ac_compile" |
| 1627 | case "(($ac_try" in |
| 1628 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1629 | *) ac_try_echo=$ac_try;; |
| 1630 | esac |
| 1631 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1632 | $as_echo "$ac_try_echo"; } >&5 |
| 1633 | (eval "$ac_compile") 2>conftest.err |
| 1634 | ac_status=$? |
| 1635 | if test -s conftest.err; then |
| 1636 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1637 | cat conftest.er1 >&5 |
| 1638 | mv -f conftest.er1 conftest.err |
| 1639 | fi |
| 1640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1641 | test $ac_status = 0; } && { |
| 1642 | test -z "$ac_c_werror_flag" || |
| 1643 | test ! -s conftest.err |
| 1644 | } && test -s conftest.$ac_objext; then : |
| 1645 | ac_retval=0 |
| 1646 | else |
| 1647 | $as_echo "$as_me: failed program was:" >&5 |
| 1648 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1649 | |
| 1650 | ac_retval=1 |
| 1651 | fi |
| 1652 | 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^] | 1653 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1654 | |
| 1655 | } # ac_fn_c_try_compile |
| 1656 | |
| 1657 | # ac_fn_c_try_cpp LINENO |
| 1658 | # ---------------------- |
| 1659 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1660 | ac_fn_c_try_cpp () |
| 1661 | { |
| 1662 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1663 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1664 | case "(($ac_try" in |
| 1665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1666 | *) ac_try_echo=$ac_try;; |
| 1667 | esac |
| 1668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1669 | $as_echo "$ac_try_echo"; } >&5 |
| 1670 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1671 | ac_status=$? |
| 1672 | if test -s conftest.err; then |
| 1673 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1674 | cat conftest.er1 >&5 |
| 1675 | mv -f conftest.er1 conftest.err |
| 1676 | fi |
| 1677 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1678 | test $ac_status = 0; } >/dev/null && { |
| 1679 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1680 | test ! -s conftest.err |
| 1681 | }; then : |
| 1682 | ac_retval=0 |
| 1683 | else |
| 1684 | $as_echo "$as_me: failed program was:" >&5 |
| 1685 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1686 | |
| 1687 | ac_retval=1 |
| 1688 | fi |
| 1689 | 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^] | 1690 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1691 | |
| 1692 | } # ac_fn_c_try_cpp |
| 1693 | |
| 1694 | # ac_fn_cxx_try_compile LINENO |
| 1695 | # ---------------------------- |
| 1696 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1697 | ac_fn_cxx_try_compile () |
| 1698 | { |
| 1699 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1700 | rm -f conftest.$ac_objext |
| 1701 | if { { ac_try="$ac_compile" |
| 1702 | case "(($ac_try" in |
| 1703 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1704 | *) ac_try_echo=$ac_try;; |
| 1705 | esac |
| 1706 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1707 | $as_echo "$ac_try_echo"; } >&5 |
| 1708 | (eval "$ac_compile") 2>conftest.err |
| 1709 | ac_status=$? |
| 1710 | if test -s conftest.err; then |
| 1711 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1712 | cat conftest.er1 >&5 |
| 1713 | mv -f conftest.er1 conftest.err |
| 1714 | fi |
| 1715 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1716 | test $ac_status = 0; } && { |
| 1717 | test -z "$ac_cxx_werror_flag" || |
| 1718 | test ! -s conftest.err |
| 1719 | } && test -s conftest.$ac_objext; then : |
| 1720 | ac_retval=0 |
| 1721 | else |
| 1722 | $as_echo "$as_me: failed program was:" >&5 |
| 1723 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1724 | |
| 1725 | ac_retval=1 |
| 1726 | fi |
| 1727 | 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^] | 1728 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1729 | |
| 1730 | } # ac_fn_cxx_try_compile |
| 1731 | |
| 1732 | # ac_fn_c_try_link LINENO |
| 1733 | # ----------------------- |
| 1734 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1735 | ac_fn_c_try_link () |
| 1736 | { |
| 1737 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1738 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1739 | if { { ac_try="$ac_link" |
| 1740 | case "(($ac_try" in |
| 1741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1742 | *) ac_try_echo=$ac_try;; |
| 1743 | esac |
| 1744 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1745 | $as_echo "$ac_try_echo"; } >&5 |
| 1746 | (eval "$ac_link") 2>conftest.err |
| 1747 | ac_status=$? |
| 1748 | if test -s conftest.err; then |
| 1749 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1750 | cat conftest.er1 >&5 |
| 1751 | mv -f conftest.er1 conftest.err |
| 1752 | fi |
| 1753 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1754 | test $ac_status = 0; } && { |
| 1755 | test -z "$ac_c_werror_flag" || |
| 1756 | test ! -s conftest.err |
| 1757 | } && test -s conftest$ac_exeext && { |
| 1758 | test "$cross_compiling" = yes || |
| 1759 | $as_test_x conftest$ac_exeext |
| 1760 | }; then : |
| 1761 | ac_retval=0 |
| 1762 | else |
| 1763 | $as_echo "$as_me: failed program was:" >&5 |
| 1764 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1765 | |
| 1766 | ac_retval=1 |
| 1767 | fi |
| 1768 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1769 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1770 | # interfere with the next link command; also delete a directory that is |
| 1771 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1772 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1773 | 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^] | 1774 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1775 | |
| 1776 | } # ac_fn_c_try_link |
| 1777 | |
| 1778 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1779 | # ------------------------------------------------------- |
| 1780 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1781 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1782 | ac_fn_c_check_header_compile () |
| 1783 | { |
| 1784 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1786 | $as_echo_n "checking for $2... " >&6; } |
| 1787 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1788 | $as_echo_n "(cached) " >&6 |
| 1789 | else |
| 1790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1791 | /* end confdefs.h. */ |
| 1792 | $4 |
| 1793 | #include <$2> |
| 1794 | _ACEOF |
| 1795 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1796 | eval "$3=yes" |
| 1797 | else |
| 1798 | eval "$3=no" |
| 1799 | fi |
| 1800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1801 | fi |
| 1802 | eval ac_res=\$$3 |
| 1803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1804 | $as_echo "$ac_res" >&6; } |
| 1805 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1806 | |
| 1807 | } # ac_fn_c_check_header_compile |
| 1808 | |
| 1809 | # ac_fn_c_try_run LINENO |
| 1810 | # ---------------------- |
| 1811 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1812 | # that executables *can* be run. |
| 1813 | ac_fn_c_try_run () |
| 1814 | { |
| 1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1816 | if { { ac_try="$ac_link" |
| 1817 | case "(($ac_try" in |
| 1818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1819 | *) ac_try_echo=$ac_try;; |
| 1820 | esac |
| 1821 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1822 | $as_echo "$ac_try_echo"; } >&5 |
| 1823 | (eval "$ac_link") 2>&5 |
| 1824 | ac_status=$? |
| 1825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1826 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1827 | { { case "(($ac_try" in |
| 1828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1829 | *) ac_try_echo=$ac_try;; |
| 1830 | esac |
| 1831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1832 | $as_echo "$ac_try_echo"; } >&5 |
| 1833 | (eval "$ac_try") 2>&5 |
| 1834 | ac_status=$? |
| 1835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1836 | test $ac_status = 0; }; }; then : |
| 1837 | ac_retval=0 |
| 1838 | else |
| 1839 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1840 | $as_echo "$as_me: failed program was:" >&5 |
| 1841 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1842 | |
| 1843 | ac_retval=$ac_status |
| 1844 | fi |
| 1845 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1846 | 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^] | 1847 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1848 | |
| 1849 | } # ac_fn_c_try_run |
| 1850 | |
| 1851 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1852 | # ---------------------------------- |
| 1853 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1854 | ac_fn_c_check_func () |
| 1855 | { |
| 1856 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1857 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1858 | $as_echo_n "checking for $2... " >&6; } |
| 1859 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1860 | $as_echo_n "(cached) " >&6 |
| 1861 | else |
| 1862 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1863 | /* end confdefs.h. */ |
| 1864 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1865 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1866 | #define $2 innocuous_$2 |
| 1867 | |
| 1868 | /* System header to define __stub macros and hopefully few prototypes, |
| 1869 | which can conflict with char $2 (); below. |
| 1870 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1871 | <limits.h> exists even on freestanding compilers. */ |
| 1872 | |
| 1873 | #ifdef __STDC__ |
| 1874 | # include <limits.h> |
| 1875 | #else |
| 1876 | # include <assert.h> |
| 1877 | #endif |
| 1878 | |
| 1879 | #undef $2 |
| 1880 | |
| 1881 | /* Override any GCC internal prototype to avoid an error. |
| 1882 | Use char because int might match the return type of a GCC |
| 1883 | builtin and then its argument prototype would still apply. */ |
| 1884 | #ifdef __cplusplus |
| 1885 | extern "C" |
| 1886 | #endif |
| 1887 | char $2 (); |
| 1888 | /* The GNU C library defines this for functions which it implements |
| 1889 | to always fail with ENOSYS. Some functions are actually named |
| 1890 | something starting with __ and the normal name is an alias. */ |
| 1891 | #if defined __stub_$2 || defined __stub___$2 |
| 1892 | choke me |
| 1893 | #endif |
| 1894 | |
| 1895 | int |
| 1896 | main () |
| 1897 | { |
| 1898 | return $2 (); |
| 1899 | ; |
| 1900 | return 0; |
| 1901 | } |
| 1902 | _ACEOF |
| 1903 | if ac_fn_c_try_link "$LINENO"; then : |
| 1904 | eval "$3=yes" |
| 1905 | else |
| 1906 | eval "$3=no" |
| 1907 | fi |
| 1908 | rm -f core conftest.err conftest.$ac_objext \ |
| 1909 | conftest$ac_exeext conftest.$ac_ext |
| 1910 | fi |
| 1911 | eval ac_res=\$$3 |
| 1912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1913 | $as_echo "$ac_res" >&6; } |
| 1914 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1915 | |
| 1916 | } # ac_fn_c_check_func |
| 1917 | |
| 1918 | # ac_fn_cxx_try_cpp LINENO |
| 1919 | # ------------------------ |
| 1920 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1921 | ac_fn_cxx_try_cpp () |
| 1922 | { |
| 1923 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1924 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1925 | case "(($ac_try" in |
| 1926 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1927 | *) ac_try_echo=$ac_try;; |
| 1928 | esac |
| 1929 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1930 | $as_echo "$ac_try_echo"; } >&5 |
| 1931 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1932 | ac_status=$? |
| 1933 | if test -s conftest.err; then |
| 1934 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1935 | cat conftest.er1 >&5 |
| 1936 | mv -f conftest.er1 conftest.err |
| 1937 | fi |
| 1938 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1939 | test $ac_status = 0; } >/dev/null && { |
| 1940 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1941 | test ! -s conftest.err |
| 1942 | }; then : |
| 1943 | ac_retval=0 |
| 1944 | else |
| 1945 | $as_echo "$as_me: failed program was:" >&5 |
| 1946 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1947 | |
| 1948 | ac_retval=1 |
| 1949 | fi |
| 1950 | 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^] | 1951 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1952 | |
| 1953 | } # ac_fn_cxx_try_cpp |
| 1954 | |
| 1955 | # ac_fn_cxx_try_link LINENO |
| 1956 | # ------------------------- |
| 1957 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1958 | ac_fn_cxx_try_link () |
| 1959 | { |
| 1960 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1961 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1962 | if { { ac_try="$ac_link" |
| 1963 | case "(($ac_try" in |
| 1964 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1965 | *) ac_try_echo=$ac_try;; |
| 1966 | esac |
| 1967 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1968 | $as_echo "$ac_try_echo"; } >&5 |
| 1969 | (eval "$ac_link") 2>conftest.err |
| 1970 | ac_status=$? |
| 1971 | if test -s conftest.err; then |
| 1972 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1973 | cat conftest.er1 >&5 |
| 1974 | mv -f conftest.er1 conftest.err |
| 1975 | fi |
| 1976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1977 | test $ac_status = 0; } && { |
| 1978 | test -z "$ac_cxx_werror_flag" || |
| 1979 | test ! -s conftest.err |
| 1980 | } && test -s conftest$ac_exeext && { |
| 1981 | test "$cross_compiling" = yes || |
| 1982 | $as_test_x conftest$ac_exeext |
| 1983 | }; then : |
| 1984 | ac_retval=0 |
| 1985 | else |
| 1986 | $as_echo "$as_me: failed program was:" >&5 |
| 1987 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1988 | |
| 1989 | ac_retval=1 |
| 1990 | fi |
| 1991 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1992 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1993 | # interfere with the next link command; also delete a directory that is |
| 1994 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1995 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1996 | 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^] | 1997 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1998 | |
| 1999 | } # ac_fn_cxx_try_link |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2000 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2001 | This file contains any messages produced by compilers while |
| 2002 | running configure, to aid debugging if configure makes a mistake. |
| 2003 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2004 | It was created by breakpad $as_me 0.1, which was |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 2005 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2006 | |
| 2007 | $ $0 $@ |
| 2008 | |
| 2009 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2010 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2011 | { |
| 2012 | cat <<_ASUNAME |
| 2013 | ## --------- ## |
| 2014 | ## Platform. ## |
| 2015 | ## --------- ## |
| 2016 | |
| 2017 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2018 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2019 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2020 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2021 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2022 | |
| 2023 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2024 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2025 | |
| 2026 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2027 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2028 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2029 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2030 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2031 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2032 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2033 | |
| 2034 | _ASUNAME |
| 2035 | |
| 2036 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2037 | for as_dir in $PATH |
| 2038 | do |
| 2039 | IFS=$as_save_IFS |
| 2040 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2041 | $as_echo "PATH: $as_dir" |
| 2042 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2043 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2044 | |
| 2045 | } >&5 |
| 2046 | |
| 2047 | cat >&5 <<_ACEOF |
| 2048 | |
| 2049 | |
| 2050 | ## ----------- ## |
| 2051 | ## Core tests. ## |
| 2052 | ## ----------- ## |
| 2053 | |
| 2054 | _ACEOF |
| 2055 | |
| 2056 | |
| 2057 | # Keep a trace of the command line. |
| 2058 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2059 | # Strip out --silent because we don't want to record it for future runs. |
| 2060 | # Also quote any args containing shell meta-characters. |
| 2061 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2062 | ac_configure_args= |
| 2063 | ac_configure_args0= |
| 2064 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2065 | ac_must_keep_next=false |
| 2066 | for ac_pass in 1 2 |
| 2067 | do |
| 2068 | for ac_arg |
| 2069 | do |
| 2070 | case $ac_arg in |
| 2071 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2072 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2073 | | -silent | --silent | --silen | --sile | --sil) |
| 2074 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2075 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2076 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2077 | esac |
| 2078 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2079 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2080 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2081 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2082 | if test $ac_must_keep_next = true; then |
| 2083 | ac_must_keep_next=false # Got value, back to normal. |
| 2084 | else |
| 2085 | case $ac_arg in |
| 2086 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2087 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2088 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2089 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2090 | case "$ac_configure_args0 " in |
| 2091 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2092 | esac |
| 2093 | ;; |
| 2094 | -* ) ac_must_keep_next=true ;; |
| 2095 | esac |
| 2096 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2097 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2098 | ;; |
| 2099 | esac |
| 2100 | done |
| 2101 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2102 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2103 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2104 | |
| 2105 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2106 | # config.log. We remove comments because anyway the quotes in there |
| 2107 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2108 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2109 | # 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] | 2110 | trap 'exit_status=$? |
| 2111 | # Save into config.log some information that might help in debugging. |
| 2112 | { |
| 2113 | echo |
| 2114 | |
| 2115 | cat <<\_ASBOX |
| 2116 | ## ---------------- ## |
| 2117 | ## Cache variables. ## |
| 2118 | ## ---------------- ## |
| 2119 | _ASBOX |
| 2120 | echo |
| 2121 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2122 | ( |
| 2123 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2124 | eval ac_val=\$$ac_var |
| 2125 | case $ac_val in #( |
| 2126 | *${as_nl}*) |
| 2127 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2128 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2129 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2130 | esac |
| 2131 | case $ac_var in #( |
| 2132 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2133 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2134 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2135 | esac ;; |
| 2136 | esac |
| 2137 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2138 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2139 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2140 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2141 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2142 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2143 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2144 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2145 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2146 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2147 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2148 | esac | |
| 2149 | sort |
| 2150 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2151 | echo |
| 2152 | |
| 2153 | cat <<\_ASBOX |
| 2154 | ## ----------------- ## |
| 2155 | ## Output variables. ## |
| 2156 | ## ----------------- ## |
| 2157 | _ASBOX |
| 2158 | echo |
| 2159 | for ac_var in $ac_subst_vars |
| 2160 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2161 | eval ac_val=\$$ac_var |
| 2162 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2163 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2164 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2165 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2166 | done | sort |
| 2167 | echo |
| 2168 | |
| 2169 | if test -n "$ac_subst_files"; then |
| 2170 | cat <<\_ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2171 | ## ------------------- ## |
| 2172 | ## File substitutions. ## |
| 2173 | ## ------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2174 | _ASBOX |
| 2175 | echo |
| 2176 | for ac_var in $ac_subst_files |
| 2177 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2178 | eval ac_val=\$$ac_var |
| 2179 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2180 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2181 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2182 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2183 | done | sort |
| 2184 | echo |
| 2185 | fi |
| 2186 | |
| 2187 | if test -s confdefs.h; then |
| 2188 | cat <<\_ASBOX |
| 2189 | ## ----------- ## |
| 2190 | ## confdefs.h. ## |
| 2191 | ## ----------- ## |
| 2192 | _ASBOX |
| 2193 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2194 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2195 | echo |
| 2196 | fi |
| 2197 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2198 | $as_echo "$as_me: caught signal $ac_signal" |
| 2199 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2200 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2201 | rm -f core *.core core.conftest.* && |
| 2202 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2203 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2204 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2205 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2206 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2207 | done |
| 2208 | ac_signal=0 |
| 2209 | |
| 2210 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2211 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2212 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2213 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2214 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2215 | # Predefined preprocessor variables. |
| 2216 | |
| 2217 | cat >>confdefs.h <<_ACEOF |
| 2218 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2219 | _ACEOF |
| 2220 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2221 | cat >>confdefs.h <<_ACEOF |
| 2222 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2223 | _ACEOF |
| 2224 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2225 | cat >>confdefs.h <<_ACEOF |
| 2226 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2227 | _ACEOF |
| 2228 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2229 | cat >>confdefs.h <<_ACEOF |
| 2230 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2231 | _ACEOF |
| 2232 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2233 | cat >>confdefs.h <<_ACEOF |
| 2234 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2235 | _ACEOF |
| 2236 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2237 | cat >>confdefs.h <<_ACEOF |
| 2238 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2239 | _ACEOF |
| 2240 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2241 | |
| 2242 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2243 | # Prefer an explicitly selected file to automatically selected ones. |
| 2244 | ac_site_file1=NONE |
| 2245 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2246 | if test -n "$CONFIG_SITE"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2247 | ac_site_file1=$CONFIG_SITE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2248 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2249 | ac_site_file1=$prefix/share/config.site |
| 2250 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2251 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2252 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2253 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2254 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2255 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2256 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2257 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 2258 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2259 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2260 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2261 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2262 | . "$ac_site_file" |
| 2263 | fi |
| 2264 | done |
| 2265 | |
| 2266 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 2267 | # Some versions of bash will fail to source /dev/null (special files |
| 2268 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2269 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2270 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2271 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2272 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2273 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2274 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2275 | esac |
| 2276 | fi |
| 2277 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2278 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2279 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2280 | >$cache_file |
| 2281 | fi |
| 2282 | |
| 2283 | # Check that the precious variables saved in the cache have kept the same |
| 2284 | # value. |
| 2285 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2286 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2287 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2288 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2289 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2290 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2291 | case $ac_old_set,$ac_new_set in |
| 2292 | set,) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2293 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2294 | $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] | 2295 | ac_cache_corrupted=: ;; |
| 2296 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2297 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2298 | $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] | 2299 | ac_cache_corrupted=: ;; |
| 2300 | ,);; |
| 2301 | *) |
| 2302 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2303 | # differences in whitespace do not lead to failure. |
| 2304 | ac_old_val_w=`echo x $ac_old_val` |
| 2305 | ac_new_val_w=`echo x $ac_new_val` |
| 2306 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2308 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2309 | ac_cache_corrupted=: |
| 2310 | else |
| 2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2312 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2313 | eval $ac_var=\$ac_old_val |
| 2314 | fi |
| 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2316 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2317 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2318 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2319 | fi;; |
| 2320 | esac |
| 2321 | # Pass precious variables to config.status. |
| 2322 | if test "$ac_new_set" = set; then |
| 2323 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2324 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2325 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2326 | esac |
| 2327 | case " $ac_configure_args " in |
| 2328 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2329 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2330 | esac |
| 2331 | fi |
| 2332 | done |
| 2333 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2335 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2336 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2337 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2338 | 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] | 2339 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2340 | ## -------------------- ## |
| 2341 | ## Main body of script. ## |
| 2342 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2343 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2344 | ac_ext=c |
| 2345 | ac_cpp='$CPP $CPPFLAGS' |
| 2346 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2347 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2348 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2349 | |
| 2350 | |
| 2351 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2352 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2353 | for ac_dir in autotools "$srcdir"/autotools; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2354 | for ac_t in install-sh install.sh shtool; do |
| 2355 | if test -f "$ac_dir/$ac_t"; then |
| 2356 | ac_aux_dir=$ac_dir |
| 2357 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2358 | break 2 |
| 2359 | fi |
| 2360 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2361 | done |
| 2362 | if test -z "$ac_aux_dir"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2363 | 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] | 2364 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2365 | |
| 2366 | # These three variables are undocumented and unsupported, |
| 2367 | # and are intended to be withdrawn in a future Autoconf release. |
| 2368 | # They can cause serious problems if a builder's source tree is in a directory |
| 2369 | # whose full name contains unusual characters. |
| 2370 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2371 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2372 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2373 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2374 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2375 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2376 | am__api_version='1.11' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2377 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2378 | # Find a good install program. We prefer a C program (faster), |
| 2379 | # so one script is as good as another. But avoid the broken or |
| 2380 | # incompatible versions: |
| 2381 | # SysV /etc/install, /usr/sbin/install |
| 2382 | # SunOS /usr/etc/install |
| 2383 | # IRIX /sbin/install |
| 2384 | # AIX /bin/install |
| 2385 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2386 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2387 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2388 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2389 | # OS/2's system install, which has a completely different semantic |
| 2390 | # ./install, which can be erroneously created by make from ./install.sh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2391 | # Reject install programs that cannot install multiple files. |
| 2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2393 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2394 | if test -z "$INSTALL"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2395 | if test "${ac_cv_path_install+set}" = set; then : |
| 2396 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2397 | else |
| 2398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2399 | for as_dir in $PATH |
| 2400 | do |
| 2401 | IFS=$as_save_IFS |
| 2402 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2403 | # Account for people who put trailing slashes in PATH elements. |
| 2404 | case $as_dir/ in #(( |
| 2405 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2406 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2407 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2408 | /usr/ucb/* ) ;; |
| 2409 | *) |
| 2410 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2411 | # Don't use installbsd from OSF since it installs stuff as root |
| 2412 | # by default. |
| 2413 | for ac_prog in ginstall scoinst install; do |
| 2414 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2415 | 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] | 2416 | if test $ac_prog = install && |
| 2417 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2418 | # AIX install. It has an incompatible calling convention. |
| 2419 | : |
| 2420 | elif test $ac_prog = install && |
| 2421 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2422 | # program-specific install script used by HP pwplus--don't use. |
| 2423 | : |
| 2424 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2425 | rm -rf conftest.one conftest.two conftest.dir |
| 2426 | echo one > conftest.one |
| 2427 | echo two > conftest.two |
| 2428 | mkdir conftest.dir |
| 2429 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2430 | test -s conftest.one && test -s conftest.two && |
| 2431 | test -s conftest.dir/conftest.one && |
| 2432 | test -s conftest.dir/conftest.two |
| 2433 | then |
| 2434 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2435 | break 3 |
| 2436 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2437 | fi |
| 2438 | fi |
| 2439 | done |
| 2440 | done |
| 2441 | ;; |
| 2442 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2443 | |
| 2444 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2445 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2446 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2447 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2448 | |
| 2449 | fi |
| 2450 | if test "${ac_cv_path_install+set}" = set; then |
| 2451 | INSTALL=$ac_cv_path_install |
| 2452 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2453 | # As a last resort, use the slow shell script. Don't cache a |
| 2454 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2455 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2456 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2457 | INSTALL=$ac_install_sh |
| 2458 | fi |
| 2459 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2461 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2462 | |
| 2463 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2464 | # It thinks the first close brace ends the variable substitution. |
| 2465 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2466 | |
| 2467 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2468 | |
| 2469 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2470 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2472 | $as_echo_n "checking whether build environment is sane... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2473 | # Just in case |
| 2474 | sleep 1 |
| 2475 | echo timestamp > conftest.file |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2476 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2477 | # name. Accept space and tab only in the latter. |
| 2478 | am_lf=' |
| 2479 | ' |
| 2480 | case `pwd` in |
| 2481 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2482 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| 2483 | esac |
| 2484 | case $srcdir in |
| 2485 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2486 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 2487 | esac |
| 2488 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2489 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2490 | # arguments. Must try -L first in case configure is actually a |
| 2491 | # symlink; some systems play weird games with the mod time of symlinks |
| 2492 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2493 | # directory). |
| 2494 | if ( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2495 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2496 | if test "$*" = "X"; then |
| 2497 | # -L didn't work. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2498 | set X `ls -t "$srcdir/configure" conftest.file` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2499 | fi |
| 2500 | rm -f conftest.file |
| 2501 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2502 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2503 | |
| 2504 | # If neither matched, then we have a broken ls. This can happen |
| 2505 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2506 | # broken ls alias from the environment. This has actually |
| 2507 | # happened. Such a system could not be considered "sane". |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2508 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 2509 | alias in your environment" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2510 | fi |
| 2511 | |
| 2512 | test "$2" = conftest.file |
| 2513 | ) |
| 2514 | then |
| 2515 | # Ok. |
| 2516 | : |
| 2517 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2518 | as_fn_error "newly created file is older than distributed files! |
| 2519 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2520 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2522 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2523 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2524 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2525 | # Use a double $ so make ignores it. |
| 2526 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2527 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2528 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2529 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2530 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2531 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2532 | |
| 2533 | # expand $ac_aux_dir to an absolute path |
| 2534 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2535 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2536 | if test x"${MISSING+set}" != xset; then |
| 2537 | case $am_aux_dir in |
| 2538 | *\ * | *\ *) |
| 2539 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2540 | *) |
| 2541 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2542 | esac |
| 2543 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2544 | # Use eval to expand $SHELL |
| 2545 | if eval "$MISSING --run true"; then |
| 2546 | am_missing_run="$MISSING --run " |
| 2547 | else |
| 2548 | am_missing_run= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2549 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2550 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2551 | fi |
| 2552 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2553 | if test x"${install_sh}" != xset; then |
| 2554 | case $am_aux_dir in |
| 2555 | *\ * | *\ *) |
| 2556 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2557 | *) |
| 2558 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2559 | esac |
| 2560 | fi |
| 2561 | |
| 2562 | # Installed binaries are usually stripped using `strip' when the user |
| 2563 | # run `make install-strip'. However `strip' might not be the right |
| 2564 | # tool to use in cross-compilation environments, therefore Automake |
| 2565 | # will honor the `STRIP' environment variable to overrule this program. |
| 2566 | if test "$cross_compiling" != no; then |
| 2567 | if test -n "$ac_tool_prefix"; then |
| 2568 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2569 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2571 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2572 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 2573 | $as_echo_n "(cached) " >&6 |
| 2574 | else |
| 2575 | if test -n "$STRIP"; then |
| 2576 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2577 | else |
| 2578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2579 | for as_dir in $PATH |
| 2580 | do |
| 2581 | IFS=$as_save_IFS |
| 2582 | test -z "$as_dir" && as_dir=. |
| 2583 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2584 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2585 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2586 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2587 | break 2 |
| 2588 | fi |
| 2589 | done |
| 2590 | done |
| 2591 | IFS=$as_save_IFS |
| 2592 | |
| 2593 | fi |
| 2594 | fi |
| 2595 | STRIP=$ac_cv_prog_STRIP |
| 2596 | if test -n "$STRIP"; then |
| 2597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2598 | $as_echo "$STRIP" >&6; } |
| 2599 | else |
| 2600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2601 | $as_echo "no" >&6; } |
| 2602 | fi |
| 2603 | |
| 2604 | |
| 2605 | fi |
| 2606 | if test -z "$ac_cv_prog_STRIP"; then |
| 2607 | ac_ct_STRIP=$STRIP |
| 2608 | # Extract the first word of "strip", so it can be a program name with args. |
| 2609 | set dummy strip; ac_word=$2 |
| 2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2611 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2612 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 2613 | $as_echo_n "(cached) " >&6 |
| 2614 | else |
| 2615 | if test -n "$ac_ct_STRIP"; then |
| 2616 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2617 | else |
| 2618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2619 | for as_dir in $PATH |
| 2620 | do |
| 2621 | IFS=$as_save_IFS |
| 2622 | test -z "$as_dir" && as_dir=. |
| 2623 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2624 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2625 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2626 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2627 | break 2 |
| 2628 | fi |
| 2629 | done |
| 2630 | done |
| 2631 | IFS=$as_save_IFS |
| 2632 | |
| 2633 | fi |
| 2634 | fi |
| 2635 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2636 | if test -n "$ac_ct_STRIP"; then |
| 2637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2638 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2639 | else |
| 2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2641 | $as_echo "no" >&6; } |
| 2642 | fi |
| 2643 | |
| 2644 | if test "x$ac_ct_STRIP" = x; then |
| 2645 | STRIP=":" |
| 2646 | else |
| 2647 | case $cross_compiling:$ac_tool_warned in |
| 2648 | yes:) |
| 2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2650 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2651 | ac_tool_warned=yes ;; |
| 2652 | esac |
| 2653 | STRIP=$ac_ct_STRIP |
| 2654 | fi |
| 2655 | else |
| 2656 | STRIP="$ac_cv_prog_STRIP" |
| 2657 | fi |
| 2658 | |
| 2659 | fi |
| 2660 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2661 | |
| 2662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2663 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2664 | if test -z "$MKDIR_P"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2665 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| 2666 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2667 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2669 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2670 | do |
| 2671 | IFS=$as_save_IFS |
| 2672 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2673 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2674 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2675 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2676 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2677 | 'mkdir (GNU coreutils) '* | \ |
| 2678 | 'mkdir (coreutils) '* | \ |
| 2679 | 'mkdir (fileutils) '4.1*) |
| 2680 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2681 | break 3;; |
| 2682 | esac |
| 2683 | done |
| 2684 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2685 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2686 | IFS=$as_save_IFS |
| 2687 | |
| 2688 | fi |
| 2689 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 2690 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2691 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2692 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2693 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2694 | # As a last resort, use the slow shell script. Don't cache a |
| 2695 | # value for MKDIR_P within a source directory, because that will |
| 2696 | # break other packages using the cache if that directory is |
| 2697 | # removed, or if the value is a relative name. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2698 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2699 | fi |
| 2700 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2702 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2703 | |
| 2704 | mkdir_p="$MKDIR_P" |
| 2705 | case $mkdir_p in |
| 2706 | [\\/$]* | ?:[\\/]*) ;; |
| 2707 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2708 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2709 | |
| 2710 | for ac_prog in gawk mawk nawk awk |
| 2711 | do |
| 2712 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2713 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2715 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2716 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| 2717 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2718 | else |
| 2719 | if test -n "$AWK"; then |
| 2720 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2721 | else |
| 2722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2723 | for as_dir in $PATH |
| 2724 | do |
| 2725 | IFS=$as_save_IFS |
| 2726 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2727 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2728 | 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] | 2729 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2730 | $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] | 2731 | break 2 |
| 2732 | fi |
| 2733 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2734 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2735 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2736 | |
| 2737 | fi |
| 2738 | fi |
| 2739 | AWK=$ac_cv_prog_AWK |
| 2740 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2742 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2743 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2745 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2746 | fi |
| 2747 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2748 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2749 | test -n "$AWK" && break |
| 2750 | done |
| 2751 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2753 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2754 | set x ${MAKE-make} |
| 2755 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2756 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2757 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2758 | else |
| 2759 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2760 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2761 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2762 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2763 | _ACEOF |
| 2764 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2765 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2766 | *@@@%%%=?*=@@@%%%*) |
| 2767 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2768 | *) |
| 2769 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2770 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2771 | rm -f conftest.make |
| 2772 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2773 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2775 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2776 | SET_MAKE= |
| 2777 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2779 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2780 | SET_MAKE="MAKE=${MAKE-make}" |
| 2781 | fi |
| 2782 | |
| 2783 | rm -rf .tst 2>/dev/null |
| 2784 | mkdir .tst 2>/dev/null |
| 2785 | if test -d .tst; then |
| 2786 | am__leading_dot=. |
| 2787 | else |
| 2788 | am__leading_dot=_ |
| 2789 | fi |
| 2790 | rmdir .tst 2>/dev/null |
| 2791 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2792 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2793 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2794 | # is not polluted with repeated "-I." |
| 2795 | am__isrc=' -I$(srcdir)' |
| 2796 | # test to see if srcdir already configured |
| 2797 | if test -f $srcdir/config.status; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2798 | 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] | 2799 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2800 | fi |
| 2801 | |
| 2802 | # test whether we have cygpath |
| 2803 | if test -z "$CYGPATH_W"; then |
| 2804 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2805 | CYGPATH_W='cygpath -w' |
| 2806 | else |
| 2807 | CYGPATH_W=echo |
| 2808 | fi |
| 2809 | fi |
| 2810 | |
| 2811 | |
| 2812 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2813 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2814 | VERSION='0.1' |
| 2815 | |
| 2816 | |
| 2817 | cat >>confdefs.h <<_ACEOF |
| 2818 | #define PACKAGE "$PACKAGE" |
| 2819 | _ACEOF |
| 2820 | |
| 2821 | |
| 2822 | cat >>confdefs.h <<_ACEOF |
| 2823 | #define VERSION "$VERSION" |
| 2824 | _ACEOF |
| 2825 | |
| 2826 | # Some tools Automake needs. |
| 2827 | |
| 2828 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2829 | |
| 2830 | |
| 2831 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2832 | |
| 2833 | |
| 2834 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2835 | |
| 2836 | |
| 2837 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2838 | |
| 2839 | |
| 2840 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2841 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2842 | # We need awk for the "check" target. The system "awk" is bad on |
| 2843 | # some platforms. |
| 2844 | # Always define AMTAR for backward compatibility. |
| 2845 | |
| 2846 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2847 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2848 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2849 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 2850 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2851 | # Loop over all known methods to create a tar archive until one works. |
| 2852 | _am_tools='gnutar plaintar pax cpio none' |
| 2853 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2854 | # Do not fold the above two line into one, because Tru64 sh and |
| 2855 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 2856 | for _am_tool in $_am_tools |
| 2857 | do |
| 2858 | case $_am_tool in |
| 2859 | gnutar) |
| 2860 | for _am_tar in tar gnutar gtar; |
| 2861 | do |
| 2862 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 2863 | ($_am_tar --version) >&5 2>&5 |
| 2864 | ac_status=$? |
| 2865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2866 | (exit $ac_status); } && break |
| 2867 | done |
| 2868 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 2869 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 2870 | am__untar="$_am_tar -xf -" |
| 2871 | ;; |
| 2872 | plaintar) |
| 2873 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 2874 | # ustar tarball either. |
| 2875 | (tar --version) >/dev/null 2>&1 && continue |
| 2876 | am__tar='tar chf - "$$tardir"' |
| 2877 | am__tar_='tar chf - "$tardir"' |
| 2878 | am__untar='tar xf -' |
| 2879 | ;; |
| 2880 | pax) |
| 2881 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 2882 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 2883 | am__untar='pax -r' |
| 2884 | ;; |
| 2885 | cpio) |
| 2886 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 2887 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 2888 | am__untar='cpio -i -H ustar -d' |
| 2889 | ;; |
| 2890 | none) |
| 2891 | am__tar=false |
| 2892 | am__tar_=false |
| 2893 | am__untar=false |
| 2894 | ;; |
| 2895 | esac |
| 2896 | |
| 2897 | # If the value was cached, stop now. We just wanted to have am__tar |
| 2898 | # and am__untar set. |
| 2899 | test -n "${am_cv_prog_tar_ustar}" && break |
| 2900 | |
| 2901 | # tar/untar a dummy directory, and stop if the command works |
| 2902 | rm -rf conftest.dir |
| 2903 | mkdir conftest.dir |
| 2904 | echo GrepMe > conftest.dir/file |
| 2905 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 2906 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 2907 | ac_status=$? |
| 2908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2909 | (exit $ac_status); } |
| 2910 | rm -rf conftest.dir |
| 2911 | if test -s conftest.tar; then |
| 2912 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 2913 | ($am__untar <conftest.tar) >&5 2>&5 |
| 2914 | ac_status=$? |
| 2915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2916 | (exit $ac_status); } |
| 2917 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 2918 | fi |
| 2919 | done |
| 2920 | rm -rf conftest.dir |
| 2921 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2922 | if test "${am_cv_prog_tar_ustar+set}" = set; then : |
| 2923 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2924 | else |
| 2925 | am_cv_prog_tar_ustar=$_am_tool |
| 2926 | fi |
| 2927 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 2929 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2930 | |
| 2931 | |
| 2932 | |
| 2933 | |
| 2934 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2935 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2936 | |
| 2937 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2938 | ac_ext=c |
| 2939 | ac_cpp='$CPP $CPPFLAGS' |
| 2940 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2941 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2942 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2943 | if test -n "$ac_tool_prefix"; then |
| 2944 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2945 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2947 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2948 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 2949 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2950 | else |
| 2951 | if test -n "$CC"; then |
| 2952 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2953 | else |
| 2954 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2955 | for as_dir in $PATH |
| 2956 | do |
| 2957 | IFS=$as_save_IFS |
| 2958 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2959 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2960 | 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] | 2961 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2962 | $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] | 2963 | break 2 |
| 2964 | fi |
| 2965 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2966 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2967 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2968 | |
| 2969 | fi |
| 2970 | fi |
| 2971 | CC=$ac_cv_prog_CC |
| 2972 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2973 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2974 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2975 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2977 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2978 | fi |
| 2979 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2980 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2981 | fi |
| 2982 | if test -z "$ac_cv_prog_CC"; then |
| 2983 | ac_ct_CC=$CC |
| 2984 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2985 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2987 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2988 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 2989 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2990 | else |
| 2991 | if test -n "$ac_ct_CC"; then |
| 2992 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2993 | else |
| 2994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2995 | for as_dir in $PATH |
| 2996 | do |
| 2997 | IFS=$as_save_IFS |
| 2998 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2999 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3000 | 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] | 3001 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3002 | $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] | 3003 | break 2 |
| 3004 | fi |
| 3005 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3006 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3007 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3008 | |
| 3009 | fi |
| 3010 | fi |
| 3011 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3012 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3014 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3015 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3017 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3018 | fi |
| 3019 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3020 | if test "x$ac_ct_CC" = x; then |
| 3021 | CC="" |
| 3022 | else |
| 3023 | case $cross_compiling:$ac_tool_warned in |
| 3024 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3026 | $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] | 3027 | ac_tool_warned=yes ;; |
| 3028 | esac |
| 3029 | CC=$ac_ct_CC |
| 3030 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3031 | else |
| 3032 | CC="$ac_cv_prog_CC" |
| 3033 | fi |
| 3034 | |
| 3035 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3036 | if test -n "$ac_tool_prefix"; then |
| 3037 | # 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] | 3038 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3040 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3041 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3042 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3043 | else |
| 3044 | if test -n "$CC"; then |
| 3045 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3046 | else |
| 3047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3048 | for as_dir in $PATH |
| 3049 | do |
| 3050 | IFS=$as_save_IFS |
| 3051 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3052 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3053 | 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] | 3054 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3055 | $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] | 3056 | break 2 |
| 3057 | fi |
| 3058 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3059 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3060 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3061 | |
| 3062 | fi |
| 3063 | fi |
| 3064 | CC=$ac_cv_prog_CC |
| 3065 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3067 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3068 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3070 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3071 | fi |
| 3072 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3073 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3074 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3075 | fi |
| 3076 | if test -z "$CC"; then |
| 3077 | # Extract the first word of "cc", so it can be a program name with args. |
| 3078 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3080 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3081 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3082 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3083 | else |
| 3084 | if test -n "$CC"; then |
| 3085 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3086 | else |
| 3087 | ac_prog_rejected=no |
| 3088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3089 | for as_dir in $PATH |
| 3090 | do |
| 3091 | IFS=$as_save_IFS |
| 3092 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3093 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3094 | 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] | 3095 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3096 | ac_prog_rejected=yes |
| 3097 | continue |
| 3098 | fi |
| 3099 | ac_cv_prog_CC="cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3100 | $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] | 3101 | break 2 |
| 3102 | fi |
| 3103 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3104 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3105 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3106 | |
| 3107 | if test $ac_prog_rejected = yes; then |
| 3108 | # We found a bogon in the path, so make sure we never use it. |
| 3109 | set dummy $ac_cv_prog_CC |
| 3110 | shift |
| 3111 | if test $# != 0; then |
| 3112 | # We chose a different compiler from the bogus one. |
| 3113 | # However, it has the same basename, so the bogon will be chosen |
| 3114 | # first if we set CC to just the basename; use the full file name. |
| 3115 | shift |
| 3116 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3117 | fi |
| 3118 | fi |
| 3119 | fi |
| 3120 | fi |
| 3121 | CC=$ac_cv_prog_CC |
| 3122 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3123 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3124 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3125 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3127 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3128 | fi |
| 3129 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3130 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3131 | fi |
| 3132 | if test -z "$CC"; then |
| 3133 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3134 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3135 | do |
| 3136 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3137 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3139 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3140 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3141 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3142 | else |
| 3143 | if test -n "$CC"; then |
| 3144 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3145 | else |
| 3146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3147 | for as_dir in $PATH |
| 3148 | do |
| 3149 | IFS=$as_save_IFS |
| 3150 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3151 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3152 | 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] | 3153 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3154 | $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] | 3155 | break 2 |
| 3156 | fi |
| 3157 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3158 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3159 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3160 | |
| 3161 | fi |
| 3162 | fi |
| 3163 | CC=$ac_cv_prog_CC |
| 3164 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3166 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3167 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3169 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3170 | fi |
| 3171 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3172 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3173 | test -n "$CC" && break |
| 3174 | done |
| 3175 | fi |
| 3176 | if test -z "$CC"; then |
| 3177 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3178 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3179 | do |
| 3180 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3181 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3183 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3184 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3185 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3186 | else |
| 3187 | if test -n "$ac_ct_CC"; then |
| 3188 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3189 | else |
| 3190 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3191 | for as_dir in $PATH |
| 3192 | do |
| 3193 | IFS=$as_save_IFS |
| 3194 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3195 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3196 | 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] | 3197 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3198 | $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] | 3199 | break 2 |
| 3200 | fi |
| 3201 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3202 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3203 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3204 | |
| 3205 | fi |
| 3206 | fi |
| 3207 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3208 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3210 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3211 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3213 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3214 | fi |
| 3215 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3216 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3217 | test -n "$ac_ct_CC" && break |
| 3218 | done |
| 3219 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3220 | if test "x$ac_ct_CC" = x; then |
| 3221 | CC="" |
| 3222 | else |
| 3223 | case $cross_compiling:$ac_tool_warned in |
| 3224 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3225 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3226 | $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] | 3227 | ac_tool_warned=yes ;; |
| 3228 | esac |
| 3229 | CC=$ac_ct_CC |
| 3230 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3231 | fi |
| 3232 | |
| 3233 | fi |
| 3234 | |
| 3235 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3236 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3237 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3238 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3239 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3240 | |
| 3241 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3242 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3243 | set X $ac_compile |
| 3244 | ac_compiler=$2 |
| 3245 | for ac_option in --version -v -V -qversion; do |
| 3246 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3247 | case "(($ac_try" in |
| 3248 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3249 | *) ac_try_echo=$ac_try;; |
| 3250 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3251 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3252 | $as_echo "$ac_try_echo"; } >&5 |
| 3253 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3254 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3255 | if test -s conftest.err; then |
| 3256 | sed '10a\ |
| 3257 | ... rest of stderr output deleted ... |
| 3258 | 10q' conftest.err >conftest.er1 |
| 3259 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3260 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 3261 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3262 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3263 | test $ac_status = 0; } |
| 3264 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3265 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3266 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3267 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 3268 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3269 | int |
| 3270 | main () |
| 3271 | { |
| 3272 | |
| 3273 | ; |
| 3274 | return 0; |
| 3275 | } |
| 3276 | _ACEOF |
| 3277 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 3278 | 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] | 3279 | # Try to create an executable without -o first, disregard a.out. |
| 3280 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3281 | # of exeext. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 3282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3283 | $as_echo_n "checking whether the C compiler works... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3284 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3285 | |
| 3286 | # The possible output files: |
| 3287 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3288 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3289 | ac_rmfiles= |
| 3290 | for ac_file in $ac_files |
| 3291 | do |
| 3292 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3293 | *.$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] | 3294 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3295 | esac |
| 3296 | done |
| 3297 | rm -f $ac_rmfiles |
| 3298 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3299 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3300 | case "(($ac_try" in |
| 3301 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3302 | *) ac_try_echo=$ac_try;; |
| 3303 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3304 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3305 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3306 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3307 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3308 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3309 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3310 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3311 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3312 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3313 | # so that the user can short-circuit this test for compilers unknown to |
| 3314 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3315 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3316 | do |
| 3317 | test -f "$ac_file" || continue |
| 3318 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3319 | *.$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] | 3320 | ;; |
| 3321 | [ab].out ) |
| 3322 | # We found the default executable, but exeext='' is most |
| 3323 | # certainly right. |
| 3324 | break;; |
| 3325 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3326 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3327 | then :; else |
| 3328 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3329 | fi |
| 3330 | # We set ac_cv_exeext here because the later test for it is not |
| 3331 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3332 | # argument, so we may need to know it at that point already. |
| 3333 | # Even if this section looks crufty: it has the advantage of |
| 3334 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3335 | break;; |
| 3336 | * ) |
| 3337 | break;; |
| 3338 | esac |
| 3339 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3340 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3341 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3342 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3343 | ac_file='' |
| 3344 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3345 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3347 | $as_echo "no" >&6; } |
| 3348 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3349 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3350 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3351 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3352 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3353 | { as_fn_set_status 77 |
| 3354 | as_fn_error "C compiler cannot create executables |
| 3355 | See \`config.log' for more details." "$LINENO" 5; }; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 3356 | else |
| 3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3358 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3359 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 3360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3361 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3363 | $as_echo "$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3364 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3365 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 3366 | 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] | 3367 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3369 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3370 | if { { ac_try="$ac_link" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3371 | case "(($ac_try" in |
| 3372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3373 | *) ac_try_echo=$ac_try;; |
| 3374 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3375 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3376 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3377 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3378 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3379 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3380 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3381 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3382 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3383 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3384 | # `rm'. |
| 3385 | for ac_file in conftest.exe conftest conftest.*; do |
| 3386 | test -f "$ac_file" || continue |
| 3387 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3388 | *.$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] | 3389 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3390 | break;; |
| 3391 | * ) break;; |
| 3392 | esac |
| 3393 | done |
| 3394 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3395 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3396 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3397 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3398 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3399 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 3400 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3402 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3403 | |
| 3404 | rm -f conftest.$ac_ext |
| 3405 | EXEEXT=$ac_cv_exeext |
| 3406 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 3407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3408 | /* end confdefs.h. */ |
| 3409 | #include <stdio.h> |
| 3410 | int |
| 3411 | main () |
| 3412 | { |
| 3413 | FILE *f = fopen ("conftest.out", "w"); |
| 3414 | return ferror (f) || fclose (f) != 0; |
| 3415 | |
| 3416 | ; |
| 3417 | return 0; |
| 3418 | } |
| 3419 | _ACEOF |
| 3420 | ac_clean_files="$ac_clean_files conftest.out" |
| 3421 | # Check that the compiler produces executables we can run. If not, either |
| 3422 | # the compiler is broken, or we cross compile. |
| 3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3424 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3425 | if test "$cross_compiling" != yes; then |
| 3426 | { { ac_try="$ac_link" |
| 3427 | case "(($ac_try" in |
| 3428 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3429 | *) ac_try_echo=$ac_try;; |
| 3430 | esac |
| 3431 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3432 | $as_echo "$ac_try_echo"; } >&5 |
| 3433 | (eval "$ac_link") 2>&5 |
| 3434 | ac_status=$? |
| 3435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3436 | test $ac_status = 0; } |
| 3437 | if { ac_try='./conftest$ac_cv_exeext' |
| 3438 | { { case "(($ac_try" in |
| 3439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3440 | *) ac_try_echo=$ac_try;; |
| 3441 | esac |
| 3442 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3443 | $as_echo "$ac_try_echo"; } >&5 |
| 3444 | (eval "$ac_try") 2>&5 |
| 3445 | ac_status=$? |
| 3446 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3447 | test $ac_status = 0; }; }; then |
| 3448 | cross_compiling=no |
| 3449 | else |
| 3450 | if test "$cross_compiling" = maybe; then |
| 3451 | cross_compiling=yes |
| 3452 | else |
| 3453 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3454 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3455 | as_fn_error "cannot run C compiled programs. |
| 3456 | If you meant to cross compile, use \`--host'. |
| 3457 | See \`config.log' for more details." "$LINENO" 5; } |
| 3458 | fi |
| 3459 | fi |
| 3460 | fi |
| 3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3462 | $as_echo "$cross_compiling" >&6; } |
| 3463 | |
| 3464 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3465 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3467 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3468 | if test "${ac_cv_objext+set}" = set; then : |
| 3469 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3470 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3471 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3472 | /* end confdefs.h. */ |
| 3473 | |
| 3474 | int |
| 3475 | main () |
| 3476 | { |
| 3477 | |
| 3478 | ; |
| 3479 | return 0; |
| 3480 | } |
| 3481 | _ACEOF |
| 3482 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3483 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3484 | case "(($ac_try" in |
| 3485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3486 | *) ac_try_echo=$ac_try;; |
| 3487 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3488 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3489 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3490 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3491 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3492 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3493 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3494 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3495 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3496 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3497 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3498 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3499 | break;; |
| 3500 | esac |
| 3501 | done |
| 3502 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3503 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3504 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3505 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3506 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3507 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3508 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3509 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3510 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3511 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3512 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3514 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3515 | OBJEXT=$ac_cv_objext |
| 3516 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3518 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3519 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3520 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3521 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3522 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3523 | /* end confdefs.h. */ |
| 3524 | |
| 3525 | int |
| 3526 | main () |
| 3527 | { |
| 3528 | #ifndef __GNUC__ |
| 3529 | choke me |
| 3530 | #endif |
| 3531 | |
| 3532 | ; |
| 3533 | return 0; |
| 3534 | } |
| 3535 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3536 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3537 | ac_compiler_gnu=yes |
| 3538 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3539 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3540 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3541 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3542 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3543 | |
| 3544 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3546 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3547 | if test $ac_compiler_gnu = yes; then |
| 3548 | GCC=yes |
| 3549 | else |
| 3550 | GCC= |
| 3551 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3552 | ac_test_CFLAGS=${CFLAGS+set} |
| 3553 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3554 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3555 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3556 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3557 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3558 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3559 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3560 | ac_c_werror_flag=yes |
| 3561 | ac_cv_prog_cc_g=no |
| 3562 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3563 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3564 | /* end confdefs.h. */ |
| 3565 | |
| 3566 | int |
| 3567 | main () |
| 3568 | { |
| 3569 | |
| 3570 | ; |
| 3571 | return 0; |
| 3572 | } |
| 3573 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3574 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3575 | ac_cv_prog_cc_g=yes |
| 3576 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3577 | CFLAGS="" |
| 3578 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3579 | /* end confdefs.h. */ |
| 3580 | |
| 3581 | int |
| 3582 | main () |
| 3583 | { |
| 3584 | |
| 3585 | ; |
| 3586 | return 0; |
| 3587 | } |
| 3588 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3589 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3590 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3591 | else |
| 3592 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3593 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3594 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3595 | /* end confdefs.h. */ |
| 3596 | |
| 3597 | int |
| 3598 | main () |
| 3599 | { |
| 3600 | |
| 3601 | ; |
| 3602 | return 0; |
| 3603 | } |
| 3604 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3605 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3606 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3607 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3608 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3609 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3610 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3611 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3613 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3614 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3616 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3617 | if test "$ac_test_CFLAGS" = set; then |
| 3618 | CFLAGS=$ac_save_CFLAGS |
| 3619 | elif test $ac_cv_prog_cc_g = yes; then |
| 3620 | if test "$GCC" = yes; then |
| 3621 | CFLAGS="-g -O2" |
| 3622 | else |
| 3623 | CFLAGS="-g" |
| 3624 | fi |
| 3625 | else |
| 3626 | if test "$GCC" = yes; then |
| 3627 | CFLAGS="-O2" |
| 3628 | else |
| 3629 | CFLAGS= |
| 3630 | fi |
| 3631 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3633 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3634 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3635 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3636 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3637 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3638 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3639 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3640 | /* end confdefs.h. */ |
| 3641 | #include <stdarg.h> |
| 3642 | #include <stdio.h> |
| 3643 | #include <sys/types.h> |
| 3644 | #include <sys/stat.h> |
| 3645 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3646 | struct buf { int x; }; |
| 3647 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3648 | static char *e (p, i) |
| 3649 | char **p; |
| 3650 | int i; |
| 3651 | { |
| 3652 | return p[i]; |
| 3653 | } |
| 3654 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3655 | { |
| 3656 | char *s; |
| 3657 | va_list v; |
| 3658 | va_start (v,p); |
| 3659 | s = g (p, va_arg (v,int)); |
| 3660 | va_end (v); |
| 3661 | return s; |
| 3662 | } |
| 3663 | |
| 3664 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3665 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3666 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3667 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3668 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3669 | 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] | 3670 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3671 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3672 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3673 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3674 | inside strings and character constants. */ |
| 3675 | #define FOO(x) 'x' |
| 3676 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3677 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3678 | int test (int i, double x); |
| 3679 | struct s1 {int (*f) (int a);}; |
| 3680 | struct s2 {int (*f) (double a);}; |
| 3681 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3682 | int argc; |
| 3683 | char **argv; |
| 3684 | int |
| 3685 | main () |
| 3686 | { |
| 3687 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3688 | ; |
| 3689 | return 0; |
| 3690 | } |
| 3691 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3692 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3693 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3694 | do |
| 3695 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3696 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3697 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3698 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3699 | rm -f core conftest.err conftest.$ac_objext |
| 3700 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3701 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3702 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3703 | CC=$ac_save_CC |
| 3704 | |
| 3705 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3706 | # AC_CACHE_VAL |
| 3707 | case "x$ac_cv_prog_cc_c89" in |
| 3708 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3710 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3711 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3713 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3714 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3715 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3717 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3718 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3719 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3720 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3721 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3722 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3723 | ac_ext=c |
| 3724 | ac_cpp='$CPP $CPPFLAGS' |
| 3725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3728 | DEPDIR="${am__leading_dot}deps" |
| 3729 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3730 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3731 | |
| 3732 | |
| 3733 | am_make=${MAKE-make} |
| 3734 | cat > confinc << 'END' |
| 3735 | am__doit: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3736 | @echo this is the am__doit target |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3737 | .PHONY: am__doit |
| 3738 | END |
| 3739 | # If we don't find an include directive, just comment out the code. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3741 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3742 | am__include="#" |
| 3743 | am__quote= |
| 3744 | _am_result=none |
| 3745 | # First try GNU make style include. |
| 3746 | echo "include confinc" > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3747 | # Ignore all kinds of additional output from `make'. |
| 3748 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3749 | *the\ am__doit\ target*) |
| 3750 | am__include=include |
| 3751 | am__quote= |
| 3752 | _am_result=GNU |
| 3753 | ;; |
| 3754 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3755 | # Now try BSD make style include. |
| 3756 | if test "$am__include" = "#"; then |
| 3757 | echo '.include "confinc"' > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3758 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3759 | *the\ am__doit\ target*) |
| 3760 | am__include=.include |
| 3761 | am__quote="\"" |
| 3762 | _am_result=BSD |
| 3763 | ;; |
| 3764 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3765 | fi |
| 3766 | |
| 3767 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3769 | $as_echo "$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3770 | rm -f confinc confmf |
| 3771 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3772 | # Check whether --enable-dependency-tracking was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3773 | if test "${enable_dependency_tracking+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3774 | enableval=$enable_dependency_tracking; |
| 3775 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3776 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3777 | if test "x$enable_dependency_tracking" != xno; then |
| 3778 | am_depcomp="$ac_aux_dir/depcomp" |
| 3779 | AMDEPBACKSLASH='\' |
| 3780 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3781 | if test "x$enable_dependency_tracking" != xno; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3782 | AMDEP_TRUE= |
| 3783 | AMDEP_FALSE='#' |
| 3784 | else |
| 3785 | AMDEP_TRUE='#' |
| 3786 | AMDEP_FALSE= |
| 3787 | fi |
| 3788 | |
| 3789 | |
| 3790 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3791 | depcc="$CC" am_compiler_list= |
| 3792 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3794 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3795 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 3796 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3797 | else |
| 3798 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3799 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3800 | # making bogus files that we don't know about and never remove. For |
| 3801 | # instance it was reported that on HP-UX the gcc test will end up |
| 3802 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3803 | # in D'. |
| 3804 | mkdir conftest.dir |
| 3805 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3806 | # using a relative directory. |
| 3807 | cp "$am_depcomp" conftest.dir |
| 3808 | cd conftest.dir |
| 3809 | # We will build objects and dependencies in a subdirectory because |
| 3810 | # it helps to detect inapplicable dependency modes. For instance |
| 3811 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3812 | # side effect of compilation, but ICC will put the dependencies in |
| 3813 | # the current directory while Tru64 will put them in the object |
| 3814 | # directory. |
| 3815 | mkdir sub |
| 3816 | |
| 3817 | am_cv_CC_dependencies_compiler_type=none |
| 3818 | if test "$am_compiler_list" = ""; then |
| 3819 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3820 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3821 | am__universal=false |
| 3822 | case " $depcc " in #( |
| 3823 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3824 | esac |
| 3825 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3826 | for depmode in $am_compiler_list; do |
| 3827 | # Setup a source with many dependencies, because some compilers |
| 3828 | # like to wrap large dependency lists on column 80 (with \), and |
| 3829 | # we should not choose a depcomp mode which is confused by this. |
| 3830 | # |
| 3831 | # We need to recreate these files for each test, as the compiler may |
| 3832 | # overwrite some of them when testing with obscure command lines. |
| 3833 | # This happens at least with the AIX C compiler. |
| 3834 | : > sub/conftest.c |
| 3835 | for i in 1 2 3 4 5 6; do |
| 3836 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3837 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3838 | # Solaris 8's {/usr,}/bin/sh. |
| 3839 | touch sub/conftst$i.h |
| 3840 | done |
| 3841 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3842 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3843 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3844 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3845 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3846 | # versions had trouble with output in subdirs |
| 3847 | am__obj=sub/conftest.${OBJEXT-o} |
| 3848 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3849 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3850 | gcc) |
| 3851 | # This depmode causes a compiler race in universal mode. |
| 3852 | test "$am__universal" = false || continue |
| 3853 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3854 | nosideeffect) |
| 3855 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3856 | # only be used when explicitly requested |
| 3857 | if test "x$enable_dependency_tracking" = xyes; then |
| 3858 | continue |
| 3859 | else |
| 3860 | break |
| 3861 | fi |
| 3862 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3863 | msvisualcpp | msvcmsys) |
| 3864 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3865 | # not run yet. These depmodes are late enough in the game, and |
| 3866 | # so weak that their functioning should not be impacted. |
| 3867 | am__obj=conftest.${OBJEXT-o} |
| 3868 | am__minus_obj= |
| 3869 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3870 | none) break ;; |
| 3871 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3872 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3873 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3874 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3875 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3876 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3877 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3878 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3879 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3880 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3881 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3882 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3883 | # that says an option was ignored or not supported. |
| 3884 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3885 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3886 | # The diagnosis changed in icc 8.0: |
| 3887 | # icc: Command line remark: option '-MP' not supported |
| 3888 | if (grep 'ignoring option' conftest.err || |
| 3889 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3890 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3891 | break |
| 3892 | fi |
| 3893 | fi |
| 3894 | done |
| 3895 | |
| 3896 | cd .. |
| 3897 | rm -rf conftest.dir |
| 3898 | else |
| 3899 | am_cv_CC_dependencies_compiler_type=none |
| 3900 | fi |
| 3901 | |
| 3902 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3904 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3905 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3906 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3907 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3908 | test "x$enable_dependency_tracking" != xno \ |
| 3909 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3910 | am__fastdepCC_TRUE= |
| 3911 | am__fastdepCC_FALSE='#' |
| 3912 | else |
| 3913 | am__fastdepCC_TRUE='#' |
| 3914 | am__fastdepCC_FALSE= |
| 3915 | fi |
| 3916 | |
| 3917 | |
| 3918 | ac_ext=c |
| 3919 | ac_cpp='$CPP $CPPFLAGS' |
| 3920 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3921 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3922 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3924 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3925 | # On Suns, sometimes $CPP names a directory. |
| 3926 | if test -n "$CPP" && test -d "$CPP"; then |
| 3927 | CPP= |
| 3928 | fi |
| 3929 | if test -z "$CPP"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3930 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3931 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3932 | else |
| 3933 | # Double quotes because CPP needs to be expanded |
| 3934 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3935 | do |
| 3936 | ac_preproc_ok=false |
| 3937 | for ac_c_preproc_warn_flag in '' yes |
| 3938 | do |
| 3939 | # Use a header file that comes with gcc, so configuring glibc |
| 3940 | # with a fresh cross-compiler works. |
| 3941 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 3942 | # <limits.h> exists even on freestanding compilers. |
| 3943 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 3944 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3946 | /* end confdefs.h. */ |
| 3947 | #ifdef __STDC__ |
| 3948 | # include <limits.h> |
| 3949 | #else |
| 3950 | # include <assert.h> |
| 3951 | #endif |
| 3952 | Syntax error |
| 3953 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3954 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3955 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3956 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3957 | # Broken: fails on valid input. |
| 3958 | continue |
| 3959 | fi |
| 3960 | rm -f conftest.err conftest.$ac_ext |
| 3961 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3962 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3963 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3965 | /* end confdefs.h. */ |
| 3966 | #include <ac_nonexistent.h> |
| 3967 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3968 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3969 | # Broken: success on invalid input. |
| 3970 | continue |
| 3971 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3972 | # Passes both tests. |
| 3973 | ac_preproc_ok=: |
| 3974 | break |
| 3975 | fi |
| 3976 | rm -f conftest.err conftest.$ac_ext |
| 3977 | |
| 3978 | done |
| 3979 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3980 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3981 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3982 | break |
| 3983 | fi |
| 3984 | |
| 3985 | done |
| 3986 | ac_cv_prog_CPP=$CPP |
| 3987 | |
| 3988 | fi |
| 3989 | CPP=$ac_cv_prog_CPP |
| 3990 | else |
| 3991 | ac_cv_prog_CPP=$CPP |
| 3992 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3994 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3995 | ac_preproc_ok=false |
| 3996 | for ac_c_preproc_warn_flag in '' yes |
| 3997 | do |
| 3998 | # Use a header file that comes with gcc, so configuring glibc |
| 3999 | # with a fresh cross-compiler works. |
| 4000 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4001 | # <limits.h> exists even on freestanding compilers. |
| 4002 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4003 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4004 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4005 | /* end confdefs.h. */ |
| 4006 | #ifdef __STDC__ |
| 4007 | # include <limits.h> |
| 4008 | #else |
| 4009 | # include <assert.h> |
| 4010 | #endif |
| 4011 | Syntax error |
| 4012 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4013 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4014 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4015 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4016 | # Broken: fails on valid input. |
| 4017 | continue |
| 4018 | fi |
| 4019 | rm -f conftest.err conftest.$ac_ext |
| 4020 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4021 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4022 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4023 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4024 | /* end confdefs.h. */ |
| 4025 | #include <ac_nonexistent.h> |
| 4026 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4027 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4028 | # Broken: success on invalid input. |
| 4029 | continue |
| 4030 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4031 | # Passes both tests. |
| 4032 | ac_preproc_ok=: |
| 4033 | break |
| 4034 | fi |
| 4035 | rm -f conftest.err conftest.$ac_ext |
| 4036 | |
| 4037 | done |
| 4038 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4039 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4040 | if $ac_preproc_ok; then : |
| 4041 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4042 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4043 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4044 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4045 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4046 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4047 | fi |
| 4048 | |
| 4049 | ac_ext=c |
| 4050 | ac_cpp='$CPP $CPPFLAGS' |
| 4051 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4052 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4053 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4054 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4055 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4056 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4057 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4058 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4059 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4060 | if test -z "$CXX"; then |
| 4061 | if test -n "$CCC"; then |
| 4062 | CXX=$CCC |
| 4063 | else |
| 4064 | if test -n "$ac_tool_prefix"; then |
| 4065 | 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] | 4066 | do |
| 4067 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4068 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4070 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4071 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 4072 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4073 | else |
| 4074 | if test -n "$CXX"; then |
| 4075 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4076 | else |
| 4077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4078 | for as_dir in $PATH |
| 4079 | do |
| 4080 | IFS=$as_save_IFS |
| 4081 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4082 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4083 | 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] | 4084 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4085 | $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] | 4086 | break 2 |
| 4087 | fi |
| 4088 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4089 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4090 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4091 | |
| 4092 | fi |
| 4093 | fi |
| 4094 | CXX=$ac_cv_prog_CXX |
| 4095 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4097 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4098 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4100 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4101 | fi |
| 4102 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4103 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4104 | test -n "$CXX" && break |
| 4105 | done |
| 4106 | fi |
| 4107 | if test -z "$CXX"; then |
| 4108 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4109 | 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] | 4110 | do |
| 4111 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4112 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4114 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4115 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 4116 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4117 | else |
| 4118 | if test -n "$ac_ct_CXX"; then |
| 4119 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4120 | else |
| 4121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4122 | for as_dir in $PATH |
| 4123 | do |
| 4124 | IFS=$as_save_IFS |
| 4125 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4126 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4127 | 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] | 4128 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4129 | $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] | 4130 | break 2 |
| 4131 | fi |
| 4132 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4133 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4134 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4135 | |
| 4136 | fi |
| 4137 | fi |
| 4138 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4139 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4141 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4142 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4144 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4145 | fi |
| 4146 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4147 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4148 | test -n "$ac_ct_CXX" && break |
| 4149 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4150 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4151 | if test "x$ac_ct_CXX" = x; then |
| 4152 | CXX="g++" |
| 4153 | else |
| 4154 | case $cross_compiling:$ac_tool_warned in |
| 4155 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4157 | $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] | 4158 | ac_tool_warned=yes ;; |
| 4159 | esac |
| 4160 | CXX=$ac_ct_CXX |
| 4161 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4162 | fi |
| 4163 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4164 | fi |
| 4165 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4166 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4167 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4168 | set X $ac_compile |
| 4169 | ac_compiler=$2 |
| 4170 | for ac_option in --version -v -V -qversion; do |
| 4171 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4172 | case "(($ac_try" in |
| 4173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4174 | *) ac_try_echo=$ac_try;; |
| 4175 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4176 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4177 | $as_echo "$ac_try_echo"; } >&5 |
| 4178 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4179 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4180 | if test -s conftest.err; then |
| 4181 | sed '10a\ |
| 4182 | ... rest of stderr output deleted ... |
| 4183 | 10q' conftest.err >conftest.er1 |
| 4184 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4185 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 4186 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4187 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4188 | test $ac_status = 0; } |
| 4189 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4190 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4192 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4193 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 4194 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4195 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4197 | /* end confdefs.h. */ |
| 4198 | |
| 4199 | int |
| 4200 | main () |
| 4201 | { |
| 4202 | #ifndef __GNUC__ |
| 4203 | choke me |
| 4204 | #endif |
| 4205 | |
| 4206 | ; |
| 4207 | return 0; |
| 4208 | } |
| 4209 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4210 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4211 | ac_compiler_gnu=yes |
| 4212 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4213 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4214 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4216 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4217 | |
| 4218 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4220 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4221 | if test $ac_compiler_gnu = yes; then |
| 4222 | GXX=yes |
| 4223 | else |
| 4224 | GXX= |
| 4225 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4226 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4227 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4229 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4230 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 4231 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4232 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4233 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4234 | ac_cxx_werror_flag=yes |
| 4235 | ac_cv_prog_cxx_g=no |
| 4236 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4238 | /* end confdefs.h. */ |
| 4239 | |
| 4240 | int |
| 4241 | main () |
| 4242 | { |
| 4243 | |
| 4244 | ; |
| 4245 | return 0; |
| 4246 | } |
| 4247 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4248 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4249 | ac_cv_prog_cxx_g=yes |
| 4250 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4251 | CXXFLAGS="" |
| 4252 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4253 | /* end confdefs.h. */ |
| 4254 | |
| 4255 | int |
| 4256 | main () |
| 4257 | { |
| 4258 | |
| 4259 | ; |
| 4260 | return 0; |
| 4261 | } |
| 4262 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4263 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4264 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4265 | else |
| 4266 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4267 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4268 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4269 | /* end confdefs.h. */ |
| 4270 | |
| 4271 | int |
| 4272 | main () |
| 4273 | { |
| 4274 | |
| 4275 | ; |
| 4276 | return 0; |
| 4277 | } |
| 4278 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4279 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4280 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4281 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4282 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4283 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4284 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4285 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4286 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4287 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4288 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4290 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4291 | if test "$ac_test_CXXFLAGS" = set; then |
| 4292 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4293 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4294 | if test "$GXX" = yes; then |
| 4295 | CXXFLAGS="-g -O2" |
| 4296 | else |
| 4297 | CXXFLAGS="-g" |
| 4298 | fi |
| 4299 | else |
| 4300 | if test "$GXX" = yes; then |
| 4301 | CXXFLAGS="-O2" |
| 4302 | else |
| 4303 | CXXFLAGS= |
| 4304 | fi |
| 4305 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4306 | ac_ext=c |
| 4307 | ac_cpp='$CPP $CPPFLAGS' |
| 4308 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4309 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4310 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4311 | |
| 4312 | depcc="$CXX" am_compiler_list= |
| 4313 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4315 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4316 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 4317 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4318 | else |
| 4319 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4320 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4321 | # making bogus files that we don't know about and never remove. For |
| 4322 | # instance it was reported that on HP-UX the gcc test will end up |
| 4323 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4324 | # in D'. |
| 4325 | mkdir conftest.dir |
| 4326 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4327 | # using a relative directory. |
| 4328 | cp "$am_depcomp" conftest.dir |
| 4329 | cd conftest.dir |
| 4330 | # We will build objects and dependencies in a subdirectory because |
| 4331 | # it helps to detect inapplicable dependency modes. For instance |
| 4332 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4333 | # side effect of compilation, but ICC will put the dependencies in |
| 4334 | # the current directory while Tru64 will put them in the object |
| 4335 | # directory. |
| 4336 | mkdir sub |
| 4337 | |
| 4338 | am_cv_CXX_dependencies_compiler_type=none |
| 4339 | if test "$am_compiler_list" = ""; then |
| 4340 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4341 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4342 | am__universal=false |
| 4343 | case " $depcc " in #( |
| 4344 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4345 | esac |
| 4346 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4347 | for depmode in $am_compiler_list; do |
| 4348 | # Setup a source with many dependencies, because some compilers |
| 4349 | # like to wrap large dependency lists on column 80 (with \), and |
| 4350 | # we should not choose a depcomp mode which is confused by this. |
| 4351 | # |
| 4352 | # We need to recreate these files for each test, as the compiler may |
| 4353 | # overwrite some of them when testing with obscure command lines. |
| 4354 | # This happens at least with the AIX C compiler. |
| 4355 | : > sub/conftest.c |
| 4356 | for i in 1 2 3 4 5 6; do |
| 4357 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4358 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4359 | # Solaris 8's {/usr,}/bin/sh. |
| 4360 | touch sub/conftst$i.h |
| 4361 | done |
| 4362 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4363 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4364 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4365 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4366 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4367 | # versions had trouble with output in subdirs |
| 4368 | am__obj=sub/conftest.${OBJEXT-o} |
| 4369 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4370 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4371 | gcc) |
| 4372 | # This depmode causes a compiler race in universal mode. |
| 4373 | test "$am__universal" = false || continue |
| 4374 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4375 | nosideeffect) |
| 4376 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4377 | # only be used when explicitly requested |
| 4378 | if test "x$enable_dependency_tracking" = xyes; then |
| 4379 | continue |
| 4380 | else |
| 4381 | break |
| 4382 | fi |
| 4383 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4384 | msvisualcpp | msvcmsys) |
| 4385 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4386 | # not run yet. These depmodes are late enough in the game, and |
| 4387 | # so weak that their functioning should not be impacted. |
| 4388 | am__obj=conftest.${OBJEXT-o} |
| 4389 | am__minus_obj= |
| 4390 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4391 | none) break ;; |
| 4392 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4393 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4394 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4395 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4396 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4397 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4398 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4399 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4400 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4401 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4402 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4403 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4404 | # that says an option was ignored or not supported. |
| 4405 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4406 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4407 | # The diagnosis changed in icc 8.0: |
| 4408 | # icc: Command line remark: option '-MP' not supported |
| 4409 | if (grep 'ignoring option' conftest.err || |
| 4410 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4411 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4412 | break |
| 4413 | fi |
| 4414 | fi |
| 4415 | done |
| 4416 | |
| 4417 | cd .. |
| 4418 | rm -rf conftest.dir |
| 4419 | else |
| 4420 | am_cv_CXX_dependencies_compiler_type=none |
| 4421 | fi |
| 4422 | |
| 4423 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4425 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4426 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4427 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4428 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4429 | test "x$enable_dependency_tracking" != xno \ |
| 4430 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4431 | am__fastdepCXX_TRUE= |
| 4432 | am__fastdepCXX_FALSE='#' |
| 4433 | else |
| 4434 | am__fastdepCXX_TRUE='#' |
| 4435 | am__fastdepCXX_FALSE= |
| 4436 | fi |
| 4437 | |
| 4438 | |
| 4439 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4440 | case `pwd` in |
| 4441 | *\ * | *\ *) |
| 4442 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4443 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4444 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4445 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4446 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4447 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 4448 | macro_version='2.2.6b' |
| 4449 | macro_revision='1.3017' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4450 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4451 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4452 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4453 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4454 | |
| 4455 | |
| 4456 | |
| 4457 | |
| 4458 | |
| 4459 | |
| 4460 | |
| 4461 | |
| 4462 | |
| 4463 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4464 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4465 | # Make sure we can run config.sub. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4466 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4467 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4468 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4470 | $as_echo_n "checking build system type... " >&6; } |
| 4471 | if test "${ac_cv_build+set}" = set; then : |
| 4472 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4473 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4474 | ac_build_alias=$build_alias |
| 4475 | test "x$ac_build_alias" = x && |
| 4476 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4477 | test "x$ac_build_alias" = x && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4478 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4479 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4480 | 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] | 4481 | |
| 4482 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4484 | $as_echo "$ac_cv_build" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4485 | case $ac_cv_build in |
| 4486 | *-*-*) ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4487 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4488 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4489 | build=$ac_cv_build |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4490 | ac_save_IFS=$IFS; IFS='-' |
| 4491 | set x $ac_cv_build |
| 4492 | shift |
| 4493 | build_cpu=$1 |
| 4494 | build_vendor=$2 |
| 4495 | shift; shift |
| 4496 | # Remember, the first character of IFS is used to create $*, |
| 4497 | # except with old shells: |
| 4498 | build_os=$* |
| 4499 | IFS=$ac_save_IFS |
| 4500 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4501 | |
| 4502 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4504 | $as_echo_n "checking host system type... " >&6; } |
| 4505 | if test "${ac_cv_host+set}" = set; then : |
| 4506 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4507 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4508 | if test "x$host_alias" = x; then |
| 4509 | ac_cv_host=$ac_cv_build |
| 4510 | else |
| 4511 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4512 | 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] | 4513 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4514 | |
| 4515 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4517 | $as_echo "$ac_cv_host" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4518 | case $ac_cv_host in |
| 4519 | *-*-*) ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4520 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4521 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4522 | host=$ac_cv_host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4523 | ac_save_IFS=$IFS; IFS='-' |
| 4524 | set x $ac_cv_host |
| 4525 | shift |
| 4526 | host_cpu=$1 |
| 4527 | host_vendor=$2 |
| 4528 | shift; shift |
| 4529 | # Remember, the first character of IFS is used to create $*, |
| 4530 | # except with old shells: |
| 4531 | host_os=$* |
| 4532 | IFS=$ac_save_IFS |
| 4533 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4534 | |
| 4535 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4537 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4538 | if test "${ac_cv_path_SED+set}" = set; then : |
| 4539 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4540 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4541 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4542 | for ac_i in 1 2 3 4 5 6 7; do |
| 4543 | ac_script="$ac_script$as_nl$ac_script" |
| 4544 | done |
| 4545 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4546 | { ac_script=; unset ac_script;} |
| 4547 | if test -z "$SED"; then |
| 4548 | ac_path_SED_found=false |
| 4549 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4550 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4551 | for as_dir in $PATH |
| 4552 | do |
| 4553 | IFS=$as_save_IFS |
| 4554 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4555 | for ac_prog in sed gsed; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4556 | for ac_exec_ext in '' $ac_executable_extensions; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4557 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4558 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 4559 | # Check for GNU ac_path_SED and select it if it is found. |
| 4560 | # Check for GNU $ac_path_SED |
| 4561 | case `"$ac_path_SED" --version 2>&1` in |
| 4562 | *GNU*) |
| 4563 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4564 | *) |
| 4565 | ac_count=0 |
| 4566 | $as_echo_n 0123456789 >"conftest.in" |
| 4567 | while : |
| 4568 | do |
| 4569 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4570 | mv "conftest.tmp" "conftest.in" |
| 4571 | cp "conftest.in" "conftest.nl" |
| 4572 | $as_echo '' >> "conftest.nl" |
| 4573 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4574 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4575 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4576 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4577 | # Best one so far, save it but keep looking for a better one |
| 4578 | ac_cv_path_SED="$ac_path_SED" |
| 4579 | ac_path_SED_max=$ac_count |
| 4580 | fi |
| 4581 | # 10*(2^10) chars as input seems more than enough |
| 4582 | test $ac_count -gt 10 && break |
| 4583 | done |
| 4584 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4585 | esac |
| 4586 | |
| 4587 | $ac_path_SED_found && break 3 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4588 | done |
| 4589 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4590 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4591 | IFS=$as_save_IFS |
| 4592 | if test -z "$ac_cv_path_SED"; then |
| 4593 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4594 | fi |
| 4595 | else |
| 4596 | ac_cv_path_SED=$SED |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4597 | fi |
| 4598 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4599 | fi |
| 4600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4601 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4602 | SED="$ac_cv_path_SED" |
| 4603 | rm -f conftest.sed |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 4604 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4605 | test -z "$SED" && SED=sed |
| 4606 | Xsed="$SED -e 1s/^X//" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4607 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4608 | |
| 4609 | |
| 4610 | |
| 4611 | |
| 4612 | |
| 4613 | |
| 4614 | |
| 4615 | |
| 4616 | |
| 4617 | |
| 4618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4619 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4620 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4621 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4622 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4623 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4624 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4625 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4626 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4627 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4628 | do |
| 4629 | IFS=$as_save_IFS |
| 4630 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4631 | for ac_prog in grep ggrep; do |
| 4632 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4633 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4634 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4635 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4636 | # Check for GNU $ac_path_GREP |
| 4637 | case `"$ac_path_GREP" --version 2>&1` in |
| 4638 | *GNU*) |
| 4639 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4640 | *) |
| 4641 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4642 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4643 | while : |
| 4644 | do |
| 4645 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4646 | mv "conftest.tmp" "conftest.in" |
| 4647 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4648 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4649 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4650 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4651 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4652 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4653 | # Best one so far, save it but keep looking for a better one |
| 4654 | ac_cv_path_GREP="$ac_path_GREP" |
| 4655 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4656 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4657 | # 10*(2^10) chars as input seems more than enough |
| 4658 | test $ac_count -gt 10 && break |
| 4659 | done |
| 4660 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4661 | esac |
| 4662 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4663 | $ac_path_GREP_found && break 3 |
| 4664 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4665 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4666 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4667 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4668 | if test -z "$ac_cv_path_GREP"; then |
| 4669 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4670 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4671 | else |
| 4672 | ac_cv_path_GREP=$GREP |
| 4673 | fi |
| 4674 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4675 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4677 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4678 | GREP="$ac_cv_path_GREP" |
| 4679 | |
| 4680 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4682 | $as_echo_n "checking for egrep... " >&6; } |
| 4683 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4684 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4685 | else |
| 4686 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4687 | then ac_cv_path_EGREP="$GREP -E" |
| 4688 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4689 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4690 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4691 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4693 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4694 | do |
| 4695 | IFS=$as_save_IFS |
| 4696 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4697 | for ac_prog in egrep; do |
| 4698 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4699 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4700 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4701 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4702 | # Check for GNU $ac_path_EGREP |
| 4703 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4704 | *GNU*) |
| 4705 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4706 | *) |
| 4707 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4708 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4709 | while : |
| 4710 | do |
| 4711 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4712 | mv "conftest.tmp" "conftest.in" |
| 4713 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4714 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4715 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4716 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4717 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4718 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4719 | # Best one so far, save it but keep looking for a better one |
| 4720 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4721 | ac_path_EGREP_max=$ac_count |
| 4722 | fi |
| 4723 | # 10*(2^10) chars as input seems more than enough |
| 4724 | test $ac_count -gt 10 && break |
| 4725 | done |
| 4726 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4727 | esac |
| 4728 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4729 | $ac_path_EGREP_found && break 3 |
| 4730 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4731 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4732 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4733 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4734 | if test -z "$ac_cv_path_EGREP"; then |
| 4735 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4736 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4737 | else |
| 4738 | ac_cv_path_EGREP=$EGREP |
| 4739 | fi |
| 4740 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4741 | fi |
| 4742 | fi |
| 4743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4744 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4745 | EGREP="$ac_cv_path_EGREP" |
| 4746 | |
| 4747 | |
| 4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4749 | $as_echo_n "checking for fgrep... " >&6; } |
| 4750 | if test "${ac_cv_path_FGREP+set}" = set; then : |
| 4751 | $as_echo_n "(cached) " >&6 |
| 4752 | else |
| 4753 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4754 | then ac_cv_path_FGREP="$GREP -F" |
| 4755 | else |
| 4756 | if test -z "$FGREP"; then |
| 4757 | ac_path_FGREP_found=false |
| 4758 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4760 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4761 | do |
| 4762 | IFS=$as_save_IFS |
| 4763 | test -z "$as_dir" && as_dir=. |
| 4764 | for ac_prog in fgrep; do |
| 4765 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4766 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4767 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 4768 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4769 | # Check for GNU $ac_path_FGREP |
| 4770 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4771 | *GNU*) |
| 4772 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4773 | *) |
| 4774 | ac_count=0 |
| 4775 | $as_echo_n 0123456789 >"conftest.in" |
| 4776 | while : |
| 4777 | do |
| 4778 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4779 | mv "conftest.tmp" "conftest.in" |
| 4780 | cp "conftest.in" "conftest.nl" |
| 4781 | $as_echo 'FGREP' >> "conftest.nl" |
| 4782 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4783 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4784 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4785 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4786 | # Best one so far, save it but keep looking for a better one |
| 4787 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4788 | ac_path_FGREP_max=$ac_count |
| 4789 | fi |
| 4790 | # 10*(2^10) chars as input seems more than enough |
| 4791 | test $ac_count -gt 10 && break |
| 4792 | done |
| 4793 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4794 | esac |
| 4795 | |
| 4796 | $ac_path_FGREP_found && break 3 |
| 4797 | done |
| 4798 | done |
| 4799 | done |
| 4800 | IFS=$as_save_IFS |
| 4801 | if test -z "$ac_cv_path_FGREP"; then |
| 4802 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4803 | fi |
| 4804 | else |
| 4805 | ac_cv_path_FGREP=$FGREP |
| 4806 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4807 | |
| 4808 | fi |
| 4809 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4811 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4812 | FGREP="$ac_cv_path_FGREP" |
| 4813 | |
| 4814 | |
| 4815 | test -z "$GREP" && GREP=grep |
| 4816 | |
| 4817 | |
| 4818 | |
| 4819 | |
| 4820 | |
| 4821 | |
| 4822 | |
| 4823 | |
| 4824 | |
| 4825 | |
| 4826 | |
| 4827 | |
| 4828 | |
| 4829 | |
| 4830 | |
| 4831 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4832 | |
| 4833 | |
| 4834 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4835 | # Check whether --with-gnu-ld was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4836 | if test "${with_gnu_ld+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4837 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4838 | else |
| 4839 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4840 | fi |
| 4841 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4842 | ac_prog=ld |
| 4843 | if test "$GCC" = yes; then |
| 4844 | # Check if gcc -print-prog-name=ld gives a path. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4846 | $as_echo_n "checking for ld used by $CC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4847 | case $host in |
| 4848 | *-*-mingw*) |
| 4849 | # gcc leaves a trailing carriage return which upsets mingw |
| 4850 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4851 | *) |
| 4852 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4853 | esac |
| 4854 | case $ac_prog in |
| 4855 | # Accept absolute paths. |
| 4856 | [\\/]* | ?:[\\/]*) |
| 4857 | re_direlt='/[^/][^/]*/\.\./' |
| 4858 | # Canonicalize the pathname of ld |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4859 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4860 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4861 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4862 | done |
| 4863 | test -z "$LD" && LD="$ac_prog" |
| 4864 | ;; |
| 4865 | "") |
| 4866 | # If it fails, then pretend we aren't using GCC. |
| 4867 | ac_prog=ld |
| 4868 | ;; |
| 4869 | *) |
| 4870 | # If it is relative, then search for the first ld in PATH. |
| 4871 | with_gnu_ld=unknown |
| 4872 | ;; |
| 4873 | esac |
| 4874 | elif test "$with_gnu_ld" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4876 | $as_echo_n "checking for GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4877 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4879 | $as_echo_n "checking for non-GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4880 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4881 | if test "${lt_cv_path_LD+set}" = set; then : |
| 4882 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4883 | else |
| 4884 | if test -z "$LD"; then |
| 4885 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4886 | for ac_dir in $PATH; do |
| 4887 | IFS="$lt_save_ifs" |
| 4888 | test -z "$ac_dir" && ac_dir=. |
| 4889 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4890 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4891 | # 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] | 4892 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4893 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4894 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4895 | *GNU* | *'with BFD'*) |
| 4896 | test "$with_gnu_ld" != no && break |
| 4897 | ;; |
| 4898 | *) |
| 4899 | test "$with_gnu_ld" != yes && break |
| 4900 | ;; |
| 4901 | esac |
| 4902 | fi |
| 4903 | done |
| 4904 | IFS="$lt_save_ifs" |
| 4905 | else |
| 4906 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4907 | fi |
| 4908 | fi |
| 4909 | |
| 4910 | LD="$lt_cv_path_LD" |
| 4911 | if test -n "$LD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4913 | $as_echo "$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4914 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4916 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4917 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4918 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 4920 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 4921 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 4922 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4923 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4924 | # 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] | 4925 | case `$LD -v 2>&1 </dev/null` in |
| 4926 | *GNU* | *'with BFD'*) |
| 4927 | lt_cv_prog_gnu_ld=yes |
| 4928 | ;; |
| 4929 | *) |
| 4930 | lt_cv_prog_gnu_ld=no |
| 4931 | ;; |
| 4932 | esac |
| 4933 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 4935 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4936 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 4937 | |
| 4938 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4939 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4940 | |
| 4941 | |
| 4942 | |
| 4943 | |
| 4944 | |
| 4945 | |
| 4946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 4947 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 4948 | if test "${lt_cv_path_NM+set}" = set; then : |
| 4949 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4950 | else |
| 4951 | if test -n "$NM"; then |
| 4952 | # Let the user override the test. |
| 4953 | lt_cv_path_NM="$NM" |
| 4954 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4955 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 4956 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 4957 | lt_nm_to_check="$lt_nm_to_check nm" |
| 4958 | fi |
| 4959 | for lt_tmp_nm in $lt_nm_to_check; do |
| 4960 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4961 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 4962 | IFS="$lt_save_ifs" |
| 4963 | test -z "$ac_dir" && ac_dir=. |
| 4964 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 4965 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 4966 | # Check to see if the nm accepts a BSD-compat flag. |
| 4967 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 4968 | # nm: unknown option "B" ignored |
| 4969 | # Tru64's nm complains that /dev/null is an invalid object file |
| 4970 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 4971 | */dev/null* | *'Invalid file or object type'*) |
| 4972 | lt_cv_path_NM="$tmp_nm -B" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4973 | break |
| 4974 | ;; |
| 4975 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4976 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 4977 | */dev/null*) |
| 4978 | lt_cv_path_NM="$tmp_nm -p" |
| 4979 | break |
| 4980 | ;; |
| 4981 | *) |
| 4982 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 4983 | continue # so that we can try to find one that supports BSD flags |
| 4984 | ;; |
| 4985 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4986 | ;; |
| 4987 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4988 | fi |
| 4989 | done |
| 4990 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4991 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4992 | : ${lt_cv_path_NM=no} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4993 | fi |
| 4994 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 4996 | $as_echo "$lt_cv_path_NM" >&6; } |
| 4997 | if test "$lt_cv_path_NM" != "no"; then |
| 4998 | NM="$lt_cv_path_NM" |
| 4999 | else |
| 5000 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5001 | if test -n "$ac_tool_prefix"; then |
| 5002 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5003 | do |
| 5004 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5005 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5006 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5007 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5008 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
| 5009 | $as_echo_n "(cached) " >&6 |
| 5010 | else |
| 5011 | if test -n "$DUMPBIN"; then |
| 5012 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5013 | else |
| 5014 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5015 | for as_dir in $PATH |
| 5016 | do |
| 5017 | IFS=$as_save_IFS |
| 5018 | test -z "$as_dir" && as_dir=. |
| 5019 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5020 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5021 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5022 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5023 | break 2 |
| 5024 | fi |
| 5025 | done |
| 5026 | done |
| 5027 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5028 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5029 | fi |
| 5030 | fi |
| 5031 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5032 | if test -n "$DUMPBIN"; then |
| 5033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5034 | $as_echo "$DUMPBIN" >&6; } |
| 5035 | else |
| 5036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5037 | $as_echo "no" >&6; } |
| 5038 | fi |
| 5039 | |
| 5040 | |
| 5041 | test -n "$DUMPBIN" && break |
| 5042 | done |
| 5043 | fi |
| 5044 | if test -z "$DUMPBIN"; then |
| 5045 | ac_ct_DUMPBIN=$DUMPBIN |
| 5046 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5047 | do |
| 5048 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5049 | set dummy $ac_prog; ac_word=$2 |
| 5050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5051 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5052 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
| 5053 | $as_echo_n "(cached) " >&6 |
| 5054 | else |
| 5055 | if test -n "$ac_ct_DUMPBIN"; then |
| 5056 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5057 | else |
| 5058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5059 | for as_dir in $PATH |
| 5060 | do |
| 5061 | IFS=$as_save_IFS |
| 5062 | test -z "$as_dir" && as_dir=. |
| 5063 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5064 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5065 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5066 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5067 | break 2 |
| 5068 | fi |
| 5069 | done |
| 5070 | done |
| 5071 | IFS=$as_save_IFS |
| 5072 | |
| 5073 | fi |
| 5074 | fi |
| 5075 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5076 | if test -n "$ac_ct_DUMPBIN"; then |
| 5077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5078 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5079 | else |
| 5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5081 | $as_echo "no" >&6; } |
| 5082 | fi |
| 5083 | |
| 5084 | |
| 5085 | test -n "$ac_ct_DUMPBIN" && break |
| 5086 | done |
| 5087 | |
| 5088 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5089 | DUMPBIN=":" |
| 5090 | else |
| 5091 | case $cross_compiling:$ac_tool_warned in |
| 5092 | yes:) |
| 5093 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5094 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5095 | ac_tool_warned=yes ;; |
| 5096 | esac |
| 5097 | DUMPBIN=$ac_ct_DUMPBIN |
| 5098 | fi |
| 5099 | fi |
| 5100 | |
| 5101 | |
| 5102 | if test "$DUMPBIN" != ":"; then |
| 5103 | NM="$DUMPBIN" |
| 5104 | fi |
| 5105 | fi |
| 5106 | test -z "$NM" && NM=nm |
| 5107 | |
| 5108 | |
| 5109 | |
| 5110 | |
| 5111 | |
| 5112 | |
| 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5114 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5115 | if test "${lt_cv_nm_interface+set}" = set; then : |
| 5116 | $as_echo_n "(cached) " >&6 |
| 5117 | else |
| 5118 | lt_cv_nm_interface="BSD nm" |
| 5119 | echo "int some_variable = 0;" > conftest.$ac_ext |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 5120 | (eval echo "\"\$as_me:5120: $ac_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5121 | (eval "$ac_compile" 2>conftest.err) |
| 5122 | cat conftest.err >&5 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 5123 | (eval echo "\"\$as_me:5123: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5124 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5125 | cat conftest.err >&5 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 5126 | (eval echo "\"\$as_me:5126: output\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5127 | cat conftest.out >&5 |
| 5128 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5129 | lt_cv_nm_interface="MS dumpbin" |
| 5130 | fi |
| 5131 | rm -f conftest* |
| 5132 | fi |
| 5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5134 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 5135 | |
| 5136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5137 | $as_echo_n "checking whether ln -s works... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5138 | LN_S=$as_ln_s |
| 5139 | if test "$LN_S" = "ln -s"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5141 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5142 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5144 | $as_echo "no, using $LN_S" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5145 | fi |
| 5146 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5147 | # find the maximum length of command line arguments |
| 5148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5149 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5150 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
| 5151 | $as_echo_n "(cached) " >&6 |
| 5152 | else |
| 5153 | i=0 |
| 5154 | teststring="ABCD" |
| 5155 | |
| 5156 | case $build_os in |
| 5157 | msdosdjgpp*) |
| 5158 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5159 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5160 | # during glob expansion). Even if it were fixed, the result of this |
| 5161 | # check would be larger than it should be. |
| 5162 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5163 | ;; |
| 5164 | |
| 5165 | gnu*) |
| 5166 | # Under GNU Hurd, this test is not required because there is |
| 5167 | # no limit to the length of command line arguments. |
| 5168 | # Libtool will interpret -1 as no limit whatsoever |
| 5169 | lt_cv_sys_max_cmd_len=-1; |
| 5170 | ;; |
| 5171 | |
| 5172 | cygwin* | mingw* | cegcc*) |
| 5173 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5174 | # about 5 minutes as the teststring grows exponentially. |
| 5175 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5176 | # you end up with a "frozen" computer, even though with patience |
| 5177 | # the test eventually succeeds (with a max line length of 256k). |
| 5178 | # Instead, let's just punt: use the minimum linelength reported by |
| 5179 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5180 | lt_cv_sys_max_cmd_len=8192; |
| 5181 | ;; |
| 5182 | |
| 5183 | amigaos*) |
| 5184 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5185 | # So we just punt and use a minimum line length of 8192. |
| 5186 | lt_cv_sys_max_cmd_len=8192; |
| 5187 | ;; |
| 5188 | |
| 5189 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5190 | # This has been around since 386BSD, at least. Likely further. |
| 5191 | if test -x /sbin/sysctl; then |
| 5192 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5193 | elif test -x /usr/sbin/sysctl; then |
| 5194 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5195 | else |
| 5196 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5197 | fi |
| 5198 | # And add a safety zone |
| 5199 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5200 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5201 | ;; |
| 5202 | |
| 5203 | interix*) |
| 5204 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5205 | lt_cv_sys_max_cmd_len=196608 |
| 5206 | ;; |
| 5207 | |
| 5208 | osf*) |
| 5209 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5210 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5211 | # nice to cause kernel panics so lets avoid the loop below. |
| 5212 | # First set a reasonable default. |
| 5213 | lt_cv_sys_max_cmd_len=16384 |
| 5214 | # |
| 5215 | if test -x /sbin/sysconfig; then |
| 5216 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5217 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5218 | esac |
| 5219 | fi |
| 5220 | ;; |
| 5221 | sco3.2v5*) |
| 5222 | lt_cv_sys_max_cmd_len=102400 |
| 5223 | ;; |
| 5224 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5225 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5226 | if test -n "$kargmax"; then |
| 5227 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5228 | else |
| 5229 | lt_cv_sys_max_cmd_len=32768 |
| 5230 | fi |
| 5231 | ;; |
| 5232 | *) |
| 5233 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5234 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5235 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5236 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5237 | else |
| 5238 | # Make teststring a little bigger before we do anything with it. |
| 5239 | # a 1K string should be a reasonable start. |
| 5240 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5241 | teststring=$teststring$teststring |
| 5242 | done |
| 5243 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5244 | # If test is not a shell built-in, we'll probably end up computing a |
| 5245 | # maximum length that is only half of the actual maximum length, but |
| 5246 | # we can't tell. |
| 5247 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 5248 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 5249 | test $i != 17 # 1/2 MB should be enough |
| 5250 | do |
| 5251 | i=`expr $i + 1` |
| 5252 | teststring=$teststring$teststring |
| 5253 | done |
| 5254 | # Only check the string length outside the loop. |
| 5255 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5256 | teststring= |
| 5257 | # Add a significant safety factor because C++ compilers can tack on |
| 5258 | # massive amounts of additional arguments before passing them to the |
| 5259 | # linker. It appears as though 1/2 is a usable value. |
| 5260 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5261 | fi |
| 5262 | ;; |
| 5263 | esac |
| 5264 | |
| 5265 | fi |
| 5266 | |
| 5267 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5269 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5270 | else |
| 5271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5272 | $as_echo "none" >&6; } |
| 5273 | fi |
| 5274 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5275 | |
| 5276 | |
| 5277 | |
| 5278 | |
| 5279 | |
| 5280 | |
| 5281 | : ${CP="cp -f"} |
| 5282 | : ${MV="mv -f"} |
| 5283 | : ${RM="rm -f"} |
| 5284 | |
| 5285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5286 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5287 | # Try some XSI features |
| 5288 | xsi_shell=no |
| 5289 | ( _lt_dummy="a/b/c" |
| 5290 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 5291 | = c,a/b,, \ |
| 5292 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5293 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5294 | && xsi_shell=yes |
| 5295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5296 | $as_echo "$xsi_shell" >&6; } |
| 5297 | |
| 5298 | |
| 5299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5300 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5301 | lt_shell_append=no |
| 5302 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5303 | >/dev/null 2>&1 \ |
| 5304 | && lt_shell_append=yes |
| 5305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5306 | $as_echo "$lt_shell_append" >&6; } |
| 5307 | |
| 5308 | |
| 5309 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5310 | lt_unset=unset |
| 5311 | else |
| 5312 | lt_unset=false |
| 5313 | fi |
| 5314 | |
| 5315 | |
| 5316 | |
| 5317 | |
| 5318 | |
| 5319 | # test EBCDIC or ASCII |
| 5320 | case `echo X|tr X '\101'` in |
| 5321 | A) # ASCII based system |
| 5322 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5323 | lt_SP2NL='tr \040 \012' |
| 5324 | lt_NL2SP='tr \015\012 \040\040' |
| 5325 | ;; |
| 5326 | *) # EBCDIC based system |
| 5327 | lt_SP2NL='tr \100 \n' |
| 5328 | lt_NL2SP='tr \r\n \100\100' |
| 5329 | ;; |
| 5330 | esac |
| 5331 | |
| 5332 | |
| 5333 | |
| 5334 | |
| 5335 | |
| 5336 | |
| 5337 | |
| 5338 | |
| 5339 | |
| 5340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5341 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5342 | if test "${lt_cv_ld_reload_flag+set}" = set; then : |
| 5343 | $as_echo_n "(cached) " >&6 |
| 5344 | else |
| 5345 | lt_cv_ld_reload_flag='-r' |
| 5346 | fi |
| 5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5348 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5349 | reload_flag=$lt_cv_ld_reload_flag |
| 5350 | case $reload_flag in |
| 5351 | "" | " "*) ;; |
| 5352 | *) reload_flag=" $reload_flag" ;; |
| 5353 | esac |
| 5354 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5355 | case $host_os in |
| 5356 | darwin*) |
| 5357 | if test "$GCC" = yes; then |
| 5358 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5359 | else |
| 5360 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5361 | fi |
| 5362 | ;; |
| 5363 | esac |
| 5364 | |
| 5365 | |
| 5366 | |
| 5367 | |
| 5368 | |
| 5369 | |
| 5370 | |
| 5371 | |
| 5372 | |
| 5373 | if test -n "$ac_tool_prefix"; then |
| 5374 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5375 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5377 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5378 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
| 5379 | $as_echo_n "(cached) " >&6 |
| 5380 | else |
| 5381 | if test -n "$OBJDUMP"; then |
| 5382 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5383 | else |
| 5384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5385 | for as_dir in $PATH |
| 5386 | do |
| 5387 | IFS=$as_save_IFS |
| 5388 | test -z "$as_dir" && as_dir=. |
| 5389 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5390 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5391 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5393 | break 2 |
| 5394 | fi |
| 5395 | done |
| 5396 | done |
| 5397 | IFS=$as_save_IFS |
| 5398 | |
| 5399 | fi |
| 5400 | fi |
| 5401 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5402 | if test -n "$OBJDUMP"; then |
| 5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5404 | $as_echo "$OBJDUMP" >&6; } |
| 5405 | else |
| 5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5407 | $as_echo "no" >&6; } |
| 5408 | fi |
| 5409 | |
| 5410 | |
| 5411 | fi |
| 5412 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5413 | ac_ct_OBJDUMP=$OBJDUMP |
| 5414 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5415 | set dummy objdump; ac_word=$2 |
| 5416 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5417 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5418 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
| 5419 | $as_echo_n "(cached) " >&6 |
| 5420 | else |
| 5421 | if test -n "$ac_ct_OBJDUMP"; then |
| 5422 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5423 | else |
| 5424 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5425 | for as_dir in $PATH |
| 5426 | do |
| 5427 | IFS=$as_save_IFS |
| 5428 | test -z "$as_dir" && as_dir=. |
| 5429 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5430 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5431 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5432 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5433 | break 2 |
| 5434 | fi |
| 5435 | done |
| 5436 | done |
| 5437 | IFS=$as_save_IFS |
| 5438 | |
| 5439 | fi |
| 5440 | fi |
| 5441 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5442 | if test -n "$ac_ct_OBJDUMP"; then |
| 5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5444 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5445 | else |
| 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5447 | $as_echo "no" >&6; } |
| 5448 | fi |
| 5449 | |
| 5450 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5451 | OBJDUMP="false" |
| 5452 | else |
| 5453 | case $cross_compiling:$ac_tool_warned in |
| 5454 | yes:) |
| 5455 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5456 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5457 | ac_tool_warned=yes ;; |
| 5458 | esac |
| 5459 | OBJDUMP=$ac_ct_OBJDUMP |
| 5460 | fi |
| 5461 | else |
| 5462 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5463 | fi |
| 5464 | |
| 5465 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5466 | |
| 5467 | |
| 5468 | |
| 5469 | |
| 5470 | |
| 5471 | |
| 5472 | |
| 5473 | |
| 5474 | |
| 5475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5476 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5477 | if test "${lt_cv_deplibs_check_method+set}" = set; then : |
| 5478 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5479 | else |
| 5480 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5481 | lt_cv_file_magic_test_file= |
| 5482 | lt_cv_deplibs_check_method='unknown' |
| 5483 | # Need to set the preceding variable on all platforms that support |
| 5484 | # interlibrary dependencies. |
| 5485 | # 'none' -- dependencies not supported. |
| 5486 | # `unknown' -- same as none, but documents that we really don't know. |
| 5487 | # 'pass_all' -- all dependencies passed with no checks. |
| 5488 | # 'test_compile' -- check by making test program. |
| 5489 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5490 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5491 | # If you have `file' or equivalent on your system and you're not sure |
| 5492 | # whether `pass_all' will *always* work, you probably want this one. |
| 5493 | |
| 5494 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5495 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5496 | lt_cv_deplibs_check_method=pass_all |
| 5497 | ;; |
| 5498 | |
| 5499 | beos*) |
| 5500 | lt_cv_deplibs_check_method=pass_all |
| 5501 | ;; |
| 5502 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5503 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5504 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5505 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5506 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5507 | ;; |
| 5508 | |
| 5509 | cygwin*) |
| 5510 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5511 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5512 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5513 | ;; |
| 5514 | |
| 5515 | mingw* | pw32*) |
| 5516 | # Base MSYS/MinGW do not provide the 'file' command needed by |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5517 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5518 | # unless we find 'file', for example because we are cross-compiling. |
| 5519 | if ( file / ) >/dev/null 2>&1; then |
| 5520 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5521 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5522 | else |
| 5523 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 5524 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5525 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5526 | ;; |
| 5527 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5528 | cegcc) |
| 5529 | # use the weaker test based on 'objdump'. See mingw*. |
| 5530 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5531 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5532 | ;; |
| 5533 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5534 | darwin* | rhapsody*) |
| 5535 | lt_cv_deplibs_check_method=pass_all |
| 5536 | ;; |
| 5537 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5538 | freebsd* | dragonfly*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5539 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5540 | case $host_cpu in |
| 5541 | i*86 ) |
| 5542 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5543 | # Let's accept both of them until this is cleared up. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5544 | 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] | 5545 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5546 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5547 | ;; |
| 5548 | esac |
| 5549 | else |
| 5550 | lt_cv_deplibs_check_method=pass_all |
| 5551 | fi |
| 5552 | ;; |
| 5553 | |
| 5554 | gnu*) |
| 5555 | lt_cv_deplibs_check_method=pass_all |
| 5556 | ;; |
| 5557 | |
| 5558 | hpux10.20* | hpux11*) |
| 5559 | lt_cv_file_magic_cmd=/usr/bin/file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5560 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5561 | ia64*) |
| 5562 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5563 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5564 | ;; |
| 5565 | hppa*64*) |
| 5566 | 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]' |
| 5567 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5568 | ;; |
| 5569 | *) |
| 5570 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5571 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5572 | ;; |
| 5573 | esac |
| 5574 | ;; |
| 5575 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5576 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5577 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5578 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5579 | ;; |
| 5580 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5581 | irix5* | irix6* | nonstopux*) |
| 5582 | case $LD in |
| 5583 | *-32|*"-32 ") libmagic=32-bit;; |
| 5584 | *-n32|*"-n32 ") libmagic=N32;; |
| 5585 | *-64|*"-64 ") libmagic=64-bit;; |
| 5586 | *) libmagic=never-match;; |
| 5587 | esac |
| 5588 | lt_cv_deplibs_check_method=pass_all |
| 5589 | ;; |
| 5590 | |
| 5591 | # This must be Linux ELF. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5592 | linux* | k*bsd*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5593 | lt_cv_deplibs_check_method=pass_all |
| 5594 | ;; |
| 5595 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 5596 | netbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5597 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5598 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5599 | else |
| 5600 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5601 | fi |
| 5602 | ;; |
| 5603 | |
| 5604 | newos6*) |
| 5605 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5606 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5607 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5608 | ;; |
| 5609 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5610 | *nto* | *qnx*) |
| 5611 | lt_cv_deplibs_check_method=pass_all |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5612 | ;; |
| 5613 | |
| 5614 | openbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5615 | 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] | 5616 | 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] | 5617 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5618 | 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] | 5619 | fi |
| 5620 | ;; |
| 5621 | |
| 5622 | osf3* | osf4* | osf5*) |
| 5623 | lt_cv_deplibs_check_method=pass_all |
| 5624 | ;; |
| 5625 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5626 | rdos*) |
| 5627 | lt_cv_deplibs_check_method=pass_all |
| 5628 | ;; |
| 5629 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5630 | solaris*) |
| 5631 | lt_cv_deplibs_check_method=pass_all |
| 5632 | ;; |
| 5633 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5634 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5635 | lt_cv_deplibs_check_method=pass_all |
| 5636 | ;; |
| 5637 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5638 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5639 | case $host_vendor in |
| 5640 | motorola) |
| 5641 | 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]' |
| 5642 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5643 | ;; |
| 5644 | ncr) |
| 5645 | lt_cv_deplibs_check_method=pass_all |
| 5646 | ;; |
| 5647 | sequent) |
| 5648 | lt_cv_file_magic_cmd='/bin/file' |
| 5649 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5650 | ;; |
| 5651 | sni) |
| 5652 | lt_cv_file_magic_cmd='/bin/file' |
| 5653 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5654 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5655 | ;; |
| 5656 | siemens) |
| 5657 | lt_cv_deplibs_check_method=pass_all |
| 5658 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5659 | pc) |
| 5660 | lt_cv_deplibs_check_method=pass_all |
| 5661 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5662 | esac |
| 5663 | ;; |
| 5664 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5665 | tpf*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5666 | lt_cv_deplibs_check_method=pass_all |
| 5667 | ;; |
| 5668 | esac |
| 5669 | |
| 5670 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5672 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5673 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5674 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5675 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5676 | |
| 5677 | |
| 5678 | |
| 5679 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5680 | |
| 5681 | |
| 5682 | |
| 5683 | |
| 5684 | |
| 5685 | |
| 5686 | |
| 5687 | |
| 5688 | if test -n "$ac_tool_prefix"; then |
| 5689 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5690 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5692 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5693 | if test "${ac_cv_prog_AR+set}" = set; then : |
| 5694 | $as_echo_n "(cached) " >&6 |
| 5695 | else |
| 5696 | if test -n "$AR"; then |
| 5697 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5698 | else |
| 5699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5700 | for as_dir in $PATH |
| 5701 | do |
| 5702 | IFS=$as_save_IFS |
| 5703 | test -z "$as_dir" && as_dir=. |
| 5704 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5706 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5707 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5708 | break 2 |
| 5709 | fi |
| 5710 | done |
| 5711 | done |
| 5712 | IFS=$as_save_IFS |
| 5713 | |
| 5714 | fi |
| 5715 | fi |
| 5716 | AR=$ac_cv_prog_AR |
| 5717 | if test -n "$AR"; then |
| 5718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5719 | $as_echo "$AR" >&6; } |
| 5720 | else |
| 5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5722 | $as_echo "no" >&6; } |
| 5723 | fi |
| 5724 | |
| 5725 | |
| 5726 | fi |
| 5727 | if test -z "$ac_cv_prog_AR"; then |
| 5728 | ac_ct_AR=$AR |
| 5729 | # Extract the first word of "ar", so it can be a program name with args. |
| 5730 | set dummy ar; ac_word=$2 |
| 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5732 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5733 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| 5734 | $as_echo_n "(cached) " >&6 |
| 5735 | else |
| 5736 | if test -n "$ac_ct_AR"; then |
| 5737 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5738 | else |
| 5739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5740 | for as_dir in $PATH |
| 5741 | do |
| 5742 | IFS=$as_save_IFS |
| 5743 | test -z "$as_dir" && as_dir=. |
| 5744 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5745 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5746 | ac_cv_prog_ac_ct_AR="ar" |
| 5747 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5748 | break 2 |
| 5749 | fi |
| 5750 | done |
| 5751 | done |
| 5752 | IFS=$as_save_IFS |
| 5753 | |
| 5754 | fi |
| 5755 | fi |
| 5756 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5757 | if test -n "$ac_ct_AR"; then |
| 5758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5759 | $as_echo "$ac_ct_AR" >&6; } |
| 5760 | else |
| 5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5762 | $as_echo "no" >&6; } |
| 5763 | fi |
| 5764 | |
| 5765 | if test "x$ac_ct_AR" = x; then |
| 5766 | AR="false" |
| 5767 | else |
| 5768 | case $cross_compiling:$ac_tool_warned in |
| 5769 | yes:) |
| 5770 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5771 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5772 | ac_tool_warned=yes ;; |
| 5773 | esac |
| 5774 | AR=$ac_ct_AR |
| 5775 | fi |
| 5776 | else |
| 5777 | AR="$ac_cv_prog_AR" |
| 5778 | fi |
| 5779 | |
| 5780 | test -z "$AR" && AR=ar |
| 5781 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5782 | |
| 5783 | |
| 5784 | |
| 5785 | |
| 5786 | |
| 5787 | |
| 5788 | |
| 5789 | |
| 5790 | |
| 5791 | |
| 5792 | |
| 5793 | if test -n "$ac_tool_prefix"; then |
| 5794 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5795 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5797 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5798 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 5799 | $as_echo_n "(cached) " >&6 |
| 5800 | else |
| 5801 | if test -n "$STRIP"; then |
| 5802 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5803 | else |
| 5804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5805 | for as_dir in $PATH |
| 5806 | do |
| 5807 | IFS=$as_save_IFS |
| 5808 | test -z "$as_dir" && as_dir=. |
| 5809 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5810 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5811 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5813 | break 2 |
| 5814 | fi |
| 5815 | done |
| 5816 | done |
| 5817 | IFS=$as_save_IFS |
| 5818 | |
| 5819 | fi |
| 5820 | fi |
| 5821 | STRIP=$ac_cv_prog_STRIP |
| 5822 | if test -n "$STRIP"; then |
| 5823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5824 | $as_echo "$STRIP" >&6; } |
| 5825 | else |
| 5826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5827 | $as_echo "no" >&6; } |
| 5828 | fi |
| 5829 | |
| 5830 | |
| 5831 | fi |
| 5832 | if test -z "$ac_cv_prog_STRIP"; then |
| 5833 | ac_ct_STRIP=$STRIP |
| 5834 | # Extract the first word of "strip", so it can be a program name with args. |
| 5835 | set dummy strip; ac_word=$2 |
| 5836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5837 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5838 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 5839 | $as_echo_n "(cached) " >&6 |
| 5840 | else |
| 5841 | if test -n "$ac_ct_STRIP"; then |
| 5842 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5843 | else |
| 5844 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5845 | for as_dir in $PATH |
| 5846 | do |
| 5847 | IFS=$as_save_IFS |
| 5848 | test -z "$as_dir" && as_dir=. |
| 5849 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5850 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5851 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5852 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5853 | break 2 |
| 5854 | fi |
| 5855 | done |
| 5856 | done |
| 5857 | IFS=$as_save_IFS |
| 5858 | |
| 5859 | fi |
| 5860 | fi |
| 5861 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5862 | if test -n "$ac_ct_STRIP"; then |
| 5863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5864 | $as_echo "$ac_ct_STRIP" >&6; } |
| 5865 | else |
| 5866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5867 | $as_echo "no" >&6; } |
| 5868 | fi |
| 5869 | |
| 5870 | if test "x$ac_ct_STRIP" = x; then |
| 5871 | STRIP=":" |
| 5872 | else |
| 5873 | case $cross_compiling:$ac_tool_warned in |
| 5874 | yes:) |
| 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5876 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5877 | ac_tool_warned=yes ;; |
| 5878 | esac |
| 5879 | STRIP=$ac_ct_STRIP |
| 5880 | fi |
| 5881 | else |
| 5882 | STRIP="$ac_cv_prog_STRIP" |
| 5883 | fi |
| 5884 | |
| 5885 | test -z "$STRIP" && STRIP=: |
| 5886 | |
| 5887 | |
| 5888 | |
| 5889 | |
| 5890 | |
| 5891 | |
| 5892 | if test -n "$ac_tool_prefix"; then |
| 5893 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5894 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5896 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5897 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 5898 | $as_echo_n "(cached) " >&6 |
| 5899 | else |
| 5900 | if test -n "$RANLIB"; then |
| 5901 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5902 | else |
| 5903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5904 | for as_dir in $PATH |
| 5905 | do |
| 5906 | IFS=$as_save_IFS |
| 5907 | test -z "$as_dir" && as_dir=. |
| 5908 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5910 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5911 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5912 | break 2 |
| 5913 | fi |
| 5914 | done |
| 5915 | done |
| 5916 | IFS=$as_save_IFS |
| 5917 | |
| 5918 | fi |
| 5919 | fi |
| 5920 | RANLIB=$ac_cv_prog_RANLIB |
| 5921 | if test -n "$RANLIB"; then |
| 5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5923 | $as_echo "$RANLIB" >&6; } |
| 5924 | else |
| 5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5926 | $as_echo "no" >&6; } |
| 5927 | fi |
| 5928 | |
| 5929 | |
| 5930 | fi |
| 5931 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5932 | ac_ct_RANLIB=$RANLIB |
| 5933 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5934 | set dummy ranlib; ac_word=$2 |
| 5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5936 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5937 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 5938 | $as_echo_n "(cached) " >&6 |
| 5939 | else |
| 5940 | if test -n "$ac_ct_RANLIB"; then |
| 5941 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5942 | else |
| 5943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5944 | for as_dir in $PATH |
| 5945 | do |
| 5946 | IFS=$as_save_IFS |
| 5947 | test -z "$as_dir" && as_dir=. |
| 5948 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5950 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 5951 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5952 | break 2 |
| 5953 | fi |
| 5954 | done |
| 5955 | done |
| 5956 | IFS=$as_save_IFS |
| 5957 | |
| 5958 | fi |
| 5959 | fi |
| 5960 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 5961 | if test -n "$ac_ct_RANLIB"; then |
| 5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 5963 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 5964 | else |
| 5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5966 | $as_echo "no" >&6; } |
| 5967 | fi |
| 5968 | |
| 5969 | if test "x$ac_ct_RANLIB" = x; then |
| 5970 | RANLIB=":" |
| 5971 | else |
| 5972 | case $cross_compiling:$ac_tool_warned in |
| 5973 | yes:) |
| 5974 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5975 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5976 | ac_tool_warned=yes ;; |
| 5977 | esac |
| 5978 | RANLIB=$ac_ct_RANLIB |
| 5979 | fi |
| 5980 | else |
| 5981 | RANLIB="$ac_cv_prog_RANLIB" |
| 5982 | fi |
| 5983 | |
| 5984 | test -z "$RANLIB" && RANLIB=: |
| 5985 | |
| 5986 | |
| 5987 | |
| 5988 | |
| 5989 | |
| 5990 | |
| 5991 | # Determine commands to create old-style static archives. |
| 5992 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 5993 | old_postinstall_cmds='chmod 644 $oldlib' |
| 5994 | old_postuninstall_cmds= |
| 5995 | |
| 5996 | if test -n "$RANLIB"; then |
| 5997 | case $host_os in |
| 5998 | openbsd*) |
| 5999 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 6000 | ;; |
| 6001 | *) |
| 6002 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 6003 | ;; |
| 6004 | esac |
| 6005 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6006 | fi |
| 6007 | |
| 6008 | |
| 6009 | |
| 6010 | |
| 6011 | |
| 6012 | |
| 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 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6041 | # If no C compiler was specified, use CC. |
| 6042 | LTCC=${LTCC-"$CC"} |
| 6043 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6044 | # If no C compiler flags were specified, use CFLAGS. |
| 6045 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6046 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6047 | # Allow CC to be a program name with arguments. |
| 6048 | compiler=$CC |
| 6049 | |
| 6050 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6051 | # 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] | 6052 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6053 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6054 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
| 6055 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6056 | else |
| 6057 | |
| 6058 | # These are sane defaults that work on at least a few old systems. |
| 6059 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6060 | |
| 6061 | # Character class describing NM global symbol codes. |
| 6062 | symcode='[BCDEGRST]' |
| 6063 | |
| 6064 | # Regexp to match symbols that can be accessed directly from C. |
| 6065 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6066 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6067 | # Define system-specific variables. |
| 6068 | case $host_os in |
| 6069 | aix*) |
| 6070 | symcode='[BCDT]' |
| 6071 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6072 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6073 | symcode='[ABCDGISTW]' |
| 6074 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6075 | hpux*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6076 | if test "$host_cpu" = ia64; then |
| 6077 | symcode='[ABCDEGRST]' |
| 6078 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6079 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6080 | irix* | nonstopux*) |
| 6081 | symcode='[BCDEGRST]' |
| 6082 | ;; |
| 6083 | osf*) |
| 6084 | symcode='[BCDEGQRST]' |
| 6085 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6086 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6087 | symcode='[BDRT]' |
| 6088 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6089 | sco3.2v5*) |
| 6090 | symcode='[DT]' |
| 6091 | ;; |
| 6092 | sysv4.2uw2*) |
| 6093 | symcode='[DT]' |
| 6094 | ;; |
| 6095 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6096 | symcode='[ABDT]' |
| 6097 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6098 | sysv4) |
| 6099 | symcode='[DFNSTU]' |
| 6100 | ;; |
| 6101 | esac |
| 6102 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6103 | # If we're using GNU nm, then use its standard symbol codes. |
| 6104 | case `$NM -V 2>&1` in |
| 6105 | *GNU* | *'with BFD'*) |
| 6106 | symcode='[ABCDGIRSTW]' ;; |
| 6107 | esac |
| 6108 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6109 | # Transform an extracted symbol line into a proper C declaration. |
| 6110 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6111 | # so use this general approach. |
| 6112 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6113 | |
| 6114 | # Transform an extracted symbol line into symbol name and symbol address |
| 6115 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6116 | 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'" |
| 6117 | |
| 6118 | # Handle CRLF in mingw tool chain |
| 6119 | opt_cr= |
| 6120 | case $build_os in |
| 6121 | mingw*) |
| 6122 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6123 | ;; |
| 6124 | esac |
| 6125 | |
| 6126 | # Try without a prefix underscore, then with it. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6127 | for ac_symprfx in "" "_"; do |
| 6128 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6129 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6130 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6131 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6132 | # Write the raw and C identifiers. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6133 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6134 | # Fake it for dumpbin and say T for any non-static function |
| 6135 | # and D for any global variable. |
| 6136 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6137 | # which start with @ or ?. |
| 6138 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6139 | " {last_section=section; section=\$ 3};"\ |
| 6140 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6141 | " \$ 0!~/External *\|/{next};"\ |
| 6142 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6143 | " {if(hide[section]) next};"\ |
| 6144 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6145 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6146 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6147 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6148 | " ' prfx=^$ac_symprfx" |
| 6149 | else |
| 6150 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6151 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6152 | |
| 6153 | # Check to see that the pipe works correctly. |
| 6154 | pipe_works=no |
| 6155 | |
| 6156 | rm -f conftest* |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6157 | cat > conftest.$ac_ext <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6158 | #ifdef __cplusplus |
| 6159 | extern "C" { |
| 6160 | #endif |
| 6161 | char nm_test_var; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6162 | void nm_test_func(void); |
| 6163 | void nm_test_func(void){} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6164 | #ifdef __cplusplus |
| 6165 | } |
| 6166 | #endif |
| 6167 | int main(){nm_test_var='a';nm_test_func();return(0);} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6168 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6169 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6170 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6171 | (eval $ac_compile) 2>&5 |
| 6172 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6173 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6174 | test $ac_status = 0; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6175 | # Now try to grab the symbols. |
| 6176 | nlist=conftest.nm |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6177 | 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] | 6178 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6179 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6180 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6181 | test $ac_status = 0; } && test -s "$nlist"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6182 | # Try sorting and uniquifying the output. |
| 6183 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6184 | mv -f "$nlist"T "$nlist" |
| 6185 | else |
| 6186 | rm -f "$nlist"T |
| 6187 | fi |
| 6188 | |
| 6189 | # Make sure that we snagged all the symbols we need. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6190 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6191 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6192 | cat <<_LT_EOF > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6193 | #ifdef __cplusplus |
| 6194 | extern "C" { |
| 6195 | #endif |
| 6196 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6197 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6198 | # Now generate the symbol file. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6199 | 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] | 6200 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6201 | cat <<_LT_EOF >> conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6202 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6203 | /* The mapping between symbol names and symbols. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6204 | const struct { |
| 6205 | const char *name; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6206 | void *address; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6207 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6208 | lt__PROGRAM__LTX_preloaded_symbols[] = |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6209 | { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6210 | { "@PROGRAM@", (void *) 0 }, |
| 6211 | _LT_EOF |
| 6212 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6213 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6214 | {0, (void *) 0} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6215 | }; |
| 6216 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6217 | /* This works around a problem in FreeBSD linker */ |
| 6218 | #ifdef FREEBSD_WORKAROUND |
| 6219 | static const void *lt_preloaded_setup() { |
| 6220 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6221 | } |
| 6222 | #endif |
| 6223 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6224 | #ifdef __cplusplus |
| 6225 | } |
| 6226 | #endif |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6227 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6228 | # Now try linking the two files. |
| 6229 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6230 | lt_save_LIBS="$LIBS" |
| 6231 | lt_save_CFLAGS="$CFLAGS" |
| 6232 | LIBS="conftstm.$ac_objext" |
| 6233 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6234 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6235 | (eval $ac_link) 2>&5 |
| 6236 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6237 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6238 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6239 | pipe_works=yes |
| 6240 | fi |
| 6241 | LIBS="$lt_save_LIBS" |
| 6242 | CFLAGS="$lt_save_CFLAGS" |
| 6243 | else |
| 6244 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6245 | fi |
| 6246 | else |
| 6247 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6248 | fi |
| 6249 | else |
| 6250 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6251 | fi |
| 6252 | else |
| 6253 | echo "$progname: failed program was:" >&5 |
| 6254 | cat conftest.$ac_ext >&5 |
| 6255 | fi |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 6256 | rm -rf conftest* conftst* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6257 | |
| 6258 | # Do not use the global_symbol_pipe unless it works. |
| 6259 | if test "$pipe_works" = yes; then |
| 6260 | break |
| 6261 | else |
| 6262 | lt_cv_sys_global_symbol_pipe= |
| 6263 | fi |
| 6264 | done |
| 6265 | |
| 6266 | fi |
| 6267 | |
| 6268 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6269 | lt_cv_sys_global_symbol_to_cdecl= |
| 6270 | fi |
| 6271 | 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] | 6272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6273 | $as_echo "failed" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6274 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6276 | $as_echo "ok" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6277 | fi |
| 6278 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6279 | |
| 6280 | |
| 6281 | |
| 6282 | |
| 6283 | |
| 6284 | |
| 6285 | |
| 6286 | |
| 6287 | |
| 6288 | |
| 6289 | |
| 6290 | |
| 6291 | |
| 6292 | |
| 6293 | |
| 6294 | |
| 6295 | |
| 6296 | |
| 6297 | |
| 6298 | |
| 6299 | |
| 6300 | |
| 6301 | # Check whether --enable-libtool-lock was given. |
| 6302 | if test "${enable_libtool_lock+set}" = set; then : |
| 6303 | enableval=$enable_libtool_lock; |
| 6304 | fi |
| 6305 | |
| 6306 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6307 | |
| 6308 | # Some flags need to be propagated to the compiler or linker for good |
| 6309 | # libtool support. |
| 6310 | case $host in |
| 6311 | ia64-*-hpux*) |
| 6312 | # Find out which ABI we are using. |
| 6313 | echo 'int i;' > conftest.$ac_ext |
| 6314 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6315 | (eval $ac_compile) 2>&5 |
| 6316 | ac_status=$? |
| 6317 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6318 | test $ac_status = 0; }; then |
| 6319 | case `/usr/bin/file conftest.$ac_objext` in |
| 6320 | *ELF-32*) |
| 6321 | HPUX_IA64_MODE="32" |
| 6322 | ;; |
| 6323 | *ELF-64*) |
| 6324 | HPUX_IA64_MODE="64" |
| 6325 | ;; |
| 6326 | esac |
| 6327 | fi |
| 6328 | rm -rf conftest* |
| 6329 | ;; |
| 6330 | *-*-irix6*) |
| 6331 | # Find out which ABI we are using. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 6332 | echo '#line 6332 "configure"' > conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6333 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6334 | (eval $ac_compile) 2>&5 |
| 6335 | ac_status=$? |
| 6336 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6337 | test $ac_status = 0; }; then |
| 6338 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6339 | case `/usr/bin/file conftest.$ac_objext` in |
| 6340 | *32-bit*) |
| 6341 | LD="${LD-ld} -melf32bsmip" |
| 6342 | ;; |
| 6343 | *N32*) |
| 6344 | LD="${LD-ld} -melf32bmipn32" |
| 6345 | ;; |
| 6346 | *64-bit*) |
| 6347 | LD="${LD-ld} -melf64bmip" |
| 6348 | ;; |
| 6349 | esac |
| 6350 | else |
| 6351 | case `/usr/bin/file conftest.$ac_objext` in |
| 6352 | *32-bit*) |
| 6353 | LD="${LD-ld} -32" |
| 6354 | ;; |
| 6355 | *N32*) |
| 6356 | LD="${LD-ld} -n32" |
| 6357 | ;; |
| 6358 | *64-bit*) |
| 6359 | LD="${LD-ld} -64" |
| 6360 | ;; |
| 6361 | esac |
| 6362 | fi |
| 6363 | fi |
| 6364 | rm -rf conftest* |
| 6365 | ;; |
| 6366 | |
| 6367 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6368 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6369 | # Find out which ABI we are using. |
| 6370 | echo 'int i;' > conftest.$ac_ext |
| 6371 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6372 | (eval $ac_compile) 2>&5 |
| 6373 | ac_status=$? |
| 6374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6375 | test $ac_status = 0; }; then |
| 6376 | case `/usr/bin/file conftest.o` in |
| 6377 | *32-bit*) |
| 6378 | case $host in |
| 6379 | x86_64-*kfreebsd*-gnu) |
| 6380 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6381 | ;; |
| 6382 | x86_64-*linux*) |
| 6383 | LD="${LD-ld} -m elf_i386" |
| 6384 | ;; |
| 6385 | ppc64-*linux*|powerpc64-*linux*) |
| 6386 | LD="${LD-ld} -m elf32ppclinux" |
| 6387 | ;; |
| 6388 | s390x-*linux*) |
| 6389 | LD="${LD-ld} -m elf_s390" |
| 6390 | ;; |
| 6391 | sparc64-*linux*) |
| 6392 | LD="${LD-ld} -m elf32_sparc" |
| 6393 | ;; |
| 6394 | esac |
| 6395 | ;; |
| 6396 | *64-bit*) |
| 6397 | case $host in |
| 6398 | x86_64-*kfreebsd*-gnu) |
| 6399 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6400 | ;; |
| 6401 | x86_64-*linux*) |
| 6402 | LD="${LD-ld} -m elf_x86_64" |
| 6403 | ;; |
| 6404 | ppc*-*linux*|powerpc*-*linux*) |
| 6405 | LD="${LD-ld} -m elf64ppc" |
| 6406 | ;; |
| 6407 | s390*-*linux*|s390*-*tpf*) |
| 6408 | LD="${LD-ld} -m elf64_s390" |
| 6409 | ;; |
| 6410 | sparc*-*linux*) |
| 6411 | LD="${LD-ld} -m elf64_sparc" |
| 6412 | ;; |
| 6413 | esac |
| 6414 | ;; |
| 6415 | esac |
| 6416 | fi |
| 6417 | rm -rf conftest* |
| 6418 | ;; |
| 6419 | |
| 6420 | *-*-sco3.2v5*) |
| 6421 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6422 | SAVE_CFLAGS="$CFLAGS" |
| 6423 | CFLAGS="$CFLAGS -belf" |
| 6424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6425 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6426 | if test "${lt_cv_cc_needs_belf+set}" = set; then : |
| 6427 | $as_echo_n "(cached) " >&6 |
| 6428 | else |
| 6429 | ac_ext=c |
| 6430 | ac_cpp='$CPP $CPPFLAGS' |
| 6431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6434 | |
| 6435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6436 | /* end confdefs.h. */ |
| 6437 | |
| 6438 | int |
| 6439 | main () |
| 6440 | { |
| 6441 | |
| 6442 | ; |
| 6443 | return 0; |
| 6444 | } |
| 6445 | _ACEOF |
| 6446 | if ac_fn_c_try_link "$LINENO"; then : |
| 6447 | lt_cv_cc_needs_belf=yes |
| 6448 | else |
| 6449 | lt_cv_cc_needs_belf=no |
| 6450 | fi |
| 6451 | rm -f core conftest.err conftest.$ac_objext \ |
| 6452 | conftest$ac_exeext conftest.$ac_ext |
| 6453 | ac_ext=c |
| 6454 | ac_cpp='$CPP $CPPFLAGS' |
| 6455 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6456 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6457 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6458 | |
| 6459 | fi |
| 6460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6461 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6462 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6463 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6464 | CFLAGS="$SAVE_CFLAGS" |
| 6465 | fi |
| 6466 | ;; |
| 6467 | sparc*-*solaris*) |
| 6468 | # Find out which ABI we are using. |
| 6469 | echo 'int i;' > conftest.$ac_ext |
| 6470 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6471 | (eval $ac_compile) 2>&5 |
| 6472 | ac_status=$? |
| 6473 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6474 | test $ac_status = 0; }; then |
| 6475 | case `/usr/bin/file conftest.o` in |
| 6476 | *64-bit*) |
| 6477 | case $lt_cv_prog_gnu_ld in |
| 6478 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 6479 | *) |
| 6480 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6481 | LD="${LD-ld} -64" |
| 6482 | fi |
| 6483 | ;; |
| 6484 | esac |
| 6485 | ;; |
| 6486 | esac |
| 6487 | fi |
| 6488 | rm -rf conftest* |
| 6489 | ;; |
| 6490 | esac |
| 6491 | |
| 6492 | need_locks="$enable_libtool_lock" |
| 6493 | |
| 6494 | |
| 6495 | case $host_os in |
| 6496 | rhapsody* | darwin*) |
| 6497 | if test -n "$ac_tool_prefix"; then |
| 6498 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6499 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6501 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6502 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
| 6503 | $as_echo_n "(cached) " >&6 |
| 6504 | else |
| 6505 | if test -n "$DSYMUTIL"; then |
| 6506 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6507 | else |
| 6508 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6509 | for as_dir in $PATH |
| 6510 | do |
| 6511 | IFS=$as_save_IFS |
| 6512 | test -z "$as_dir" && as_dir=. |
| 6513 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6514 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6515 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6516 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6517 | break 2 |
| 6518 | fi |
| 6519 | done |
| 6520 | done |
| 6521 | IFS=$as_save_IFS |
| 6522 | |
| 6523 | fi |
| 6524 | fi |
| 6525 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6526 | if test -n "$DSYMUTIL"; then |
| 6527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 6528 | $as_echo "$DSYMUTIL" >&6; } |
| 6529 | else |
| 6530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6531 | $as_echo "no" >&6; } |
| 6532 | fi |
| 6533 | |
| 6534 | |
| 6535 | fi |
| 6536 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6537 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6538 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6539 | set dummy dsymutil; ac_word=$2 |
| 6540 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6541 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6542 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
| 6543 | $as_echo_n "(cached) " >&6 |
| 6544 | else |
| 6545 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6546 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6547 | else |
| 6548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6549 | for as_dir in $PATH |
| 6550 | do |
| 6551 | IFS=$as_save_IFS |
| 6552 | test -z "$as_dir" && as_dir=. |
| 6553 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6554 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6555 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6556 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6557 | break 2 |
| 6558 | fi |
| 6559 | done |
| 6560 | done |
| 6561 | IFS=$as_save_IFS |
| 6562 | |
| 6563 | fi |
| 6564 | fi |
| 6565 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6566 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 6568 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 6569 | else |
| 6570 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6571 | $as_echo "no" >&6; } |
| 6572 | fi |
| 6573 | |
| 6574 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6575 | DSYMUTIL=":" |
| 6576 | else |
| 6577 | case $cross_compiling:$ac_tool_warned in |
| 6578 | yes:) |
| 6579 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6580 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6581 | ac_tool_warned=yes ;; |
| 6582 | esac |
| 6583 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6584 | fi |
| 6585 | else |
| 6586 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6587 | fi |
| 6588 | |
| 6589 | if test -n "$ac_tool_prefix"; then |
| 6590 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6591 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 6592 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6593 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6594 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
| 6595 | $as_echo_n "(cached) " >&6 |
| 6596 | else |
| 6597 | if test -n "$NMEDIT"; then |
| 6598 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6599 | else |
| 6600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6601 | for as_dir in $PATH |
| 6602 | do |
| 6603 | IFS=$as_save_IFS |
| 6604 | test -z "$as_dir" && as_dir=. |
| 6605 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6607 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 6608 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6609 | break 2 |
| 6610 | fi |
| 6611 | done |
| 6612 | done |
| 6613 | IFS=$as_save_IFS |
| 6614 | |
| 6615 | fi |
| 6616 | fi |
| 6617 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6618 | if test -n "$NMEDIT"; then |
| 6619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 6620 | $as_echo "$NMEDIT" >&6; } |
| 6621 | else |
| 6622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6623 | $as_echo "no" >&6; } |
| 6624 | fi |
| 6625 | |
| 6626 | |
| 6627 | fi |
| 6628 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6629 | ac_ct_NMEDIT=$NMEDIT |
| 6630 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6631 | set dummy nmedit; ac_word=$2 |
| 6632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6633 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6634 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
| 6635 | $as_echo_n "(cached) " >&6 |
| 6636 | else |
| 6637 | if test -n "$ac_ct_NMEDIT"; then |
| 6638 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6639 | else |
| 6640 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6641 | for as_dir in $PATH |
| 6642 | do |
| 6643 | IFS=$as_save_IFS |
| 6644 | test -z "$as_dir" && as_dir=. |
| 6645 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6646 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6647 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 6648 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6649 | break 2 |
| 6650 | fi |
| 6651 | done |
| 6652 | done |
| 6653 | IFS=$as_save_IFS |
| 6654 | |
| 6655 | fi |
| 6656 | fi |
| 6657 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6658 | if test -n "$ac_ct_NMEDIT"; then |
| 6659 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 6660 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 6661 | else |
| 6662 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6663 | $as_echo "no" >&6; } |
| 6664 | fi |
| 6665 | |
| 6666 | if test "x$ac_ct_NMEDIT" = x; then |
| 6667 | NMEDIT=":" |
| 6668 | else |
| 6669 | case $cross_compiling:$ac_tool_warned in |
| 6670 | yes:) |
| 6671 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6672 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6673 | ac_tool_warned=yes ;; |
| 6674 | esac |
| 6675 | NMEDIT=$ac_ct_NMEDIT |
| 6676 | fi |
| 6677 | else |
| 6678 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6679 | fi |
| 6680 | |
| 6681 | if test -n "$ac_tool_prefix"; then |
| 6682 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6683 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6685 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6686 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
| 6687 | $as_echo_n "(cached) " >&6 |
| 6688 | else |
| 6689 | if test -n "$LIPO"; then |
| 6690 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6691 | else |
| 6692 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6693 | for as_dir in $PATH |
| 6694 | do |
| 6695 | IFS=$as_save_IFS |
| 6696 | test -z "$as_dir" && as_dir=. |
| 6697 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6698 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6699 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 6700 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6701 | break 2 |
| 6702 | fi |
| 6703 | done |
| 6704 | done |
| 6705 | IFS=$as_save_IFS |
| 6706 | |
| 6707 | fi |
| 6708 | fi |
| 6709 | LIPO=$ac_cv_prog_LIPO |
| 6710 | if test -n "$LIPO"; then |
| 6711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 6712 | $as_echo "$LIPO" >&6; } |
| 6713 | else |
| 6714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6715 | $as_echo "no" >&6; } |
| 6716 | fi |
| 6717 | |
| 6718 | |
| 6719 | fi |
| 6720 | if test -z "$ac_cv_prog_LIPO"; then |
| 6721 | ac_ct_LIPO=$LIPO |
| 6722 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6723 | set dummy lipo; ac_word=$2 |
| 6724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6725 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6726 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
| 6727 | $as_echo_n "(cached) " >&6 |
| 6728 | else |
| 6729 | if test -n "$ac_ct_LIPO"; then |
| 6730 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6731 | else |
| 6732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6733 | for as_dir in $PATH |
| 6734 | do |
| 6735 | IFS=$as_save_IFS |
| 6736 | test -z "$as_dir" && as_dir=. |
| 6737 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6738 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6739 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 6740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6741 | break 2 |
| 6742 | fi |
| 6743 | done |
| 6744 | done |
| 6745 | IFS=$as_save_IFS |
| 6746 | |
| 6747 | fi |
| 6748 | fi |
| 6749 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6750 | if test -n "$ac_ct_LIPO"; then |
| 6751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 6752 | $as_echo "$ac_ct_LIPO" >&6; } |
| 6753 | else |
| 6754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6755 | $as_echo "no" >&6; } |
| 6756 | fi |
| 6757 | |
| 6758 | if test "x$ac_ct_LIPO" = x; then |
| 6759 | LIPO=":" |
| 6760 | else |
| 6761 | case $cross_compiling:$ac_tool_warned in |
| 6762 | yes:) |
| 6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6765 | ac_tool_warned=yes ;; |
| 6766 | esac |
| 6767 | LIPO=$ac_ct_LIPO |
| 6768 | fi |
| 6769 | else |
| 6770 | LIPO="$ac_cv_prog_LIPO" |
| 6771 | fi |
| 6772 | |
| 6773 | if test -n "$ac_tool_prefix"; then |
| 6774 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6775 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6777 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6778 | if test "${ac_cv_prog_OTOOL+set}" = set; then : |
| 6779 | $as_echo_n "(cached) " >&6 |
| 6780 | else |
| 6781 | if test -n "$OTOOL"; then |
| 6782 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6783 | else |
| 6784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6785 | for as_dir in $PATH |
| 6786 | do |
| 6787 | IFS=$as_save_IFS |
| 6788 | test -z "$as_dir" && as_dir=. |
| 6789 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6791 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 6792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6793 | break 2 |
| 6794 | fi |
| 6795 | done |
| 6796 | done |
| 6797 | IFS=$as_save_IFS |
| 6798 | |
| 6799 | fi |
| 6800 | fi |
| 6801 | OTOOL=$ac_cv_prog_OTOOL |
| 6802 | if test -n "$OTOOL"; then |
| 6803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 6804 | $as_echo "$OTOOL" >&6; } |
| 6805 | else |
| 6806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6807 | $as_echo "no" >&6; } |
| 6808 | fi |
| 6809 | |
| 6810 | |
| 6811 | fi |
| 6812 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6813 | ac_ct_OTOOL=$OTOOL |
| 6814 | # Extract the first word of "otool", so it can be a program name with args. |
| 6815 | set dummy otool; ac_word=$2 |
| 6816 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6817 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6818 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
| 6819 | $as_echo_n "(cached) " >&6 |
| 6820 | else |
| 6821 | if test -n "$ac_ct_OTOOL"; then |
| 6822 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6823 | else |
| 6824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6825 | for as_dir in $PATH |
| 6826 | do |
| 6827 | IFS=$as_save_IFS |
| 6828 | test -z "$as_dir" && as_dir=. |
| 6829 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6831 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 6832 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6833 | break 2 |
| 6834 | fi |
| 6835 | done |
| 6836 | done |
| 6837 | IFS=$as_save_IFS |
| 6838 | |
| 6839 | fi |
| 6840 | fi |
| 6841 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6842 | if test -n "$ac_ct_OTOOL"; then |
| 6843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 6844 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 6845 | else |
| 6846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6847 | $as_echo "no" >&6; } |
| 6848 | fi |
| 6849 | |
| 6850 | if test "x$ac_ct_OTOOL" = x; then |
| 6851 | OTOOL=":" |
| 6852 | else |
| 6853 | case $cross_compiling:$ac_tool_warned in |
| 6854 | yes:) |
| 6855 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6856 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6857 | ac_tool_warned=yes ;; |
| 6858 | esac |
| 6859 | OTOOL=$ac_ct_OTOOL |
| 6860 | fi |
| 6861 | else |
| 6862 | OTOOL="$ac_cv_prog_OTOOL" |
| 6863 | fi |
| 6864 | |
| 6865 | if test -n "$ac_tool_prefix"; then |
| 6866 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6867 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6869 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6870 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : |
| 6871 | $as_echo_n "(cached) " >&6 |
| 6872 | else |
| 6873 | if test -n "$OTOOL64"; then |
| 6874 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6875 | else |
| 6876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6877 | for as_dir in $PATH |
| 6878 | do |
| 6879 | IFS=$as_save_IFS |
| 6880 | test -z "$as_dir" && as_dir=. |
| 6881 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6882 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6883 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 6884 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6885 | break 2 |
| 6886 | fi |
| 6887 | done |
| 6888 | done |
| 6889 | IFS=$as_save_IFS |
| 6890 | |
| 6891 | fi |
| 6892 | fi |
| 6893 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6894 | if test -n "$OTOOL64"; then |
| 6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 6896 | $as_echo "$OTOOL64" >&6; } |
| 6897 | else |
| 6898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6899 | $as_echo "no" >&6; } |
| 6900 | fi |
| 6901 | |
| 6902 | |
| 6903 | fi |
| 6904 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6905 | ac_ct_OTOOL64=$OTOOL64 |
| 6906 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6907 | set dummy otool64; ac_word=$2 |
| 6908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6909 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6910 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
| 6911 | $as_echo_n "(cached) " >&6 |
| 6912 | else |
| 6913 | if test -n "$ac_ct_OTOOL64"; then |
| 6914 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6915 | else |
| 6916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6917 | for as_dir in $PATH |
| 6918 | do |
| 6919 | IFS=$as_save_IFS |
| 6920 | test -z "$as_dir" && as_dir=. |
| 6921 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6923 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 6924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6925 | break 2 |
| 6926 | fi |
| 6927 | done |
| 6928 | done |
| 6929 | IFS=$as_save_IFS |
| 6930 | |
| 6931 | fi |
| 6932 | fi |
| 6933 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 6934 | if test -n "$ac_ct_OTOOL64"; then |
| 6935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 6936 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 6937 | else |
| 6938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6939 | $as_echo "no" >&6; } |
| 6940 | fi |
| 6941 | |
| 6942 | if test "x$ac_ct_OTOOL64" = x; then |
| 6943 | OTOOL64=":" |
| 6944 | else |
| 6945 | case $cross_compiling:$ac_tool_warned in |
| 6946 | yes:) |
| 6947 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6948 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6949 | ac_tool_warned=yes ;; |
| 6950 | esac |
| 6951 | OTOOL64=$ac_ct_OTOOL64 |
| 6952 | fi |
| 6953 | else |
| 6954 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 6955 | fi |
| 6956 | |
| 6957 | |
| 6958 | |
| 6959 | |
| 6960 | |
| 6961 | |
| 6962 | |
| 6963 | |
| 6964 | |
| 6965 | |
| 6966 | |
| 6967 | |
| 6968 | |
| 6969 | |
| 6970 | |
| 6971 | |
| 6972 | |
| 6973 | |
| 6974 | |
| 6975 | |
| 6976 | |
| 6977 | |
| 6978 | |
| 6979 | |
| 6980 | |
| 6981 | |
| 6982 | |
| 6983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 6984 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 6985 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
| 6986 | $as_echo_n "(cached) " >&6 |
| 6987 | else |
| 6988 | lt_cv_apple_cc_single_mod=no |
| 6989 | if test -z "${LT_MULTI_MODULE}"; then |
| 6990 | # By default we will add the -single_module flag. You can override |
| 6991 | # by either setting the environment variable LT_MULTI_MODULE |
| 6992 | # non-empty at configure time, or by adding -multi_module to the |
| 6993 | # link flags. |
| 6994 | rm -rf libconftest.dylib* |
| 6995 | echo "int foo(void){return 1;}" > conftest.c |
| 6996 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6997 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 6998 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 6999 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7000 | _lt_result=$? |
| 7001 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 7002 | lt_cv_apple_cc_single_mod=yes |
| 7003 | else |
| 7004 | cat conftest.err >&5 |
| 7005 | fi |
| 7006 | rm -rf libconftest.dylib* |
| 7007 | rm -f conftest.* |
| 7008 | fi |
| 7009 | fi |
| 7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7011 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7013 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7014 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
| 7015 | $as_echo_n "(cached) " >&6 |
| 7016 | else |
| 7017 | lt_cv_ld_exported_symbols_list=no |
| 7018 | save_LDFLAGS=$LDFLAGS |
| 7019 | echo "_main" > conftest.sym |
| 7020 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7022 | /* end confdefs.h. */ |
| 7023 | |
| 7024 | int |
| 7025 | main () |
| 7026 | { |
| 7027 | |
| 7028 | ; |
| 7029 | return 0; |
| 7030 | } |
| 7031 | _ACEOF |
| 7032 | if ac_fn_c_try_link "$LINENO"; then : |
| 7033 | lt_cv_ld_exported_symbols_list=yes |
| 7034 | else |
| 7035 | lt_cv_ld_exported_symbols_list=no |
| 7036 | fi |
| 7037 | rm -f core conftest.err conftest.$ac_objext \ |
| 7038 | conftest$ac_exeext conftest.$ac_ext |
| 7039 | LDFLAGS="$save_LDFLAGS" |
| 7040 | |
| 7041 | fi |
| 7042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7043 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7044 | case $host_os in |
| 7045 | rhapsody* | darwin1.[012]) |
| 7046 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7047 | darwin1.*) |
| 7048 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7049 | darwin*) # darwin 5.x on |
| 7050 | # if running on 10.5 or later, the deployment target defaults |
| 7051 | # to the OS version, if on x86, and 10.4, the deployment |
| 7052 | # target defaults to 10.4. Don't you love it? |
| 7053 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7054 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7055 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7056 | 10.[012]*) |
| 7057 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7058 | 10.*) |
| 7059 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7060 | esac |
| 7061 | ;; |
| 7062 | esac |
| 7063 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7064 | _lt_dar_single_mod='$single_module' |
| 7065 | fi |
| 7066 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7067 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7068 | else |
| 7069 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7070 | fi |
| 7071 | if test "$DSYMUTIL" != ":"; then |
| 7072 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7073 | else |
| 7074 | _lt_dsymutil= |
| 7075 | fi |
| 7076 | ;; |
| 7077 | esac |
| 7078 | |
| 7079 | |
| 7080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7081 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7082 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 7083 | $as_echo_n "(cached) " >&6 |
| 7084 | else |
| 7085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7086 | /* end confdefs.h. */ |
| 7087 | #include <stdlib.h> |
| 7088 | #include <stdarg.h> |
| 7089 | #include <string.h> |
| 7090 | #include <float.h> |
| 7091 | |
| 7092 | int |
| 7093 | main () |
| 7094 | { |
| 7095 | |
| 7096 | ; |
| 7097 | return 0; |
| 7098 | } |
| 7099 | _ACEOF |
| 7100 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7101 | ac_cv_header_stdc=yes |
| 7102 | else |
| 7103 | ac_cv_header_stdc=no |
| 7104 | fi |
| 7105 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7106 | |
| 7107 | if test $ac_cv_header_stdc = yes; then |
| 7108 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7109 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7110 | /* end confdefs.h. */ |
| 7111 | #include <string.h> |
| 7112 | |
| 7113 | _ACEOF |
| 7114 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7115 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7116 | |
| 7117 | else |
| 7118 | ac_cv_header_stdc=no |
| 7119 | fi |
| 7120 | rm -f conftest* |
| 7121 | |
| 7122 | fi |
| 7123 | |
| 7124 | if test $ac_cv_header_stdc = yes; then |
| 7125 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7126 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7127 | /* end confdefs.h. */ |
| 7128 | #include <stdlib.h> |
| 7129 | |
| 7130 | _ACEOF |
| 7131 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7132 | $EGREP "free" >/dev/null 2>&1; then : |
| 7133 | |
| 7134 | else |
| 7135 | ac_cv_header_stdc=no |
| 7136 | fi |
| 7137 | rm -f conftest* |
| 7138 | |
| 7139 | fi |
| 7140 | |
| 7141 | if test $ac_cv_header_stdc = yes; then |
| 7142 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7143 | if test "$cross_compiling" = yes; then : |
| 7144 | : |
| 7145 | else |
| 7146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7147 | /* end confdefs.h. */ |
| 7148 | #include <ctype.h> |
| 7149 | #include <stdlib.h> |
| 7150 | #if ((' ' & 0x0FF) == 0x020) |
| 7151 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7152 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7153 | #else |
| 7154 | # define ISLOWER(c) \ |
| 7155 | (('a' <= (c) && (c) <= 'i') \ |
| 7156 | || ('j' <= (c) && (c) <= 'r') \ |
| 7157 | || ('s' <= (c) && (c) <= 'z')) |
| 7158 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7159 | #endif |
| 7160 | |
| 7161 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7162 | int |
| 7163 | main () |
| 7164 | { |
| 7165 | int i; |
| 7166 | for (i = 0; i < 256; i++) |
| 7167 | if (XOR (islower (i), ISLOWER (i)) |
| 7168 | || toupper (i) != TOUPPER (i)) |
| 7169 | return 2; |
| 7170 | return 0; |
| 7171 | } |
| 7172 | _ACEOF |
| 7173 | if ac_fn_c_try_run "$LINENO"; then : |
| 7174 | |
| 7175 | else |
| 7176 | ac_cv_header_stdc=no |
| 7177 | fi |
| 7178 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7179 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7180 | fi |
| 7181 | |
| 7182 | fi |
| 7183 | fi |
| 7184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7185 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 7186 | if test $ac_cv_header_stdc = yes; then |
| 7187 | |
| 7188 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 7189 | |
| 7190 | fi |
| 7191 | |
| 7192 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7193 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7194 | inttypes.h stdint.h unistd.h |
| 7195 | do : |
| 7196 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7197 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7198 | " |
| 7199 | eval as_val=\$$as_ac_Header |
| 7200 | if test "x$as_val" = x""yes; then : |
| 7201 | cat >>confdefs.h <<_ACEOF |
| 7202 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7203 | _ACEOF |
| 7204 | |
| 7205 | fi |
| 7206 | |
| 7207 | done |
| 7208 | |
| 7209 | |
| 7210 | for ac_header in dlfcn.h |
| 7211 | do : |
| 7212 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7213 | " |
| 7214 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
| 7215 | cat >>confdefs.h <<_ACEOF |
| 7216 | #define HAVE_DLFCN_H 1 |
| 7217 | _ACEOF |
| 7218 | |
| 7219 | fi |
| 7220 | |
| 7221 | done |
| 7222 | |
| 7223 | |
| 7224 | |
| 7225 | ac_ext=cpp |
| 7226 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7227 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7228 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7229 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7230 | if test -z "$CXX"; then |
| 7231 | if test -n "$CCC"; then |
| 7232 | CXX=$CCC |
| 7233 | else |
| 7234 | if test -n "$ac_tool_prefix"; then |
| 7235 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7236 | do |
| 7237 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7238 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7240 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7241 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 7242 | $as_echo_n "(cached) " >&6 |
| 7243 | else |
| 7244 | if test -n "$CXX"; then |
| 7245 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 7246 | else |
| 7247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7248 | for as_dir in $PATH |
| 7249 | do |
| 7250 | IFS=$as_save_IFS |
| 7251 | test -z "$as_dir" && as_dir=. |
| 7252 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7253 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7254 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 7255 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7256 | break 2 |
| 7257 | fi |
| 7258 | done |
| 7259 | done |
| 7260 | IFS=$as_save_IFS |
| 7261 | |
| 7262 | fi |
| 7263 | fi |
| 7264 | CXX=$ac_cv_prog_CXX |
| 7265 | if test -n "$CXX"; then |
| 7266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 7267 | $as_echo "$CXX" >&6; } |
| 7268 | else |
| 7269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7270 | $as_echo "no" >&6; } |
| 7271 | fi |
| 7272 | |
| 7273 | |
| 7274 | test -n "$CXX" && break |
| 7275 | done |
| 7276 | fi |
| 7277 | if test -z "$CXX"; then |
| 7278 | ac_ct_CXX=$CXX |
| 7279 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7280 | do |
| 7281 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7282 | set dummy $ac_prog; ac_word=$2 |
| 7283 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7284 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7285 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 7286 | $as_echo_n "(cached) " >&6 |
| 7287 | else |
| 7288 | if test -n "$ac_ct_CXX"; then |
| 7289 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 7290 | else |
| 7291 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7292 | for as_dir in $PATH |
| 7293 | do |
| 7294 | IFS=$as_save_IFS |
| 7295 | test -z "$as_dir" && as_dir=. |
| 7296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7297 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7298 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 7299 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7300 | break 2 |
| 7301 | fi |
| 7302 | done |
| 7303 | done |
| 7304 | IFS=$as_save_IFS |
| 7305 | |
| 7306 | fi |
| 7307 | fi |
| 7308 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 7309 | if test -n "$ac_ct_CXX"; then |
| 7310 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 7311 | $as_echo "$ac_ct_CXX" >&6; } |
| 7312 | else |
| 7313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7314 | $as_echo "no" >&6; } |
| 7315 | fi |
| 7316 | |
| 7317 | |
| 7318 | test -n "$ac_ct_CXX" && break |
| 7319 | done |
| 7320 | |
| 7321 | if test "x$ac_ct_CXX" = x; then |
| 7322 | CXX="g++" |
| 7323 | else |
| 7324 | case $cross_compiling:$ac_tool_warned in |
| 7325 | yes:) |
| 7326 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7327 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7328 | ac_tool_warned=yes ;; |
| 7329 | esac |
| 7330 | CXX=$ac_ct_CXX |
| 7331 | fi |
| 7332 | fi |
| 7333 | |
| 7334 | fi |
| 7335 | fi |
| 7336 | # Provide some information about the compiler. |
| 7337 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 7338 | set X $ac_compile |
| 7339 | ac_compiler=$2 |
| 7340 | for ac_option in --version -v -V -qversion; do |
| 7341 | { { ac_try="$ac_compiler $ac_option >&5" |
| 7342 | case "(($ac_try" in |
| 7343 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7344 | *) ac_try_echo=$ac_try;; |
| 7345 | esac |
| 7346 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7347 | $as_echo "$ac_try_echo"; } >&5 |
| 7348 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 7349 | ac_status=$? |
| 7350 | if test -s conftest.err; then |
| 7351 | sed '10a\ |
| 7352 | ... rest of stderr output deleted ... |
| 7353 | 10q' conftest.err >conftest.er1 |
| 7354 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7355 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 7356 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7357 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7358 | test $ac_status = 0; } |
| 7359 | done |
| 7360 | |
| 7361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 7362 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 7363 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 7364 | $as_echo_n "(cached) " >&6 |
| 7365 | else |
| 7366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7367 | /* end confdefs.h. */ |
| 7368 | |
| 7369 | int |
| 7370 | main () |
| 7371 | { |
| 7372 | #ifndef __GNUC__ |
| 7373 | choke me |
| 7374 | #endif |
| 7375 | |
| 7376 | ; |
| 7377 | return 0; |
| 7378 | } |
| 7379 | _ACEOF |
| 7380 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7381 | ac_compiler_gnu=yes |
| 7382 | else |
| 7383 | ac_compiler_gnu=no |
| 7384 | fi |
| 7385 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7386 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 7387 | |
| 7388 | fi |
| 7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 7390 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 7391 | if test $ac_compiler_gnu = yes; then |
| 7392 | GXX=yes |
| 7393 | else |
| 7394 | GXX= |
| 7395 | fi |
| 7396 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 7397 | ac_save_CXXFLAGS=$CXXFLAGS |
| 7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 7399 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 7400 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 7401 | $as_echo_n "(cached) " >&6 |
| 7402 | else |
| 7403 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 7404 | ac_cxx_werror_flag=yes |
| 7405 | ac_cv_prog_cxx_g=no |
| 7406 | CXXFLAGS="-g" |
| 7407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7408 | /* end confdefs.h. */ |
| 7409 | |
| 7410 | int |
| 7411 | main () |
| 7412 | { |
| 7413 | |
| 7414 | ; |
| 7415 | return 0; |
| 7416 | } |
| 7417 | _ACEOF |
| 7418 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7419 | ac_cv_prog_cxx_g=yes |
| 7420 | else |
| 7421 | CXXFLAGS="" |
| 7422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7423 | /* end confdefs.h. */ |
| 7424 | |
| 7425 | int |
| 7426 | main () |
| 7427 | { |
| 7428 | |
| 7429 | ; |
| 7430 | return 0; |
| 7431 | } |
| 7432 | _ACEOF |
| 7433 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7434 | |
| 7435 | else |
| 7436 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7437 | CXXFLAGS="-g" |
| 7438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7439 | /* end confdefs.h. */ |
| 7440 | |
| 7441 | int |
| 7442 | main () |
| 7443 | { |
| 7444 | |
| 7445 | ; |
| 7446 | return 0; |
| 7447 | } |
| 7448 | _ACEOF |
| 7449 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7450 | ac_cv_prog_cxx_g=yes |
| 7451 | fi |
| 7452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7453 | fi |
| 7454 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7455 | fi |
| 7456 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7457 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7458 | fi |
| 7459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 7460 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 7461 | if test "$ac_test_CXXFLAGS" = set; then |
| 7462 | CXXFLAGS=$ac_save_CXXFLAGS |
| 7463 | elif test $ac_cv_prog_cxx_g = yes; then |
| 7464 | if test "$GXX" = yes; then |
| 7465 | CXXFLAGS="-g -O2" |
| 7466 | else |
| 7467 | CXXFLAGS="-g" |
| 7468 | fi |
| 7469 | else |
| 7470 | if test "$GXX" = yes; then |
| 7471 | CXXFLAGS="-O2" |
| 7472 | else |
| 7473 | CXXFLAGS= |
| 7474 | fi |
| 7475 | fi |
| 7476 | ac_ext=c |
| 7477 | ac_cpp='$CPP $CPPFLAGS' |
| 7478 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7479 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7480 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7481 | |
| 7482 | depcc="$CXX" am_compiler_list= |
| 7483 | |
| 7484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 7485 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 7486 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 7487 | $as_echo_n "(cached) " >&6 |
| 7488 | else |
| 7489 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 7490 | # We make a subdir and do the tests there. Otherwise we can end up |
| 7491 | # making bogus files that we don't know about and never remove. For |
| 7492 | # instance it was reported that on HP-UX the gcc test will end up |
| 7493 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 7494 | # in D'. |
| 7495 | mkdir conftest.dir |
| 7496 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 7497 | # using a relative directory. |
| 7498 | cp "$am_depcomp" conftest.dir |
| 7499 | cd conftest.dir |
| 7500 | # We will build objects and dependencies in a subdirectory because |
| 7501 | # it helps to detect inapplicable dependency modes. For instance |
| 7502 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 7503 | # side effect of compilation, but ICC will put the dependencies in |
| 7504 | # the current directory while Tru64 will put them in the object |
| 7505 | # directory. |
| 7506 | mkdir sub |
| 7507 | |
| 7508 | am_cv_CXX_dependencies_compiler_type=none |
| 7509 | if test "$am_compiler_list" = ""; then |
| 7510 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 7511 | fi |
| 7512 | am__universal=false |
| 7513 | case " $depcc " in #( |
| 7514 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 7515 | esac |
| 7516 | |
| 7517 | for depmode in $am_compiler_list; do |
| 7518 | # Setup a source with many dependencies, because some compilers |
| 7519 | # like to wrap large dependency lists on column 80 (with \), and |
| 7520 | # we should not choose a depcomp mode which is confused by this. |
| 7521 | # |
| 7522 | # We need to recreate these files for each test, as the compiler may |
| 7523 | # overwrite some of them when testing with obscure command lines. |
| 7524 | # This happens at least with the AIX C compiler. |
| 7525 | : > sub/conftest.c |
| 7526 | for i in 1 2 3 4 5 6; do |
| 7527 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 7528 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 7529 | # Solaris 8's {/usr,}/bin/sh. |
| 7530 | touch sub/conftst$i.h |
| 7531 | done |
| 7532 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 7533 | |
| 7534 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 7535 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 7536 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 7537 | # versions had trouble with output in subdirs |
| 7538 | am__obj=sub/conftest.${OBJEXT-o} |
| 7539 | am__minus_obj="-o $am__obj" |
| 7540 | case $depmode in |
| 7541 | gcc) |
| 7542 | # This depmode causes a compiler race in universal mode. |
| 7543 | test "$am__universal" = false || continue |
| 7544 | ;; |
| 7545 | nosideeffect) |
| 7546 | # after this tag, mechanisms are not by side-effect, so they'll |
| 7547 | # only be used when explicitly requested |
| 7548 | if test "x$enable_dependency_tracking" = xyes; then |
| 7549 | continue |
| 7550 | else |
| 7551 | break |
| 7552 | fi |
| 7553 | ;; |
| 7554 | msvisualcpp | msvcmsys) |
| 7555 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 7556 | # not run yet. These depmodes are late enough in the game, and |
| 7557 | # so weak that their functioning should not be impacted. |
| 7558 | am__obj=conftest.${OBJEXT-o} |
| 7559 | am__minus_obj= |
| 7560 | ;; |
| 7561 | none) break ;; |
| 7562 | esac |
| 7563 | if depmode=$depmode \ |
| 7564 | source=sub/conftest.c object=$am__obj \ |
| 7565 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 7566 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 7567 | >/dev/null 2>conftest.err && |
| 7568 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 7569 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 7570 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 7571 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 7572 | # icc doesn't choke on unknown options, it will just issue warnings |
| 7573 | # or remarks (even with -Werror). So we grep stderr for any message |
| 7574 | # that says an option was ignored or not supported. |
| 7575 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 7576 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 7577 | # The diagnosis changed in icc 8.0: |
| 7578 | # icc: Command line remark: option '-MP' not supported |
| 7579 | if (grep 'ignoring option' conftest.err || |
| 7580 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 7581 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 7582 | break |
| 7583 | fi |
| 7584 | fi |
| 7585 | done |
| 7586 | |
| 7587 | cd .. |
| 7588 | rm -rf conftest.dir |
| 7589 | else |
| 7590 | am_cv_CXX_dependencies_compiler_type=none |
| 7591 | fi |
| 7592 | |
| 7593 | fi |
| 7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 7595 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 7596 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 7597 | |
| 7598 | if |
| 7599 | test "x$enable_dependency_tracking" != xno \ |
| 7600 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 7601 | am__fastdepCXX_TRUE= |
| 7602 | am__fastdepCXX_FALSE='#' |
| 7603 | else |
| 7604 | am__fastdepCXX_TRUE='#' |
| 7605 | am__fastdepCXX_FALSE= |
| 7606 | fi |
| 7607 | |
| 7608 | |
| 7609 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 7610 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 7611 | (test "X$CXX" != "Xg++"))) ; then |
| 7612 | ac_ext=cpp |
| 7613 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7614 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7615 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7616 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 7618 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 7619 | if test -z "$CXXCPP"; then |
| 7620 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 7621 | $as_echo_n "(cached) " >&6 |
| 7622 | else |
| 7623 | # Double quotes because CXXCPP needs to be expanded |
| 7624 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 7625 | do |
| 7626 | ac_preproc_ok=false |
| 7627 | for ac_cxx_preproc_warn_flag in '' yes |
| 7628 | do |
| 7629 | # Use a header file that comes with gcc, so configuring glibc |
| 7630 | # with a fresh cross-compiler works. |
| 7631 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7632 | # <limits.h> exists even on freestanding compilers. |
| 7633 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7634 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7635 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7636 | /* end confdefs.h. */ |
| 7637 | #ifdef __STDC__ |
| 7638 | # include <limits.h> |
| 7639 | #else |
| 7640 | # include <assert.h> |
| 7641 | #endif |
| 7642 | Syntax error |
| 7643 | _ACEOF |
| 7644 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7645 | |
| 7646 | else |
| 7647 | # Broken: fails on valid input. |
| 7648 | continue |
| 7649 | fi |
| 7650 | rm -f conftest.err conftest.$ac_ext |
| 7651 | |
| 7652 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7653 | # can be detected and how. |
| 7654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7655 | /* end confdefs.h. */ |
| 7656 | #include <ac_nonexistent.h> |
| 7657 | _ACEOF |
| 7658 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7659 | # Broken: success on invalid input. |
| 7660 | continue |
| 7661 | else |
| 7662 | # Passes both tests. |
| 7663 | ac_preproc_ok=: |
| 7664 | break |
| 7665 | fi |
| 7666 | rm -f conftest.err conftest.$ac_ext |
| 7667 | |
| 7668 | done |
| 7669 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7670 | rm -f conftest.err conftest.$ac_ext |
| 7671 | if $ac_preproc_ok; then : |
| 7672 | break |
| 7673 | fi |
| 7674 | |
| 7675 | done |
| 7676 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7677 | |
| 7678 | fi |
| 7679 | CXXCPP=$ac_cv_prog_CXXCPP |
| 7680 | else |
| 7681 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7682 | fi |
| 7683 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 7684 | $as_echo "$CXXCPP" >&6; } |
| 7685 | ac_preproc_ok=false |
| 7686 | for ac_cxx_preproc_warn_flag in '' yes |
| 7687 | do |
| 7688 | # Use a header file that comes with gcc, so configuring glibc |
| 7689 | # with a fresh cross-compiler works. |
| 7690 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7691 | # <limits.h> exists even on freestanding compilers. |
| 7692 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7693 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7694 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7695 | /* end confdefs.h. */ |
| 7696 | #ifdef __STDC__ |
| 7697 | # include <limits.h> |
| 7698 | #else |
| 7699 | # include <assert.h> |
| 7700 | #endif |
| 7701 | Syntax error |
| 7702 | _ACEOF |
| 7703 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7704 | |
| 7705 | else |
| 7706 | # Broken: fails on valid input. |
| 7707 | continue |
| 7708 | fi |
| 7709 | rm -f conftest.err conftest.$ac_ext |
| 7710 | |
| 7711 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7712 | # can be detected and how. |
| 7713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7714 | /* end confdefs.h. */ |
| 7715 | #include <ac_nonexistent.h> |
| 7716 | _ACEOF |
| 7717 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7718 | # Broken: success on invalid input. |
| 7719 | continue |
| 7720 | else |
| 7721 | # Passes both tests. |
| 7722 | ac_preproc_ok=: |
| 7723 | break |
| 7724 | fi |
| 7725 | rm -f conftest.err conftest.$ac_ext |
| 7726 | |
| 7727 | done |
| 7728 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7729 | rm -f conftest.err conftest.$ac_ext |
| 7730 | if $ac_preproc_ok; then : |
| 7731 | |
| 7732 | else |
| 7733 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7734 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7735 | _lt_caught_CXX_error=yes; } |
| 7736 | fi |
| 7737 | |
| 7738 | ac_ext=c |
| 7739 | ac_cpp='$CPP $CPPFLAGS' |
| 7740 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7741 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7742 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7743 | |
| 7744 | else |
| 7745 | _lt_caught_CXX_error=yes |
| 7746 | fi |
| 7747 | |
| 7748 | |
| 7749 | |
| 7750 | |
| 7751 | |
| 7752 | # Set options |
| 7753 | |
| 7754 | |
| 7755 | |
| 7756 | enable_dlopen=no |
| 7757 | |
| 7758 | |
| 7759 | enable_win32_dll=no |
| 7760 | |
| 7761 | |
| 7762 | # Check whether --enable-shared was given. |
| 7763 | if test "${enable_shared+set}" = set; then : |
| 7764 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7765 | case $enableval in |
| 7766 | yes) enable_shared=yes ;; |
| 7767 | no) enable_shared=no ;; |
| 7768 | *) |
| 7769 | enable_shared=no |
| 7770 | # Look at the argument we got. We use all the common list separators. |
| 7771 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7772 | for pkg in $enableval; do |
| 7773 | IFS="$lt_save_ifs" |
| 7774 | if test "X$pkg" = "X$p"; then |
| 7775 | enable_shared=yes |
| 7776 | fi |
| 7777 | done |
| 7778 | IFS="$lt_save_ifs" |
| 7779 | ;; |
| 7780 | esac |
| 7781 | else |
| 7782 | enable_shared=yes |
| 7783 | fi |
| 7784 | |
| 7785 | |
| 7786 | |
| 7787 | |
| 7788 | |
| 7789 | |
| 7790 | |
| 7791 | |
| 7792 | |
| 7793 | # Check whether --enable-static was given. |
| 7794 | if test "${enable_static+set}" = set; then : |
| 7795 | enableval=$enable_static; p=${PACKAGE-default} |
| 7796 | case $enableval in |
| 7797 | yes) enable_static=yes ;; |
| 7798 | no) enable_static=no ;; |
| 7799 | *) |
| 7800 | enable_static=no |
| 7801 | # Look at the argument we got. We use all the common list separators. |
| 7802 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7803 | for pkg in $enableval; do |
| 7804 | IFS="$lt_save_ifs" |
| 7805 | if test "X$pkg" = "X$p"; then |
| 7806 | enable_static=yes |
| 7807 | fi |
| 7808 | done |
| 7809 | IFS="$lt_save_ifs" |
| 7810 | ;; |
| 7811 | esac |
| 7812 | else |
| 7813 | enable_static=yes |
| 7814 | fi |
| 7815 | |
| 7816 | |
| 7817 | |
| 7818 | |
| 7819 | |
| 7820 | |
| 7821 | |
| 7822 | |
| 7823 | |
| 7824 | |
| 7825 | # Check whether --with-pic was given. |
| 7826 | if test "${with_pic+set}" = set; then : |
| 7827 | withval=$with_pic; pic_mode="$withval" |
| 7828 | else |
| 7829 | pic_mode=default |
| 7830 | fi |
| 7831 | |
| 7832 | |
| 7833 | test -z "$pic_mode" && pic_mode=default |
| 7834 | |
| 7835 | |
| 7836 | |
| 7837 | |
| 7838 | |
| 7839 | |
| 7840 | |
| 7841 | # Check whether --enable-fast-install was given. |
| 7842 | if test "${enable_fast_install+set}" = set; then : |
| 7843 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7844 | case $enableval in |
| 7845 | yes) enable_fast_install=yes ;; |
| 7846 | no) enable_fast_install=no ;; |
| 7847 | *) |
| 7848 | enable_fast_install=no |
| 7849 | # Look at the argument we got. We use all the common list separators. |
| 7850 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7851 | for pkg in $enableval; do |
| 7852 | IFS="$lt_save_ifs" |
| 7853 | if test "X$pkg" = "X$p"; then |
| 7854 | enable_fast_install=yes |
| 7855 | fi |
| 7856 | done |
| 7857 | IFS="$lt_save_ifs" |
| 7858 | ;; |
| 7859 | esac |
| 7860 | else |
| 7861 | enable_fast_install=yes |
| 7862 | fi |
| 7863 | |
| 7864 | |
| 7865 | |
| 7866 | |
| 7867 | |
| 7868 | |
| 7869 | |
| 7870 | |
| 7871 | |
| 7872 | |
| 7873 | |
| 7874 | # This can be used to rebuild libtool when needed |
| 7875 | LIBTOOL_DEPS="$ltmain" |
| 7876 | |
| 7877 | # Always use our own libtool. |
| 7878 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7879 | |
| 7880 | |
| 7881 | |
| 7882 | |
| 7883 | |
| 7884 | |
| 7885 | |
| 7886 | |
| 7887 | |
| 7888 | |
| 7889 | |
| 7890 | |
| 7891 | |
| 7892 | |
| 7893 | |
| 7894 | |
| 7895 | |
| 7896 | |
| 7897 | |
| 7898 | |
| 7899 | |
| 7900 | |
| 7901 | |
| 7902 | |
| 7903 | |
| 7904 | test -z "$LN_S" && LN_S="ln -s" |
| 7905 | |
| 7906 | |
| 7907 | |
| 7908 | |
| 7909 | |
| 7910 | |
| 7911 | |
| 7912 | |
| 7913 | |
| 7914 | |
| 7915 | |
| 7916 | |
| 7917 | |
| 7918 | |
| 7919 | if test -n "${ZSH_VERSION+set}" ; then |
| 7920 | setopt NO_GLOB_SUBST |
| 7921 | fi |
| 7922 | |
| 7923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 7924 | $as_echo_n "checking for objdir... " >&6; } |
| 7925 | if test "${lt_cv_objdir+set}" = set; then : |
| 7926 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7927 | else |
| 7928 | rm -f .libs 2>/dev/null |
| 7929 | mkdir .libs 2>/dev/null |
| 7930 | if test -d .libs; then |
| 7931 | lt_cv_objdir=.libs |
| 7932 | else |
| 7933 | # MS-DOS does not allow filenames that begin with a dot. |
| 7934 | lt_cv_objdir=_libs |
| 7935 | fi |
| 7936 | rmdir .libs 2>/dev/null |
| 7937 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 7939 | $as_echo "$lt_cv_objdir" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7940 | objdir=$lt_cv_objdir |
| 7941 | |
| 7942 | |
| 7943 | |
| 7944 | |
| 7945 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7946 | cat >>confdefs.h <<_ACEOF |
| 7947 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 7948 | _ACEOF |
| 7949 | |
| 7950 | |
| 7951 | |
| 7952 | |
| 7953 | |
| 7954 | |
| 7955 | |
| 7956 | |
| 7957 | |
| 7958 | |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | |
| 7963 | |
| 7964 | |
| 7965 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7966 | case $host_os in |
| 7967 | aix3*) |
| 7968 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 7969 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 7970 | # vanish in a puff of smoke. |
| 7971 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 7972 | COLLECT_NAMES= |
| 7973 | export COLLECT_NAMES |
| 7974 | fi |
| 7975 | ;; |
| 7976 | esac |
| 7977 | |
| 7978 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 7979 | # metacharacters that are still active within double-quoted strings. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7980 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7981 | |
| 7982 | # Same as above, but do not quote variable references. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7983 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7984 | |
| 7985 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 7986 | # double_quote_subst'ed string. |
| 7987 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 7988 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7989 | # Sed substitution to delay expansion of an escaped single quote. |
| 7990 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 7991 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7992 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 7993 | no_glob_subst='s/\*/\\\*/g' |
| 7994 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7995 | # Global variables: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7996 | ofile=libtool |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7997 | can_build_shared=yes |
| 7998 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 7999 | # All known linkers require a `.a' archive for static linking (except MSVC, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8000 | # which needs '.lib'). |
| 8001 | libext=a |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8002 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8003 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8004 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8005 | old_CC="$CC" |
| 8006 | old_CFLAGS="$CFLAGS" |
| 8007 | |
| 8008 | # Set sane defaults for various variables |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8009 | test -z "$CC" && CC=cc |
| 8010 | test -z "$LTCC" && LTCC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8011 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8012 | test -z "$LD" && LD=ld |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8013 | test -z "$ac_objext" && ac_objext=o |
| 8014 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8015 | for cc_temp in $compiler""; do |
| 8016 | case $cc_temp in |
| 8017 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8018 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8019 | \-*) ;; |
| 8020 | *) break;; |
| 8021 | esac |
| 8022 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8023 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8024 | |
| 8025 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8026 | # Only perform the check for file, if the check method requires it |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8027 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8028 | case $deplibs_check_method in |
| 8029 | file_magic*) |
| 8030 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8032 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8033 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 8034 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8035 | else |
| 8036 | case $MAGIC_CMD in |
| 8037 | [\\/*] | ?:[\\/]*) |
| 8038 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8039 | ;; |
| 8040 | *) |
| 8041 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8042 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8043 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8044 | for ac_dir in $ac_dummy; do |
| 8045 | IFS="$lt_save_ifs" |
| 8046 | test -z "$ac_dir" && ac_dir=. |
| 8047 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8048 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8049 | if test -n "$file_magic_test_file"; then |
| 8050 | case $deplibs_check_method in |
| 8051 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8052 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8053 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8054 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8055 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8056 | : |
| 8057 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8058 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8059 | |
| 8060 | *** Warning: the command libtool uses to detect shared libraries, |
| 8061 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8062 | *** The result is that libtool may fail to recognize shared libraries |
| 8063 | *** as such. This will affect the creation of libtool libraries that |
| 8064 | *** depend on shared libraries, but programs linked with such libtool |
| 8065 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8066 | *** may want to report the problem to your system manager and/or to |
| 8067 | *** bug-libtool@gnu.org |
| 8068 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8069 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8070 | fi ;; |
| 8071 | esac |
| 8072 | fi |
| 8073 | break |
| 8074 | fi |
| 8075 | done |
| 8076 | IFS="$lt_save_ifs" |
| 8077 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8078 | ;; |
| 8079 | esac |
| 8080 | fi |
| 8081 | |
| 8082 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8083 | if test -n "$MAGIC_CMD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8085 | $as_echo "$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8086 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8087 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8088 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8089 | fi |
| 8090 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8091 | |
| 8092 | |
| 8093 | |
| 8094 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8095 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8096 | if test -n "$ac_tool_prefix"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8098 | $as_echo_n "checking for file... " >&6; } |
| 8099 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 8100 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8101 | else |
| 8102 | case $MAGIC_CMD in |
| 8103 | [\\/*] | ?:[\\/]*) |
| 8104 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8105 | ;; |
| 8106 | *) |
| 8107 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8108 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8109 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8110 | for ac_dir in $ac_dummy; do |
| 8111 | IFS="$lt_save_ifs" |
| 8112 | test -z "$ac_dir" && ac_dir=. |
| 8113 | if test -f $ac_dir/file; then |
| 8114 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8115 | if test -n "$file_magic_test_file"; then |
| 8116 | case $deplibs_check_method in |
| 8117 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8118 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8119 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8120 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8121 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8122 | : |
| 8123 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8124 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8125 | |
| 8126 | *** Warning: the command libtool uses to detect shared libraries, |
| 8127 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8128 | *** The result is that libtool may fail to recognize shared libraries |
| 8129 | *** as such. This will affect the creation of libtool libraries that |
| 8130 | *** depend on shared libraries, but programs linked with such libtool |
| 8131 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8132 | *** may want to report the problem to your system manager and/or to |
| 8133 | *** bug-libtool@gnu.org |
| 8134 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8135 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8136 | fi ;; |
| 8137 | esac |
| 8138 | fi |
| 8139 | break |
| 8140 | fi |
| 8141 | done |
| 8142 | IFS="$lt_save_ifs" |
| 8143 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8144 | ;; |
| 8145 | esac |
| 8146 | fi |
| 8147 | |
| 8148 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8149 | if test -n "$MAGIC_CMD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8151 | $as_echo "$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8152 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8154 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8155 | fi |
| 8156 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8157 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8158 | else |
| 8159 | MAGIC_CMD=: |
| 8160 | fi |
| 8161 | fi |
| 8162 | |
| 8163 | fi |
| 8164 | ;; |
| 8165 | esac |
| 8166 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8167 | # Use C for the default configuration in the libtool script |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8168 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8169 | lt_save_CC="$CC" |
| 8170 | ac_ext=c |
| 8171 | ac_cpp='$CPP $CPPFLAGS' |
| 8172 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8173 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8174 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8175 | |
| 8176 | |
| 8177 | # Source file extension for C test sources. |
| 8178 | ac_ext=c |
| 8179 | |
| 8180 | # Object file extension for compiled C test sources. |
| 8181 | objext=o |
| 8182 | objext=$objext |
| 8183 | |
| 8184 | # Code to be used in simple compile tests |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8185 | lt_simple_compile_test_code="int some_variable = 0;" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8186 | |
| 8187 | # Code to be used in simple link tests |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8188 | lt_simple_link_test_code='int main(){return(0);}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8189 | |
| 8190 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8191 | |
| 8192 | |
| 8193 | |
| 8194 | |
| 8195 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8196 | # If no C compiler was specified, use CC. |
| 8197 | LTCC=${LTCC-"$CC"} |
| 8198 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8199 | # If no C compiler flags were specified, use CFLAGS. |
| 8200 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8201 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8202 | # Allow CC to be a program name with arguments. |
| 8203 | compiler=$CC |
| 8204 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8205 | # Save the default compiler, since it gets overwritten when the other |
| 8206 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8207 | compiler_DEFAULT=$CC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8208 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8209 | # save warnings/boilerplate of simple test code |
| 8210 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8211 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8212 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8213 | _lt_compiler_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8214 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8215 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8216 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8217 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8218 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8219 | _lt_linker_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8220 | $RM -r conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8221 | |
| 8222 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8223 | if test -n "$compiler"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8224 | |
| 8225 | lt_prog_compiler_no_builtin_flag= |
| 8226 | |
| 8227 | if test "$GCC" = yes; then |
| 8228 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 8229 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8230 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8231 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8232 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
| 8233 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8234 | else |
| 8235 | lt_cv_prog_compiler_rtti_exceptions=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8236 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8237 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8238 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8239 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8240 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8241 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8242 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8243 | # The option is referenced via a variable to avoid confusing sed. |
| 8244 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8245 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8246 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8247 | -e 's:$: $lt_compiler_flag:'` |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 8248 | (eval echo "\"\$as_me:8248: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8249 | (eval "$lt_compile" 2>conftest.err) |
| 8250 | ac_status=$? |
| 8251 | cat conftest.err >&5 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 8252 | echo "$as_me:8252: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8253 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8254 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8255 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8256 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8257 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8258 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8259 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8260 | fi |
| 8261 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8262 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8263 | |
| 8264 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8266 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8267 | |
| 8268 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8269 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8270 | else |
| 8271 | : |
| 8272 | fi |
| 8273 | |
| 8274 | fi |
| 8275 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8276 | |
| 8277 | |
| 8278 | |
| 8279 | |
| 8280 | |
| 8281 | lt_prog_compiler_wl= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8282 | lt_prog_compiler_pic= |
| 8283 | lt_prog_compiler_static= |
| 8284 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8285 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8286 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8287 | |
| 8288 | if test "$GCC" = yes; then |
| 8289 | lt_prog_compiler_wl='-Wl,' |
| 8290 | lt_prog_compiler_static='-static' |
| 8291 | |
| 8292 | case $host_os in |
| 8293 | aix*) |
| 8294 | # All AIX code is PIC. |
| 8295 | if test "$host_cpu" = ia64; then |
| 8296 | # AIX 5 now supports IA64 processor |
| 8297 | lt_prog_compiler_static='-Bstatic' |
| 8298 | fi |
| 8299 | ;; |
| 8300 | |
| 8301 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8302 | case $host_cpu in |
| 8303 | powerpc) |
| 8304 | # see comment about AmigaOS4 .so support |
| 8305 | lt_prog_compiler_pic='-fPIC' |
| 8306 | ;; |
| 8307 | m68k) |
| 8308 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8309 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8310 | # like `-m68040'. |
| 8311 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8312 | ;; |
| 8313 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8314 | ;; |
| 8315 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8316 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8317 | # PIC is the default for these OSes. |
| 8318 | ;; |
| 8319 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8320 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8321 | # This hack is so that the source file can tell whether it is being |
| 8322 | # built for inclusion in a dll (and should export symbols for example). |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8323 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8324 | # (--disable-auto-import) libraries |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8325 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8326 | ;; |
| 8327 | |
| 8328 | darwin* | rhapsody*) |
| 8329 | # PIC is the default on this platform |
| 8330 | # Common symbols not allowed in MH_DYLIB files |
| 8331 | lt_prog_compiler_pic='-fno-common' |
| 8332 | ;; |
| 8333 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8334 | hpux*) |
| 8335 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8336 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8337 | # sets the default TLS model and affects inlining. |
| 8338 | case $host_cpu in |
| 8339 | hppa*64*) |
| 8340 | # +Z the default |
| 8341 | ;; |
| 8342 | *) |
| 8343 | lt_prog_compiler_pic='-fPIC' |
| 8344 | ;; |
| 8345 | esac |
| 8346 | ;; |
| 8347 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8348 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8349 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8350 | # Instead, we relocate shared libraries at runtime. |
| 8351 | ;; |
| 8352 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8353 | msdosdjgpp*) |
| 8354 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8355 | # on systems that don't support them. |
| 8356 | lt_prog_compiler_can_build_shared=no |
| 8357 | enable_shared=no |
| 8358 | ;; |
| 8359 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8360 | *nto* | *qnx*) |
| 8361 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8362 | # it will coredump. |
| 8363 | lt_prog_compiler_pic='-fPIC -shared' |
| 8364 | ;; |
| 8365 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8366 | sysv4*MP*) |
| 8367 | if test -d /usr/nec; then |
| 8368 | lt_prog_compiler_pic=-Kconform_pic |
| 8369 | fi |
| 8370 | ;; |
| 8371 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8372 | *) |
| 8373 | lt_prog_compiler_pic='-fPIC' |
| 8374 | ;; |
| 8375 | esac |
| 8376 | else |
| 8377 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8378 | case $host_os in |
| 8379 | aix*) |
| 8380 | lt_prog_compiler_wl='-Wl,' |
| 8381 | if test "$host_cpu" = ia64; then |
| 8382 | # AIX 5 now supports IA64 processor |
| 8383 | lt_prog_compiler_static='-Bstatic' |
| 8384 | else |
| 8385 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8386 | fi |
| 8387 | ;; |
| 8388 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8389 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8390 | # This hack is so that the source file can tell whether it is being |
| 8391 | # built for inclusion in a dll (and should export symbols for example). |
| 8392 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8393 | ;; |
| 8394 | |
| 8395 | hpux9* | hpux10* | hpux11*) |
| 8396 | lt_prog_compiler_wl='-Wl,' |
| 8397 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8398 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8399 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8400 | hppa*64*|ia64*) |
| 8401 | # +Z the default |
| 8402 | ;; |
| 8403 | *) |
| 8404 | lt_prog_compiler_pic='+Z' |
| 8405 | ;; |
| 8406 | esac |
| 8407 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8408 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8409 | ;; |
| 8410 | |
| 8411 | irix5* | irix6* | nonstopux*) |
| 8412 | lt_prog_compiler_wl='-Wl,' |
| 8413 | # PIC (with -KPIC) is the default. |
| 8414 | lt_prog_compiler_static='-non_shared' |
| 8415 | ;; |
| 8416 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8417 | linux* | k*bsd*-gnu) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8418 | case $cc_basename in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8419 | # old Intel for x86_64 which still supported -KPIC. |
| 8420 | ecc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8421 | lt_prog_compiler_wl='-Wl,' |
| 8422 | lt_prog_compiler_pic='-KPIC' |
| 8423 | lt_prog_compiler_static='-static' |
| 8424 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8425 | # icc used to be incompatible with GCC. |
| 8426 | # ICC 10 doesn't accept -KPIC any more. |
| 8427 | icc* | ifort*) |
| 8428 | lt_prog_compiler_wl='-Wl,' |
| 8429 | lt_prog_compiler_pic='-fPIC' |
| 8430 | lt_prog_compiler_static='-static' |
| 8431 | ;; |
| 8432 | # Lahey Fortran 8.1. |
| 8433 | lf95*) |
| 8434 | lt_prog_compiler_wl='-Wl,' |
| 8435 | lt_prog_compiler_pic='--shared' |
| 8436 | lt_prog_compiler_static='--static' |
| 8437 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8438 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 8439 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8440 | # which looks to be a dead project) |
| 8441 | lt_prog_compiler_wl='-Wl,' |
| 8442 | lt_prog_compiler_pic='-fpic' |
| 8443 | lt_prog_compiler_static='-Bstatic' |
| 8444 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8445 | ccc*) |
| 8446 | lt_prog_compiler_wl='-Wl,' |
| 8447 | # All Alpha code is PIC. |
| 8448 | lt_prog_compiler_static='-non_shared' |
| 8449 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8450 | xl*) |
| 8451 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 8452 | lt_prog_compiler_wl='-Wl,' |
| 8453 | lt_prog_compiler_pic='-qpic' |
| 8454 | lt_prog_compiler_static='-qstaticlink' |
| 8455 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8456 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8457 | case `$CC -V 2>&1 | sed 5q` in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8458 | *Sun\ C*) |
| 8459 | # Sun C 5.9 |
| 8460 | lt_prog_compiler_pic='-KPIC' |
| 8461 | lt_prog_compiler_static='-Bstatic' |
| 8462 | lt_prog_compiler_wl='-Wl,' |
| 8463 | ;; |
| 8464 | *Sun\ F*) |
| 8465 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8466 | lt_prog_compiler_pic='-KPIC' |
| 8467 | lt_prog_compiler_static='-Bstatic' |
| 8468 | lt_prog_compiler_wl='' |
| 8469 | ;; |
| 8470 | esac |
| 8471 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8472 | esac |
| 8473 | ;; |
| 8474 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8475 | newsos6) |
| 8476 | lt_prog_compiler_pic='-KPIC' |
| 8477 | lt_prog_compiler_static='-Bstatic' |
| 8478 | ;; |
| 8479 | |
| 8480 | *nto* | *qnx*) |
| 8481 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8482 | # it will coredump. |
| 8483 | lt_prog_compiler_pic='-fPIC -shared' |
| 8484 | ;; |
| 8485 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8486 | osf3* | osf4* | osf5*) |
| 8487 | lt_prog_compiler_wl='-Wl,' |
| 8488 | # All OSF/1 code is PIC. |
| 8489 | lt_prog_compiler_static='-non_shared' |
| 8490 | ;; |
| 8491 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8492 | rdos*) |
| 8493 | lt_prog_compiler_static='-non_shared' |
| 8494 | ;; |
| 8495 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8496 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8497 | lt_prog_compiler_pic='-KPIC' |
| 8498 | lt_prog_compiler_static='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8499 | case $cc_basename in |
| 8500 | f77* | f90* | f95*) |
| 8501 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8502 | *) |
| 8503 | lt_prog_compiler_wl='-Wl,';; |
| 8504 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8505 | ;; |
| 8506 | |
| 8507 | sunos4*) |
| 8508 | lt_prog_compiler_wl='-Qoption ld ' |
| 8509 | lt_prog_compiler_pic='-PIC' |
| 8510 | lt_prog_compiler_static='-Bstatic' |
| 8511 | ;; |
| 8512 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8513 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8514 | lt_prog_compiler_wl='-Wl,' |
| 8515 | lt_prog_compiler_pic='-KPIC' |
| 8516 | lt_prog_compiler_static='-Bstatic' |
| 8517 | ;; |
| 8518 | |
| 8519 | sysv4*MP*) |
| 8520 | if test -d /usr/nec ;then |
| 8521 | lt_prog_compiler_pic='-Kconform_pic' |
| 8522 | lt_prog_compiler_static='-Bstatic' |
| 8523 | fi |
| 8524 | ;; |
| 8525 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8526 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8527 | lt_prog_compiler_wl='-Wl,' |
| 8528 | lt_prog_compiler_pic='-KPIC' |
| 8529 | lt_prog_compiler_static='-Bstatic' |
| 8530 | ;; |
| 8531 | |
| 8532 | unicos*) |
| 8533 | lt_prog_compiler_wl='-Wl,' |
| 8534 | lt_prog_compiler_can_build_shared=no |
| 8535 | ;; |
| 8536 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8537 | uts4*) |
| 8538 | lt_prog_compiler_pic='-pic' |
| 8539 | lt_prog_compiler_static='-Bstatic' |
| 8540 | ;; |
| 8541 | |
| 8542 | *) |
| 8543 | lt_prog_compiler_can_build_shared=no |
| 8544 | ;; |
| 8545 | esac |
| 8546 | fi |
| 8547 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8548 | case $host_os in |
| 8549 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8550 | *djgpp*) |
| 8551 | lt_prog_compiler_pic= |
| 8552 | ;; |
| 8553 | *) |
| 8554 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8555 | ;; |
| 8556 | esac |
| 8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
| 8558 | $as_echo "$lt_prog_compiler_pic" >&6; } |
| 8559 | |
| 8560 | |
| 8561 | |
| 8562 | |
| 8563 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8564 | |
| 8565 | # |
| 8566 | # Check to make sure the PIC flag actually works. |
| 8567 | # |
| 8568 | if test -n "$lt_prog_compiler_pic"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8570 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8571 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
| 8572 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8573 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8574 | lt_cv_prog_compiler_pic_works=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8575 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8576 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8577 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8578 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8579 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8580 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8581 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8582 | # The option is referenced via a variable to avoid confusing sed. |
| 8583 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8584 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8585 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8586 | -e 's:$: $lt_compiler_flag:'` |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 8587 | (eval echo "\"\$as_me:8587: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8588 | (eval "$lt_compile" 2>conftest.err) |
| 8589 | ac_status=$? |
| 8590 | cat conftest.err >&5 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 8591 | echo "$as_me:8591: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8592 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8593 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8594 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8595 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8596 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8597 | 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] | 8598 | lt_cv_prog_compiler_pic_works=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8599 | fi |
| 8600 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8601 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8602 | |
| 8603 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8605 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8606 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8607 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8608 | case $lt_prog_compiler_pic in |
| 8609 | "" | " "*) ;; |
| 8610 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8611 | esac |
| 8612 | else |
| 8613 | lt_prog_compiler_pic= |
| 8614 | lt_prog_compiler_can_build_shared=no |
| 8615 | fi |
| 8616 | |
| 8617 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8618 | |
| 8619 | |
| 8620 | |
| 8621 | |
| 8622 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8623 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8624 | # |
| 8625 | # Check to make sure the static flag actually works. |
| 8626 | # |
| 8627 | 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] | 8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8629 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8630 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
| 8631 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8632 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8633 | lt_cv_prog_compiler_static_works=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8634 | save_LDFLAGS="$LDFLAGS" |
| 8635 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8636 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8637 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8638 | # The linker can only warn and ignore the option if not recognized |
| 8639 | # So say no if there are warnings |
| 8640 | if test -s conftest.err; then |
| 8641 | # Append any errors to the config.log. |
| 8642 | cat conftest.err 1>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8643 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8644 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8645 | if diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8646 | lt_cv_prog_compiler_static_works=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8647 | fi |
| 8648 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8649 | lt_cv_prog_compiler_static_works=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8650 | fi |
| 8651 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8652 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8653 | LDFLAGS="$save_LDFLAGS" |
| 8654 | |
| 8655 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8657 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8658 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8659 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8660 | : |
| 8661 | else |
| 8662 | lt_prog_compiler_static= |
| 8663 | fi |
| 8664 | |
| 8665 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8666 | |
| 8667 | |
| 8668 | |
| 8669 | |
| 8670 | |
| 8671 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8672 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8673 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8674 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8675 | else |
| 8676 | lt_cv_prog_compiler_c_o=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8677 | $RM -r conftest 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8678 | mkdir conftest |
| 8679 | cd conftest |
| 8680 | mkdir out |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8681 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8682 | |
| 8683 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8684 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8685 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8686 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8687 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8688 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8689 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8690 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8691 | -e 's:$: $lt_compiler_flag:'` |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 8692 | (eval echo "\"\$as_me:8692: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8693 | (eval "$lt_compile" 2>out/conftest.err) |
| 8694 | ac_status=$? |
| 8695 | cat out/conftest.err >&5 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 8696 | echo "$as_me:8696: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8697 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8698 | then |
| 8699 | # The compiler can only warn and ignore the option if not recognized |
| 8700 | # So say no if there are warnings |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8701 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8702 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8703 | 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] | 8704 | lt_cv_prog_compiler_c_o=yes |
| 8705 | fi |
| 8706 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8707 | chmod u+w . 2>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8708 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8709 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8710 | # template instantiation |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8711 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8712 | $RM out/* && rmdir out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8713 | cd .. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8714 | $RM -r conftest |
| 8715 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8716 | |
| 8717 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8719 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8720 | |
| 8721 | |
| 8722 | |
| 8723 | |
| 8724 | |
| 8725 | |
| 8726 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8727 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8728 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8729 | $as_echo_n "(cached) " >&6 |
| 8730 | else |
| 8731 | lt_cv_prog_compiler_c_o=no |
| 8732 | $RM -r conftest 2>/dev/null |
| 8733 | mkdir conftest |
| 8734 | cd conftest |
| 8735 | mkdir out |
| 8736 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8737 | |
| 8738 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8739 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8740 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8741 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8742 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8743 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8744 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8745 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8746 | -e 's:$: $lt_compiler_flag:'` |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 8747 | (eval echo "\"\$as_me:8747: $lt_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8748 | (eval "$lt_compile" 2>out/conftest.err) |
| 8749 | ac_status=$? |
| 8750 | cat out/conftest.err >&5 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 8751 | echo "$as_me:8751: \$? = $ac_status" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8752 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8753 | then |
| 8754 | # The compiler can only warn and ignore the option if not recognized |
| 8755 | # So say no if there are warnings |
| 8756 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 8757 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8758 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8759 | lt_cv_prog_compiler_c_o=yes |
| 8760 | fi |
| 8761 | fi |
| 8762 | chmod u+w . 2>&5 |
| 8763 | $RM conftest* |
| 8764 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8765 | # template instantiation |
| 8766 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8767 | $RM out/* && rmdir out |
| 8768 | cd .. |
| 8769 | $RM -r conftest |
| 8770 | $RM conftest* |
| 8771 | |
| 8772 | fi |
| 8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8774 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8775 | |
| 8776 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8777 | |
| 8778 | |
| 8779 | hard_links="nottested" |
| 8780 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8781 | # do not overwrite the value of need_locks provided by the user |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 8783 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8784 | hard_links=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8785 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8786 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8787 | touch conftest.a |
| 8788 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8789 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 8791 | $as_echo "$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8792 | if test "$hard_links" = no; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8793 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8794 | $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] | 8795 | need_locks=warn |
| 8796 | fi |
| 8797 | else |
| 8798 | need_locks=no |
| 8799 | fi |
| 8800 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8801 | |
| 8802 | |
| 8803 | |
| 8804 | |
| 8805 | |
| 8806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 8807 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8808 | |
| 8809 | runpath_var= |
| 8810 | allow_undefined_flag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8811 | always_export_symbols=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8812 | archive_cmds= |
| 8813 | archive_expsym_cmds= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8814 | compiler_needs_object=no |
| 8815 | enable_shared_with_static_runtimes=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8816 | export_dynamic_flag_spec= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8817 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8818 | hardcode_automatic=no |
| 8819 | hardcode_direct=no |
| 8820 | hardcode_direct_absolute=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8821 | hardcode_libdir_flag_spec= |
| 8822 | hardcode_libdir_flag_spec_ld= |
| 8823 | hardcode_libdir_separator= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8824 | hardcode_minus_L=no |
| 8825 | hardcode_shlibpath_var=unsupported |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8826 | inherit_rpath=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8827 | link_all_deplibs=unknown |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8828 | module_cmds= |
| 8829 | module_expsym_cmds= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8830 | old_archive_from_new_cmds= |
| 8831 | old_archive_from_expsyms_cmds= |
| 8832 | thread_safe_flag_spec= |
| 8833 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8834 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8835 | # included in the symbol list |
| 8836 | include_expsyms= |
| 8837 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8838 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8839 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8840 | # as well as any symbol that contains `d'. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8841 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8842 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8843 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8844 | # the symbol is explicitly referenced. Since portable code cannot |
| 8845 | # rely on this symbol name, it's probably fine to never include it in |
| 8846 | # preloaded symbol tables. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8847 | # Exclude shared library initialization/finalization symbols. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8848 | extract_expsyms_cmds= |
| 8849 | |
| 8850 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8851 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8852 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8853 | # When not using gcc, we currently assume that we are using |
| 8854 | # Microsoft Visual C++. |
| 8855 | if test "$GCC" != yes; then |
| 8856 | with_gnu_ld=no |
| 8857 | fi |
| 8858 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8859 | interix*) |
| 8860 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8861 | with_gnu_ld=yes |
| 8862 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8863 | openbsd*) |
| 8864 | with_gnu_ld=no |
| 8865 | ;; |
| 8866 | esac |
| 8867 | |
| 8868 | ld_shlibs=yes |
| 8869 | if test "$with_gnu_ld" = yes; then |
| 8870 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8871 | wlarc='${wl}' |
| 8872 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8873 | # Set some defaults for GNU ld with shared library support. These |
| 8874 | # are reset later if shared libraries are not supported. Putting them |
| 8875 | # here allows them to be overridden if necessary. |
| 8876 | runpath_var=LD_RUN_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8877 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8878 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8879 | # ancient GNU ld didn't support --whole-archive et. al. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8880 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8881 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8882 | else |
| 8883 | whole_archive_flag_spec= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8884 | fi |
| 8885 | supports_anon_versioning=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8886 | case `$LD -v 2>&1` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8887 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8888 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8889 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8890 | *\ 2.11.*) ;; # other 2.11 versions |
| 8891 | *) supports_anon_versioning=yes ;; |
| 8892 | esac |
| 8893 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8894 | # See if GNU ld supports shared libraries. |
| 8895 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8896 | aix[3-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8897 | # On AIX/PPC, the GNU linker is very broken |
| 8898 | if test "$host_cpu" != ia64; then |
| 8899 | ld_shlibs=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8900 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8901 | |
| 8902 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 8903 | *** to be unable to reliably create shared libraries on AIX. |
| 8904 | *** Therefore, libtool is disabling shared libraries support. If you |
| 8905 | *** really care for shared libraries, you may want to modify your PATH |
| 8906 | *** so that a non-GNU linker is found, and then restart. |
| 8907 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8908 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8909 | fi |
| 8910 | ;; |
| 8911 | |
| 8912 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8913 | case $host_cpu in |
| 8914 | powerpc) |
| 8915 | # see comment about AmigaOS4 .so support |
| 8916 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8917 | archive_expsym_cmds='' |
| 8918 | ;; |
| 8919 | m68k) |
| 8920 | 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)' |
| 8921 | hardcode_libdir_flag_spec='-L$libdir' |
| 8922 | hardcode_minus_L=yes |
| 8923 | ;; |
| 8924 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8925 | ;; |
| 8926 | |
| 8927 | beos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8928 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8929 | allow_undefined_flag=unsupported |
| 8930 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8931 | # support --undefined. This deserves some investigation. FIXME |
| 8932 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8933 | else |
| 8934 | ld_shlibs=no |
| 8935 | fi |
| 8936 | ;; |
| 8937 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8938 | cygwin* | mingw* | pw32* | cegcc*) |
| 8939 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8940 | # as there is no search path for DLLs. |
| 8941 | hardcode_libdir_flag_spec='-L$libdir' |
| 8942 | allow_undefined_flag=unsupported |
| 8943 | always_export_symbols=no |
| 8944 | enable_shared_with_static_runtimes=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8945 | 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] | 8946 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8947 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8948 | 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] | 8949 | # If the export-symbols file already is a .def file (1st line |
| 8950 | # is EXPORTS), use it as is; otherwise, prepend... |
| 8951 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 8952 | cp $export_symbols $output_objdir/$soname.def; |
| 8953 | else |
| 8954 | echo EXPORTS > $output_objdir/$soname.def; |
| 8955 | cat $export_symbols >> $output_objdir/$soname.def; |
| 8956 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8957 | $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] | 8958 | else |
| 8959 | ld_shlibs=no |
| 8960 | fi |
| 8961 | ;; |
| 8962 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8963 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8964 | hardcode_direct=no |
| 8965 | hardcode_shlibpath_var=no |
| 8966 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 8967 | export_dynamic_flag_spec='${wl}-E' |
| 8968 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 8969 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 8970 | # default) and relocated if they conflict, which is a slow very memory |
| 8971 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 8972 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 8973 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 8974 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 8975 | 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' |
| 8976 | ;; |
| 8977 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8978 | gnu* | linux* | tpf* | k*bsd*-gnu) |
| 8979 | tmp_diet=no |
| 8980 | if test "$host_os" = linux-dietlibc; then |
| 8981 | case $cc_basename in |
| 8982 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 8983 | esac |
| 8984 | fi |
| 8985 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 8986 | && test "$tmp_diet" = no |
| 8987 | then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8988 | tmp_addflag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8989 | tmp_sharedflag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8990 | case $cc_basename,$host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8991 | pgcc*) # Portland Group C compiler |
| 8992 | 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] | 8993 | tmp_addflag=' $pic_flag' |
| 8994 | ;; |
| 8995 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8996 | 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] | 8997 | tmp_addflag=' $pic_flag -Mnomain' ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8998 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8999 | tmp_addflag=' -i_dynamic' ;; |
| 9000 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9001 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9002 | ifc* | ifort*) # Intel Fortran compiler |
| 9003 | tmp_addflag=' -nofor_main' ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9004 | lf95*) # Lahey Fortran 8.1 |
| 9005 | whole_archive_flag_spec= |
| 9006 | tmp_sharedflag='--shared' ;; |
| 9007 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9008 | tmp_sharedflag='-qmkshrobj' |
| 9009 | tmp_addflag= ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9010 | esac |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9011 | case `$CC -V 2>&1 | sed 5q` in |
| 9012 | *Sun\ C*) # Sun C 5.9 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9013 | 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' |
| 9014 | compiler_needs_object=yes |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9015 | tmp_sharedflag='-G' ;; |
| 9016 | *Sun\ F*) # Sun Fortran 8.3 |
| 9017 | tmp_sharedflag='-G' ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9018 | esac |
| 9019 | 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] | 9020 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9021 | if test "x$supports_anon_versioning" = xyes; then |
| 9022 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9023 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9024 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9025 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9026 | fi |
| 9027 | |
| 9028 | case $cc_basename in |
| 9029 | xlf*) |
| 9030 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9031 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9032 | hardcode_libdir_flag_spec= |
| 9033 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 9034 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 9035 | if test "x$supports_anon_versioning" = xyes; then |
| 9036 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9037 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9038 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9039 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9040 | fi |
| 9041 | ;; |
| 9042 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9043 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9044 | ld_shlibs=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9045 | fi |
| 9046 | ;; |
| 9047 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 9048 | netbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9049 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9050 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9051 | wlarc= |
| 9052 | else |
| 9053 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9054 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9055 | fi |
| 9056 | ;; |
| 9057 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9058 | solaris*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9059 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9060 | ld_shlibs=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9061 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9062 | |
| 9063 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9064 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9065 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9066 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9067 | *** your PATH or compiler configuration so that the native linker is |
| 9068 | *** used, and then restart. |
| 9069 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9070 | _LT_EOF |
| 9071 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9072 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9073 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9074 | else |
| 9075 | ld_shlibs=no |
| 9076 | fi |
| 9077 | ;; |
| 9078 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9079 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9080 | case `$LD -v 2>&1` in |
| 9081 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9082 | ld_shlibs=no |
| 9083 | cat <<_LT_EOF 1>&2 |
| 9084 | |
| 9085 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9086 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9087 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9088 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9089 | *** your PATH or compiler configuration so that the native linker is |
| 9090 | *** used, and then restart. |
| 9091 | |
| 9092 | _LT_EOF |
| 9093 | ;; |
| 9094 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9095 | # For security reasons, it is highly recommended that you always |
| 9096 | # use absolute paths for naming shared libraries, and exclude the |
| 9097 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9098 | # requires that you compile everything twice, which is a pain. |
| 9099 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9100 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9101 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9102 | 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] | 9103 | else |
| 9104 | ld_shlibs=no |
| 9105 | fi |
| 9106 | ;; |
| 9107 | esac |
| 9108 | ;; |
| 9109 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9110 | sunos4*) |
| 9111 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9112 | wlarc= |
| 9113 | hardcode_direct=yes |
| 9114 | hardcode_shlibpath_var=no |
| 9115 | ;; |
| 9116 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9117 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9118 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9119 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9120 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9121 | else |
| 9122 | ld_shlibs=no |
| 9123 | fi |
| 9124 | ;; |
| 9125 | esac |
| 9126 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9127 | if test "$ld_shlibs" = no; then |
| 9128 | runpath_var= |
| 9129 | hardcode_libdir_flag_spec= |
| 9130 | export_dynamic_flag_spec= |
| 9131 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9132 | fi |
| 9133 | else |
| 9134 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9135 | case $host_os in |
| 9136 | aix3*) |
| 9137 | allow_undefined_flag=unsupported |
| 9138 | always_export_symbols=yes |
| 9139 | 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' |
| 9140 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9141 | # are no directories specified by -L. |
| 9142 | hardcode_minus_L=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9143 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9144 | # Neither direct hardcoding nor static linking is supported with a |
| 9145 | # broken collect2. |
| 9146 | hardcode_direct=unsupported |
| 9147 | fi |
| 9148 | ;; |
| 9149 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9150 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9151 | if test "$host_cpu" = ia64; then |
| 9152 | # On IA64, the linker does run time linking by default, so we don't |
| 9153 | # have to do anything special. |
| 9154 | aix_use_runtimelinking=no |
| 9155 | exp_sym_flag='-Bexport' |
| 9156 | no_entry_flag="" |
| 9157 | else |
| 9158 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9159 | # -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] | 9160 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9161 | 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] | 9162 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9163 | 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] | 9164 | fi |
| 9165 | aix_use_runtimelinking=no |
| 9166 | |
| 9167 | # Test if we are trying to use run time linking or normal |
| 9168 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9169 | # need to do runtime linking. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9170 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9171 | for ld_flag in $LDFLAGS; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9172 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9173 | aix_use_runtimelinking=yes |
| 9174 | break |
| 9175 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9176 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9177 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9178 | esac |
| 9179 | |
| 9180 | exp_sym_flag='-bexport' |
| 9181 | no_entry_flag='-bnoentry' |
| 9182 | fi |
| 9183 | |
| 9184 | # When large executables or shared objects are built, AIX ld can |
| 9185 | # have problems creating the table of contents. If linking a library |
| 9186 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9187 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9188 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9189 | |
| 9190 | archive_cmds='' |
| 9191 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9192 | hardcode_direct_absolute=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9193 | hardcode_libdir_separator=':' |
| 9194 | link_all_deplibs=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9195 | file_list_spec='${wl}-f,' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9196 | |
| 9197 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9198 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9199 | # We only want to do this on AIX 4.2 and lower, the check |
| 9200 | # below for broken collect2 doesn't work under 4.3+ |
| 9201 | collect2name=`${CC} -print-prog-name=collect2` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9202 | if test -f "$collect2name" && |
| 9203 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9204 | then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9205 | # We have reworked collect2 |
| 9206 | : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9207 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9208 | # We have old collect2 |
| 9209 | hardcode_direct=unsupported |
| 9210 | # It fails to find uninstalled libraries when the uninstalled |
| 9211 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9212 | # to unsupported forces relinking |
| 9213 | hardcode_minus_L=yes |
| 9214 | hardcode_libdir_flag_spec='-L$libdir' |
| 9215 | hardcode_libdir_separator= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9216 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9217 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9218 | esac |
| 9219 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9220 | if test "$aix_use_runtimelinking" = yes; then |
| 9221 | shared_flag="$shared_flag "'${wl}-G' |
| 9222 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9223 | else |
| 9224 | # not using gcc |
| 9225 | if test "$host_cpu" = ia64; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9226 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9227 | # chokes on -Wl,-G. The following line is correct: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9228 | shared_flag='-G' |
| 9229 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9230 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9231 | shared_flag='${wl}-G' |
| 9232 | else |
| 9233 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9234 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9235 | fi |
| 9236 | fi |
| 9237 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9238 | export_dynamic_flag_spec='${wl}-bexpall' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9239 | # It seems that -bexpall does not export symbols beginning with |
| 9240 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9241 | always_export_symbols=yes |
| 9242 | if test "$aix_use_runtimelinking" = yes; then |
| 9243 | # Warning - without using the other runtime loading flags (-brtl), |
| 9244 | # -berok will link without error, but may produce a broken library. |
| 9245 | allow_undefined_flag='-berok' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9246 | # Determine the default libpath from the value encoded in an |
| 9247 | # empty executable. |
| 9248 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9249 | /* end confdefs.h. */ |
| 9250 | |
| 9251 | int |
| 9252 | main () |
| 9253 | { |
| 9254 | |
| 9255 | ; |
| 9256 | return 0; |
| 9257 | } |
| 9258 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9259 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9260 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9261 | lt_aix_libpath_sed=' |
| 9262 | /Import File Strings/,/^$/ { |
| 9263 | /^0/ { |
| 9264 | s/^0 *\(.*\)$/\1/ |
| 9265 | p |
| 9266 | } |
| 9267 | }' |
| 9268 | 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] | 9269 | # Check for a 64-bit object if we didn't find anything. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9270 | if test -z "$aix_libpath"; then |
| 9271 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9272 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9273 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9274 | rm -f core conftest.err conftest.$ac_objext \ |
| 9275 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9276 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9277 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9278 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9279 | 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" |
| 9280 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9281 | if test "$host_cpu" = ia64; then |
| 9282 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9283 | allow_undefined_flag="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9284 | 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] | 9285 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9286 | # Determine the default libpath from the value encoded in an |
| 9287 | # empty executable. |
| 9288 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9289 | /* end confdefs.h. */ |
| 9290 | |
| 9291 | int |
| 9292 | main () |
| 9293 | { |
| 9294 | |
| 9295 | ; |
| 9296 | return 0; |
| 9297 | } |
| 9298 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9299 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9300 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9301 | lt_aix_libpath_sed=' |
| 9302 | /Import File Strings/,/^$/ { |
| 9303 | /^0/ { |
| 9304 | s/^0 *\(.*\)$/\1/ |
| 9305 | p |
| 9306 | } |
| 9307 | }' |
| 9308 | 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] | 9309 | # Check for a 64-bit object if we didn't find anything. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9310 | if test -z "$aix_libpath"; then |
| 9311 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9312 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9313 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9314 | rm -f core conftest.err conftest.$ac_objext \ |
| 9315 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9316 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9317 | |
| 9318 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9319 | # Warning - without using the other run time loading flags, |
| 9320 | # -berok will link without error, but may produce a broken library. |
| 9321 | no_undefined_flag=' ${wl}-bernotok' |
| 9322 | allow_undefined_flag=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9323 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9324 | whole_archive_flag_spec='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9325 | archive_cmds_need_lc=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9326 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9327 | 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] | 9328 | fi |
| 9329 | fi |
| 9330 | ;; |
| 9331 | |
| 9332 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9333 | case $host_cpu in |
| 9334 | powerpc) |
| 9335 | # see comment about AmigaOS4 .so support |
| 9336 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9337 | archive_expsym_cmds='' |
| 9338 | ;; |
| 9339 | m68k) |
| 9340 | 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)' |
| 9341 | hardcode_libdir_flag_spec='-L$libdir' |
| 9342 | hardcode_minus_L=yes |
| 9343 | ;; |
| 9344 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9345 | ;; |
| 9346 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9347 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9348 | export_dynamic_flag_spec=-rdynamic |
| 9349 | ;; |
| 9350 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9351 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9352 | # When not using gcc, we currently assume that we are using |
| 9353 | # Microsoft Visual C++. |
| 9354 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9355 | # no search path for DLLs. |
| 9356 | hardcode_libdir_flag_spec=' ' |
| 9357 | allow_undefined_flag=unsupported |
| 9358 | # Tell ltmain to make .lib files, not .a files. |
| 9359 | libext=lib |
| 9360 | # Tell ltmain to make .dll files, not .so files. |
| 9361 | shrext_cmds=".dll" |
| 9362 | # FIXME: Setting linknames here is a bad hack. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9363 | 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] | 9364 | # The linker will automatically build a .lib file if we build a DLL. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9365 | old_archive_from_new_cmds='true' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9366 | # FIXME: Should let the user specify the lib program. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9367 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9368 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9369 | enable_shared_with_static_runtimes=yes |
| 9370 | ;; |
| 9371 | |
| 9372 | darwin* | rhapsody*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9373 | |
| 9374 | |
| 9375 | archive_cmds_need_lc=no |
| 9376 | hardcode_direct=no |
| 9377 | hardcode_automatic=yes |
| 9378 | hardcode_shlibpath_var=unsupported |
| 9379 | whole_archive_flag_spec='' |
| 9380 | link_all_deplibs=yes |
| 9381 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9382 | case $cc_basename in |
| 9383 | ifort*) _lt_dar_can_shared=yes ;; |
| 9384 | *) _lt_dar_can_shared=$GCC ;; |
| 9385 | esac |
| 9386 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9387 | output_verbose_link_cmd=echo |
| 9388 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9389 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9390 | 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}" |
| 9391 | 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}" |
| 9392 | |
| 9393 | else |
| 9394 | ld_shlibs=no |
| 9395 | fi |
| 9396 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9397 | ;; |
| 9398 | |
| 9399 | dgux*) |
| 9400 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9401 | hardcode_libdir_flag_spec='-L$libdir' |
| 9402 | hardcode_shlibpath_var=no |
| 9403 | ;; |
| 9404 | |
| 9405 | freebsd1*) |
| 9406 | ld_shlibs=no |
| 9407 | ;; |
| 9408 | |
| 9409 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9410 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9411 | # does not break anything, and helps significantly (at the cost of a little |
| 9412 | # extra space). |
| 9413 | freebsd2.2*) |
| 9414 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9415 | hardcode_libdir_flag_spec='-R$libdir' |
| 9416 | hardcode_direct=yes |
| 9417 | hardcode_shlibpath_var=no |
| 9418 | ;; |
| 9419 | |
| 9420 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9421 | freebsd2*) |
| 9422 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9423 | hardcode_direct=yes |
| 9424 | hardcode_minus_L=yes |
| 9425 | hardcode_shlibpath_var=no |
| 9426 | ;; |
| 9427 | |
| 9428 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9429 | freebsd* | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9430 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 9431 | hardcode_libdir_flag_spec='-R$libdir' |
| 9432 | hardcode_direct=yes |
| 9433 | hardcode_shlibpath_var=no |
| 9434 | ;; |
| 9435 | |
| 9436 | hpux9*) |
| 9437 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9438 | 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] | 9439 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9440 | 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] | 9441 | fi |
| 9442 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9443 | hardcode_libdir_separator=: |
| 9444 | hardcode_direct=yes |
| 9445 | |
| 9446 | # hardcode_minus_L: Not really in the search PATH, |
| 9447 | # but as the default location of the library. |
| 9448 | hardcode_minus_L=yes |
| 9449 | export_dynamic_flag_spec='${wl}-E' |
| 9450 | ;; |
| 9451 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9452 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9453 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9454 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9455 | else |
| 9456 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9457 | fi |
| 9458 | if test "$with_gnu_ld" = no; then |
| 9459 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9460 | hardcode_libdir_flag_spec_ld='+b $libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9461 | hardcode_libdir_separator=: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9462 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9463 | hardcode_direct_absolute=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9464 | export_dynamic_flag_spec='${wl}-E' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9465 | # hardcode_minus_L: Not really in the search PATH, |
| 9466 | # but as the default location of the library. |
| 9467 | hardcode_minus_L=yes |
| 9468 | fi |
| 9469 | ;; |
| 9470 | |
| 9471 | hpux11*) |
| 9472 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9473 | case $host_cpu in |
| 9474 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9475 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9476 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9477 | ia64*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9478 | 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] | 9479 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9480 | *) |
| 9481 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9482 | ;; |
| 9483 | esac |
| 9484 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9485 | case $host_cpu in |
| 9486 | hppa*64*) |
| 9487 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9488 | ;; |
| 9489 | ia64*) |
| 9490 | 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] | 9491 | ;; |
| 9492 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9493 | 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] | 9494 | ;; |
| 9495 | esac |
| 9496 | fi |
| 9497 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9498 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9499 | hardcode_libdir_separator=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9500 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9501 | case $host_cpu in |
| 9502 | hppa*64*|ia64*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9503 | hardcode_direct=no |
| 9504 | hardcode_shlibpath_var=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9505 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9506 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9507 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9508 | hardcode_direct_absolute=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9509 | export_dynamic_flag_spec='${wl}-E' |
| 9510 | |
| 9511 | # hardcode_minus_L: Not really in the search PATH, |
| 9512 | # but as the default location of the library. |
| 9513 | hardcode_minus_L=yes |
| 9514 | ;; |
| 9515 | esac |
| 9516 | fi |
| 9517 | ;; |
| 9518 | |
| 9519 | irix5* | irix6* | nonstopux*) |
| 9520 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9521 | 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' |
| 9522 | # Try to use the -exported_symbol ld option, if it does not |
| 9523 | # work, assume that -exports_file does not work either and |
| 9524 | # implicitly export all symbols. |
| 9525 | save_LDFLAGS="$LDFLAGS" |
| 9526 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9528 | /* end confdefs.h. */ |
| 9529 | int foo(void) {} |
| 9530 | _ACEOF |
| 9531 | if ac_fn_c_try_link "$LINENO"; then : |
| 9532 | 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' |
| 9533 | |
| 9534 | fi |
| 9535 | rm -f core conftest.err conftest.$ac_objext \ |
| 9536 | conftest$ac_exeext conftest.$ac_ext |
| 9537 | LDFLAGS="$save_LDFLAGS" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9538 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9539 | 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' |
| 9540 | 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] | 9541 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9542 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9543 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9544 | hardcode_libdir_separator=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9545 | inherit_rpath=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9546 | link_all_deplibs=yes |
| 9547 | ;; |
| 9548 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 9549 | netbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9550 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9551 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9552 | else |
| 9553 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9554 | fi |
| 9555 | hardcode_libdir_flag_spec='-R$libdir' |
| 9556 | hardcode_direct=yes |
| 9557 | hardcode_shlibpath_var=no |
| 9558 | ;; |
| 9559 | |
| 9560 | newsos6) |
| 9561 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9562 | hardcode_direct=yes |
| 9563 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9564 | hardcode_libdir_separator=: |
| 9565 | hardcode_shlibpath_var=no |
| 9566 | ;; |
| 9567 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9568 | *nto* | *qnx*) |
| 9569 | ;; |
| 9570 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9571 | openbsd*) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9572 | if test -f /usr/libexec/ld.so; then |
| 9573 | hardcode_direct=yes |
| 9574 | hardcode_shlibpath_var=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9575 | hardcode_direct_absolute=yes |
| 9576 | 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] | 9577 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9578 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9579 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9580 | export_dynamic_flag_spec='${wl}-E' |
| 9581 | else |
| 9582 | case $host_os in |
| 9583 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9584 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9585 | hardcode_libdir_flag_spec='-R$libdir' |
| 9586 | ;; |
| 9587 | *) |
| 9588 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9589 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9590 | ;; |
| 9591 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9592 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9593 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9594 | ld_shlibs=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9595 | fi |
| 9596 | ;; |
| 9597 | |
| 9598 | os2*) |
| 9599 | hardcode_libdir_flag_spec='-L$libdir' |
| 9600 | hardcode_minus_L=yes |
| 9601 | allow_undefined_flag=unsupported |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9602 | 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' |
| 9603 | 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] | 9604 | ;; |
| 9605 | |
| 9606 | osf3*) |
| 9607 | if test "$GCC" = yes; then |
| 9608 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9609 | 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] | 9610 | else |
| 9611 | allow_undefined_flag=' -expect_unresolved \*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9612 | 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] | 9613 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9614 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9615 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9616 | hardcode_libdir_separator=: |
| 9617 | ;; |
| 9618 | |
| 9619 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9620 | if test "$GCC" = yes; then |
| 9621 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9622 | 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] | 9623 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9624 | else |
| 9625 | allow_undefined_flag=' -expect_unresolved \*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9626 | 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' |
| 9627 | 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~ |
| 9628 | $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] | 9629 | |
| 9630 | # Both c and cxx compiler support -rpath directly |
| 9631 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9632 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9633 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9634 | hardcode_libdir_separator=: |
| 9635 | ;; |
| 9636 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9637 | solaris*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9638 | no_undefined_flag=' -z defs' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9639 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9640 | wlarc='${wl}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9641 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9642 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9643 | $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] | 9644 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9645 | case `$CC -V 2>&1` in |
| 9646 | *"Compilers 5.0"*) |
| 9647 | wlarc='' |
| 9648 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9649 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9650 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9651 | ;; |
| 9652 | *) |
| 9653 | wlarc='${wl}' |
| 9654 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9655 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9656 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9657 | ;; |
| 9658 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9659 | fi |
| 9660 | hardcode_libdir_flag_spec='-R$libdir' |
| 9661 | hardcode_shlibpath_var=no |
| 9662 | case $host_os in |
| 9663 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9664 | *) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9665 | # The compiler driver will combine and reorder linker options, |
| 9666 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9667 | # but is careful enough not to reorder. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9668 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9669 | if test "$GCC" = yes; then |
| 9670 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9671 | else |
| 9672 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9673 | fi |
| 9674 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9675 | esac |
| 9676 | link_all_deplibs=yes |
| 9677 | ;; |
| 9678 | |
| 9679 | sunos4*) |
| 9680 | if test "x$host_vendor" = xsequent; then |
| 9681 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9682 | # files that make .init and .fini sections work. |
| 9683 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9684 | else |
| 9685 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9686 | fi |
| 9687 | hardcode_libdir_flag_spec='-L$libdir' |
| 9688 | hardcode_direct=yes |
| 9689 | hardcode_minus_L=yes |
| 9690 | hardcode_shlibpath_var=no |
| 9691 | ;; |
| 9692 | |
| 9693 | sysv4) |
| 9694 | case $host_vendor in |
| 9695 | sni) |
| 9696 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9697 | hardcode_direct=yes # is this really true??? |
| 9698 | ;; |
| 9699 | siemens) |
| 9700 | ## LD is ld it makes a PLAMLIB |
| 9701 | ## CC just makes a GrossModule. |
| 9702 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9703 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9704 | hardcode_direct=no |
| 9705 | ;; |
| 9706 | motorola) |
| 9707 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9708 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9709 | ;; |
| 9710 | esac |
| 9711 | runpath_var='LD_RUN_PATH' |
| 9712 | hardcode_shlibpath_var=no |
| 9713 | ;; |
| 9714 | |
| 9715 | sysv4.3*) |
| 9716 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9717 | hardcode_shlibpath_var=no |
| 9718 | export_dynamic_flag_spec='-Bexport' |
| 9719 | ;; |
| 9720 | |
| 9721 | sysv4*MP*) |
| 9722 | if test -d /usr/nec; then |
| 9723 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9724 | hardcode_shlibpath_var=no |
| 9725 | runpath_var=LD_RUN_PATH |
| 9726 | hardcode_runpath_var=yes |
| 9727 | ld_shlibs=yes |
| 9728 | fi |
| 9729 | ;; |
| 9730 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9731 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9732 | no_undefined_flag='${wl}-z,text' |
| 9733 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9734 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9735 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 9736 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 9737 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9738 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9739 | 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] | 9740 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9741 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9742 | 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] | 9743 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9744 | ;; |
| 9745 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9746 | sysv5* | sco3.2v5* | sco5v6*) |
| 9747 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9748 | # link with -lc, and that would cause any symbols used from libc to |
| 9749 | # always be unresolved, which means just about no library would |
| 9750 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9751 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9752 | # as -z defs. |
| 9753 | no_undefined_flag='${wl}-z,text' |
| 9754 | allow_undefined_flag='${wl}-z,nodefs' |
| 9755 | archive_cmds_need_lc=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9756 | hardcode_shlibpath_var=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9757 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9758 | hardcode_libdir_separator=':' |
| 9759 | link_all_deplibs=yes |
| 9760 | export_dynamic_flag_spec='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9761 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9762 | |
| 9763 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9764 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9765 | 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] | 9766 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9767 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9768 | 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] | 9769 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9770 | ;; |
| 9771 | |
| 9772 | uts4*) |
| 9773 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9774 | hardcode_libdir_flag_spec='-L$libdir' |
| 9775 | hardcode_shlibpath_var=no |
| 9776 | ;; |
| 9777 | |
| 9778 | *) |
| 9779 | ld_shlibs=no |
| 9780 | ;; |
| 9781 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9782 | |
| 9783 | if test x$host_vendor = xsni; then |
| 9784 | case $host in |
| 9785 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9786 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9787 | ;; |
| 9788 | esac |
| 9789 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9790 | fi |
| 9791 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 9793 | $as_echo "$ld_shlibs" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9794 | test "$ld_shlibs" = no && can_build_shared=no |
| 9795 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9796 | with_gnu_ld=$with_gnu_ld |
| 9797 | |
| 9798 | |
| 9799 | |
| 9800 | |
| 9801 | |
| 9802 | |
| 9803 | |
| 9804 | |
| 9805 | |
| 9806 | |
| 9807 | |
| 9808 | |
| 9809 | |
| 9810 | |
| 9811 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9812 | # |
| 9813 | # Do we need to explicitly link libc? |
| 9814 | # |
| 9815 | case "x$archive_cmds_need_lc" in |
| 9816 | x|xyes) |
| 9817 | # Assume -lc should be added |
| 9818 | archive_cmds_need_lc=yes |
| 9819 | |
| 9820 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9821 | case $archive_cmds in |
| 9822 | *'~'*) |
| 9823 | # FIXME: we may have to deal with multi-command sequences. |
| 9824 | ;; |
| 9825 | '$CC '*) |
| 9826 | # Test whether the compiler implicitly links with -lc since on some |
| 9827 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9828 | # to ld, don't add -lc before -lgcc. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 9830 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 9831 | $RM conftest* |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9832 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9833 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9834 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9835 | (eval $ac_compile) 2>&5 |
| 9836 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9837 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9838 | test $ac_status = 0; } 2>conftest.err; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9839 | soname=conftest |
| 9840 | lib=conftest |
| 9841 | libobjs=conftest.$ac_objext |
| 9842 | deplibs= |
| 9843 | wl=$lt_prog_compiler_wl |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9844 | pic_flag=$lt_prog_compiler_pic |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9845 | compiler_flags=-v |
| 9846 | linker_flags=-v |
| 9847 | verstring= |
| 9848 | output_objdir=. |
| 9849 | libname=conftest |
| 9850 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9851 | allow_undefined_flag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9852 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 9853 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9854 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9855 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9856 | test $ac_status = 0; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9857 | then |
| 9858 | archive_cmds_need_lc=no |
| 9859 | else |
| 9860 | archive_cmds_need_lc=yes |
| 9861 | fi |
| 9862 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9863 | else |
| 9864 | cat conftest.err 1>&5 |
| 9865 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9866 | $RM conftest* |
| 9867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
| 9868 | $as_echo "$archive_cmds_need_lc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9869 | ;; |
| 9870 | esac |
| 9871 | fi |
| 9872 | ;; |
| 9873 | esac |
| 9874 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9875 | |
| 9876 | |
| 9877 | |
| 9878 | |
| 9879 | |
| 9880 | |
| 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10032 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10033 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10034 | if test "$GCC" = yes; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10035 | case $host_os in |
| 10036 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10037 | *) lt_awk_arg="/^libraries:/" ;; |
| 10038 | esac |
| 10039 | 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] | 10040 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10041 | # if the path contains ";" then we assume it to be the separator |
| 10042 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10043 | # assumed that no part of a normal pathname contains ";" but that should |
| 10044 | # okay in the real world where ";" in dirpaths is itself problematic. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10045 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10046 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10047 | 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] | 10048 | fi |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10049 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10050 | # and add multilib dir if necessary. |
| 10051 | lt_tmp_lt_search_path_spec= |
| 10052 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10053 | for lt_sys_path in $lt_search_path_spec; do |
| 10054 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10055 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10056 | else |
| 10057 | test -d "$lt_sys_path" && \ |
| 10058 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10059 | fi |
| 10060 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10061 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10062 | BEGIN {RS=" "; FS="/|\n";} { |
| 10063 | lt_foo=""; |
| 10064 | lt_count=0; |
| 10065 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10066 | if ($lt_i != "" && $lt_i != ".") { |
| 10067 | if ($lt_i == "..") { |
| 10068 | lt_count++; |
| 10069 | } else { |
| 10070 | if (lt_count == 0) { |
| 10071 | lt_foo="/" $lt_i lt_foo; |
| 10072 | } else { |
| 10073 | lt_count--; |
| 10074 | } |
| 10075 | } |
| 10076 | } |
| 10077 | } |
| 10078 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10079 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10080 | }'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10081 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10082 | else |
| 10083 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10084 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10085 | library_names_spec= |
| 10086 | libname_spec='lib$name' |
| 10087 | soname_spec= |
| 10088 | shrext_cmds=".so" |
| 10089 | postinstall_cmds= |
| 10090 | postuninstall_cmds= |
| 10091 | finish_cmds= |
| 10092 | finish_eval= |
| 10093 | shlibpath_var= |
| 10094 | shlibpath_overrides_runpath=unknown |
| 10095 | version_type=none |
| 10096 | dynamic_linker="$host_os ld.so" |
| 10097 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10098 | need_lib_prefix=unknown |
| 10099 | hardcode_into_libs=no |
| 10100 | |
| 10101 | # when you set need_version to no, make sure it does not cause -set_version |
| 10102 | # flags to be left without arguments |
| 10103 | need_version=unknown |
| 10104 | |
| 10105 | case $host_os in |
| 10106 | aix3*) |
| 10107 | version_type=linux |
| 10108 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10109 | shlibpath_var=LIBPATH |
| 10110 | |
| 10111 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10112 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10113 | ;; |
| 10114 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10115 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10116 | version_type=linux |
| 10117 | need_lib_prefix=no |
| 10118 | need_version=no |
| 10119 | hardcode_into_libs=yes |
| 10120 | if test "$host_cpu" = ia64; then |
| 10121 | # AIX 5 supports IA64 |
| 10122 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10123 | shlibpath_var=LD_LIBRARY_PATH |
| 10124 | else |
| 10125 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10126 | # for dependence libraries. The import file would start with |
| 10127 | # the line `#! .'. This would cause the generated library to |
| 10128 | # depend on `.', always an invalid library. This was fixed in |
| 10129 | # development snapshots of GCC prior to 3.0. |
| 10130 | case $host_os in |
| 10131 | aix4 | aix4.[01] | aix4.[01].*) |
| 10132 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10133 | echo ' yes ' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10134 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10135 | : |
| 10136 | else |
| 10137 | can_build_shared=no |
| 10138 | fi |
| 10139 | ;; |
| 10140 | esac |
| 10141 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10142 | # soname into executable. Probably we can add versioning support to |
| 10143 | # collect2, so additional links can be useful in future. |
| 10144 | if test "$aix_use_runtimelinking" = yes; then |
| 10145 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10146 | # instead of lib<name>.a to let people know that these are not |
| 10147 | # typical AIX shared libraries. |
| 10148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10149 | else |
| 10150 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10151 | # and later when we are not doing run time linking. |
| 10152 | library_names_spec='${libname}${release}.a $libname.a' |
| 10153 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10154 | fi |
| 10155 | shlibpath_var=LIBPATH |
| 10156 | fi |
| 10157 | ;; |
| 10158 | |
| 10159 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10160 | case $host_cpu in |
| 10161 | powerpc) |
| 10162 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10163 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10165 | ;; |
| 10166 | m68k) |
| 10167 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10168 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10169 | 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' |
| 10170 | ;; |
| 10171 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10172 | ;; |
| 10173 | |
| 10174 | beos*) |
| 10175 | library_names_spec='${libname}${shared_ext}' |
| 10176 | dynamic_linker="$host_os ld.so" |
| 10177 | shlibpath_var=LIBRARY_PATH |
| 10178 | ;; |
| 10179 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10180 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10181 | version_type=linux |
| 10182 | need_version=no |
| 10183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10184 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10185 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10186 | shlibpath_var=LD_LIBRARY_PATH |
| 10187 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10188 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10189 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10190 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10191 | # libtool to hard-code these into programs |
| 10192 | ;; |
| 10193 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10194 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10195 | version_type=windows |
| 10196 | shrext_cmds=".dll" |
| 10197 | need_version=no |
| 10198 | need_lib_prefix=no |
| 10199 | |
| 10200 | case $GCC,$host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10201 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10202 | library_names_spec='$libname.dll.a' |
| 10203 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10204 | postinstall_cmds='base_file=`basename \${file}`~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10205 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10206 | dldir=$destdir/`dirname \$dlpath`~ |
| 10207 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10208 | $install_prog $dir/$dlname \$dldir/$dlname~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10209 | chmod a+x \$dldir/$dlname~ |
| 10210 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10211 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10212 | fi' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10213 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10214 | dlpath=$dir/\$dldll~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10215 | $RM \$dlpath' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10216 | shlibpath_overrides_runpath=yes |
| 10217 | |
| 10218 | case $host_os in |
| 10219 | cygwin*) |
| 10220 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10221 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10222 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 10223 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10224 | mingw* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10225 | # MinGW DLLs use traditional 'lib' prefix |
| 10226 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10227 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10228 | 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] | 10229 | # It is most probably a Windows format PATH printed by |
| 10230 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 10231 | # path with ; separators, and with drive letters. We can handle the |
| 10232 | # drive letters (cygwin fileutils understands them), so leave them, |
| 10233 | # especially as we might pass files found there to a mingw objdump, |
| 10234 | # which wouldn't understand a cygwinified path. Ahh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10235 | 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] | 10236 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10237 | 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] | 10238 | fi |
| 10239 | ;; |
| 10240 | pw32*) |
| 10241 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10242 | 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] | 10243 | ;; |
| 10244 | esac |
| 10245 | ;; |
| 10246 | |
| 10247 | *) |
| 10248 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10249 | ;; |
| 10250 | esac |
| 10251 | dynamic_linker='Win32 ld.exe' |
| 10252 | # FIXME: first we should search . and the directory the executable is in |
| 10253 | shlibpath_var=PATH |
| 10254 | ;; |
| 10255 | |
| 10256 | darwin* | rhapsody*) |
| 10257 | dynamic_linker="$host_os dyld" |
| 10258 | version_type=darwin |
| 10259 | need_lib_prefix=no |
| 10260 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10261 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10262 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10263 | shlibpath_overrides_runpath=yes |
| 10264 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10265 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10266 | |
| 10267 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10268 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10269 | ;; |
| 10270 | |
| 10271 | dgux*) |
| 10272 | version_type=linux |
| 10273 | need_lib_prefix=no |
| 10274 | need_version=no |
| 10275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10276 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10277 | shlibpath_var=LD_LIBRARY_PATH |
| 10278 | ;; |
| 10279 | |
| 10280 | freebsd1*) |
| 10281 | dynamic_linker=no |
| 10282 | ;; |
| 10283 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10284 | freebsd* | dragonfly*) |
| 10285 | # DragonFly does not have aout. When/if they implement a new |
| 10286 | # versioning mechanism, adjust this. |
| 10287 | if test -x /usr/bin/objformat; then |
| 10288 | objformat=`/usr/bin/objformat` |
| 10289 | else |
| 10290 | case $host_os in |
| 10291 | freebsd[123]*) objformat=aout ;; |
| 10292 | *) objformat=elf ;; |
| 10293 | esac |
| 10294 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10295 | version_type=freebsd-$objformat |
| 10296 | case $version_type in |
| 10297 | freebsd-elf*) |
| 10298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10299 | need_version=no |
| 10300 | need_lib_prefix=no |
| 10301 | ;; |
| 10302 | freebsd-*) |
| 10303 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10304 | need_version=yes |
| 10305 | ;; |
| 10306 | esac |
| 10307 | shlibpath_var=LD_LIBRARY_PATH |
| 10308 | case $host_os in |
| 10309 | freebsd2*) |
| 10310 | shlibpath_overrides_runpath=yes |
| 10311 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10312 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10313 | shlibpath_overrides_runpath=yes |
| 10314 | hardcode_into_libs=yes |
| 10315 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10316 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10317 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10318 | shlibpath_overrides_runpath=no |
| 10319 | hardcode_into_libs=yes |
| 10320 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10321 | *) # from 4.6 on, and DragonFly |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10322 | shlibpath_overrides_runpath=yes |
| 10323 | hardcode_into_libs=yes |
| 10324 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10325 | esac |
| 10326 | ;; |
| 10327 | |
| 10328 | gnu*) |
| 10329 | version_type=linux |
| 10330 | need_lib_prefix=no |
| 10331 | need_version=no |
| 10332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10333 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10334 | shlibpath_var=LD_LIBRARY_PATH |
| 10335 | hardcode_into_libs=yes |
| 10336 | ;; |
| 10337 | |
| 10338 | hpux9* | hpux10* | hpux11*) |
| 10339 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10340 | # link against other versions. |
| 10341 | version_type=sunos |
| 10342 | need_lib_prefix=no |
| 10343 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10344 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10345 | ia64*) |
| 10346 | shrext_cmds='.so' |
| 10347 | hardcode_into_libs=yes |
| 10348 | dynamic_linker="$host_os dld.so" |
| 10349 | shlibpath_var=LD_LIBRARY_PATH |
| 10350 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10351 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10352 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10353 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10354 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10355 | else |
| 10356 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10357 | fi |
| 10358 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10359 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10360 | hppa*64*) |
| 10361 | shrext_cmds='.sl' |
| 10362 | hardcode_into_libs=yes |
| 10363 | dynamic_linker="$host_os dld.sl" |
| 10364 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10365 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10367 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10368 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10369 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10370 | ;; |
| 10371 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10372 | shrext_cmds='.sl' |
| 10373 | dynamic_linker="$host_os dld.sl" |
| 10374 | shlibpath_var=SHLIB_PATH |
| 10375 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10377 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10378 | ;; |
| 10379 | esac |
| 10380 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10381 | postinstall_cmds='chmod 555 $lib' |
| 10382 | ;; |
| 10383 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10384 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10385 | version_type=linux |
| 10386 | need_lib_prefix=no |
| 10387 | need_version=no |
| 10388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10389 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10390 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10391 | shlibpath_var=LD_LIBRARY_PATH |
| 10392 | shlibpath_overrides_runpath=no |
| 10393 | hardcode_into_libs=yes |
| 10394 | ;; |
| 10395 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10396 | irix5* | irix6* | nonstopux*) |
| 10397 | case $host_os in |
| 10398 | nonstopux*) version_type=nonstopux ;; |
| 10399 | *) |
| 10400 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10401 | version_type=linux |
| 10402 | else |
| 10403 | version_type=irix |
| 10404 | fi ;; |
| 10405 | esac |
| 10406 | need_lib_prefix=no |
| 10407 | need_version=no |
| 10408 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10409 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10410 | case $host_os in |
| 10411 | irix5* | nonstopux*) |
| 10412 | libsuff= shlibsuff= |
| 10413 | ;; |
| 10414 | *) |
| 10415 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10416 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10417 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10418 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10419 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10420 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10421 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10422 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10423 | esac |
| 10424 | ;; |
| 10425 | esac |
| 10426 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10427 | shlibpath_overrides_runpath=no |
| 10428 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10429 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10430 | hardcode_into_libs=yes |
| 10431 | ;; |
| 10432 | |
| 10433 | # No shared lib support for Linux oldld, aout, or coff. |
| 10434 | linux*oldld* | linux*aout* | linux*coff*) |
| 10435 | dynamic_linker=no |
| 10436 | ;; |
| 10437 | |
| 10438 | # This must be Linux ELF. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10439 | linux* | k*bsd*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10440 | version_type=linux |
| 10441 | need_lib_prefix=no |
| 10442 | need_version=no |
| 10443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10444 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10445 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10446 | shlibpath_var=LD_LIBRARY_PATH |
| 10447 | shlibpath_overrides_runpath=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10448 | # Some binutils ld are patched to set DT_RUNPATH |
| 10449 | save_LDFLAGS=$LDFLAGS |
| 10450 | save_libdir=$libdir |
| 10451 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10452 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10453 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10454 | /* end confdefs.h. */ |
| 10455 | |
| 10456 | int |
| 10457 | main () |
| 10458 | { |
| 10459 | |
| 10460 | ; |
| 10461 | return 0; |
| 10462 | } |
| 10463 | _ACEOF |
| 10464 | if ac_fn_c_try_link "$LINENO"; then : |
| 10465 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 10466 | shlibpath_overrides_runpath=yes |
| 10467 | fi |
| 10468 | fi |
| 10469 | rm -f core conftest.err conftest.$ac_objext \ |
| 10470 | conftest$ac_exeext conftest.$ac_ext |
| 10471 | LDFLAGS=$save_LDFLAGS |
| 10472 | libdir=$save_libdir |
| 10473 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10474 | # This implies no fast_install, which is unacceptable. |
| 10475 | # Some rework will be needed to allow for fast_install |
| 10476 | # before this can be enabled. |
| 10477 | hardcode_into_libs=yes |
| 10478 | |
| 10479 | # Append ld.so.conf contents to the search path |
| 10480 | if test -f /etc/ld.so.conf; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10481 | 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] | 10482 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10483 | fi |
| 10484 | |
| 10485 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10486 | # powerpc, because MkLinux only supported shared libraries with the |
| 10487 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10488 | # most powerpc-linux boxes support dynamic linking these days and |
| 10489 | # people can always --disable-shared, the test was removed, and we |
| 10490 | # assume the GNU/Linux dynamic linker is in use. |
| 10491 | dynamic_linker='GNU/Linux ld.so' |
| 10492 | ;; |
| 10493 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10494 | netbsd*) |
| 10495 | version_type=sunos |
| 10496 | need_lib_prefix=no |
| 10497 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10498 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10500 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10501 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10502 | else |
| 10503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10504 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10505 | dynamic_linker='NetBSD ld.elf_so' |
| 10506 | fi |
| 10507 | shlibpath_var=LD_LIBRARY_PATH |
| 10508 | shlibpath_overrides_runpath=yes |
| 10509 | hardcode_into_libs=yes |
| 10510 | ;; |
| 10511 | |
| 10512 | newsos6) |
| 10513 | version_type=linux |
| 10514 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10515 | shlibpath_var=LD_LIBRARY_PATH |
| 10516 | shlibpath_overrides_runpath=yes |
| 10517 | ;; |
| 10518 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10519 | *nto* | *qnx*) |
| 10520 | version_type=qnx |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10521 | need_lib_prefix=no |
| 10522 | need_version=no |
| 10523 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10524 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10525 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10526 | shlibpath_overrides_runpath=no |
| 10527 | hardcode_into_libs=yes |
| 10528 | dynamic_linker='ldqnx.so' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10529 | ;; |
| 10530 | |
| 10531 | openbsd*) |
| 10532 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10533 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10534 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10535 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10536 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10537 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10538 | *) need_version=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10539 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10541 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10542 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10543 | 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] | 10544 | case $host_os in |
| 10545 | openbsd2.[89] | openbsd2.[89].*) |
| 10546 | shlibpath_overrides_runpath=no |
| 10547 | ;; |
| 10548 | *) |
| 10549 | shlibpath_overrides_runpath=yes |
| 10550 | ;; |
| 10551 | esac |
| 10552 | else |
| 10553 | shlibpath_overrides_runpath=yes |
| 10554 | fi |
| 10555 | ;; |
| 10556 | |
| 10557 | os2*) |
| 10558 | libname_spec='$name' |
| 10559 | shrext_cmds=".dll" |
| 10560 | need_lib_prefix=no |
| 10561 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10562 | dynamic_linker='OS/2 ld.exe' |
| 10563 | shlibpath_var=LIBPATH |
| 10564 | ;; |
| 10565 | |
| 10566 | osf3* | osf4* | osf5*) |
| 10567 | version_type=osf |
| 10568 | need_lib_prefix=no |
| 10569 | need_version=no |
| 10570 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10572 | shlibpath_var=LD_LIBRARY_PATH |
| 10573 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10574 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10575 | ;; |
| 10576 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10577 | rdos*) |
| 10578 | dynamic_linker=no |
| 10579 | ;; |
| 10580 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10581 | solaris*) |
| 10582 | version_type=linux |
| 10583 | need_lib_prefix=no |
| 10584 | need_version=no |
| 10585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10586 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10587 | shlibpath_var=LD_LIBRARY_PATH |
| 10588 | shlibpath_overrides_runpath=yes |
| 10589 | hardcode_into_libs=yes |
| 10590 | # ldd complains unless libraries are executable |
| 10591 | postinstall_cmds='chmod +x $lib' |
| 10592 | ;; |
| 10593 | |
| 10594 | sunos4*) |
| 10595 | version_type=sunos |
| 10596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10597 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10598 | shlibpath_var=LD_LIBRARY_PATH |
| 10599 | shlibpath_overrides_runpath=yes |
| 10600 | if test "$with_gnu_ld" = yes; then |
| 10601 | need_lib_prefix=no |
| 10602 | fi |
| 10603 | need_version=yes |
| 10604 | ;; |
| 10605 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10606 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10607 | version_type=linux |
| 10608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10609 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10610 | shlibpath_var=LD_LIBRARY_PATH |
| 10611 | case $host_vendor in |
| 10612 | sni) |
| 10613 | shlibpath_overrides_runpath=no |
| 10614 | need_lib_prefix=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10615 | runpath_var=LD_RUN_PATH |
| 10616 | ;; |
| 10617 | siemens) |
| 10618 | need_lib_prefix=no |
| 10619 | ;; |
| 10620 | motorola) |
| 10621 | need_lib_prefix=no |
| 10622 | need_version=no |
| 10623 | shlibpath_overrides_runpath=no |
| 10624 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10625 | ;; |
| 10626 | esac |
| 10627 | ;; |
| 10628 | |
| 10629 | sysv4*MP*) |
| 10630 | if test -d /usr/nec ;then |
| 10631 | version_type=linux |
| 10632 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10633 | soname_spec='$libname${shared_ext}.$major' |
| 10634 | shlibpath_var=LD_LIBRARY_PATH |
| 10635 | fi |
| 10636 | ;; |
| 10637 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10638 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10639 | version_type=freebsd-elf |
| 10640 | need_lib_prefix=no |
| 10641 | need_version=no |
| 10642 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10643 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10644 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10645 | shlibpath_overrides_runpath=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10646 | hardcode_into_libs=yes |
| 10647 | if test "$with_gnu_ld" = yes; then |
| 10648 | 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] | 10649 | else |
| 10650 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10651 | case $host_os in |
| 10652 | sco3.2v5*) |
| 10653 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10654 | ;; |
| 10655 | esac |
| 10656 | fi |
| 10657 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10658 | ;; |
| 10659 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10660 | tpf*) |
| 10661 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10662 | version_type=linux |
| 10663 | need_lib_prefix=no |
| 10664 | need_version=no |
| 10665 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10666 | shlibpath_var=LD_LIBRARY_PATH |
| 10667 | shlibpath_overrides_runpath=no |
| 10668 | hardcode_into_libs=yes |
| 10669 | ;; |
| 10670 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10671 | uts4*) |
| 10672 | version_type=linux |
| 10673 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10674 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10675 | shlibpath_var=LD_LIBRARY_PATH |
| 10676 | ;; |
| 10677 | |
| 10678 | *) |
| 10679 | dynamic_linker=no |
| 10680 | ;; |
| 10681 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 10683 | $as_echo "$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10684 | test "$dynamic_linker" = no && can_build_shared=no |
| 10685 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10686 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10687 | if test "$GCC" = yes; then |
| 10688 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10689 | fi |
| 10690 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10691 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10692 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10693 | fi |
| 10694 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10695 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10696 | fi |
| 10697 | |
| 10698 | |
| 10699 | |
| 10700 | |
| 10701 | |
| 10702 | |
| 10703 | |
| 10704 | |
| 10705 | |
| 10706 | |
| 10707 | |
| 10708 | |
| 10709 | |
| 10710 | |
| 10711 | |
| 10712 | |
| 10713 | |
| 10714 | |
| 10715 | |
| 10716 | |
| 10717 | |
| 10718 | |
| 10719 | |
| 10720 | |
| 10721 | |
| 10722 | |
| 10723 | |
| 10724 | |
| 10725 | |
| 10726 | |
| 10727 | |
| 10728 | |
| 10729 | |
| 10730 | |
| 10731 | |
| 10732 | |
| 10733 | |
| 10734 | |
| 10735 | |
| 10736 | |
| 10737 | |
| 10738 | |
| 10739 | |
| 10740 | |
| 10741 | |
| 10742 | |
| 10743 | |
| 10744 | |
| 10745 | |
| 10746 | |
| 10747 | |
| 10748 | |
| 10749 | |
| 10750 | |
| 10751 | |
| 10752 | |
| 10753 | |
| 10754 | |
| 10755 | |
| 10756 | |
| 10757 | |
| 10758 | |
| 10759 | |
| 10760 | |
| 10761 | |
| 10762 | |
| 10763 | |
| 10764 | |
| 10765 | |
| 10766 | |
| 10767 | |
| 10768 | |
| 10769 | |
| 10770 | |
| 10771 | |
| 10772 | |
| 10773 | |
| 10774 | |
| 10775 | |
| 10776 | |
| 10777 | |
| 10778 | |
| 10779 | |
| 10780 | |
| 10781 | |
| 10782 | |
| 10783 | |
| 10784 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 10785 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10786 | hardcode_action= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10787 | if test -n "$hardcode_libdir_flag_spec" || |
| 10788 | test -n "$runpath_var" || |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10789 | test "X$hardcode_automatic" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10790 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10791 | # We can hardcode non-existent directories. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10792 | if test "$hardcode_direct" != no && |
| 10793 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10794 | # have to relink, otherwise we might link with an installed library |
| 10795 | # when we should be linking with a yet-to-be-installed one |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10796 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10797 | test "$hardcode_minus_L" != no; then |
| 10798 | # Linking always hardcodes the temporary library directory. |
| 10799 | hardcode_action=relink |
| 10800 | else |
| 10801 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10802 | hardcode_action=immediate |
| 10803 | fi |
| 10804 | else |
| 10805 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10806 | # directories. |
| 10807 | hardcode_action=unsupported |
| 10808 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 10810 | $as_echo "$hardcode_action" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10811 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10812 | if test "$hardcode_action" = relink || |
| 10813 | test "$inherit_rpath" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10814 | # Fast installation is not supported |
| 10815 | enable_fast_install=no |
| 10816 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10817 | test "$enable_shared" = no; then |
| 10818 | # Fast installation is not necessary |
| 10819 | enable_fast_install=needless |
| 10820 | fi |
| 10821 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10822 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10823 | |
| 10824 | |
| 10825 | |
| 10826 | |
| 10827 | if test "x$enable_dlopen" != xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10828 | enable_dlopen=unknown |
| 10829 | enable_dlopen_self=unknown |
| 10830 | enable_dlopen_self_static=unknown |
| 10831 | else |
| 10832 | lt_cv_dlopen=no |
| 10833 | lt_cv_dlopen_libs= |
| 10834 | |
| 10835 | case $host_os in |
| 10836 | beos*) |
| 10837 | lt_cv_dlopen="load_add_on" |
| 10838 | lt_cv_dlopen_libs= |
| 10839 | lt_cv_dlopen_self=yes |
| 10840 | ;; |
| 10841 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10842 | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10843 | lt_cv_dlopen="LoadLibrary" |
| 10844 | lt_cv_dlopen_libs= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10845 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10846 | |
| 10847 | cygwin*) |
| 10848 | lt_cv_dlopen="dlopen" |
| 10849 | lt_cv_dlopen_libs= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10850 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10851 | |
| 10852 | darwin*) |
| 10853 | # if libdl is installed we need to link against it |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10855 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10856 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 10857 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10858 | else |
| 10859 | ac_check_lib_save_LIBS=$LIBS |
| 10860 | LIBS="-ldl $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10861 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10862 | /* end confdefs.h. */ |
| 10863 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10864 | /* Override any GCC internal prototype to avoid an error. |
| 10865 | Use char because int might match the return type of a GCC |
| 10866 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10867 | #ifdef __cplusplus |
| 10868 | extern "C" |
| 10869 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10870 | char dlopen (); |
| 10871 | int |
| 10872 | main () |
| 10873 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10874 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10875 | ; |
| 10876 | return 0; |
| 10877 | } |
| 10878 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10879 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10880 | ac_cv_lib_dl_dlopen=yes |
| 10881 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10882 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10883 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10884 | rm -f core conftest.err conftest.$ac_objext \ |
| 10885 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10886 | LIBS=$ac_check_lib_save_LIBS |
| 10887 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10889 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10890 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10891 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10892 | else |
| 10893 | |
| 10894 | lt_cv_dlopen="dyld" |
| 10895 | lt_cv_dlopen_libs= |
| 10896 | lt_cv_dlopen_self=yes |
| 10897 | |
| 10898 | fi |
| 10899 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10900 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10901 | |
| 10902 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10903 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 10904 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10905 | lt_cv_dlopen="shl_load" |
| 10906 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 10908 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 10909 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| 10910 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10911 | else |
| 10912 | ac_check_lib_save_LIBS=$LIBS |
| 10913 | LIBS="-ldld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10915 | /* end confdefs.h. */ |
| 10916 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10917 | /* Override any GCC internal prototype to avoid an error. |
| 10918 | Use char because int might match the return type of a GCC |
| 10919 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10920 | #ifdef __cplusplus |
| 10921 | extern "C" |
| 10922 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10923 | char shl_load (); |
| 10924 | int |
| 10925 | main () |
| 10926 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10927 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10928 | ; |
| 10929 | return 0; |
| 10930 | } |
| 10931 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10932 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10933 | ac_cv_lib_dld_shl_load=yes |
| 10934 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10935 | ac_cv_lib_dld_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10936 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10937 | rm -f core conftest.err conftest.$ac_objext \ |
| 10938 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10939 | LIBS=$ac_check_lib_save_LIBS |
| 10940 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 10942 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 10943 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10944 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10945 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10946 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 10947 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10948 | lt_cv_dlopen="dlopen" |
| 10949 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10950 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10951 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10952 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 10953 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10954 | else |
| 10955 | ac_check_lib_save_LIBS=$LIBS |
| 10956 | LIBS="-ldl $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10958 | /* end confdefs.h. */ |
| 10959 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10960 | /* Override any GCC internal prototype to avoid an error. |
| 10961 | Use char because int might match the return type of a GCC |
| 10962 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10963 | #ifdef __cplusplus |
| 10964 | extern "C" |
| 10965 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10966 | char dlopen (); |
| 10967 | int |
| 10968 | main () |
| 10969 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10970 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10971 | ; |
| 10972 | return 0; |
| 10973 | } |
| 10974 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10975 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10976 | ac_cv_lib_dl_dlopen=yes |
| 10977 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10978 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10979 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10980 | rm -f core conftest.err conftest.$ac_objext \ |
| 10981 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10982 | LIBS=$ac_check_lib_save_LIBS |
| 10983 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10985 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10986 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10987 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10988 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10989 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 10990 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 10991 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| 10992 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10993 | else |
| 10994 | ac_check_lib_save_LIBS=$LIBS |
| 10995 | LIBS="-lsvld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10997 | /* end confdefs.h. */ |
| 10998 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10999 | /* Override any GCC internal prototype to avoid an error. |
| 11000 | Use char because int might match the return type of a GCC |
| 11001 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11002 | #ifdef __cplusplus |
| 11003 | extern "C" |
| 11004 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11005 | char dlopen (); |
| 11006 | int |
| 11007 | main () |
| 11008 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11009 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11010 | ; |
| 11011 | return 0; |
| 11012 | } |
| 11013 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11014 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11015 | ac_cv_lib_svld_dlopen=yes |
| 11016 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11017 | ac_cv_lib_svld_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11018 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11019 | rm -f core conftest.err conftest.$ac_objext \ |
| 11020 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11021 | LIBS=$ac_check_lib_save_LIBS |
| 11022 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11024 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11025 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11026 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11027 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11029 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11030 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| 11031 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11032 | else |
| 11033 | ac_check_lib_save_LIBS=$LIBS |
| 11034 | LIBS="-ldld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11036 | /* end confdefs.h. */ |
| 11037 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11038 | /* Override any GCC internal prototype to avoid an error. |
| 11039 | Use char because int might match the return type of a GCC |
| 11040 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11041 | #ifdef __cplusplus |
| 11042 | extern "C" |
| 11043 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11044 | char dld_link (); |
| 11045 | int |
| 11046 | main () |
| 11047 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11048 | return dld_link (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11049 | ; |
| 11050 | return 0; |
| 11051 | } |
| 11052 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11053 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11054 | ac_cv_lib_dld_dld_link=yes |
| 11055 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11056 | ac_cv_lib_dld_dld_link=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11057 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11058 | rm -f core conftest.err conftest.$ac_objext \ |
| 11059 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11060 | LIBS=$ac_check_lib_save_LIBS |
| 11061 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11063 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11064 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11065 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11066 | fi |
| 11067 | |
| 11068 | |
| 11069 | fi |
| 11070 | |
| 11071 | |
| 11072 | fi |
| 11073 | |
| 11074 | |
| 11075 | fi |
| 11076 | |
| 11077 | |
| 11078 | fi |
| 11079 | |
| 11080 | |
| 11081 | fi |
| 11082 | |
| 11083 | ;; |
| 11084 | esac |
| 11085 | |
| 11086 | if test "x$lt_cv_dlopen" != xno; then |
| 11087 | enable_dlopen=yes |
| 11088 | else |
| 11089 | enable_dlopen=no |
| 11090 | fi |
| 11091 | |
| 11092 | case $lt_cv_dlopen in |
| 11093 | dlopen) |
| 11094 | save_CPPFLAGS="$CPPFLAGS" |
| 11095 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11096 | |
| 11097 | save_LDFLAGS="$LDFLAGS" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11098 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11099 | |
| 11100 | save_LIBS="$LIBS" |
| 11101 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11102 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11104 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11105 | if test "${lt_cv_dlopen_self+set}" = set; then : |
| 11106 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11107 | else |
| 11108 | if test "$cross_compiling" = yes; then : |
| 11109 | lt_cv_dlopen_self=cross |
| 11110 | else |
| 11111 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11112 | lt_status=$lt_dlunknown |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11113 | cat > conftest.$ac_ext <<_LT_EOF |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 11114 | #line 11114 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11115 | #include "confdefs.h" |
| 11116 | |
| 11117 | #if HAVE_DLFCN_H |
| 11118 | #include <dlfcn.h> |
| 11119 | #endif |
| 11120 | |
| 11121 | #include <stdio.h> |
| 11122 | |
| 11123 | #ifdef RTLD_GLOBAL |
| 11124 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11125 | #else |
| 11126 | # ifdef DL_GLOBAL |
| 11127 | # define LT_DLGLOBAL DL_GLOBAL |
| 11128 | # else |
| 11129 | # define LT_DLGLOBAL 0 |
| 11130 | # endif |
| 11131 | #endif |
| 11132 | |
| 11133 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11134 | find out it does not work in some platform. */ |
| 11135 | #ifndef LT_DLLAZY_OR_NOW |
| 11136 | # ifdef RTLD_LAZY |
| 11137 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11138 | # else |
| 11139 | # ifdef DL_LAZY |
| 11140 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11141 | # else |
| 11142 | # ifdef RTLD_NOW |
| 11143 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11144 | # else |
| 11145 | # ifdef DL_NOW |
| 11146 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11147 | # else |
| 11148 | # define LT_DLLAZY_OR_NOW 0 |
| 11149 | # endif |
| 11150 | # endif |
| 11151 | # endif |
| 11152 | # endif |
| 11153 | #endif |
| 11154 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11155 | void fnord() { int i=42;} |
| 11156 | int main () |
| 11157 | { |
| 11158 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11159 | int status = $lt_dlunknown; |
| 11160 | |
| 11161 | if (self) |
| 11162 | { |
| 11163 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11164 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11165 | /* dlclose (self); */ |
| 11166 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11167 | else |
| 11168 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11169 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11170 | return status; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11171 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11172 | _LT_EOF |
| 11173 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11174 | (eval $ac_link) 2>&5 |
| 11175 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11176 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11177 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11178 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11179 | lt_status=$? |
| 11180 | case x$lt_status in |
| 11181 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11182 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11183 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11184 | esac |
| 11185 | else : |
| 11186 | # compilation failed |
| 11187 | lt_cv_dlopen_self=no |
| 11188 | fi |
| 11189 | fi |
| 11190 | rm -fr conftest* |
| 11191 | |
| 11192 | |
| 11193 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11194 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11195 | $as_echo "$lt_cv_dlopen_self" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11196 | |
| 11197 | if test "x$lt_cv_dlopen_self" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11198 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11200 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11201 | if test "${lt_cv_dlopen_self_static+set}" = set; then : |
| 11202 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11203 | else |
| 11204 | if test "$cross_compiling" = yes; then : |
| 11205 | lt_cv_dlopen_self_static=cross |
| 11206 | else |
| 11207 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11208 | lt_status=$lt_dlunknown |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11209 | cat > conftest.$ac_ext <<_LT_EOF |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 11210 | #line 11210 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11211 | #include "confdefs.h" |
| 11212 | |
| 11213 | #if HAVE_DLFCN_H |
| 11214 | #include <dlfcn.h> |
| 11215 | #endif |
| 11216 | |
| 11217 | #include <stdio.h> |
| 11218 | |
| 11219 | #ifdef RTLD_GLOBAL |
| 11220 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11221 | #else |
| 11222 | # ifdef DL_GLOBAL |
| 11223 | # define LT_DLGLOBAL DL_GLOBAL |
| 11224 | # else |
| 11225 | # define LT_DLGLOBAL 0 |
| 11226 | # endif |
| 11227 | #endif |
| 11228 | |
| 11229 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11230 | find out it does not work in some platform. */ |
| 11231 | #ifndef LT_DLLAZY_OR_NOW |
| 11232 | # ifdef RTLD_LAZY |
| 11233 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11234 | # else |
| 11235 | # ifdef DL_LAZY |
| 11236 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11237 | # else |
| 11238 | # ifdef RTLD_NOW |
| 11239 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11240 | # else |
| 11241 | # ifdef DL_NOW |
| 11242 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11243 | # else |
| 11244 | # define LT_DLLAZY_OR_NOW 0 |
| 11245 | # endif |
| 11246 | # endif |
| 11247 | # endif |
| 11248 | # endif |
| 11249 | #endif |
| 11250 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11251 | void fnord() { int i=42;} |
| 11252 | int main () |
| 11253 | { |
| 11254 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11255 | int status = $lt_dlunknown; |
| 11256 | |
| 11257 | if (self) |
| 11258 | { |
| 11259 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11260 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11261 | /* dlclose (self); */ |
| 11262 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11263 | else |
| 11264 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11265 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11266 | return status; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11267 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11268 | _LT_EOF |
| 11269 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11270 | (eval $ac_link) 2>&5 |
| 11271 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11272 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11273 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11274 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11275 | lt_status=$? |
| 11276 | case x$lt_status in |
| 11277 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11278 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11279 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11280 | esac |
| 11281 | else : |
| 11282 | # compilation failed |
| 11283 | lt_cv_dlopen_self_static=no |
| 11284 | fi |
| 11285 | fi |
| 11286 | rm -fr conftest* |
| 11287 | |
| 11288 | |
| 11289 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11291 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11292 | fi |
| 11293 | |
| 11294 | CPPFLAGS="$save_CPPFLAGS" |
| 11295 | LDFLAGS="$save_LDFLAGS" |
| 11296 | LIBS="$save_LIBS" |
| 11297 | ;; |
| 11298 | esac |
| 11299 | |
| 11300 | case $lt_cv_dlopen_self in |
| 11301 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11302 | *) enable_dlopen_self=unknown ;; |
| 11303 | esac |
| 11304 | |
| 11305 | case $lt_cv_dlopen_self_static in |
| 11306 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11307 | *) enable_dlopen_self_static=unknown ;; |
| 11308 | esac |
| 11309 | fi |
| 11310 | |
| 11311 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11312 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11313 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11314 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11315 | |
| 11316 | |
| 11317 | |
| 11318 | |
| 11319 | |
| 11320 | |
| 11321 | |
| 11322 | |
| 11323 | |
| 11324 | |
| 11325 | |
| 11326 | |
| 11327 | striplib= |
| 11328 | old_striplib= |
| 11329 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 11330 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 11331 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11332 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11333 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11335 | $as_echo "yes" >&6; } |
| 11336 | else |
| 11337 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11338 | case $host_os in |
| 11339 | darwin*) |
| 11340 | if test -n "$STRIP" ; then |
| 11341 | striplib="$STRIP -x" |
| 11342 | old_striplib="$STRIP -S" |
| 11343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11344 | $as_echo "yes" >&6; } |
| 11345 | else |
| 11346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11347 | $as_echo "no" >&6; } |
| 11348 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11349 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11350 | *) |
| 11351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11352 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11353 | ;; |
| 11354 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11355 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11356 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11357 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11358 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11359 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11360 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11361 | |
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 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11368 | # Report which library types will actually be built |
| 11369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 11370 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 11371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 11372 | $as_echo "$can_build_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11373 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 11375 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 11376 | test "$can_build_shared" = "no" && enable_shared=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11377 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11378 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11379 | # are all built from PIC. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11380 | case $host_os in |
| 11381 | aix3*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11382 | test "$enable_shared" = yes && enable_static=no |
| 11383 | if test -n "$RANLIB"; then |
| 11384 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11385 | postinstall_cmds='$RANLIB $lib' |
| 11386 | fi |
| 11387 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11388 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11389 | aix[4-9]*) |
| 11390 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11391 | test "$enable_shared" = yes && enable_static=no |
| 11392 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11393 | ;; |
| 11394 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 11396 | $as_echo "$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11397 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 11399 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 11400 | # Make sure either enable_shared or enable_static is yes. |
| 11401 | test "$enable_shared" = yes || enable_static=yes |
| 11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 11403 | $as_echo "$enable_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11404 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11405 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11406 | |
| 11407 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11408 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11409 | ac_ext=c |
| 11410 | ac_cpp='$CPP $CPPFLAGS' |
| 11411 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11412 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11413 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11414 | |
| 11415 | CC="$lt_save_CC" |
| 11416 | |
| 11417 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11418 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11419 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11420 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11421 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11422 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11423 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11424 | archive_cmds_need_lc_CXX=no |
| 11425 | allow_undefined_flag_CXX= |
| 11426 | always_export_symbols_CXX=no |
| 11427 | archive_expsym_cmds_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11428 | compiler_needs_object_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11429 | export_dynamic_flag_spec_CXX= |
| 11430 | hardcode_direct_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11431 | hardcode_direct_absolute_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11432 | hardcode_libdir_flag_spec_CXX= |
| 11433 | hardcode_libdir_flag_spec_ld_CXX= |
| 11434 | hardcode_libdir_separator_CXX= |
| 11435 | hardcode_minus_L_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11436 | hardcode_shlibpath_var_CXX=unsupported |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11437 | hardcode_automatic_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11438 | inherit_rpath_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11439 | module_cmds_CXX= |
| 11440 | module_expsym_cmds_CXX= |
| 11441 | link_all_deplibs_CXX=unknown |
| 11442 | old_archive_cmds_CXX=$old_archive_cmds |
| 11443 | no_undefined_flag_CXX= |
| 11444 | whole_archive_flag_spec_CXX= |
| 11445 | enable_shared_with_static_runtimes_CXX=no |
| 11446 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11447 | # Source file extension for C++ test sources. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11448 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11449 | |
| 11450 | # Object file extension for compiled C++ test sources. |
| 11451 | objext=o |
| 11452 | objext_CXX=$objext |
| 11453 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11454 | # No sense in running all these tests if we already determined that |
| 11455 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 11456 | # are currently assumed to apply to all compilers on this platform, |
| 11457 | # and will be corrupted by setting them based on a non-working compiler. |
| 11458 | if test "$_lt_caught_CXX_error" != yes; then |
| 11459 | # Code to be used in simple compile tests |
| 11460 | lt_simple_compile_test_code="int some_variable = 0;" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11461 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11462 | # Code to be used in simple link tests |
| 11463 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11464 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11465 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11466 | |
| 11467 | |
| 11468 | |
| 11469 | |
| 11470 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11471 | |
| 11472 | # If no C compiler was specified, use CC. |
| 11473 | LTCC=${LTCC-"$CC"} |
| 11474 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11475 | # If no C compiler flags were specified, use CFLAGS. |
| 11476 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11477 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11478 | # Allow CC to be a program name with arguments. |
| 11479 | compiler=$CC |
| 11480 | |
| 11481 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11482 | # save warnings/boilerplate of simple test code |
| 11483 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11484 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11485 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11486 | _lt_compiler_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11487 | $RM conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11488 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11489 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11490 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11491 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11492 | _lt_linker_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11493 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11494 | |
| 11495 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11496 | # Allow CC to be a program name with arguments. |
| 11497 | lt_save_CC=$CC |
| 11498 | lt_save_LD=$LD |
| 11499 | lt_save_GCC=$GCC |
| 11500 | GCC=$GXX |
| 11501 | lt_save_with_gnu_ld=$with_gnu_ld |
| 11502 | lt_save_path_LD=$lt_cv_path_LD |
| 11503 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11504 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11505 | else |
| 11506 | $as_unset lt_cv_prog_gnu_ld |
| 11507 | fi |
| 11508 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11509 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11510 | else |
| 11511 | $as_unset lt_cv_path_LD |
| 11512 | fi |
| 11513 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 11514 | CC=${CXX-"c++"} |
| 11515 | compiler=$CC |
| 11516 | compiler_CXX=$CC |
| 11517 | for cc_temp in $compiler""; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11518 | case $cc_temp in |
| 11519 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11520 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11521 | \-*) ;; |
| 11522 | *) break;; |
| 11523 | esac |
| 11524 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11525 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11526 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11527 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11528 | if test -n "$compiler"; then |
| 11529 | # We don't want -fno-exception when compiling C++ code, so set the |
| 11530 | # no_builtin_flag separately |
| 11531 | if test "$GXX" = yes; then |
| 11532 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11533 | else |
| 11534 | lt_prog_compiler_no_builtin_flag_CXX= |
| 11535 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11536 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11537 | if test "$GXX" = yes; then |
| 11538 | # Set up default GNU C++ configuration |
| 11539 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11540 | |
| 11541 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11542 | # Check whether --with-gnu-ld was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11543 | if test "${with_gnu_ld+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11544 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11545 | else |
| 11546 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11547 | fi |
| 11548 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11549 | ac_prog=ld |
| 11550 | if test "$GCC" = yes; then |
| 11551 | # Check if gcc -print-prog-name=ld gives a path. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 11553 | $as_echo_n "checking for ld used by $CC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11554 | case $host in |
| 11555 | *-*-mingw*) |
| 11556 | # gcc leaves a trailing carriage return which upsets mingw |
| 11557 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11558 | *) |
| 11559 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11560 | esac |
| 11561 | case $ac_prog in |
| 11562 | # Accept absolute paths. |
| 11563 | [\\/]* | ?:[\\/]*) |
| 11564 | re_direlt='/[^/][^/]*/\.\./' |
| 11565 | # Canonicalize the pathname of ld |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11566 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 11567 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 11568 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11569 | done |
| 11570 | test -z "$LD" && LD="$ac_prog" |
| 11571 | ;; |
| 11572 | "") |
| 11573 | # If it fails, then pretend we aren't using GCC. |
| 11574 | ac_prog=ld |
| 11575 | ;; |
| 11576 | *) |
| 11577 | # If it is relative, then search for the first ld in PATH. |
| 11578 | with_gnu_ld=unknown |
| 11579 | ;; |
| 11580 | esac |
| 11581 | elif test "$with_gnu_ld" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 11583 | $as_echo_n "checking for GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11584 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 11586 | $as_echo_n "checking for non-GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11587 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11588 | if test "${lt_cv_path_LD+set}" = set; then : |
| 11589 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11590 | else |
| 11591 | if test -z "$LD"; then |
| 11592 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11593 | for ac_dir in $PATH; do |
| 11594 | IFS="$lt_save_ifs" |
| 11595 | test -z "$ac_dir" && ac_dir=. |
| 11596 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11597 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11598 | # 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] | 11599 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11600 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11601 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11602 | *GNU* | *'with BFD'*) |
| 11603 | test "$with_gnu_ld" != no && break |
| 11604 | ;; |
| 11605 | *) |
| 11606 | test "$with_gnu_ld" != yes && break |
| 11607 | ;; |
| 11608 | esac |
| 11609 | fi |
| 11610 | done |
| 11611 | IFS="$lt_save_ifs" |
| 11612 | else |
| 11613 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11614 | fi |
| 11615 | fi |
| 11616 | |
| 11617 | LD="$lt_cv_path_LD" |
| 11618 | if test -n "$LD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 11620 | $as_echo "$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11621 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11623 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11624 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11625 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 11626 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 11627 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 11628 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 11629 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11630 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11631 | # 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] | 11632 | case `$LD -v 2>&1 </dev/null` in |
| 11633 | *GNU* | *'with BFD'*) |
| 11634 | lt_cv_prog_gnu_ld=yes |
| 11635 | ;; |
| 11636 | *) |
| 11637 | lt_cv_prog_gnu_ld=no |
| 11638 | ;; |
| 11639 | esac |
| 11640 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 11642 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11643 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11644 | |
| 11645 | |
| 11646 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11647 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11648 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11649 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11650 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11651 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11652 | # archiving commands below assume that GNU ld is being used. |
| 11653 | if test "$with_gnu_ld" = yes; then |
| 11654 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11655 | 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] | 11656 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11657 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11658 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11659 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11660 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11661 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11662 | # investigate it a little bit more. (MM) |
| 11663 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11664 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11665 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11666 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 11667 | $GREP 'no-whole-archive' > /dev/null; then |
| 11668 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11669 | else |
| 11670 | whole_archive_flag_spec_CXX= |
| 11671 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11672 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11673 | with_gnu_ld=no |
| 11674 | wlarc= |
| 11675 | |
| 11676 | # A generic and very simple default shared library creation |
| 11677 | # command for GNU C++ for the case where it uses the native |
| 11678 | # linker, instead of GNU ld. If possible, this setting should |
| 11679 | # overridden to take advantage of the native linker features on |
| 11680 | # the platform it is being used on. |
| 11681 | 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] | 11682 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11683 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11684 | # Commands to make compiler produce verbose output that lists |
| 11685 | # what "hidden" libraries, object files and flags are used when |
| 11686 | # linking a shared library. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11687 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 11688 | |
| 11689 | else |
| 11690 | GXX=no |
| 11691 | with_gnu_ld=no |
| 11692 | wlarc= |
| 11693 | fi |
| 11694 | |
| 11695 | # PORTME: fill in a description of your system's C++ link characteristics |
| 11696 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11697 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 11698 | ld_shlibs_CXX=yes |
| 11699 | case $host_os in |
| 11700 | aix3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11701 | # FIXME: insert proper C++ library support |
| 11702 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11703 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11704 | aix[4-9]*) |
| 11705 | if test "$host_cpu" = ia64; then |
| 11706 | # On IA64, the linker does run time linking by default, so we don't |
| 11707 | # have to do anything special. |
| 11708 | aix_use_runtimelinking=no |
| 11709 | exp_sym_flag='-Bexport' |
| 11710 | no_entry_flag="" |
| 11711 | else |
| 11712 | aix_use_runtimelinking=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11713 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11714 | # Test if we are trying to use run time linking or normal |
| 11715 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11716 | # need to do runtime linking. |
| 11717 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11718 | for ld_flag in $LDFLAGS; do |
| 11719 | case $ld_flag in |
| 11720 | *-brtl*) |
| 11721 | aix_use_runtimelinking=yes |
| 11722 | break |
| 11723 | ;; |
| 11724 | esac |
| 11725 | done |
| 11726 | ;; |
| 11727 | esac |
| 11728 | |
| 11729 | exp_sym_flag='-bexport' |
| 11730 | no_entry_flag='-bnoentry' |
| 11731 | fi |
| 11732 | |
| 11733 | # When large executables or shared objects are built, AIX ld can |
| 11734 | # have problems creating the table of contents. If linking a library |
| 11735 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11736 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11737 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11738 | |
| 11739 | archive_cmds_CXX='' |
| 11740 | hardcode_direct_CXX=yes |
| 11741 | hardcode_direct_absolute_CXX=yes |
| 11742 | hardcode_libdir_separator_CXX=':' |
| 11743 | link_all_deplibs_CXX=yes |
| 11744 | file_list_spec_CXX='${wl}-f,' |
| 11745 | |
| 11746 | if test "$GXX" = yes; then |
| 11747 | case $host_os in aix4.[012]|aix4.[012].*) |
| 11748 | # We only want to do this on AIX 4.2 and lower, the check |
| 11749 | # below for broken collect2 doesn't work under 4.3+ |
| 11750 | collect2name=`${CC} -print-prog-name=collect2` |
| 11751 | if test -f "$collect2name" && |
| 11752 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 11753 | then |
| 11754 | # We have reworked collect2 |
| 11755 | : |
| 11756 | else |
| 11757 | # We have old collect2 |
| 11758 | hardcode_direct_CXX=unsupported |
| 11759 | # It fails to find uninstalled libraries when the uninstalled |
| 11760 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11761 | # to unsupported forces relinking |
| 11762 | hardcode_minus_L_CXX=yes |
| 11763 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11764 | hardcode_libdir_separator_CXX= |
| 11765 | fi |
| 11766 | esac |
| 11767 | shared_flag='-shared' |
| 11768 | if test "$aix_use_runtimelinking" = yes; then |
| 11769 | shared_flag="$shared_flag "'${wl}-G' |
| 11770 | fi |
| 11771 | else |
| 11772 | # not using gcc |
| 11773 | if test "$host_cpu" = ia64; then |
| 11774 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11775 | # chokes on -Wl,-G. The following line is correct: |
| 11776 | shared_flag='-G' |
| 11777 | else |
| 11778 | if test "$aix_use_runtimelinking" = yes; then |
| 11779 | shared_flag='${wl}-G' |
| 11780 | else |
| 11781 | shared_flag='${wl}-bM:SRE' |
| 11782 | fi |
| 11783 | fi |
| 11784 | fi |
| 11785 | |
| 11786 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 11787 | # It seems that -bexpall does not export symbols beginning with |
| 11788 | # underscore (_), so it is better to generate a list of symbols to |
| 11789 | # export. |
| 11790 | always_export_symbols_CXX=yes |
| 11791 | if test "$aix_use_runtimelinking" = yes; then |
| 11792 | # Warning - without using the other runtime loading flags (-brtl), |
| 11793 | # -berok will link without error, but may produce a broken library. |
| 11794 | allow_undefined_flag_CXX='-berok' |
| 11795 | # Determine the default libpath from the value encoded in an empty |
| 11796 | # executable. |
| 11797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11798 | /* end confdefs.h. */ |
| 11799 | |
| 11800 | int |
| 11801 | main () |
| 11802 | { |
| 11803 | |
| 11804 | ; |
| 11805 | return 0; |
| 11806 | } |
| 11807 | _ACEOF |
| 11808 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 11809 | |
| 11810 | lt_aix_libpath_sed=' |
| 11811 | /Import File Strings/,/^$/ { |
| 11812 | /^0/ { |
| 11813 | s/^0 *\(.*\)$/\1/ |
| 11814 | p |
| 11815 | } |
| 11816 | }' |
| 11817 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11818 | # Check for a 64-bit object if we didn't find anything. |
| 11819 | if test -z "$aix_libpath"; then |
| 11820 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11821 | fi |
| 11822 | fi |
| 11823 | rm -f core conftest.err conftest.$ac_objext \ |
| 11824 | conftest$ac_exeext conftest.$ac_ext |
| 11825 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11826 | |
| 11827 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11828 | |
| 11829 | 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" |
| 11830 | else |
| 11831 | if test "$host_cpu" = ia64; then |
| 11832 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11833 | allow_undefined_flag_CXX="-z nodefs" |
| 11834 | 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" |
| 11835 | else |
| 11836 | # Determine the default libpath from the value encoded in an |
| 11837 | # empty executable. |
| 11838 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11839 | /* end confdefs.h. */ |
| 11840 | |
| 11841 | int |
| 11842 | main () |
| 11843 | { |
| 11844 | |
| 11845 | ; |
| 11846 | return 0; |
| 11847 | } |
| 11848 | _ACEOF |
| 11849 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 11850 | |
| 11851 | lt_aix_libpath_sed=' |
| 11852 | /Import File Strings/,/^$/ { |
| 11853 | /^0/ { |
| 11854 | s/^0 *\(.*\)$/\1/ |
| 11855 | p |
| 11856 | } |
| 11857 | }' |
| 11858 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11859 | # Check for a 64-bit object if we didn't find anything. |
| 11860 | if test -z "$aix_libpath"; then |
| 11861 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11862 | fi |
| 11863 | fi |
| 11864 | rm -f core conftest.err conftest.$ac_objext \ |
| 11865 | conftest$ac_exeext conftest.$ac_ext |
| 11866 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11867 | |
| 11868 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11869 | # Warning - without using the other run time loading flags, |
| 11870 | # -berok will link without error, but may produce a broken library. |
| 11871 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11872 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 11873 | # Exported symbols can be pulled into shared objects from archives |
| 11874 | whole_archive_flag_spec_CXX='$convenience' |
| 11875 | archive_cmds_need_lc_CXX=yes |
| 11876 | # This is similar to how AIX traditionally builds its shared |
| 11877 | # libraries. |
| 11878 | 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' |
| 11879 | fi |
| 11880 | fi |
| 11881 | ;; |
| 11882 | |
| 11883 | beos*) |
| 11884 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11885 | allow_undefined_flag_CXX=unsupported |
| 11886 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11887 | # support --undefined. This deserves some investigation. FIXME |
| 11888 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11889 | else |
| 11890 | ld_shlibs_CXX=no |
| 11891 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11892 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11893 | |
| 11894 | chorus*) |
| 11895 | case $cc_basename in |
| 11896 | *) |
| 11897 | # FIXME: insert proper C++ library support |
| 11898 | ld_shlibs_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11899 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11900 | esac |
| 11901 | ;; |
| 11902 | |
| 11903 | cygwin* | mingw* | pw32* | cegcc*) |
| 11904 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11905 | # as there is no search path for DLLs. |
| 11906 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11907 | allow_undefined_flag_CXX=unsupported |
| 11908 | always_export_symbols_CXX=no |
| 11909 | enable_shared_with_static_runtimes_CXX=yes |
| 11910 | |
| 11911 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 11912 | 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' |
| 11913 | # If the export-symbols file already is a .def file (1st line |
| 11914 | # is EXPORTS), use it as is; otherwise, prepend... |
| 11915 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11916 | cp $export_symbols $output_objdir/$soname.def; |
| 11917 | else |
| 11918 | echo EXPORTS > $output_objdir/$soname.def; |
| 11919 | cat $export_symbols >> $output_objdir/$soname.def; |
| 11920 | fi~ |
| 11921 | $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' |
| 11922 | else |
| 11923 | ld_shlibs_CXX=no |
| 11924 | fi |
| 11925 | ;; |
| 11926 | darwin* | rhapsody*) |
| 11927 | |
| 11928 | |
| 11929 | archive_cmds_need_lc_CXX=no |
| 11930 | hardcode_direct_CXX=no |
| 11931 | hardcode_automatic_CXX=yes |
| 11932 | hardcode_shlibpath_var_CXX=unsupported |
| 11933 | whole_archive_flag_spec_CXX='' |
| 11934 | link_all_deplibs_CXX=yes |
| 11935 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 11936 | case $cc_basename in |
| 11937 | ifort*) _lt_dar_can_shared=yes ;; |
| 11938 | *) _lt_dar_can_shared=$GCC ;; |
| 11939 | esac |
| 11940 | if test "$_lt_dar_can_shared" = "yes"; then |
| 11941 | output_verbose_link_cmd=echo |
| 11942 | 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}" |
| 11943 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 11944 | 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}" |
| 11945 | 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}" |
| 11946 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 11947 | 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}" |
| 11948 | 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}" |
| 11949 | fi |
| 11950 | |
| 11951 | else |
| 11952 | ld_shlibs_CXX=no |
| 11953 | fi |
| 11954 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11955 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11956 | |
| 11957 | dgux*) |
| 11958 | case $cc_basename in |
| 11959 | ec++*) |
| 11960 | # FIXME: insert proper C++ library support |
| 11961 | ld_shlibs_CXX=no |
| 11962 | ;; |
| 11963 | ghcx*) |
| 11964 | # Green Hills C++ Compiler |
| 11965 | # FIXME: insert proper C++ library support |
| 11966 | ld_shlibs_CXX=no |
| 11967 | ;; |
| 11968 | *) |
| 11969 | # FIXME: insert proper C++ library support |
| 11970 | ld_shlibs_CXX=no |
| 11971 | ;; |
| 11972 | esac |
| 11973 | ;; |
| 11974 | |
| 11975 | freebsd[12]*) |
| 11976 | # C++ shared libraries reported to be fairly broken before |
| 11977 | # switch to ELF |
| 11978 | ld_shlibs_CXX=no |
| 11979 | ;; |
| 11980 | |
| 11981 | freebsd-elf*) |
| 11982 | archive_cmds_need_lc_CXX=no |
| 11983 | ;; |
| 11984 | |
| 11985 | freebsd* | dragonfly*) |
| 11986 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 11987 | # conventions |
| 11988 | ld_shlibs_CXX=yes |
| 11989 | ;; |
| 11990 | |
| 11991 | gnu*) |
| 11992 | ;; |
| 11993 | |
| 11994 | hpux9*) |
| 11995 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 11996 | hardcode_libdir_separator_CXX=: |
| 11997 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 11998 | hardcode_direct_CXX=yes |
| 11999 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12000 | # but as the default |
| 12001 | # location of the library. |
| 12002 | |
| 12003 | case $cc_basename in |
| 12004 | CC*) |
| 12005 | # FIXME: insert proper C++ library support |
| 12006 | ld_shlibs_CXX=no |
| 12007 | ;; |
| 12008 | aCC*) |
| 12009 | 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' |
| 12010 | # Commands to make compiler produce verbose output that lists |
| 12011 | # what "hidden" libraries, object files and flags are used when |
| 12012 | # linking a shared library. |
| 12013 | # |
| 12014 | # There doesn't appear to be a way to prevent this compiler from |
| 12015 | # explicitly linking system object files so we need to strip them |
| 12016 | # from the output so that they don't get included in the library |
| 12017 | # dependencies. |
| 12018 | 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' |
| 12019 | ;; |
| 12020 | *) |
| 12021 | if test "$GXX" = yes; then |
| 12022 | 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' |
| 12023 | else |
| 12024 | # FIXME: insert proper C++ library support |
| 12025 | ld_shlibs_CXX=no |
| 12026 | fi |
| 12027 | ;; |
| 12028 | esac |
| 12029 | ;; |
| 12030 | |
| 12031 | hpux10*|hpux11*) |
| 12032 | if test $with_gnu_ld = no; then |
| 12033 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12034 | hardcode_libdir_separator_CXX=: |
| 12035 | |
| 12036 | case $host_cpu in |
| 12037 | hppa*64*|ia64*) |
| 12038 | ;; |
| 12039 | *) |
| 12040 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12041 | ;; |
| 12042 | esac |
| 12043 | fi |
| 12044 | case $host_cpu in |
| 12045 | hppa*64*|ia64*) |
| 12046 | hardcode_direct_CXX=no |
| 12047 | hardcode_shlibpath_var_CXX=no |
| 12048 | ;; |
| 12049 | *) |
| 12050 | hardcode_direct_CXX=yes |
| 12051 | hardcode_direct_absolute_CXX=yes |
| 12052 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12053 | # but as the default |
| 12054 | # location of the library. |
| 12055 | ;; |
| 12056 | esac |
| 12057 | |
| 12058 | case $cc_basename in |
| 12059 | CC*) |
| 12060 | # FIXME: insert proper C++ library support |
| 12061 | ld_shlibs_CXX=no |
| 12062 | ;; |
| 12063 | aCC*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12064 | case $host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12065 | hppa*64*) |
| 12066 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12067 | ;; |
| 12068 | ia64*) |
| 12069 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12070 | ;; |
| 12071 | *) |
| 12072 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12073 | ;; |
| 12074 | esac |
| 12075 | # Commands to make compiler produce verbose output that lists |
| 12076 | # what "hidden" libraries, object files and flags are used when |
| 12077 | # linking a shared library. |
| 12078 | # |
| 12079 | # There doesn't appear to be a way to prevent this compiler from |
| 12080 | # explicitly linking system object files so we need to strip them |
| 12081 | # from the output so that they don't get included in the library |
| 12082 | # dependencies. |
| 12083 | 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' |
| 12084 | ;; |
| 12085 | *) |
| 12086 | if test "$GXX" = yes; then |
| 12087 | if test $with_gnu_ld = no; then |
| 12088 | case $host_cpu in |
| 12089 | hppa*64*) |
| 12090 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12091 | ;; |
| 12092 | ia64*) |
| 12093 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12094 | ;; |
| 12095 | *) |
| 12096 | 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' |
| 12097 | ;; |
| 12098 | esac |
| 12099 | fi |
| 12100 | else |
| 12101 | # FIXME: insert proper C++ library support |
| 12102 | ld_shlibs_CXX=no |
| 12103 | fi |
| 12104 | ;; |
| 12105 | esac |
| 12106 | ;; |
| 12107 | |
| 12108 | interix[3-9]*) |
| 12109 | hardcode_direct_CXX=no |
| 12110 | hardcode_shlibpath_var_CXX=no |
| 12111 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12112 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12113 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12114 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12115 | # default) and relocated if they conflict, which is a slow very memory |
| 12116 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 12117 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12118 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12119 | 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' |
| 12120 | 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' |
| 12121 | ;; |
| 12122 | irix5* | irix6*) |
| 12123 | case $cc_basename in |
| 12124 | CC*) |
| 12125 | # SGI C++ |
| 12126 | 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' |
| 12127 | |
| 12128 | # Archives containing C++ object files must be created using |
| 12129 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 12130 | # necessary to make sure instantiated templates are included |
| 12131 | # in the archive. |
| 12132 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 12133 | ;; |
| 12134 | *) |
| 12135 | if test "$GXX" = yes; then |
| 12136 | if test "$with_gnu_ld" = no; then |
| 12137 | 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' |
| 12138 | else |
| 12139 | 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' |
| 12140 | fi |
| 12141 | fi |
| 12142 | link_all_deplibs_CXX=yes |
| 12143 | ;; |
| 12144 | esac |
| 12145 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12146 | hardcode_libdir_separator_CXX=: |
| 12147 | inherit_rpath_CXX=yes |
| 12148 | ;; |
| 12149 | |
| 12150 | linux* | k*bsd*-gnu) |
| 12151 | case $cc_basename in |
| 12152 | KCC*) |
| 12153 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12154 | |
| 12155 | # KCC will only create a shared library if the output file |
| 12156 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12157 | # to its proper name (with version) after linking. |
| 12158 | 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' |
| 12159 | 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' |
| 12160 | # Commands to make compiler produce verbose output that lists |
| 12161 | # what "hidden" libraries, object files and flags are used when |
| 12162 | # linking a shared library. |
| 12163 | # |
| 12164 | # There doesn't appear to be a way to prevent this compiler from |
| 12165 | # explicitly linking system object files so we need to strip them |
| 12166 | # from the output so that they don't get included in the library |
| 12167 | # dependencies. |
| 12168 | 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' |
| 12169 | |
| 12170 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12171 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12172 | |
| 12173 | # Archives containing C++ object files must be created using |
| 12174 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 12175 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 12176 | ;; |
| 12177 | icpc* | ecpc* ) |
| 12178 | # Intel C++ |
| 12179 | with_gnu_ld=yes |
| 12180 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 12181 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 12182 | # earlier do not add the objects themselves. |
| 12183 | case `$CC -V 2>&1` in |
| 12184 | *"Version 7."*) |
| 12185 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12186 | 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' |
| 12187 | ;; |
| 12188 | *) # Version 8.0 or newer |
| 12189 | tmp_idyn= |
| 12190 | case $host_cpu in |
| 12191 | ia64*) tmp_idyn=' -i_dynamic';; |
| 12192 | esac |
| 12193 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12194 | 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' |
| 12195 | ;; |
| 12196 | esac |
| 12197 | archive_cmds_need_lc_CXX=no |
| 12198 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12199 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12200 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 12201 | ;; |
| 12202 | pgCC* | pgcpp*) |
| 12203 | # Portland Group C++ compiler |
| 12204 | case `$CC -V` in |
| 12205 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
| 12206 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 12207 | rm -rf $tpldir~ |
| 12208 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 12209 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 12210 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 12211 | rm -rf $tpldir~ |
| 12212 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 12213 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 12214 | $RANLIB $oldlib' |
| 12215 | archive_cmds_CXX='tpldir=Template.dir~ |
| 12216 | rm -rf $tpldir~ |
| 12217 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 12218 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12219 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 12220 | rm -rf $tpldir~ |
| 12221 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 12222 | $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] | 12223 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12224 | *) # Version 6 will use weak symbols |
| 12225 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12226 | 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] | 12227 | ;; |
| 12228 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12229 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12230 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 12231 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12232 | 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' |
| 12233 | ;; |
| 12234 | cxx*) |
| 12235 | # Compaq C++ |
| 12236 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12237 | 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] | 12238 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12239 | runpath_var=LD_RUN_PATH |
| 12240 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12241 | hardcode_libdir_separator_CXX=: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12242 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12243 | # Commands to make compiler produce verbose output that lists |
| 12244 | # what "hidden" libraries, object files and flags are used when |
| 12245 | # linking a shared library. |
| 12246 | # |
| 12247 | # There doesn't appear to be a way to prevent this compiler from |
| 12248 | # explicitly linking system object files so we need to strip them |
| 12249 | # from the output so that they don't get included in the library |
| 12250 | # dependencies. |
| 12251 | 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' |
| 12252 | ;; |
| 12253 | xl*) |
| 12254 | # IBM XL 8.0 on PPC, with GNU ld |
| 12255 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12256 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12257 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12258 | if test "x$supports_anon_versioning" = xyes; then |
| 12259 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12260 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12261 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12262 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12263 | fi |
| 12264 | ;; |
| 12265 | *) |
| 12266 | case `$CC -V 2>&1 | sed 5q` in |
| 12267 | *Sun\ C*) |
| 12268 | # Sun C++ 5.9 |
| 12269 | no_undefined_flag_CXX=' -zdefs' |
| 12270 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12271 | 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' |
| 12272 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12273 | 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' |
| 12274 | compiler_needs_object_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12275 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12276 | # Not sure whether something based on |
| 12277 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 12278 | # would be better. |
| 12279 | output_verbose_link_cmd='echo' |
| 12280 | |
| 12281 | # Archives containing C++ object files must be created using |
| 12282 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12283 | # necessary to make sure instantiated templates are included |
| 12284 | # in the archive. |
| 12285 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12286 | ;; |
| 12287 | esac |
| 12288 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12289 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12290 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12291 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12292 | lynxos*) |
| 12293 | # FIXME: insert proper C++ library support |
| 12294 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12295 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12296 | |
| 12297 | m88k*) |
| 12298 | # FIXME: insert proper C++ library support |
| 12299 | ld_shlibs_CXX=no |
| 12300 | ;; |
| 12301 | |
| 12302 | mvs*) |
| 12303 | case $cc_basename in |
| 12304 | cxx*) |
| 12305 | # FIXME: insert proper C++ library support |
| 12306 | ld_shlibs_CXX=no |
| 12307 | ;; |
| 12308 | *) |
| 12309 | # FIXME: insert proper C++ library support |
| 12310 | ld_shlibs_CXX=no |
| 12311 | ;; |
| 12312 | esac |
| 12313 | ;; |
| 12314 | |
| 12315 | netbsd*) |
| 12316 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12317 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 12318 | wlarc= |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12319 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12320 | hardcode_direct_CXX=yes |
| 12321 | hardcode_shlibpath_var_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12322 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12323 | # Workaround some broken pre-1.5 toolchains |
| 12324 | 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] | 12325 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12326 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12327 | *nto* | *qnx*) |
| 12328 | ld_shlibs_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12329 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12330 | |
| 12331 | openbsd2*) |
| 12332 | # C++ shared libraries are fairly broken |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12333 | ld_shlibs_CXX=no |
| 12334 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12335 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12336 | openbsd*) |
| 12337 | if test -f /usr/libexec/ld.so; then |
| 12338 | hardcode_direct_CXX=yes |
| 12339 | hardcode_shlibpath_var_CXX=no |
| 12340 | hardcode_direct_absolute_CXX=yes |
| 12341 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12342 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12343 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12344 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 12345 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12346 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12347 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12348 | output_verbose_link_cmd=echo |
| 12349 | else |
| 12350 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12351 | fi |
| 12352 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12353 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12354 | osf3* | osf4* | osf5*) |
| 12355 | case $cc_basename in |
| 12356 | KCC*) |
| 12357 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12358 | |
| 12359 | # KCC will only create a shared library if the output file |
| 12360 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12361 | # to its proper name (with version) after linking. |
| 12362 | 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' |
| 12363 | |
| 12364 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12365 | hardcode_libdir_separator_CXX=: |
| 12366 | |
| 12367 | # Archives containing C++ object files must be created using |
| 12368 | # the KAI C++ compiler. |
| 12369 | case $host in |
| 12370 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 12371 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 12372 | esac |
| 12373 | ;; |
| 12374 | RCC*) |
| 12375 | # Rational C++ 2.4.1 |
| 12376 | # FIXME: insert proper C++ library support |
| 12377 | ld_shlibs_CXX=no |
| 12378 | ;; |
| 12379 | cxx*) |
| 12380 | case $host in |
| 12381 | osf3*) |
| 12382 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12383 | 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' |
| 12384 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12385 | ;; |
| 12386 | *) |
| 12387 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 12388 | 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' |
| 12389 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 12390 | echo "-hidden">> $lib.exp~ |
| 12391 | $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~ |
| 12392 | $RM $lib.exp' |
| 12393 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12394 | ;; |
| 12395 | esac |
| 12396 | |
| 12397 | hardcode_libdir_separator_CXX=: |
| 12398 | |
| 12399 | # Commands to make compiler produce verbose output that lists |
| 12400 | # what "hidden" libraries, object files and flags are used when |
| 12401 | # linking a shared library. |
| 12402 | # |
| 12403 | # There doesn't appear to be a way to prevent this compiler from |
| 12404 | # explicitly linking system object files so we need to strip them |
| 12405 | # from the output so that they don't get included in the library |
| 12406 | # dependencies. |
| 12407 | 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' |
| 12408 | ;; |
| 12409 | *) |
| 12410 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12411 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12412 | case $host in |
| 12413 | osf3*) |
| 12414 | 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' |
| 12415 | ;; |
| 12416 | *) |
| 12417 | 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' |
| 12418 | ;; |
| 12419 | esac |
| 12420 | |
| 12421 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12422 | hardcode_libdir_separator_CXX=: |
| 12423 | |
| 12424 | # Commands to make compiler produce verbose output that lists |
| 12425 | # what "hidden" libraries, object files and flags are used when |
| 12426 | # linking a shared library. |
| 12427 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12428 | |
| 12429 | else |
| 12430 | # FIXME: insert proper C++ library support |
| 12431 | ld_shlibs_CXX=no |
| 12432 | fi |
| 12433 | ;; |
| 12434 | esac |
| 12435 | ;; |
| 12436 | |
| 12437 | psos*) |
| 12438 | # FIXME: insert proper C++ library support |
| 12439 | ld_shlibs_CXX=no |
| 12440 | ;; |
| 12441 | |
| 12442 | sunos4*) |
| 12443 | case $cc_basename in |
| 12444 | CC*) |
| 12445 | # Sun C++ 4.x |
| 12446 | # FIXME: insert proper C++ library support |
| 12447 | ld_shlibs_CXX=no |
| 12448 | ;; |
| 12449 | lcc*) |
| 12450 | # Lucid |
| 12451 | # FIXME: insert proper C++ library support |
| 12452 | ld_shlibs_CXX=no |
| 12453 | ;; |
| 12454 | *) |
| 12455 | # FIXME: insert proper C++ library support |
| 12456 | ld_shlibs_CXX=no |
| 12457 | ;; |
| 12458 | esac |
| 12459 | ;; |
| 12460 | |
| 12461 | solaris*) |
| 12462 | case $cc_basename in |
| 12463 | CC*) |
| 12464 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12465 | archive_cmds_need_lc_CXX=yes |
| 12466 | no_undefined_flag_CXX=' -zdefs' |
| 12467 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12468 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12469 | $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' |
| 12470 | |
| 12471 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12472 | hardcode_shlibpath_var_CXX=no |
| 12473 | case $host_os in |
| 12474 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12475 | *) |
| 12476 | # The compiler driver will combine and reorder linker options, |
| 12477 | # but understands `-z linker_flag'. |
| 12478 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12479 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 12480 | ;; |
| 12481 | esac |
| 12482 | link_all_deplibs_CXX=yes |
| 12483 | |
| 12484 | output_verbose_link_cmd='echo' |
| 12485 | |
| 12486 | # Archives containing C++ object files must be created using |
| 12487 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12488 | # necessary to make sure instantiated templates are included |
| 12489 | # in the archive. |
| 12490 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12491 | ;; |
| 12492 | gcx*) |
| 12493 | # Green Hills C++ Compiler |
| 12494 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12495 | |
| 12496 | # The C++ compiler must be used to create the archive. |
| 12497 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12498 | ;; |
| 12499 | *) |
| 12500 | # GNU C++ compiler with Solaris linker |
| 12501 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12502 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12503 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 12504 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12505 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12506 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12507 | |
| 12508 | # Commands to make compiler produce verbose output that lists |
| 12509 | # what "hidden" libraries, object files and flags are used when |
| 12510 | # linking a shared library. |
| 12511 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12512 | else |
| 12513 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12514 | # platform. |
| 12515 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12516 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12517 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12518 | |
| 12519 | # Commands to make compiler produce verbose output that lists |
| 12520 | # what "hidden" libraries, object files and flags are used when |
| 12521 | # linking a shared library. |
| 12522 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12523 | fi |
| 12524 | |
| 12525 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12526 | case $host_os in |
| 12527 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12528 | *) |
| 12529 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 12530 | ;; |
| 12531 | esac |
| 12532 | fi |
| 12533 | ;; |
| 12534 | esac |
| 12535 | ;; |
| 12536 | |
| 12537 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12538 | no_undefined_flag_CXX='${wl}-z,text' |
| 12539 | archive_cmds_need_lc_CXX=no |
| 12540 | hardcode_shlibpath_var_CXX=no |
| 12541 | runpath_var='LD_RUN_PATH' |
| 12542 | |
| 12543 | case $cc_basename in |
| 12544 | CC*) |
| 12545 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12546 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12547 | ;; |
| 12548 | *) |
| 12549 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12550 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12551 | ;; |
| 12552 | esac |
| 12553 | ;; |
| 12554 | |
| 12555 | sysv5* | sco3.2v5* | sco5v6*) |
| 12556 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12557 | # link with -lc, and that would cause any symbols used from libc to |
| 12558 | # always be unresolved, which means just about no library would |
| 12559 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12560 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12561 | # as -z defs. |
| 12562 | no_undefined_flag_CXX='${wl}-z,text' |
| 12563 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12564 | archive_cmds_need_lc_CXX=no |
| 12565 | hardcode_shlibpath_var_CXX=no |
| 12566 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 12567 | hardcode_libdir_separator_CXX=':' |
| 12568 | link_all_deplibs_CXX=yes |
| 12569 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12570 | runpath_var='LD_RUN_PATH' |
| 12571 | |
| 12572 | case $cc_basename in |
| 12573 | CC*) |
| 12574 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12575 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12576 | ;; |
| 12577 | *) |
| 12578 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12579 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12580 | ;; |
| 12581 | esac |
| 12582 | ;; |
| 12583 | |
| 12584 | tandem*) |
| 12585 | case $cc_basename in |
| 12586 | NCC*) |
| 12587 | # NonStop-UX NCC 3.20 |
| 12588 | # FIXME: insert proper C++ library support |
| 12589 | ld_shlibs_CXX=no |
| 12590 | ;; |
| 12591 | *) |
| 12592 | # FIXME: insert proper C++ library support |
| 12593 | ld_shlibs_CXX=no |
| 12594 | ;; |
| 12595 | esac |
| 12596 | ;; |
| 12597 | |
| 12598 | vxworks*) |
| 12599 | # FIXME: insert proper C++ library support |
| 12600 | ld_shlibs_CXX=no |
| 12601 | ;; |
| 12602 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12603 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12604 | # FIXME: insert proper C++ library support |
| 12605 | ld_shlibs_CXX=no |
| 12606 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12607 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12608 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 12610 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 12611 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12612 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12613 | GCC_CXX="$GXX" |
| 12614 | LD_CXX="$LD" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12615 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12616 | ## CAVEAT EMPTOR: |
| 12617 | ## There is no encapsulation within the following macros, do not change |
| 12618 | ## the running order or otherwise move them around unless you know exactly |
| 12619 | ## what you are doing... |
| 12620 | # Dependencies to place before and after the object being linked: |
| 12621 | predep_objects_CXX= |
| 12622 | postdep_objects_CXX= |
| 12623 | predeps_CXX= |
| 12624 | postdeps_CXX= |
| 12625 | compiler_lib_search_path_CXX= |
| 12626 | |
| 12627 | cat > conftest.$ac_ext <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12628 | class Foo |
| 12629 | { |
| 12630 | public: |
| 12631 | Foo (void) { a = 0; } |
| 12632 | private: |
| 12633 | int a; |
| 12634 | }; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12635 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12636 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12637 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12638 | (eval $ac_compile) 2>&5 |
| 12639 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12640 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12641 | test $ac_status = 0; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12642 | # Parse the compiler output and extract the necessary |
| 12643 | # objects, libraries and library flags. |
| 12644 | |
| 12645 | # Sentinel used to keep track of whether or not we are before |
| 12646 | # the conftest object file. |
| 12647 | pre_test_object_deps_done=no |
| 12648 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12649 | for p in `eval "$output_verbose_link_cmd"`; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12650 | case $p in |
| 12651 | |
| 12652 | -L* | -R* | -l*) |
| 12653 | # Some compilers place space between "-{L,R}" and the path. |
| 12654 | # Remove the space. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12655 | if test $p = "-L" || |
| 12656 | test $p = "-R"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12657 | prev=$p |
| 12658 | continue |
| 12659 | else |
| 12660 | prev= |
| 12661 | fi |
| 12662 | |
| 12663 | if test "$pre_test_object_deps_done" = no; then |
| 12664 | case $p in |
| 12665 | -L* | -R*) |
| 12666 | # Internal compiler library paths should come after those |
| 12667 | # provided the user. The postdeps already come after the |
| 12668 | # user supplied libs so there is no need to process them. |
| 12669 | if test -z "$compiler_lib_search_path_CXX"; then |
| 12670 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12671 | else |
| 12672 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12673 | fi |
| 12674 | ;; |
| 12675 | # The "-l" case would never come before the object being |
| 12676 | # linked, so don't bother handling this case. |
| 12677 | esac |
| 12678 | else |
| 12679 | if test -z "$postdeps_CXX"; then |
| 12680 | postdeps_CXX="${prev}${p}" |
| 12681 | else |
| 12682 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12683 | fi |
| 12684 | fi |
| 12685 | ;; |
| 12686 | |
| 12687 | *.$objext) |
| 12688 | # This assumes that the test object file only shows up |
| 12689 | # once in the compiler output. |
| 12690 | if test "$p" = "conftest.$objext"; then |
| 12691 | pre_test_object_deps_done=yes |
| 12692 | continue |
| 12693 | fi |
| 12694 | |
| 12695 | if test "$pre_test_object_deps_done" = no; then |
| 12696 | if test -z "$predep_objects_CXX"; then |
| 12697 | predep_objects_CXX="$p" |
| 12698 | else |
| 12699 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12700 | fi |
| 12701 | else |
| 12702 | if test -z "$postdep_objects_CXX"; then |
| 12703 | postdep_objects_CXX="$p" |
| 12704 | else |
| 12705 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12706 | fi |
| 12707 | fi |
| 12708 | ;; |
| 12709 | |
| 12710 | *) ;; # Ignore the rest. |
| 12711 | |
| 12712 | esac |
| 12713 | done |
| 12714 | |
| 12715 | # Clean up. |
| 12716 | rm -f a.out a.exe |
| 12717 | else |
| 12718 | echo "libtool.m4: error: problem compiling CXX test program" |
| 12719 | fi |
| 12720 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12721 | $RM -f confest.$objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12722 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12723 | # PORTME: override above test on systems where it is broken |
| 12724 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12725 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12726 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12727 | # hack all around it, let's just trust "g++" to DTRT. |
| 12728 | predep_objects_CXX= |
| 12729 | postdep_objects_CXX= |
| 12730 | postdeps_CXX= |
| 12731 | ;; |
| 12732 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12733 | linux*) |
| 12734 | case `$CC -V 2>&1 | sed 5q` in |
| 12735 | *Sun\ C*) |
| 12736 | # Sun C++ 5.9 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12737 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12738 | # The more standards-conforming stlport4 library is |
| 12739 | # incompatible with the Cstd library. Avoid specifying |
| 12740 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 12741 | # -library=stlport4 depends on it. |
| 12742 | case " $CXX $CXXFLAGS " in |
| 12743 | *" -library=stlport4 "*) |
| 12744 | solaris_use_stlport4=yes |
| 12745 | ;; |
| 12746 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12747 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12748 | if test "$solaris_use_stlport4" != yes; then |
| 12749 | postdeps_CXX='-library=Cstd -library=Crun' |
| 12750 | fi |
| 12751 | ;; |
| 12752 | esac |
| 12753 | ;; |
| 12754 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12755 | solaris*) |
| 12756 | case $cc_basename in |
| 12757 | CC*) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12758 | # The more standards-conforming stlport4 library is |
| 12759 | # incompatible with the Cstd library. Avoid specifying |
| 12760 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 12761 | # -library=stlport4 depends on it. |
| 12762 | case " $CXX $CXXFLAGS " in |
| 12763 | *" -library=stlport4 "*) |
| 12764 | solaris_use_stlport4=yes |
| 12765 | ;; |
| 12766 | esac |
| 12767 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12768 | # Adding this requires a known-good setup of shared libraries for |
| 12769 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12770 | # archive will be linked into the output, leading to subtle bugs. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12771 | if test "$solaris_use_stlport4" != yes; then |
| 12772 | postdeps_CXX='-library=Cstd -library=Crun' |
| 12773 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12774 | ;; |
| 12775 | esac |
| 12776 | ;; |
| 12777 | esac |
| 12778 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12779 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12780 | case " $postdeps_CXX " in |
| 12781 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12782 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12783 | compiler_lib_search_dirs_CXX= |
| 12784 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 12785 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 12786 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12787 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12788 | |
| 12789 | |
| 12790 | |
| 12791 | |
| 12792 | |
| 12793 | |
| 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 | lt_prog_compiler_wl_CXX= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12819 | lt_prog_compiler_pic_CXX= |
| 12820 | lt_prog_compiler_static_CXX= |
| 12821 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 12823 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12824 | |
| 12825 | # C++ specific cases for pic, static, wl, etc. |
| 12826 | if test "$GXX" = yes; then |
| 12827 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12828 | lt_prog_compiler_static_CXX='-static' |
| 12829 | |
| 12830 | case $host_os in |
| 12831 | aix*) |
| 12832 | # All AIX code is PIC. |
| 12833 | if test "$host_cpu" = ia64; then |
| 12834 | # AIX 5 now supports IA64 processor |
| 12835 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12836 | fi |
| 12837 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12838 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12839 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12840 | case $host_cpu in |
| 12841 | powerpc) |
| 12842 | # see comment about AmigaOS4 .so support |
| 12843 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12844 | ;; |
| 12845 | m68k) |
| 12846 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12847 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12848 | # like `-m68040'. |
| 12849 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12850 | ;; |
| 12851 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12852 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12853 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12854 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12855 | # PIC is the default for these OSes. |
| 12856 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12857 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12858 | # This hack is so that the source file can tell whether it is being |
| 12859 | # built for inclusion in a dll (and should export symbols for example). |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12860 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 12861 | # (--disable-auto-import) libraries |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12862 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12863 | ;; |
| 12864 | darwin* | rhapsody*) |
| 12865 | # PIC is the default on this platform |
| 12866 | # Common symbols not allowed in MH_DYLIB files |
| 12867 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12868 | ;; |
| 12869 | *djgpp*) |
| 12870 | # DJGPP does not support shared libraries at all |
| 12871 | lt_prog_compiler_pic_CXX= |
| 12872 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12873 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12874 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12875 | # Instead, we relocate shared libraries at runtime. |
| 12876 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12877 | sysv4*MP*) |
| 12878 | if test -d /usr/nec; then |
| 12879 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12880 | fi |
| 12881 | ;; |
| 12882 | hpux*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12883 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 12884 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 12885 | # sets the default TLS model and affects inlining. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12886 | case $host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12887 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12888 | ;; |
| 12889 | *) |
| 12890 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12891 | ;; |
| 12892 | esac |
| 12893 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12894 | *qnx* | *nto*) |
| 12895 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 12896 | # it will coredump. |
| 12897 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 12898 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12899 | *) |
| 12900 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12901 | ;; |
| 12902 | esac |
| 12903 | else |
| 12904 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12905 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12906 | # All AIX code is PIC. |
| 12907 | if test "$host_cpu" = ia64; then |
| 12908 | # AIX 5 now supports IA64 processor |
| 12909 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12910 | else |
| 12911 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12912 | fi |
| 12913 | ;; |
| 12914 | chorus*) |
| 12915 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12916 | cxch68*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12917 | # Green Hills C++ Compiler |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12918 | # _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] | 12919 | ;; |
| 12920 | esac |
| 12921 | ;; |
| 12922 | dgux*) |
| 12923 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12924 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12925 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12926 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12927 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12928 | # Green Hills C++ Compiler |
| 12929 | lt_prog_compiler_pic_CXX='-pic' |
| 12930 | ;; |
| 12931 | *) |
| 12932 | ;; |
| 12933 | esac |
| 12934 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12935 | freebsd* | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12936 | # FreeBSD uses GNU C++ |
| 12937 | ;; |
| 12938 | hpux9* | hpux10* | hpux11*) |
| 12939 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12940 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12941 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12942 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12943 | if test "$host_cpu" != ia64; then |
| 12944 | lt_prog_compiler_pic_CXX='+Z' |
| 12945 | fi |
| 12946 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12947 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12948 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12949 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 12950 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12951 | hppa*64*|ia64*) |
| 12952 | # +Z the default |
| 12953 | ;; |
| 12954 | *) |
| 12955 | lt_prog_compiler_pic_CXX='+Z' |
| 12956 | ;; |
| 12957 | esac |
| 12958 | ;; |
| 12959 | *) |
| 12960 | ;; |
| 12961 | esac |
| 12962 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12963 | interix*) |
| 12964 | # This is c89, which is MS Visual C++ (no shared libs) |
| 12965 | # Anyone wants to do a port? |
| 12966 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12967 | irix5* | irix6* | nonstopux*) |
| 12968 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12969 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12970 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12971 | lt_prog_compiler_static_CXX='-non_shared' |
| 12972 | # CC pic flag -KPIC is the default. |
| 12973 | ;; |
| 12974 | *) |
| 12975 | ;; |
| 12976 | esac |
| 12977 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12978 | linux* | k*bsd*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12979 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12980 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12981 | # KAI C++ Compiler |
| 12982 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 12983 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12984 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12985 | ecpc* ) |
| 12986 | # old Intel C++ for x86_64 which still supported -KPIC. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12987 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12988 | lt_prog_compiler_pic_CXX='-KPIC' |
| 12989 | lt_prog_compiler_static_CXX='-static' |
| 12990 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12991 | icpc* ) |
| 12992 | # Intel C++, used to be incompatible with GCC. |
| 12993 | # ICC 10 doesn't accept -KPIC any more. |
| 12994 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12995 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12996 | lt_prog_compiler_static_CXX='-static' |
| 12997 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12998 | pgCC* | pgcpp*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12999 | # Portland Group C++ compiler |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13000 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13001 | lt_prog_compiler_pic_CXX='-fpic' |
| 13002 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13003 | ;; |
| 13004 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13005 | # Compaq C++ |
| 13006 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13007 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13008 | lt_prog_compiler_pic_CXX= |
| 13009 | lt_prog_compiler_static_CXX='-non_shared' |
| 13010 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13011 | xlc* | xlC*) |
| 13012 | # IBM XL 8.0 on PPC |
| 13013 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13014 | lt_prog_compiler_pic_CXX='-qpic' |
| 13015 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 13016 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13017 | *) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13018 | case `$CC -V 2>&1 | sed 5q` in |
| 13019 | *Sun\ C*) |
| 13020 | # Sun C++ 5.9 |
| 13021 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13022 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13023 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13024 | ;; |
| 13025 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13026 | ;; |
| 13027 | esac |
| 13028 | ;; |
| 13029 | lynxos*) |
| 13030 | ;; |
| 13031 | m88k*) |
| 13032 | ;; |
| 13033 | mvs*) |
| 13034 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13035 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13036 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 13037 | ;; |
| 13038 | *) |
| 13039 | ;; |
| 13040 | esac |
| 13041 | ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 13042 | netbsd*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13043 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13044 | *qnx* | *nto*) |
| 13045 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13046 | # it will coredump. |
| 13047 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 13048 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13049 | osf3* | osf4* | osf5*) |
| 13050 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13051 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13052 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13053 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13054 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13055 | # Rational C++ 2.4.1 |
| 13056 | lt_prog_compiler_pic_CXX='-pic' |
| 13057 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13058 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13059 | # Digital/Compaq C++ |
| 13060 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13061 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13062 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13063 | lt_prog_compiler_pic_CXX= |
| 13064 | lt_prog_compiler_static_CXX='-non_shared' |
| 13065 | ;; |
| 13066 | *) |
| 13067 | ;; |
| 13068 | esac |
| 13069 | ;; |
| 13070 | psos*) |
| 13071 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13072 | solaris*) |
| 13073 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13074 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13075 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13076 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13077 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13078 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13079 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13080 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13081 | # Green Hills C++ Compiler |
| 13082 | lt_prog_compiler_pic_CXX='-PIC' |
| 13083 | ;; |
| 13084 | *) |
| 13085 | ;; |
| 13086 | esac |
| 13087 | ;; |
| 13088 | sunos4*) |
| 13089 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13090 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13091 | # Sun C++ 4.x |
| 13092 | lt_prog_compiler_pic_CXX='-pic' |
| 13093 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13094 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13095 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13096 | # Lucid |
| 13097 | lt_prog_compiler_pic_CXX='-pic' |
| 13098 | ;; |
| 13099 | *) |
| 13100 | ;; |
| 13101 | esac |
| 13102 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13103 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13104 | case $cc_basename in |
| 13105 | CC*) |
| 13106 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13107 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13108 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13109 | ;; |
| 13110 | esac |
| 13111 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13112 | tandem*) |
| 13113 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13114 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13115 | # NonStop-UX NCC 3.20 |
| 13116 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13117 | ;; |
| 13118 | *) |
| 13119 | ;; |
| 13120 | esac |
| 13121 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13122 | vxworks*) |
| 13123 | ;; |
| 13124 | *) |
| 13125 | lt_prog_compiler_can_build_shared_CXX=no |
| 13126 | ;; |
| 13127 | esac |
| 13128 | fi |
| 13129 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13130 | case $host_os in |
| 13131 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13132 | *djgpp*) |
| 13133 | lt_prog_compiler_pic_CXX= |
| 13134 | ;; |
| 13135 | *) |
| 13136 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 13137 | ;; |
| 13138 | esac |
| 13139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
| 13140 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
| 13141 | |
| 13142 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13143 | |
| 13144 | # |
| 13145 | # Check to make sure the PIC flag actually works. |
| 13146 | # |
| 13147 | if test -n "$lt_prog_compiler_pic_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13148 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 13149 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 13150 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : |
| 13151 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13152 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13153 | lt_cv_prog_compiler_pic_works_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13154 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13155 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13156 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 13157 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13158 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13159 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13160 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13161 | # The option is referenced via a variable to avoid confusing sed. |
| 13162 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13163 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13164 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13165 | -e 's:$: $lt_compiler_flag:'` |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 13166 | (eval echo "\"\$as_me:13166: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13167 | (eval "$lt_compile" 2>conftest.err) |
| 13168 | ac_status=$? |
| 13169 | cat conftest.err >&5 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 13170 | echo "$as_me:13170: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13171 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13172 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13173 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13174 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13175 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13176 | 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] | 13177 | lt_cv_prog_compiler_pic_works_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13178 | fi |
| 13179 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13180 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13181 | |
| 13182 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 13184 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13185 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13186 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13187 | case $lt_prog_compiler_pic_CXX in |
| 13188 | "" | " "*) ;; |
| 13189 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 13190 | esac |
| 13191 | else |
| 13192 | lt_prog_compiler_pic_CXX= |
| 13193 | lt_prog_compiler_can_build_shared_CXX=no |
| 13194 | fi |
| 13195 | |
| 13196 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13197 | |
| 13198 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13199 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13200 | # |
| 13201 | # Check to make sure the static flag actually works. |
| 13202 | # |
| 13203 | 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] | 13204 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13205 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 13206 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : |
| 13207 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13208 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13209 | lt_cv_prog_compiler_static_works_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13210 | save_LDFLAGS="$LDFLAGS" |
| 13211 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13212 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13213 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13214 | # The linker can only warn and ignore the option if not recognized |
| 13215 | # So say no if there are warnings |
| 13216 | if test -s conftest.err; then |
| 13217 | # Append any errors to the config.log. |
| 13218 | cat conftest.err 1>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13219 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13220 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13221 | if diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13222 | lt_cv_prog_compiler_static_works_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13223 | fi |
| 13224 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13225 | lt_cv_prog_compiler_static_works_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13226 | fi |
| 13227 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13228 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13229 | LDFLAGS="$save_LDFLAGS" |
| 13230 | |
| 13231 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 13233 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13234 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13235 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13236 | : |
| 13237 | else |
| 13238 | lt_prog_compiler_static_CXX= |
| 13239 | fi |
| 13240 | |
| 13241 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13242 | |
| 13243 | |
| 13244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13245 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13246 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13247 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13248 | else |
| 13249 | lt_cv_prog_compiler_c_o_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13250 | $RM -r conftest 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13251 | mkdir conftest |
| 13252 | cd conftest |
| 13253 | mkdir out |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13254 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13255 | |
| 13256 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13257 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13258 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13259 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13260 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13261 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13262 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13263 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13264 | -e 's:$: $lt_compiler_flag:'` |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 13265 | (eval echo "\"\$as_me:13265: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13266 | (eval "$lt_compile" 2>out/conftest.err) |
| 13267 | ac_status=$? |
| 13268 | cat out/conftest.err >&5 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 13269 | echo "$as_me:13269: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13270 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13271 | then |
| 13272 | # The compiler can only warn and ignore the option if not recognized |
| 13273 | # So say no if there are warnings |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13274 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13275 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13276 | 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] | 13277 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13278 | fi |
| 13279 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13280 | chmod u+w . 2>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13281 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13282 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13283 | # template instantiation |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13284 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13285 | $RM out/* && rmdir out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13286 | cd .. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13287 | $RM -r conftest |
| 13288 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13289 | |
| 13290 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13292 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13293 | |
| 13294 | |
| 13295 | |
| 13296 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13297 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13298 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13299 | $as_echo_n "(cached) " >&6 |
| 13300 | else |
| 13301 | lt_cv_prog_compiler_c_o_CXX=no |
| 13302 | $RM -r conftest 2>/dev/null |
| 13303 | mkdir conftest |
| 13304 | cd conftest |
| 13305 | mkdir out |
| 13306 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13307 | |
| 13308 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13309 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13310 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13311 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13312 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13313 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13314 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13315 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13316 | -e 's:$: $lt_compiler_flag:'` |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 13317 | (eval echo "\"\$as_me:13317: $lt_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13318 | (eval "$lt_compile" 2>out/conftest.err) |
| 13319 | ac_status=$? |
| 13320 | cat out/conftest.err >&5 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 13321 | echo "$as_me:13321: \$? = $ac_status" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13322 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13323 | then |
| 13324 | # The compiler can only warn and ignore the option if not recognized |
| 13325 | # So say no if there are warnings |
| 13326 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 13327 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13328 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13329 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13330 | fi |
| 13331 | fi |
| 13332 | chmod u+w . 2>&5 |
| 13333 | $RM conftest* |
| 13334 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13335 | # template instantiation |
| 13336 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13337 | $RM out/* && rmdir out |
| 13338 | cd .. |
| 13339 | $RM -r conftest |
| 13340 | $RM conftest* |
| 13341 | |
| 13342 | fi |
| 13343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13344 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13345 | |
| 13346 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13347 | |
| 13348 | |
| 13349 | hard_links="nottested" |
| 13350 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 13351 | # do not overwrite the value of need_locks provided by the user |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 13353 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13354 | hard_links=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13355 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13356 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13357 | touch conftest.a |
| 13358 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13359 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 13361 | $as_echo "$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13362 | if test "$hard_links" = no; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13363 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13364 | $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] | 13365 | need_locks=warn |
| 13366 | fi |
| 13367 | else |
| 13368 | need_locks=no |
| 13369 | fi |
| 13370 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13371 | |
| 13372 | |
| 13373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13374 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13375 | |
| 13376 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13377 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13378 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13379 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13380 | # -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] | 13381 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 13382 | 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] | 13383 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13384 | 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] | 13385 | fi |
| 13386 | ;; |
| 13387 | pw32*) |
| 13388 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 13389 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13390 | cygwin* | mingw* | cegcc*) |
| 13391 | 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' |
| 13392 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13393 | *) |
| 13394 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13395 | ;; |
| 13396 | esac |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13397 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13398 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 13400 | $as_echo "$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13401 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13402 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13403 | with_gnu_ld_CXX=$with_gnu_ld |
| 13404 | |
| 13405 | |
| 13406 | |
| 13407 | |
| 13408 | |
| 13409 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13410 | # |
| 13411 | # Do we need to explicitly link libc? |
| 13412 | # |
| 13413 | case "x$archive_cmds_need_lc_CXX" in |
| 13414 | x|xyes) |
| 13415 | # Assume -lc should be added |
| 13416 | archive_cmds_need_lc_CXX=yes |
| 13417 | |
| 13418 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13419 | case $archive_cmds_CXX in |
| 13420 | *'~'*) |
| 13421 | # FIXME: we may have to deal with multi-command sequences. |
| 13422 | ;; |
| 13423 | '$CC '*) |
| 13424 | # Test whether the compiler implicitly links with -lc since on some |
| 13425 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13426 | # to ld, don't add -lc before -lgcc. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 13428 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 13429 | $RM conftest* |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13430 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13431 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13432 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13433 | (eval $ac_compile) 2>&5 |
| 13434 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13435 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13436 | test $ac_status = 0; } 2>conftest.err; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13437 | soname=conftest |
| 13438 | lib=conftest |
| 13439 | libobjs=conftest.$ac_objext |
| 13440 | deplibs= |
| 13441 | wl=$lt_prog_compiler_wl_CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13442 | pic_flag=$lt_prog_compiler_pic_CXX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13443 | compiler_flags=-v |
| 13444 | linker_flags=-v |
| 13445 | verstring= |
| 13446 | output_objdir=. |
| 13447 | libname=conftest |
| 13448 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 13449 | allow_undefined_flag_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13450 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 13451 | (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] | 13452 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13453 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13454 | test $ac_status = 0; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13455 | then |
| 13456 | archive_cmds_need_lc_CXX=no |
| 13457 | else |
| 13458 | archive_cmds_need_lc_CXX=yes |
| 13459 | fi |
| 13460 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 13461 | else |
| 13462 | cat conftest.err 1>&5 |
| 13463 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13464 | $RM conftest* |
| 13465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 |
| 13466 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13467 | ;; |
| 13468 | esac |
| 13469 | fi |
| 13470 | ;; |
| 13471 | esac |
| 13472 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13473 | |
| 13474 | |
| 13475 | |
| 13476 | |
| 13477 | |
| 13478 | |
| 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 13537 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 13538 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13539 | library_names_spec= |
| 13540 | libname_spec='lib$name' |
| 13541 | soname_spec= |
| 13542 | shrext_cmds=".so" |
| 13543 | postinstall_cmds= |
| 13544 | postuninstall_cmds= |
| 13545 | finish_cmds= |
| 13546 | finish_eval= |
| 13547 | shlibpath_var= |
| 13548 | shlibpath_overrides_runpath=unknown |
| 13549 | version_type=none |
| 13550 | dynamic_linker="$host_os ld.so" |
| 13551 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13552 | need_lib_prefix=unknown |
| 13553 | hardcode_into_libs=no |
| 13554 | |
| 13555 | # when you set need_version to no, make sure it does not cause -set_version |
| 13556 | # flags to be left without arguments |
| 13557 | need_version=unknown |
| 13558 | |
| 13559 | case $host_os in |
| 13560 | aix3*) |
| 13561 | version_type=linux |
| 13562 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13563 | shlibpath_var=LIBPATH |
| 13564 | |
| 13565 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13566 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13567 | ;; |
| 13568 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13569 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13570 | version_type=linux |
| 13571 | need_lib_prefix=no |
| 13572 | need_version=no |
| 13573 | hardcode_into_libs=yes |
| 13574 | if test "$host_cpu" = ia64; then |
| 13575 | # AIX 5 supports IA64 |
| 13576 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13577 | shlibpath_var=LD_LIBRARY_PATH |
| 13578 | else |
| 13579 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13580 | # for dependence libraries. The import file would start with |
| 13581 | # the line `#! .'. This would cause the generated library to |
| 13582 | # depend on `.', always an invalid library. This was fixed in |
| 13583 | # development snapshots of GCC prior to 3.0. |
| 13584 | case $host_os in |
| 13585 | aix4 | aix4.[01] | aix4.[01].*) |
| 13586 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13587 | echo ' yes ' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13588 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13589 | : |
| 13590 | else |
| 13591 | can_build_shared=no |
| 13592 | fi |
| 13593 | ;; |
| 13594 | esac |
| 13595 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13596 | # soname into executable. Probably we can add versioning support to |
| 13597 | # collect2, so additional links can be useful in future. |
| 13598 | if test "$aix_use_runtimelinking" = yes; then |
| 13599 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13600 | # instead of lib<name>.a to let people know that these are not |
| 13601 | # typical AIX shared libraries. |
| 13602 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13603 | else |
| 13604 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13605 | # and later when we are not doing run time linking. |
| 13606 | library_names_spec='${libname}${release}.a $libname.a' |
| 13607 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13608 | fi |
| 13609 | shlibpath_var=LIBPATH |
| 13610 | fi |
| 13611 | ;; |
| 13612 | |
| 13613 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13614 | case $host_cpu in |
| 13615 | powerpc) |
| 13616 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 13617 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 13618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13619 | ;; |
| 13620 | m68k) |
| 13621 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13622 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13623 | 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' |
| 13624 | ;; |
| 13625 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13626 | ;; |
| 13627 | |
| 13628 | beos*) |
| 13629 | library_names_spec='${libname}${shared_ext}' |
| 13630 | dynamic_linker="$host_os ld.so" |
| 13631 | shlibpath_var=LIBRARY_PATH |
| 13632 | ;; |
| 13633 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13634 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13635 | version_type=linux |
| 13636 | need_version=no |
| 13637 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13638 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13639 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13640 | shlibpath_var=LD_LIBRARY_PATH |
| 13641 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13642 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13643 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13644 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13645 | # libtool to hard-code these into programs |
| 13646 | ;; |
| 13647 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13648 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13649 | version_type=windows |
| 13650 | shrext_cmds=".dll" |
| 13651 | need_version=no |
| 13652 | need_lib_prefix=no |
| 13653 | |
| 13654 | case $GCC,$host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13655 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13656 | library_names_spec='$libname.dll.a' |
| 13657 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13658 | postinstall_cmds='base_file=`basename \${file}`~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13659 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13660 | dldir=$destdir/`dirname \$dlpath`~ |
| 13661 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13662 | $install_prog $dir/$dlname \$dldir/$dlname~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13663 | chmod a+x \$dldir/$dlname~ |
| 13664 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13665 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13666 | fi' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13667 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13668 | dlpath=$dir/\$dldll~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13669 | $RM \$dlpath' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13670 | shlibpath_overrides_runpath=yes |
| 13671 | |
| 13672 | case $host_os in |
| 13673 | cygwin*) |
| 13674 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13675 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13676 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13677 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13678 | mingw* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13679 | # MinGW DLLs use traditional 'lib' prefix |
| 13680 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13681 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13682 | 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] | 13683 | # It is most probably a Windows format PATH printed by |
| 13684 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13685 | # path with ; separators, and with drive letters. We can handle the |
| 13686 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13687 | # especially as we might pass files found there to a mingw objdump, |
| 13688 | # which wouldn't understand a cygwinified path. Ahh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13689 | 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] | 13690 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13691 | 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] | 13692 | fi |
| 13693 | ;; |
| 13694 | pw32*) |
| 13695 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13696 | 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] | 13697 | ;; |
| 13698 | esac |
| 13699 | ;; |
| 13700 | |
| 13701 | *) |
| 13702 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13703 | ;; |
| 13704 | esac |
| 13705 | dynamic_linker='Win32 ld.exe' |
| 13706 | # FIXME: first we should search . and the directory the executable is in |
| 13707 | shlibpath_var=PATH |
| 13708 | ;; |
| 13709 | |
| 13710 | darwin* | rhapsody*) |
| 13711 | dynamic_linker="$host_os dyld" |
| 13712 | version_type=darwin |
| 13713 | need_lib_prefix=no |
| 13714 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13715 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13716 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13717 | shlibpath_overrides_runpath=yes |
| 13718 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13719 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13720 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13721 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13722 | ;; |
| 13723 | |
| 13724 | dgux*) |
| 13725 | version_type=linux |
| 13726 | need_lib_prefix=no |
| 13727 | need_version=no |
| 13728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13729 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13730 | shlibpath_var=LD_LIBRARY_PATH |
| 13731 | ;; |
| 13732 | |
| 13733 | freebsd1*) |
| 13734 | dynamic_linker=no |
| 13735 | ;; |
| 13736 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13737 | freebsd* | dragonfly*) |
| 13738 | # DragonFly does not have aout. When/if they implement a new |
| 13739 | # versioning mechanism, adjust this. |
| 13740 | if test -x /usr/bin/objformat; then |
| 13741 | objformat=`/usr/bin/objformat` |
| 13742 | else |
| 13743 | case $host_os in |
| 13744 | freebsd[123]*) objformat=aout ;; |
| 13745 | *) objformat=elf ;; |
| 13746 | esac |
| 13747 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13748 | version_type=freebsd-$objformat |
| 13749 | case $version_type in |
| 13750 | freebsd-elf*) |
| 13751 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13752 | need_version=no |
| 13753 | need_lib_prefix=no |
| 13754 | ;; |
| 13755 | freebsd-*) |
| 13756 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13757 | need_version=yes |
| 13758 | ;; |
| 13759 | esac |
| 13760 | shlibpath_var=LD_LIBRARY_PATH |
| 13761 | case $host_os in |
| 13762 | freebsd2*) |
| 13763 | shlibpath_overrides_runpath=yes |
| 13764 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13765 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13766 | shlibpath_overrides_runpath=yes |
| 13767 | hardcode_into_libs=yes |
| 13768 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13769 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13770 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13771 | shlibpath_overrides_runpath=no |
| 13772 | hardcode_into_libs=yes |
| 13773 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13774 | *) # from 4.6 on, and DragonFly |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13775 | shlibpath_overrides_runpath=yes |
| 13776 | hardcode_into_libs=yes |
| 13777 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13778 | esac |
| 13779 | ;; |
| 13780 | |
| 13781 | gnu*) |
| 13782 | version_type=linux |
| 13783 | need_lib_prefix=no |
| 13784 | need_version=no |
| 13785 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13786 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13787 | shlibpath_var=LD_LIBRARY_PATH |
| 13788 | hardcode_into_libs=yes |
| 13789 | ;; |
| 13790 | |
| 13791 | hpux9* | hpux10* | hpux11*) |
| 13792 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13793 | # link against other versions. |
| 13794 | version_type=sunos |
| 13795 | need_lib_prefix=no |
| 13796 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13797 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13798 | ia64*) |
| 13799 | shrext_cmds='.so' |
| 13800 | hardcode_into_libs=yes |
| 13801 | dynamic_linker="$host_os dld.so" |
| 13802 | shlibpath_var=LD_LIBRARY_PATH |
| 13803 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13804 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13805 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13806 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13807 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13808 | else |
| 13809 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13810 | fi |
| 13811 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13812 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13813 | hppa*64*) |
| 13814 | shrext_cmds='.sl' |
| 13815 | hardcode_into_libs=yes |
| 13816 | dynamic_linker="$host_os dld.sl" |
| 13817 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13818 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13819 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13820 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13821 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13822 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13823 | ;; |
| 13824 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13825 | shrext_cmds='.sl' |
| 13826 | dynamic_linker="$host_os dld.sl" |
| 13827 | shlibpath_var=SHLIB_PATH |
| 13828 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13829 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13830 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13831 | ;; |
| 13832 | esac |
| 13833 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13834 | postinstall_cmds='chmod 555 $lib' |
| 13835 | ;; |
| 13836 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13837 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13838 | version_type=linux |
| 13839 | need_lib_prefix=no |
| 13840 | need_version=no |
| 13841 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13842 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13843 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13844 | shlibpath_var=LD_LIBRARY_PATH |
| 13845 | shlibpath_overrides_runpath=no |
| 13846 | hardcode_into_libs=yes |
| 13847 | ;; |
| 13848 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13849 | irix5* | irix6* | nonstopux*) |
| 13850 | case $host_os in |
| 13851 | nonstopux*) version_type=nonstopux ;; |
| 13852 | *) |
| 13853 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13854 | version_type=linux |
| 13855 | else |
| 13856 | version_type=irix |
| 13857 | fi ;; |
| 13858 | esac |
| 13859 | need_lib_prefix=no |
| 13860 | need_version=no |
| 13861 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13862 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13863 | case $host_os in |
| 13864 | irix5* | nonstopux*) |
| 13865 | libsuff= shlibsuff= |
| 13866 | ;; |
| 13867 | *) |
| 13868 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13869 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13870 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13871 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13872 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13873 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13874 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13875 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13876 | esac |
| 13877 | ;; |
| 13878 | esac |
| 13879 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13880 | shlibpath_overrides_runpath=no |
| 13881 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13882 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13883 | hardcode_into_libs=yes |
| 13884 | ;; |
| 13885 | |
| 13886 | # No shared lib support for Linux oldld, aout, or coff. |
| 13887 | linux*oldld* | linux*aout* | linux*coff*) |
| 13888 | dynamic_linker=no |
| 13889 | ;; |
| 13890 | |
| 13891 | # This must be Linux ELF. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13892 | linux* | k*bsd*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13893 | version_type=linux |
| 13894 | need_lib_prefix=no |
| 13895 | need_version=no |
| 13896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13897 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13898 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13899 | shlibpath_var=LD_LIBRARY_PATH |
| 13900 | shlibpath_overrides_runpath=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13901 | # Some binutils ld are patched to set DT_RUNPATH |
| 13902 | save_LDFLAGS=$LDFLAGS |
| 13903 | save_libdir=$libdir |
| 13904 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 13905 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 13906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13907 | /* end confdefs.h. */ |
| 13908 | |
| 13909 | int |
| 13910 | main () |
| 13911 | { |
| 13912 | |
| 13913 | ; |
| 13914 | return 0; |
| 13915 | } |
| 13916 | _ACEOF |
| 13917 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 13918 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 13919 | shlibpath_overrides_runpath=yes |
| 13920 | fi |
| 13921 | fi |
| 13922 | rm -f core conftest.err conftest.$ac_objext \ |
| 13923 | conftest$ac_exeext conftest.$ac_ext |
| 13924 | LDFLAGS=$save_LDFLAGS |
| 13925 | libdir=$save_libdir |
| 13926 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13927 | # This implies no fast_install, which is unacceptable. |
| 13928 | # Some rework will be needed to allow for fast_install |
| 13929 | # before this can be enabled. |
| 13930 | hardcode_into_libs=yes |
| 13931 | |
| 13932 | # Append ld.so.conf contents to the search path |
| 13933 | if test -f /etc/ld.so.conf; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13934 | 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] | 13935 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 13936 | fi |
| 13937 | |
| 13938 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 13939 | # powerpc, because MkLinux only supported shared libraries with the |
| 13940 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 13941 | # most powerpc-linux boxes support dynamic linking these days and |
| 13942 | # people can always --disable-shared, the test was removed, and we |
| 13943 | # assume the GNU/Linux dynamic linker is in use. |
| 13944 | dynamic_linker='GNU/Linux ld.so' |
| 13945 | ;; |
| 13946 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13947 | netbsd*) |
| 13948 | version_type=sunos |
| 13949 | need_lib_prefix=no |
| 13950 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13951 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13953 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13954 | dynamic_linker='NetBSD (a.out) ld.so' |
| 13955 | else |
| 13956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13957 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13958 | dynamic_linker='NetBSD ld.elf_so' |
| 13959 | fi |
| 13960 | shlibpath_var=LD_LIBRARY_PATH |
| 13961 | shlibpath_overrides_runpath=yes |
| 13962 | hardcode_into_libs=yes |
| 13963 | ;; |
| 13964 | |
| 13965 | newsos6) |
| 13966 | version_type=linux |
| 13967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13968 | shlibpath_var=LD_LIBRARY_PATH |
| 13969 | shlibpath_overrides_runpath=yes |
| 13970 | ;; |
| 13971 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13972 | *nto* | *qnx*) |
| 13973 | version_type=qnx |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13974 | need_lib_prefix=no |
| 13975 | need_version=no |
| 13976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13977 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13978 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13979 | shlibpath_overrides_runpath=no |
| 13980 | hardcode_into_libs=yes |
| 13981 | dynamic_linker='ldqnx.so' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13982 | ;; |
| 13983 | |
| 13984 | openbsd*) |
| 13985 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13986 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13987 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13988 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 13989 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13990 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 13991 | *) need_version=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13992 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13993 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 13994 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 13995 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13996 | 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] | 13997 | case $host_os in |
| 13998 | openbsd2.[89] | openbsd2.[89].*) |
| 13999 | shlibpath_overrides_runpath=no |
| 14000 | ;; |
| 14001 | *) |
| 14002 | shlibpath_overrides_runpath=yes |
| 14003 | ;; |
| 14004 | esac |
| 14005 | else |
| 14006 | shlibpath_overrides_runpath=yes |
| 14007 | fi |
| 14008 | ;; |
| 14009 | |
| 14010 | os2*) |
| 14011 | libname_spec='$name' |
| 14012 | shrext_cmds=".dll" |
| 14013 | need_lib_prefix=no |
| 14014 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14015 | dynamic_linker='OS/2 ld.exe' |
| 14016 | shlibpath_var=LIBPATH |
| 14017 | ;; |
| 14018 | |
| 14019 | osf3* | osf4* | osf5*) |
| 14020 | version_type=osf |
| 14021 | need_lib_prefix=no |
| 14022 | need_version=no |
| 14023 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14025 | shlibpath_var=LD_LIBRARY_PATH |
| 14026 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14027 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14028 | ;; |
| 14029 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 14030 | rdos*) |
| 14031 | dynamic_linker=no |
| 14032 | ;; |
| 14033 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14034 | solaris*) |
| 14035 | version_type=linux |
| 14036 | need_lib_prefix=no |
| 14037 | need_version=no |
| 14038 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14039 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14040 | shlibpath_var=LD_LIBRARY_PATH |
| 14041 | shlibpath_overrides_runpath=yes |
| 14042 | hardcode_into_libs=yes |
| 14043 | # ldd complains unless libraries are executable |
| 14044 | postinstall_cmds='chmod +x $lib' |
| 14045 | ;; |
| 14046 | |
| 14047 | sunos4*) |
| 14048 | version_type=sunos |
| 14049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14050 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14051 | shlibpath_var=LD_LIBRARY_PATH |
| 14052 | shlibpath_overrides_runpath=yes |
| 14053 | if test "$with_gnu_ld" = yes; then |
| 14054 | need_lib_prefix=no |
| 14055 | fi |
| 14056 | need_version=yes |
| 14057 | ;; |
| 14058 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14059 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14060 | version_type=linux |
| 14061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14062 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14063 | shlibpath_var=LD_LIBRARY_PATH |
| 14064 | case $host_vendor in |
| 14065 | sni) |
| 14066 | shlibpath_overrides_runpath=no |
| 14067 | need_lib_prefix=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14068 | runpath_var=LD_RUN_PATH |
| 14069 | ;; |
| 14070 | siemens) |
| 14071 | need_lib_prefix=no |
| 14072 | ;; |
| 14073 | motorola) |
| 14074 | need_lib_prefix=no |
| 14075 | need_version=no |
| 14076 | shlibpath_overrides_runpath=no |
| 14077 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14078 | ;; |
| 14079 | esac |
| 14080 | ;; |
| 14081 | |
| 14082 | sysv4*MP*) |
| 14083 | if test -d /usr/nec ;then |
| 14084 | version_type=linux |
| 14085 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14086 | soname_spec='$libname${shared_ext}.$major' |
| 14087 | shlibpath_var=LD_LIBRARY_PATH |
| 14088 | fi |
| 14089 | ;; |
| 14090 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14091 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14092 | version_type=freebsd-elf |
| 14093 | need_lib_prefix=no |
| 14094 | need_version=no |
| 14095 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14096 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14097 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14098 | shlibpath_overrides_runpath=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14099 | hardcode_into_libs=yes |
| 14100 | if test "$with_gnu_ld" = yes; then |
| 14101 | 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] | 14102 | else |
| 14103 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14104 | case $host_os in |
| 14105 | sco3.2v5*) |
| 14106 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 14107 | ;; |
| 14108 | esac |
| 14109 | fi |
| 14110 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 14111 | ;; |
| 14112 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14113 | tpf*) |
| 14114 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 14115 | version_type=linux |
| 14116 | need_lib_prefix=no |
| 14117 | need_version=no |
| 14118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14119 | shlibpath_var=LD_LIBRARY_PATH |
| 14120 | shlibpath_overrides_runpath=no |
| 14121 | hardcode_into_libs=yes |
| 14122 | ;; |
| 14123 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14124 | uts4*) |
| 14125 | version_type=linux |
| 14126 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14127 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14128 | shlibpath_var=LD_LIBRARY_PATH |
| 14129 | ;; |
| 14130 | |
| 14131 | *) |
| 14132 | dynamic_linker=no |
| 14133 | ;; |
| 14134 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 14136 | $as_echo "$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14137 | test "$dynamic_linker" = no && can_build_shared=no |
| 14138 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14139 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14140 | if test "$GCC" = yes; then |
| 14141 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14142 | fi |
| 14143 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14144 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 14145 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 14146 | fi |
| 14147 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 14148 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 14149 | fi |
| 14150 | |
| 14151 | |
| 14152 | |
| 14153 | |
| 14154 | |
| 14155 | |
| 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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 14187 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14188 | hardcode_action_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14189 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 14190 | test -n "$runpath_var_CXX" || |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14191 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14192 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14193 | # We can hardcode non-existent directories. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14194 | if test "$hardcode_direct_CXX" != no && |
| 14195 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14196 | # have to relink, otherwise we might link with an installed library |
| 14197 | # when we should be linking with a yet-to-be-installed one |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14198 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14199 | test "$hardcode_minus_L_CXX" != no; then |
| 14200 | # Linking always hardcodes the temporary library directory. |
| 14201 | hardcode_action_CXX=relink |
| 14202 | else |
| 14203 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14204 | hardcode_action_CXX=immediate |
| 14205 | fi |
| 14206 | else |
| 14207 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14208 | # directories. |
| 14209 | hardcode_action_CXX=unsupported |
| 14210 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 14212 | $as_echo "$hardcode_action_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14213 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14214 | if test "$hardcode_action_CXX" = relink || |
| 14215 | test "$inherit_rpath_CXX" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14216 | # Fast installation is not supported |
| 14217 | enable_fast_install=no |
| 14218 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14219 | test "$enable_shared" = no; then |
| 14220 | # Fast installation is not necessary |
| 14221 | enable_fast_install=needless |
| 14222 | fi |
| 14223 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14224 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14225 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14226 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14227 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14228 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14229 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14230 | fi # test -n "$compiler" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14231 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14232 | CC=$lt_save_CC |
| 14233 | LDCXX=$LD |
| 14234 | LD=$lt_save_LD |
| 14235 | GCC=$lt_save_GCC |
| 14236 | with_gnu_ld=$lt_save_with_gnu_ld |
| 14237 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 14238 | lt_cv_path_LD=$lt_save_path_LD |
| 14239 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 14240 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 14241 | fi # test "$_lt_caught_CXX_error" != yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14242 | |
| 14243 | ac_ext=c |
| 14244 | ac_cpp='$CPP $CPPFLAGS' |
| 14245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14248 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14249 | |
| 14250 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14251 | |
| 14252 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14253 | |
| 14254 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14255 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14256 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14257 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14258 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14259 | |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14260 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14261 | ac_config_commands="$ac_config_commands libtool" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14262 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +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 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14266 | # Only expand once: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14267 | |
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 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 14272 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 14273 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 14274 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14275 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14276 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14277 | /* end confdefs.h. */ |
| 14278 | #include <stdlib.h> |
| 14279 | #include <stdarg.h> |
| 14280 | #include <string.h> |
| 14281 | #include <float.h> |
| 14282 | |
| 14283 | int |
| 14284 | main () |
| 14285 | { |
| 14286 | |
| 14287 | ; |
| 14288 | return 0; |
| 14289 | } |
| 14290 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14291 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14292 | ac_cv_header_stdc=yes |
| 14293 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14294 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14295 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14297 | |
| 14298 | if test $ac_cv_header_stdc = yes; then |
| 14299 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14301 | /* end confdefs.h. */ |
| 14302 | #include <string.h> |
| 14303 | |
| 14304 | _ACEOF |
| 14305 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14306 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 14307 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14308 | else |
| 14309 | ac_cv_header_stdc=no |
| 14310 | fi |
| 14311 | rm -f conftest* |
| 14312 | |
| 14313 | fi |
| 14314 | |
| 14315 | if test $ac_cv_header_stdc = yes; then |
| 14316 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14318 | /* end confdefs.h. */ |
| 14319 | #include <stdlib.h> |
| 14320 | |
| 14321 | _ACEOF |
| 14322 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14323 | $EGREP "free" >/dev/null 2>&1; then : |
| 14324 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14325 | else |
| 14326 | ac_cv_header_stdc=no |
| 14327 | fi |
| 14328 | rm -f conftest* |
| 14329 | |
| 14330 | fi |
| 14331 | |
| 14332 | if test $ac_cv_header_stdc = yes; then |
| 14333 | # /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] | 14334 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14335 | : |
| 14336 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14338 | /* end confdefs.h. */ |
| 14339 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14340 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14341 | #if ((' ' & 0x0FF) == 0x020) |
| 14342 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 14343 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 14344 | #else |
| 14345 | # define ISLOWER(c) \ |
| 14346 | (('a' <= (c) && (c) <= 'i') \ |
| 14347 | || ('j' <= (c) && (c) <= 'r') \ |
| 14348 | || ('s' <= (c) && (c) <= 'z')) |
| 14349 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 14350 | #endif |
| 14351 | |
| 14352 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 14353 | int |
| 14354 | main () |
| 14355 | { |
| 14356 | int i; |
| 14357 | for (i = 0; i < 256; i++) |
| 14358 | if (XOR (islower (i), ISLOWER (i)) |
| 14359 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14360 | return 2; |
| 14361 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14362 | } |
| 14363 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14364 | if ac_fn_c_try_run "$LINENO"; then : |
| 14365 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14366 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14367 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14368 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14369 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14370 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14371 | fi |
| 14372 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14373 | fi |
| 14374 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14375 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 14376 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14377 | if test $ac_cv_header_stdc = yes; then |
| 14378 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14379 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14380 | |
| 14381 | fi |
| 14382 | |
| 14383 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14384 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14385 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14386 | enableval=$enable_selftest; case "${enableval}" in |
| 14387 | yes) |
| 14388 | selftest=true |
| 14389 | ;; |
| 14390 | no) |
| 14391 | selftest=false |
| 14392 | ;; |
| 14393 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14394 | as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14395 | ;; |
| 14396 | esac |
| 14397 | else |
| 14398 | selftest=false |
| 14399 | fi |
| 14400 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14401 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14402 | SELFTEST_TRUE= |
| 14403 | SELFTEST_FALSE='#' |
| 14404 | else |
| 14405 | SELFTEST_TRUE='#' |
| 14406 | SELFTEST_FALSE= |
| 14407 | fi |
| 14408 | |
| 14409 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14410 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14411 | |
| 14412 | cat >confcache <<\_ACEOF |
| 14413 | # This file is a shell script that caches the results of configure |
| 14414 | # tests run on this system so they can be shared between configure |
| 14415 | # scripts and configure runs, see configure's option --config-cache. |
| 14416 | # It is not useful on other systems. If it contains results you don't |
| 14417 | # want to keep, you may remove or edit it. |
| 14418 | # |
| 14419 | # config.status only pays attention to the cache file if you give it |
| 14420 | # the --recheck option to rerun configure. |
| 14421 | # |
| 14422 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 14423 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 14424 | # following values. |
| 14425 | |
| 14426 | _ACEOF |
| 14427 | |
| 14428 | # The following way of writing the cache mishandles newlines in values, |
| 14429 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14430 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14431 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 14432 | # 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] | 14433 | ( |
| 14434 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 14435 | eval ac_val=\$$ac_var |
| 14436 | case $ac_val in #( |
| 14437 | *${as_nl}*) |
| 14438 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14439 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 14440 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14441 | esac |
| 14442 | case $ac_var in #( |
| 14443 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14444 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 14445 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14446 | esac ;; |
| 14447 | esac |
| 14448 | done |
| 14449 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14450 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14451 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 14452 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14453 | # `set' does not quote correctly, so add quotes: double-quote |
| 14454 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14455 | sed -n \ |
| 14456 | "s/'/'\\\\''/g; |
| 14457 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14458 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14459 | *) |
| 14460 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14461 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14462 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14463 | esac | |
| 14464 | sort |
| 14465 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14466 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14467 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14468 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14469 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14470 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 14471 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14472 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 14473 | :end' >>confcache |
| 14474 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 14475 | if test -w "$cache_file"; then |
| 14476 | test "x$cache_file" != "x/dev/null" && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14477 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 14478 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14479 | cat confcache >$cache_file |
| 14480 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14481 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 14482 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14483 | fi |
| 14484 | fi |
| 14485 | rm -f confcache |
| 14486 | |
| 14487 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 14488 | # Let make expand exec_prefix. |
| 14489 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 14490 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14491 | DEFS=-DHAVE_CONFIG_H |
| 14492 | |
| 14493 | ac_libobjs= |
| 14494 | ac_ltlibobjs= |
| 14495 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 14496 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14497 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14498 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14499 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 14500 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14501 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 14502 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14503 | done |
| 14504 | LIBOBJS=$ac_libobjs |
| 14505 | |
| 14506 | LTLIBOBJS=$ac_ltlibobjs |
| 14507 | |
| 14508 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14509 | if test -n "$EXEEXT"; then |
| 14510 | am__EXEEXT_TRUE= |
| 14511 | am__EXEEXT_FALSE='#' |
| 14512 | else |
| 14513 | am__EXEEXT_TRUE='#' |
| 14514 | am__EXEEXT_FALSE= |
| 14515 | fi |
| 14516 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14517 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14518 | as_fn_error "conditional \"AMDEP\" was never defined. |
| 14519 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14520 | fi |
| 14521 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14522 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 14523 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14524 | fi |
| 14525 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14526 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 14527 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 14528 | fi |
| 14529 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 14530 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 14531 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14532 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14533 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14534 | as_fn_error "conditional \"SELFTEST\" was never defined. |
| 14535 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14536 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14537 | |
| 14538 | : ${CONFIG_STATUS=./config.status} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14539 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14540 | ac_clean_files_save=$ac_clean_files |
| 14541 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14542 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 14543 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 14544 | as_write_fail=0 |
| 14545 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14546 | #! $SHELL |
| 14547 | # Generated by $as_me. |
| 14548 | # Run this file to recreate the current configuration. |
| 14549 | # Compiler output produced by configure, useful for debugging |
| 14550 | # configure, is in config.log if it exists. |
| 14551 | |
| 14552 | debug=false |
| 14553 | ac_cs_recheck=false |
| 14554 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14555 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14556 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 14557 | export SHELL |
| 14558 | _ASEOF |
| 14559 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 14560 | ## -------------------- ## |
| 14561 | ## M4sh Initialization. ## |
| 14562 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14563 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14564 | # Be more Bourne compatible |
| 14565 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14566 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14567 | emulate sh |
| 14568 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14569 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14570 | # is contrary to our usage. Disable this feature. |
| 14571 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14572 | setopt NO_GLOB_SUBST |
| 14573 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14574 | case `(set -o) 2>/dev/null` in #( |
| 14575 | *posix*) : |
| 14576 | set -o posix ;; #( |
| 14577 | *) : |
| 14578 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14579 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14580 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14581 | |
| 14582 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14583 | as_nl=' |
| 14584 | ' |
| 14585 | export as_nl |
| 14586 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 14587 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 14588 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14589 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 14590 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 14591 | # but without wasting forks for bash or zsh. |
| 14592 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 14593 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14594 | as_echo='print -r --' |
| 14595 | as_echo_n='print -rn --' |
| 14596 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 14597 | as_echo='printf %s\n' |
| 14598 | as_echo_n='printf %s' |
| 14599 | else |
| 14600 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 14601 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 14602 | as_echo_n='/usr/ucb/echo -n' |
| 14603 | else |
| 14604 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 14605 | as_echo_n_body='eval |
| 14606 | arg=$1; |
| 14607 | case $arg in #( |
| 14608 | *"$as_nl"*) |
| 14609 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 14610 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 14611 | esac; |
| 14612 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 14613 | ' |
| 14614 | export as_echo_n_body |
| 14615 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 14616 | fi |
| 14617 | export as_echo_body |
| 14618 | as_echo='sh -c $as_echo_body as_echo' |
| 14619 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14620 | |
| 14621 | # The user is always right. |
| 14622 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14623 | PATH_SEPARATOR=: |
| 14624 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 14625 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 14626 | PATH_SEPARATOR=';' |
| 14627 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14628 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14629 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14630 | |
| 14631 | # IFS |
| 14632 | # We need space, tab and new line, in precisely that order. Quoting is |
| 14633 | # there to prevent editors from complaining about space-tab. |
| 14634 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 14635 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14636 | IFS=" "" $as_nl" |
| 14637 | |
| 14638 | # 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] | 14639 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14640 | *[\\/]* ) as_myself=$0 ;; |
| 14641 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14642 | for as_dir in $PATH |
| 14643 | do |
| 14644 | IFS=$as_save_IFS |
| 14645 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14646 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 14647 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14648 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14649 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14650 | ;; |
| 14651 | esac |
| 14652 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 14653 | # in which case we are not to be found in the path. |
| 14654 | if test "x$as_myself" = x; then |
| 14655 | as_myself=$0 |
| 14656 | fi |
| 14657 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14658 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 14659 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14660 | fi |
| 14661 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14662 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 14663 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 14664 | # suppresses any "Segmentation fault" message there. '((' could |
| 14665 | # trigger a bug in pdksh 5.2.14. |
| 14666 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 14667 | do eval test x\${$as_var+set} = xset \ |
| 14668 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14669 | done |
| 14670 | PS1='$ ' |
| 14671 | PS2='> ' |
| 14672 | PS4='+ ' |
| 14673 | |
| 14674 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14675 | LC_ALL=C |
| 14676 | export LC_ALL |
| 14677 | LANGUAGE=C |
| 14678 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14679 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14680 | # CDPATH. |
| 14681 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 14682 | |
| 14683 | |
| 14684 | # as_fn_error ERROR [LINENO LOG_FD] |
| 14685 | # --------------------------------- |
| 14686 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 14687 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 14688 | # script with status $?, using 1 if that was 0. |
| 14689 | as_fn_error () |
| 14690 | { |
| 14691 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 14692 | if test "$3"; then |
| 14693 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 14694 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 14695 | fi |
| 14696 | $as_echo "$as_me: error: $1" >&2 |
| 14697 | as_fn_exit $as_status |
| 14698 | } # as_fn_error |
| 14699 | |
| 14700 | |
| 14701 | # as_fn_set_status STATUS |
| 14702 | # ----------------------- |
| 14703 | # Set $? to STATUS, without forking. |
| 14704 | as_fn_set_status () |
| 14705 | { |
| 14706 | return $1 |
| 14707 | } # as_fn_set_status |
| 14708 | |
| 14709 | # as_fn_exit STATUS |
| 14710 | # ----------------- |
| 14711 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 14712 | as_fn_exit () |
| 14713 | { |
| 14714 | set +e |
| 14715 | as_fn_set_status $1 |
| 14716 | exit $1 |
| 14717 | } # as_fn_exit |
| 14718 | |
| 14719 | # as_fn_unset VAR |
| 14720 | # --------------- |
| 14721 | # Portably unset VAR. |
| 14722 | as_fn_unset () |
| 14723 | { |
| 14724 | { eval $1=; unset $1;} |
| 14725 | } |
| 14726 | as_unset=as_fn_unset |
| 14727 | # as_fn_append VAR VALUE |
| 14728 | # ---------------------- |
| 14729 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 14730 | # advantage of any shell optimizations that allow amortized linear growth over |
| 14731 | # repeated appends, instead of the typical quadratic growth present in naive |
| 14732 | # implementations. |
| 14733 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 14734 | eval 'as_fn_append () |
| 14735 | { |
| 14736 | eval $1+=\$2 |
| 14737 | }' |
| 14738 | else |
| 14739 | as_fn_append () |
| 14740 | { |
| 14741 | eval $1=\$$1\$2 |
| 14742 | } |
| 14743 | fi # as_fn_append |
| 14744 | |
| 14745 | # as_fn_arith ARG... |
| 14746 | # ------------------ |
| 14747 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 14748 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 14749 | # must be portable across $(()) and expr. |
| 14750 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 14751 | eval 'as_fn_arith () |
| 14752 | { |
| 14753 | as_val=$(( $* )) |
| 14754 | }' |
| 14755 | else |
| 14756 | as_fn_arith () |
| 14757 | { |
| 14758 | as_val=`expr "$@" || test $? -eq 1` |
| 14759 | } |
| 14760 | fi # as_fn_arith |
| 14761 | |
| 14762 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14763 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 14764 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 14765 | as_expr=expr |
| 14766 | else |
| 14767 | as_expr=false |
| 14768 | fi |
| 14769 | |
| 14770 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 14771 | as_basename=basename |
| 14772 | else |
| 14773 | as_basename=false |
| 14774 | fi |
| 14775 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14776 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 14777 | as_dirname=dirname |
| 14778 | else |
| 14779 | as_dirname=false |
| 14780 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14781 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14782 | as_me=`$as_basename -- "$0" || |
| 14783 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 14784 | X"$0" : 'X\(//\)$' \| \ |
| 14785 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14786 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14787 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 14788 | s//\1/ |
| 14789 | q |
| 14790 | } |
| 14791 | /^X\/\(\/\/\)$/{ |
| 14792 | s//\1/ |
| 14793 | q |
| 14794 | } |
| 14795 | /^X\/\(\/\).*/{ |
| 14796 | s//\1/ |
| 14797 | q |
| 14798 | } |
| 14799 | s/.*/./; q'` |
| 14800 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14801 | # Avoid depending upon Character Ranges. |
| 14802 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 14803 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 14804 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 14805 | as_cr_digits='0123456789' |
| 14806 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14807 | |
| 14808 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14809 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14810 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14811 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14812 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14813 | xy) ECHO_C='\c';; |
| 14814 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 14815 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14816 | esac;; |
| 14817 | *) |
| 14818 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14819 | esac |
| 14820 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14821 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14822 | if test -d conf$$.dir; then |
| 14823 | rm -f conf$$.dir/conf$$.file |
| 14824 | else |
| 14825 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14826 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14827 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14828 | if (echo >conf$$.file) 2>/dev/null; then |
| 14829 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 14830 | as_ln_s='ln -s' |
| 14831 | # ... but there are two gotchas: |
| 14832 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 14833 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 14834 | # In both cases, we have to default to `cp -p'. |
| 14835 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 14836 | as_ln_s='cp -p' |
| 14837 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 14838 | as_ln_s=ln |
| 14839 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14840 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14841 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14842 | else |
| 14843 | as_ln_s='cp -p' |
| 14844 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14845 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 14846 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14847 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14848 | |
| 14849 | # as_fn_mkdir_p |
| 14850 | # ------------- |
| 14851 | # Create "$as_dir" as a directory, including parents if necessary. |
| 14852 | as_fn_mkdir_p () |
| 14853 | { |
| 14854 | |
| 14855 | case $as_dir in #( |
| 14856 | -*) as_dir=./$as_dir;; |
| 14857 | esac |
| 14858 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 14859 | as_dirs= |
| 14860 | while :; do |
| 14861 | case $as_dir in #( |
| 14862 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 14863 | *) as_qdir=$as_dir;; |
| 14864 | esac |
| 14865 | as_dirs="'$as_qdir' $as_dirs" |
| 14866 | as_dir=`$as_dirname -- "$as_dir" || |
| 14867 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 14868 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 14869 | X"$as_dir" : 'X\(//\)$' \| \ |
| 14870 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 14871 | $as_echo X"$as_dir" | |
| 14872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 14873 | s//\1/ |
| 14874 | q |
| 14875 | } |
| 14876 | /^X\(\/\/\)[^/].*/{ |
| 14877 | s//\1/ |
| 14878 | q |
| 14879 | } |
| 14880 | /^X\(\/\/\)$/{ |
| 14881 | s//\1/ |
| 14882 | q |
| 14883 | } |
| 14884 | /^X\(\/\).*/{ |
| 14885 | s//\1/ |
| 14886 | q |
| 14887 | } |
| 14888 | s/.*/./; q'` |
| 14889 | test -d "$as_dir" && break |
| 14890 | done |
| 14891 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 14892 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 14893 | |
| 14894 | |
| 14895 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14896 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14897 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14898 | else |
| 14899 | test -d ./-p && rmdir ./-p |
| 14900 | as_mkdir_p=false |
| 14901 | fi |
| 14902 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14903 | if test -x / >/dev/null 2>&1; then |
| 14904 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14905 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14906 | if ls -dL / >/dev/null 2>&1; then |
| 14907 | as_ls_L_option=L |
| 14908 | else |
| 14909 | as_ls_L_option= |
| 14910 | fi |
| 14911 | as_test_x=' |
| 14912 | eval sh -c '\'' |
| 14913 | if test -d "$1"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14914 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14915 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14916 | case $1 in #( |
| 14917 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14918 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14919 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14920 | ???[sx]*):;;*)false;;esac;fi |
| 14921 | '\'' sh |
| 14922 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14923 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14924 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14925 | |
| 14926 | # Sed expression to map a string onto a valid CPP name. |
| 14927 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 14928 | |
| 14929 | # Sed expression to map a string onto a valid variable name. |
| 14930 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 14931 | |
| 14932 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14933 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14934 | ## ----------------------------------- ## |
| 14935 | ## Main body of $CONFIG_STATUS script. ## |
| 14936 | ## ----------------------------------- ## |
| 14937 | _ASEOF |
| 14938 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14939 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14940 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 14941 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14942 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14943 | # values after options handling. |
| 14944 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 14945 | This file was extended by breakpad $as_me 0.1, which was |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 14946 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14947 | |
| 14948 | CONFIG_FILES = $CONFIG_FILES |
| 14949 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 14950 | CONFIG_LINKS = $CONFIG_LINKS |
| 14951 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 14952 | $ $0 $@ |
| 14953 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14954 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 14955 | " |
| 14956 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14957 | _ACEOF |
| 14958 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14959 | case $ac_config_files in *" |
| 14960 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 14961 | esac |
| 14962 | |
| 14963 | case $ac_config_headers in *" |
| 14964 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 14965 | esac |
| 14966 | |
| 14967 | |
| 14968 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14969 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14970 | config_files="$ac_config_files" |
| 14971 | config_headers="$ac_config_headers" |
| 14972 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14973 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14974 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14975 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14976 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14977 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14978 | \`$as_me' instantiates files and other configuration actions |
| 14979 | from templates according to the current configuration. Unless the files |
| 14980 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14981 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14982 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14983 | |
| 14984 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14985 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 14986 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14987 | -q, --quiet, --silent |
| 14988 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14989 | -d, --debug don't remove temporary files |
| 14990 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14991 | --file=FILE[:TEMPLATE] |
| 14992 | instantiate the configuration file FILE |
| 14993 | --header=FILE[:TEMPLATE] |
| 14994 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14995 | |
| 14996 | Configuration files: |
| 14997 | $config_files |
| 14998 | |
| 14999 | Configuration headers: |
| 15000 | $config_headers |
| 15001 | |
| 15002 | Configuration commands: |
| 15003 | $config_commands |
| 15004 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15005 | Report bugs to <opensource@google.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15006 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15007 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15008 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 15009 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15010 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 15011 | breakpad config.status 0.1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 15012 | configured by $0, generated by GNU Autoconf 2.65, |
| 15013 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15014 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15015 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15016 | This config.status script is free software; the Free Software Foundation |
| 15017 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15018 | |
| 15019 | ac_pwd='$ac_pwd' |
| 15020 | srcdir='$srcdir' |
| 15021 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15022 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15023 | AWK='$AWK' |
| 15024 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15025 | _ACEOF |
| 15026 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15027 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15028 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15029 | ac_need_defaults=: |
| 15030 | while test $# != 0 |
| 15031 | do |
| 15032 | case $1 in |
| 15033 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15034 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15035 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15036 | ac_shift=: |
| 15037 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15038 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15039 | ac_option=$1 |
| 15040 | ac_optarg=$2 |
| 15041 | ac_shift=shift |
| 15042 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15043 | esac |
| 15044 | |
| 15045 | case $ac_option in |
| 15046 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15047 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15048 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15049 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15050 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 15051 | --config | --confi | --conf | --con | --co | --c ) |
| 15052 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15053 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15054 | debug=: ;; |
| 15055 | --file | --fil | --fi | --f ) |
| 15056 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15057 | case $ac_optarg in |
| 15058 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15059 | esac |
| 15060 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15061 | ac_need_defaults=false;; |
| 15062 | --header | --heade | --head | --hea ) |
| 15063 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15064 | case $ac_optarg in |
| 15065 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15066 | esac |
| 15067 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15068 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15069 | --he | --h) |
| 15070 | # Conflict between --help and --header |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15071 | as_fn_error "ambiguous option: \`$1' |
| 15072 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15073 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15074 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15075 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15076 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15077 | ac_cs_silent=: ;; |
| 15078 | |
| 15079 | # This is an error. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15080 | -*) as_fn_error "unrecognized option: \`$1' |
| 15081 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15082 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15083 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15084 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15085 | |
| 15086 | esac |
| 15087 | shift |
| 15088 | done |
| 15089 | |
| 15090 | ac_configure_extra_args= |
| 15091 | |
| 15092 | if $ac_cs_silent; then |
| 15093 | exec 6>/dev/null |
| 15094 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15095 | fi |
| 15096 | |
| 15097 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15098 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15099 | if \$ac_cs_recheck; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15100 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15101 | shift |
| 15102 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 15103 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15104 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15105 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15106 | fi |
| 15107 | |
| 15108 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15109 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15110 | exec 5>>config.log |
| 15111 | { |
| 15112 | echo |
| 15113 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15114 | ## Running $as_me. ## |
| 15115 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15116 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15117 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15118 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15119 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15120 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15121 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15122 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15123 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15124 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 15125 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15126 | |
| 15127 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15128 | # if CDPATH is set. |
| 15129 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15130 | |
| 15131 | sed_quote_subst='$sed_quote_subst' |
| 15132 | double_quote_subst='$double_quote_subst' |
| 15133 | delay_variable_subst='$delay_variable_subst' |
| 15134 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15135 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 15136 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 15137 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15138 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 15139 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 15140 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15141 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 15142 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15143 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15144 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 15145 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15146 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 15147 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 15148 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15149 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15150 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15151 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15152 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 15153 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 15154 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 15155 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15156 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15157 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 15158 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15159 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15160 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15161 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15162 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15163 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 15164 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 15165 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 15166 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15167 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15168 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 15169 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15170 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15171 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15172 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15173 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15174 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 15175 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15176 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 15177 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15178 | 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"`' |
| 15179 | 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"`' |
| 15180 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 15181 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15182 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15183 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15184 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15185 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15186 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15187 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15188 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 15189 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 15190 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15191 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 15192 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15193 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15194 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 15195 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15196 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15197 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15198 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 15199 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 15200 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15201 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15202 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 15203 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15204 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15205 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15206 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15207 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15208 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15209 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15210 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15211 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15212 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15213 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15214 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 15215 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 15216 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 15217 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 15218 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15219 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15220 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15221 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15222 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15223 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 15224 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15225 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15226 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15227 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15228 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15229 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 15230 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 15231 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15232 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 15233 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15234 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15235 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15236 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15237 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15238 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15239 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15240 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15241 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15242 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 15243 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15244 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15245 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15246 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 15247 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 15248 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 15249 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15250 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15251 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15252 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15253 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 15254 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 15255 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 15256 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 15257 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15258 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15259 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15260 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15261 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15262 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15263 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15264 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15265 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15266 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15267 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15268 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15269 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15270 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15271 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15272 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15273 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15274 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15275 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15276 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15277 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15278 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15279 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15280 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15281 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15282 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15283 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15284 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15285 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15286 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15287 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15288 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15289 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15290 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15291 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15292 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15293 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15294 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15295 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15296 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15297 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15298 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15299 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15300 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15301 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15302 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15303 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15304 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15305 | |
| 15306 | LTCC='$LTCC' |
| 15307 | LTCFLAGS='$LTCFLAGS' |
| 15308 | compiler='$compiler_DEFAULT' |
| 15309 | |
| 15310 | # Quote evaled strings. |
| 15311 | for var in SED \ |
| 15312 | GREP \ |
| 15313 | EGREP \ |
| 15314 | FGREP \ |
| 15315 | LD \ |
| 15316 | NM \ |
| 15317 | LN_S \ |
| 15318 | lt_SP2NL \ |
| 15319 | lt_NL2SP \ |
| 15320 | reload_flag \ |
| 15321 | OBJDUMP \ |
| 15322 | deplibs_check_method \ |
| 15323 | file_magic_cmd \ |
| 15324 | AR \ |
| 15325 | AR_FLAGS \ |
| 15326 | STRIP \ |
| 15327 | RANLIB \ |
| 15328 | CC \ |
| 15329 | CFLAGS \ |
| 15330 | compiler \ |
| 15331 | lt_cv_sys_global_symbol_pipe \ |
| 15332 | lt_cv_sys_global_symbol_to_cdecl \ |
| 15333 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15334 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 15335 | SHELL \ |
| 15336 | ECHO \ |
| 15337 | lt_prog_compiler_no_builtin_flag \ |
| 15338 | lt_prog_compiler_wl \ |
| 15339 | lt_prog_compiler_pic \ |
| 15340 | lt_prog_compiler_static \ |
| 15341 | lt_cv_prog_compiler_c_o \ |
| 15342 | need_locks \ |
| 15343 | DSYMUTIL \ |
| 15344 | NMEDIT \ |
| 15345 | LIPO \ |
| 15346 | OTOOL \ |
| 15347 | OTOOL64 \ |
| 15348 | shrext_cmds \ |
| 15349 | export_dynamic_flag_spec \ |
| 15350 | whole_archive_flag_spec \ |
| 15351 | compiler_needs_object \ |
| 15352 | with_gnu_ld \ |
| 15353 | allow_undefined_flag \ |
| 15354 | no_undefined_flag \ |
| 15355 | hardcode_libdir_flag_spec \ |
| 15356 | hardcode_libdir_flag_spec_ld \ |
| 15357 | hardcode_libdir_separator \ |
| 15358 | fix_srcfile_path \ |
| 15359 | exclude_expsyms \ |
| 15360 | include_expsyms \ |
| 15361 | file_list_spec \ |
| 15362 | variables_saved_for_relink \ |
| 15363 | libname_spec \ |
| 15364 | library_names_spec \ |
| 15365 | soname_spec \ |
| 15366 | finish_eval \ |
| 15367 | old_striplib \ |
| 15368 | striplib \ |
| 15369 | compiler_lib_search_dirs \ |
| 15370 | predep_objects \ |
| 15371 | postdep_objects \ |
| 15372 | predeps \ |
| 15373 | postdeps \ |
| 15374 | compiler_lib_search_path \ |
| 15375 | LD_CXX \ |
| 15376 | compiler_CXX \ |
| 15377 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 15378 | lt_prog_compiler_wl_CXX \ |
| 15379 | lt_prog_compiler_pic_CXX \ |
| 15380 | lt_prog_compiler_static_CXX \ |
| 15381 | lt_cv_prog_compiler_c_o_CXX \ |
| 15382 | export_dynamic_flag_spec_CXX \ |
| 15383 | whole_archive_flag_spec_CXX \ |
| 15384 | compiler_needs_object_CXX \ |
| 15385 | with_gnu_ld_CXX \ |
| 15386 | allow_undefined_flag_CXX \ |
| 15387 | no_undefined_flag_CXX \ |
| 15388 | hardcode_libdir_flag_spec_CXX \ |
| 15389 | hardcode_libdir_flag_spec_ld_CXX \ |
| 15390 | hardcode_libdir_separator_CXX \ |
| 15391 | fix_srcfile_path_CXX \ |
| 15392 | exclude_expsyms_CXX \ |
| 15393 | include_expsyms_CXX \ |
| 15394 | file_list_spec_CXX \ |
| 15395 | compiler_lib_search_dirs_CXX \ |
| 15396 | predep_objects_CXX \ |
| 15397 | postdep_objects_CXX \ |
| 15398 | predeps_CXX \ |
| 15399 | postdeps_CXX \ |
| 15400 | compiler_lib_search_path_CXX; do |
| 15401 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 15402 | *[\\\\\\\`\\"\\\$]*) |
| 15403 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 15404 | ;; |
| 15405 | *) |
| 15406 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15407 | ;; |
| 15408 | esac |
| 15409 | done |
| 15410 | |
| 15411 | # Double-quote double-evaled strings. |
| 15412 | for var in reload_cmds \ |
| 15413 | old_postinstall_cmds \ |
| 15414 | old_postuninstall_cmds \ |
| 15415 | old_archive_cmds \ |
| 15416 | extract_expsyms_cmds \ |
| 15417 | old_archive_from_new_cmds \ |
| 15418 | old_archive_from_expsyms_cmds \ |
| 15419 | archive_cmds \ |
| 15420 | archive_expsym_cmds \ |
| 15421 | module_cmds \ |
| 15422 | module_expsym_cmds \ |
| 15423 | export_symbols_cmds \ |
| 15424 | prelink_cmds \ |
| 15425 | postinstall_cmds \ |
| 15426 | postuninstall_cmds \ |
| 15427 | finish_cmds \ |
| 15428 | sys_lib_search_path_spec \ |
| 15429 | sys_lib_dlsearch_path_spec \ |
| 15430 | old_archive_cmds_CXX \ |
| 15431 | old_archive_from_new_cmds_CXX \ |
| 15432 | old_archive_from_expsyms_cmds_CXX \ |
| 15433 | archive_cmds_CXX \ |
| 15434 | archive_expsym_cmds_CXX \ |
| 15435 | module_cmds_CXX \ |
| 15436 | module_expsym_cmds_CXX \ |
| 15437 | export_symbols_cmds_CXX \ |
| 15438 | prelink_cmds_CXX; do |
| 15439 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 15440 | *[\\\\\\\`\\"\\\$]*) |
| 15441 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 15442 | ;; |
| 15443 | *) |
| 15444 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15445 | ;; |
| 15446 | esac |
| 15447 | done |
| 15448 | |
| 15449 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 15450 | case \$lt_ECHO in |
| 15451 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 15452 | ;; |
| 15453 | esac |
| 15454 | |
| 15455 | ac_aux_dir='$ac_aux_dir' |
| 15456 | xsi_shell='$xsi_shell' |
| 15457 | lt_shell_append='$lt_shell_append' |
| 15458 | |
| 15459 | # See if we are running on zsh, and set the options which allow our |
| 15460 | # commands through without removal of \ escapes INIT. |
| 15461 | if test -n "\${ZSH_VERSION+set}" ; then |
| 15462 | setopt NO_GLOB_SUBST |
| 15463 | fi |
| 15464 | |
| 15465 | |
| 15466 | PACKAGE='$PACKAGE' |
| 15467 | VERSION='$VERSION' |
| 15468 | TIMESTAMP='$TIMESTAMP' |
| 15469 | RM='$RM' |
| 15470 | ofile='$ofile' |
| 15471 | |
| 15472 | |
| 15473 | |
| 15474 | |
| 15475 | |
| 15476 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15477 | _ACEOF |
| 15478 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15479 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15480 | |
| 15481 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15482 | for ac_config_target in $ac_config_targets |
| 15483 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15484 | case $ac_config_target in |
| 15485 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 15486 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15487 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15488 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 15489 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15490 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15491 | esac |
| 15492 | done |
| 15493 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15494 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15495 | # If the user did not use the arguments to specify the items to instantiate, |
| 15496 | # then the envvar interface is used. Set only those that are not. |
| 15497 | # We use the long form for the default assignment because of an extremely |
| 15498 | # bizarre bug on SunOS 4.1.3. |
| 15499 | if $ac_need_defaults; then |
| 15500 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 15501 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 15502 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 15503 | fi |
| 15504 | |
| 15505 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15506 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15507 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15508 | # Hook for its removal unless debugging. |
| 15509 | # Note that there is a small window in which the directory will not be cleaned: |
| 15510 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15511 | $debug || |
| 15512 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15513 | tmp= |
| 15514 | trap 'exit_status=$? |
| 15515 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 15516 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15517 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15518 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15519 | # Create a (secure) tmp directory for tmp files. |
| 15520 | |
| 15521 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15522 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15523 | test -n "$tmp" && test -d "$tmp" |
| 15524 | } || |
| 15525 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15526 | tmp=./conf$$-$RANDOM |
| 15527 | (umask 077 && mkdir "$tmp") |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15528 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15529 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15530 | # Set up the scripts for CONFIG_FILES section. |
| 15531 | # No need to generate them if there are no CONFIG_FILES. |
| 15532 | # This happens for instance with `./config.status config.h'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15533 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15534 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15535 | |
| 15536 | ac_cr=`echo X | tr X '\015'` |
| 15537 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 15538 | # But we know of no other shell where ac_cr would be empty at this |
| 15539 | # point, so we can use a bashism as a fallback. |
| 15540 | if test "x$ac_cr" = x; then |
| 15541 | eval ac_cr=\$\'\\r\' |
| 15542 | fi |
| 15543 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 15544 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 15545 | ac_cs_awk_cr='\r' |
| 15546 | else |
| 15547 | ac_cs_awk_cr=$ac_cr |
| 15548 | fi |
| 15549 | |
| 15550 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15551 | _ACEOF |
| 15552 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15553 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15554 | { |
| 15555 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 15556 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 15557 | echo "_ACEOF" |
| 15558 | } >conf$$subs.sh || |
| 15559 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 15560 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15561 | ac_delim='%!_!# ' |
| 15562 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15563 | . ./conf$$subs.sh || |
| 15564 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15565 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15566 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 15567 | if test $ac_delim_n = $ac_delim_num; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15568 | break |
| 15569 | elif $ac_last_try; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15570 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15571 | else |
| 15572 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15573 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15574 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15575 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15576 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15577 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15578 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15579 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15580 | sed -n ' |
| 15581 | h |
| 15582 | s/^/S["/; s/!.*/"]=/ |
| 15583 | p |
| 15584 | g |
| 15585 | s/^[^!]*!// |
| 15586 | :repl |
| 15587 | t repl |
| 15588 | s/'"$ac_delim"'$// |
| 15589 | t delim |
| 15590 | :nl |
| 15591 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 15592 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15593 | t more1 |
| 15594 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 15595 | p |
| 15596 | n |
| 15597 | b repl |
| 15598 | :more1 |
| 15599 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 15600 | p |
| 15601 | g |
| 15602 | s/.\{148\}// |
| 15603 | t nl |
| 15604 | :delim |
| 15605 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame^] | 15606 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15607 | t more2 |
| 15608 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 15609 | p |
| 15610 | b |
| 15611 | :more2 |
| 15612 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 15613 | p |
| 15614 | g |
| 15615 | s/.\{148\}// |
| 15616 | t delim |
| 15617 | ' <conf$$subs.awk | sed ' |
| 15618 | /^[^""]/{ |
| 15619 | N |
| 15620 | s/\n// |
| 15621 | } |
| 15622 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 15623 | rm -f conf$$subs.awk |
| 15624 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15625 | _ACAWK |
| 15626 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 15627 | for (key in S) S_is_set[key] = 1 |
| 15628 | FS = "" |
| 15629 | |
| 15630 | } |
| 15631 | { |
| 15632 | line = $ 0 |
| 15633 | nfields = split(line, field, "@") |
| 15634 | substed = 0 |
| 15635 | len = length(field[1]) |
| 15636 | for (i = 2; i < nfields; i++) { |
| 15637 | key = field[i] |
| 15638 | keylen = length(key) |
| 15639 | if (S_is_set[key]) { |
| 15640 | value = S[key] |
| 15641 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 15642 | len += length(value) + length(field[++i]) |
| 15643 | substed = 1 |
| 15644 | } else |
| 15645 | len += 1 + keylen |
| 15646 | } |
| 15647 | |
| 15648 | print line |
| 15649 | } |
| 15650 | |
| 15651 | _ACAWK |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15652 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15653 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15654 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 15655 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 15656 | else |
| 15657 | cat |
| 15658 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 15659 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15660 | _ACEOF |
| 15661 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15662 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 15663 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 15664 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 15665 | # (actually we leave an empty line to preserve line numbers). |
| 15666 | if test "x$srcdir" = x.; then |
| 15667 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 15668 | s/:*\$(srcdir):*/:/ |
| 15669 | s/:*\${srcdir}:*/:/ |
| 15670 | s/:*@srcdir@:*/:/ |
| 15671 | s/^\([^=]*=[ ]*\):*/\1/ |
| 15672 | s/:*$// |
| 15673 | s/^[^=]*=[ ]*$// |
| 15674 | }' |
| 15675 | fi |
| 15676 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15677 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15678 | fi # test -n "$CONFIG_FILES" |
| 15679 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15680 | # Set up the scripts for CONFIG_HEADERS section. |
| 15681 | # No need to generate them if there are no CONFIG_HEADERS. |
| 15682 | # This happens for instance with `./config.status Makefile'. |
| 15683 | if test -n "$CONFIG_HEADERS"; then |
| 15684 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 15685 | BEGIN { |
| 15686 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15687 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15688 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 15689 | # here-document in config.status, that substitutes the proper values into |
| 15690 | # config.h.in to produce config.h. |
| 15691 | |
| 15692 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 15693 | # handling of long lines. |
| 15694 | ac_delim='%!_!# ' |
| 15695 | for ac_last_try in false false :; do |
| 15696 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 15697 | if test -z "$ac_t"; then |
| 15698 | break |
| 15699 | elif $ac_last_try; then |
| 15700 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 15701 | else |
| 15702 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 15703 | fi |
| 15704 | done |
| 15705 | |
| 15706 | # For the awk script, D is an array of macro values keyed by name, |
| 15707 | # likewise P contains macro parameters if any. Preserve backslash |
| 15708 | # newline sequences. |
| 15709 | |
| 15710 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 15711 | sed -n ' |
| 15712 | s/.\{148\}/&'"$ac_delim"'/g |
| 15713 | t rset |
| 15714 | :rset |
| 15715 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 15716 | t def |
| 15717 | d |
| 15718 | :def |
| 15719 | s/\\$// |
| 15720 | t bsnl |
| 15721 | s/["\\]/\\&/g |
| 15722 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 15723 | D["\1"]=" \3"/p |
| 15724 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 15725 | d |
| 15726 | :bsnl |
| 15727 | s/["\\]/\\&/g |
| 15728 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 15729 | D["\1"]=" \3\\\\\\n"\\/p |
| 15730 | t cont |
| 15731 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 15732 | t cont |
| 15733 | d |
| 15734 | :cont |
| 15735 | n |
| 15736 | s/.\{148\}/&'"$ac_delim"'/g |
| 15737 | t clear |
| 15738 | :clear |
| 15739 | s/\\$// |
| 15740 | t bsnlc |
| 15741 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 15742 | d |
| 15743 | :bsnlc |
| 15744 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 15745 | b cont |
| 15746 | ' <confdefs.h | sed ' |
| 15747 | s/'"$ac_delim"'/"\\\ |
| 15748 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 15749 | |
| 15750 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15751 | for (key in D) D_is_set[key] = 1 |
| 15752 | FS = "" |
| 15753 | } |
| 15754 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 15755 | line = \$ 0 |
| 15756 | split(line, arg, " ") |
| 15757 | if (arg[1] == "#") { |
| 15758 | defundef = arg[2] |
| 15759 | mac1 = arg[3] |
| 15760 | } else { |
| 15761 | defundef = substr(arg[1], 2) |
| 15762 | mac1 = arg[2] |
| 15763 | } |
| 15764 | split(mac1, mac2, "(") #) |
| 15765 | macro = mac2[1] |
| 15766 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 15767 | if (D_is_set[macro]) { |
| 15768 | # Preserve the white space surrounding the "#". |
| 15769 | print prefix "define", macro P[macro] D[macro] |
| 15770 | next |
| 15771 | } else { |
| 15772 | # Replace #undef with comments. This is necessary, for example, |
| 15773 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 15774 | # on some systems where configure will not decide to define it. |
| 15775 | if (defundef == "undef") { |
| 15776 | print "/*", prefix defundef, macro, "*/" |
| 15777 | next |
| 15778 | } |
| 15779 | } |
| 15780 | } |
| 15781 | { print } |
| 15782 | _ACAWK |
| 15783 | _ACEOF |
| 15784 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15785 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 15786 | fi # test -n "$CONFIG_HEADERS" |
| 15787 | |
| 15788 | |
| 15789 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 15790 | shift |
| 15791 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15792 | do |
| 15793 | case $ac_tag in |
| 15794 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 15795 | esac |
| 15796 | case $ac_mode$ac_tag in |
| 15797 | :[FHL]*:*);; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15798 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15799 | :[FH]-) ac_tag=-:-;; |
| 15800 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 15801 | esac |
| 15802 | ac_save_IFS=$IFS |
| 15803 | IFS=: |
| 15804 | set x $ac_tag |
| 15805 | IFS=$ac_save_IFS |
| 15806 | shift |
| 15807 | ac_file=$1 |
| 15808 | shift |
| 15809 | |
| 15810 | case $ac_mode in |
| 15811 | :L) ac_source=$1;; |
| 15812 | :[FH]) |
| 15813 | ac_file_inputs= |
| 15814 | for ac_f |
| 15815 | do |
| 15816 | case $ac_f in |
| 15817 | -) ac_f="$tmp/stdin";; |
| 15818 | *) # Look for the file first in the build tree, then in the source tree |
| 15819 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 15820 | # because $ac_f cannot contain `:'. |
| 15821 | test -f "$ac_f" || |
| 15822 | case $ac_f in |
| 15823 | [\\/$]*) false;; |
| 15824 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 15825 | esac || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15826 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15827 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15828 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 15829 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15830 | done |
| 15831 | |
| 15832 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 15833 | # use $as_me), people would be surprised to read: |
| 15834 | # /* config.h. Generated by config.status. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15835 | configure_input='Generated from '` |
| 15836 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 15837 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15838 | if test x"$ac_file" != x-; then |
| 15839 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15840 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 15841 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15842 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15843 | # Neutralize special characters interpreted by sed in replacement strings. |
| 15844 | case $configure_input in #( |
| 15845 | *\&* | *\|* | *\\* ) |
| 15846 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 15847 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 15848 | *) ac_sed_conf_input=$configure_input;; |
| 15849 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15850 | |
| 15851 | case $ac_tag in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15852 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 15853 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15854 | esac |
| 15855 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15856 | esac |
| 15857 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15858 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15859 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15860 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 15861 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15862 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15863 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15864 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15865 | s//\1/ |
| 15866 | q |
| 15867 | } |
| 15868 | /^X\(\/\/\)[^/].*/{ |
| 15869 | s//\1/ |
| 15870 | q |
| 15871 | } |
| 15872 | /^X\(\/\/\)$/{ |
| 15873 | s//\1/ |
| 15874 | q |
| 15875 | } |
| 15876 | /^X\(\/\).*/{ |
| 15877 | s//\1/ |
| 15878 | q |
| 15879 | } |
| 15880 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15881 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15882 | ac_builddir=. |
| 15883 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15884 | case "$ac_dir" in |
| 15885 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15886 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15887 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15888 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15889 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15890 | case $ac_top_builddir_sub in |
| 15891 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 15892 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 15893 | esac ;; |
| 15894 | esac |
| 15895 | ac_abs_top_builddir=$ac_pwd |
| 15896 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 15897 | # for backward compatibility: |
| 15898 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15899 | |
| 15900 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15901 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15902 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15903 | ac_top_srcdir=$ac_top_builddir_sub |
| 15904 | ac_abs_top_srcdir=$ac_pwd ;; |
| 15905 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15906 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15907 | ac_top_srcdir=$srcdir |
| 15908 | ac_abs_top_srcdir=$srcdir ;; |
| 15909 | *) # Relative name. |
| 15910 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 15911 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 15912 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15913 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15914 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15915 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15916 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15917 | case $ac_mode in |
| 15918 | :F) |
| 15919 | # |
| 15920 | # CONFIG_FILE |
| 15921 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15922 | |
| 15923 | case $INSTALL in |
| 15924 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15925 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15926 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15927 | ac_MKDIR_P=$MKDIR_P |
| 15928 | case $MKDIR_P in |
| 15929 | [\\/$]* | ?:[\\/]* ) ;; |
| 15930 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 15931 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15932 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15933 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15934 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15935 | # If the template does not know about datarootdir, expand it. |
| 15936 | # FIXME: This hack should be removed a few years after 2.60. |
| 15937 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15938 | ac_sed_dataroot=' |
| 15939 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15940 | p |
| 15941 | q |
| 15942 | } |
| 15943 | /@datadir@/p |
| 15944 | /@docdir@/p |
| 15945 | /@infodir@/p |
| 15946 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15947 | /@mandir@/p' |
| 15948 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15949 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 15950 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15951 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 15952 | $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] | 15953 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15954 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15955 | ac_datarootdir_hack=' |
| 15956 | s&@datadir@&$datadir&g |
| 15957 | s&@docdir@&$docdir&g |
| 15958 | s&@infodir@&$infodir&g |
| 15959 | s&@localedir@&$localedir&g |
| 15960 | s&@mandir@&$mandir&g |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15961 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15962 | esac |
| 15963 | _ACEOF |
| 15964 | |
| 15965 | # Neutralize VPATH when `$srcdir' = `.'. |
| 15966 | # Shell code in configure.ac might set extrasub. |
| 15967 | # FIXME: do we really want to maintain this feature? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15968 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 15969 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15970 | $extrasub |
| 15971 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15972 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15973 | :t |
| 15974 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15975 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15976 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15977 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15978 | s&@srcdir@&$ac_srcdir&;t t |
| 15979 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 15980 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 15981 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 15982 | s&@builddir@&$ac_builddir&;t t |
| 15983 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 15984 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 15985 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15986 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15987 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15988 | " |
| 15989 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 15990 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15991 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15992 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 15993 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 15994 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15995 | { $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] | 15996 | which seems to be undefined. Please make sure it is defined." >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15997 | $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] | 15998 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15999 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16000 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16001 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16002 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 16003 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 16004 | esac \ |
| 16005 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16006 | ;; |
| 16007 | :H) |
| 16008 | # |
| 16009 | # CONFIG_HEADER |
| 16010 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16011 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16012 | { |
| 16013 | $as_echo "/* $configure_input */" \ |
| 16014 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 16015 | } >"$tmp/config.h" \ |
| 16016 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 16017 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 16018 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 16019 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16020 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16021 | rm -f "$ac_file" |
| 16022 | mv "$tmp/config.h" "$ac_file" \ |
| 16023 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16024 | fi |
| 16025 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16026 | $as_echo "/* $configure_input */" \ |
| 16027 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 16028 | || as_fn_error "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16029 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16030 | # Compute "$ac_file"'s index in $config_headers. |
| 16031 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16032 | _am_stamp_count=1 |
| 16033 | for _am_header in $config_headers :; do |
| 16034 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16035 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16036 | break ;; |
| 16037 | * ) |
| 16038 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 16039 | esac |
| 16040 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16041 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 16042 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16043 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 16044 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 16045 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 16046 | $as_echo X"$_am_arg" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16047 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16048 | s//\1/ |
| 16049 | q |
| 16050 | } |
| 16051 | /^X\(\/\/\)[^/].*/{ |
| 16052 | s//\1/ |
| 16053 | q |
| 16054 | } |
| 16055 | /^X\(\/\/\)$/{ |
| 16056 | s//\1/ |
| 16057 | q |
| 16058 | } |
| 16059 | /^X\(\/\).*/{ |
| 16060 | s//\1/ |
| 16061 | q |
| 16062 | } |
| 16063 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 16064 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16065 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16066 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 16067 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16068 | ;; |
| 16069 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16070 | |
| 16071 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16072 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16073 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 16074 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 16075 | # are listed without --file. Let's play safe and only enable the eval |
| 16076 | # if we detect the quoting. |
| 16077 | case $CONFIG_FILES in |
| 16078 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 16079 | *) set x $CONFIG_FILES ;; |
| 16080 | esac |
| 16081 | shift |
| 16082 | for mf |
| 16083 | do |
| 16084 | # Strip MF so we end up with the name of the file. |
| 16085 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 16086 | # Check whether this is an Automake generated Makefile or not. |
| 16087 | # We used to match only the files named `Makefile.in', but |
| 16088 | # some people rename them; so instead we look at the file content. |
| 16089 | # Grep'ing the first line is not enough: some people post-process |
| 16090 | # each Makefile.in and add a new line on top of each file to say so. |
| 16091 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 16092 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 16093 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 16094 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16095 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16096 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 16097 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16098 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16099 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16100 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16101 | s//\1/ |
| 16102 | q |
| 16103 | } |
| 16104 | /^X\(\/\/\)[^/].*/{ |
| 16105 | s//\1/ |
| 16106 | q |
| 16107 | } |
| 16108 | /^X\(\/\/\)$/{ |
| 16109 | s//\1/ |
| 16110 | q |
| 16111 | } |
| 16112 | /^X\(\/\).*/{ |
| 16113 | s//\1/ |
| 16114 | q |
| 16115 | } |
| 16116 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16117 | else |
| 16118 | continue |
| 16119 | fi |
| 16120 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 16121 | # from the Makefile without running `make'. |
| 16122 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 16123 | test -z "$DEPDIR" && continue |
| 16124 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 16125 | test -z "am__include" && continue |
| 16126 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 16127 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 16128 | U=`sed -n 's/^U = //p' < "$mf"` |
| 16129 | # Find all dependency output files, they are included files with |
| 16130 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 16131 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 16132 | # expansion. |
| 16133 | for file in `sed -n " |
| 16134 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 16135 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 16136 | # Make sure the directory exists. |
| 16137 | test -f "$dirpart/$file" && continue |
| 16138 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16139 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16140 | X"$file" : 'X\(//\)[^/]' \| \ |
| 16141 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16142 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16143 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16144 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16145 | s//\1/ |
| 16146 | q |
| 16147 | } |
| 16148 | /^X\(\/\/\)[^/].*/{ |
| 16149 | s//\1/ |
| 16150 | q |
| 16151 | } |
| 16152 | /^X\(\/\/\)$/{ |
| 16153 | s//\1/ |
| 16154 | q |
| 16155 | } |
| 16156 | /^X\(\/\).*/{ |
| 16157 | s//\1/ |
| 16158 | q |
| 16159 | } |
| 16160 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16161 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 16162 | # echo "creating $dirpart/$file" |
| 16163 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16164 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16165 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16166 | } |
| 16167 | ;; |
| 16168 | "libtool":C) |
| 16169 | |
| 16170 | # See if we are running on zsh, and set the options which allow our |
| 16171 | # commands through without removal of \ escapes. |
| 16172 | if test -n "${ZSH_VERSION+set}" ; then |
| 16173 | setopt NO_GLOB_SUBST |
| 16174 | fi |
| 16175 | |
| 16176 | cfgfile="${ofile}T" |
| 16177 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 16178 | $RM "$cfgfile" |
| 16179 | |
| 16180 | cat <<_LT_EOF >> "$cfgfile" |
| 16181 | #! $SHELL |
| 16182 | |
| 16183 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 16184 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 16185 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16186 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 16187 | # |
| 16188 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 16189 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 16190 | # Written by Gordon Matzigkeit, 1996 |
| 16191 | # |
| 16192 | # This file is part of GNU Libtool. |
| 16193 | # |
| 16194 | # GNU Libtool is free software; you can redistribute it and/or |
| 16195 | # modify it under the terms of the GNU General Public License as |
| 16196 | # published by the Free Software Foundation; either version 2 of |
| 16197 | # the License, or (at your option) any later version. |
| 16198 | # |
| 16199 | # As a special exception to the GNU General Public License, |
| 16200 | # if you distribute this file as part of a program or library that |
| 16201 | # is built using GNU Libtool, you may include this file under the |
| 16202 | # same distribution terms that you use for the rest of that program. |
| 16203 | # |
| 16204 | # GNU Libtool is distributed in the hope that it will be useful, |
| 16205 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16206 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16207 | # GNU General Public License for more details. |
| 16208 | # |
| 16209 | # You should have received a copy of the GNU General Public License |
| 16210 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 16211 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 16212 | # obtained by writing to the Free Software Foundation, Inc., |
| 16213 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16214 | |
| 16215 | |
| 16216 | # The names of the tagged configurations supported by this script. |
| 16217 | available_tags="CXX " |
| 16218 | |
| 16219 | # ### BEGIN LIBTOOL CONFIG |
| 16220 | |
| 16221 | # Which release of libtool.m4 was used? |
| 16222 | macro_version=$macro_version |
| 16223 | macro_revision=$macro_revision |
| 16224 | |
| 16225 | # Whether or not to build shared libraries. |
| 16226 | build_libtool_libs=$enable_shared |
| 16227 | |
| 16228 | # Whether or not to build static libraries. |
| 16229 | build_old_libs=$enable_static |
| 16230 | |
| 16231 | # What type of objects to build. |
| 16232 | pic_mode=$pic_mode |
| 16233 | |
| 16234 | # Whether or not to optimize for fast installation. |
| 16235 | fast_install=$enable_fast_install |
| 16236 | |
| 16237 | # The host system. |
| 16238 | host_alias=$host_alias |
| 16239 | host=$host |
| 16240 | host_os=$host_os |
| 16241 | |
| 16242 | # The build system. |
| 16243 | build_alias=$build_alias |
| 16244 | build=$build |
| 16245 | build_os=$build_os |
| 16246 | |
| 16247 | # A sed program that does not truncate output. |
| 16248 | SED=$lt_SED |
| 16249 | |
| 16250 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 16251 | Xsed="\$SED -e 1s/^X//" |
| 16252 | |
| 16253 | # A grep program that handles long lines. |
| 16254 | GREP=$lt_GREP |
| 16255 | |
| 16256 | # An ERE matcher. |
| 16257 | EGREP=$lt_EGREP |
| 16258 | |
| 16259 | # A literal string matcher. |
| 16260 | FGREP=$lt_FGREP |
| 16261 | |
| 16262 | # A BSD- or MS-compatible name lister. |
| 16263 | NM=$lt_NM |
| 16264 | |
| 16265 | # Whether we need soft or hard links. |
| 16266 | LN_S=$lt_LN_S |
| 16267 | |
| 16268 | # What is the maximum length of a command? |
| 16269 | max_cmd_len=$max_cmd_len |
| 16270 | |
| 16271 | # Object file suffix (normally "o"). |
| 16272 | objext=$ac_objext |
| 16273 | |
| 16274 | # Executable file suffix (normally ""). |
| 16275 | exeext=$exeext |
| 16276 | |
| 16277 | # whether the shell understands "unset". |
| 16278 | lt_unset=$lt_unset |
| 16279 | |
| 16280 | # turn spaces into newlines. |
| 16281 | SP2NL=$lt_lt_SP2NL |
| 16282 | |
| 16283 | # turn newlines into spaces. |
| 16284 | NL2SP=$lt_lt_NL2SP |
| 16285 | |
| 16286 | # How to create reloadable object files. |
| 16287 | reload_flag=$lt_reload_flag |
| 16288 | reload_cmds=$lt_reload_cmds |
| 16289 | |
| 16290 | # An object symbol dumper. |
| 16291 | OBJDUMP=$lt_OBJDUMP |
| 16292 | |
| 16293 | # Method to check whether dependent libraries are shared objects. |
| 16294 | deplibs_check_method=$lt_deplibs_check_method |
| 16295 | |
| 16296 | # Command to use when deplibs_check_method == "file_magic". |
| 16297 | file_magic_cmd=$lt_file_magic_cmd |
| 16298 | |
| 16299 | # The archiver. |
| 16300 | AR=$lt_AR |
| 16301 | AR_FLAGS=$lt_AR_FLAGS |
| 16302 | |
| 16303 | # A symbol stripping program. |
| 16304 | STRIP=$lt_STRIP |
| 16305 | |
| 16306 | # Commands used to install an old-style archive. |
| 16307 | RANLIB=$lt_RANLIB |
| 16308 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16309 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16310 | |
| 16311 | # A C compiler. |
| 16312 | LTCC=$lt_CC |
| 16313 | |
| 16314 | # LTCC compiler flags. |
| 16315 | LTCFLAGS=$lt_CFLAGS |
| 16316 | |
| 16317 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16318 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16319 | |
| 16320 | # Transform the output of nm in a proper C declaration. |
| 16321 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16322 | |
| 16323 | # Transform the output of nm in a C name address pair. |
| 16324 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16325 | |
| 16326 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 16327 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 16328 | |
| 16329 | # The name of the directory that contains temporary libtool files. |
| 16330 | objdir=$objdir |
| 16331 | |
| 16332 | # Shell to use when invoking shell scripts. |
| 16333 | SHELL=$lt_SHELL |
| 16334 | |
| 16335 | # An echo program that does not interpret backslashes. |
| 16336 | ECHO=$lt_ECHO |
| 16337 | |
| 16338 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 16339 | MAGIC_CMD=$MAGIC_CMD |
| 16340 | |
| 16341 | # Must we lock files when doing compilation? |
| 16342 | need_locks=$lt_need_locks |
| 16343 | |
| 16344 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 16345 | DSYMUTIL=$lt_DSYMUTIL |
| 16346 | |
| 16347 | # Tool to change global to local symbols on Mac OS X. |
| 16348 | NMEDIT=$lt_NMEDIT |
| 16349 | |
| 16350 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 16351 | LIPO=$lt_LIPO |
| 16352 | |
| 16353 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 16354 | OTOOL=$lt_OTOOL |
| 16355 | |
| 16356 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 16357 | OTOOL64=$lt_OTOOL64 |
| 16358 | |
| 16359 | # Old archive suffix (normally "a"). |
| 16360 | libext=$libext |
| 16361 | |
| 16362 | # Shared library suffix (normally ".so"). |
| 16363 | shrext_cmds=$lt_shrext_cmds |
| 16364 | |
| 16365 | # The commands to extract the exported symbol list from a shared archive. |
| 16366 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16367 | |
| 16368 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16369 | # restored at link time. |
| 16370 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 16371 | |
| 16372 | # Do we need the "lib" prefix for modules? |
| 16373 | need_lib_prefix=$need_lib_prefix |
| 16374 | |
| 16375 | # Do we need a version for libraries? |
| 16376 | need_version=$need_version |
| 16377 | |
| 16378 | # Library versioning type. |
| 16379 | version_type=$version_type |
| 16380 | |
| 16381 | # Shared library runtime path variable. |
| 16382 | runpath_var=$runpath_var |
| 16383 | |
| 16384 | # Shared library path variable. |
| 16385 | shlibpath_var=$shlibpath_var |
| 16386 | |
| 16387 | # Is shlibpath searched before the hard-coded library search path? |
| 16388 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16389 | |
| 16390 | # Format of library name prefix. |
| 16391 | libname_spec=$lt_libname_spec |
| 16392 | |
| 16393 | # List of archive names. First name is the real one, the rest are links. |
| 16394 | # The last name is the one that the linker finds with -lNAME |
| 16395 | library_names_spec=$lt_library_names_spec |
| 16396 | |
| 16397 | # The coded name of the library, if different from the real name. |
| 16398 | soname_spec=$lt_soname_spec |
| 16399 | |
| 16400 | # Command to use after installation of a shared archive. |
| 16401 | postinstall_cmds=$lt_postinstall_cmds |
| 16402 | |
| 16403 | # Command to use after uninstallation of a shared archive. |
| 16404 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16405 | |
| 16406 | # Commands used to finish a libtool library installation in a directory. |
| 16407 | finish_cmds=$lt_finish_cmds |
| 16408 | |
| 16409 | # As "finish_cmds", except a single script fragment to be evaled but |
| 16410 | # not shown. |
| 16411 | finish_eval=$lt_finish_eval |
| 16412 | |
| 16413 | # Whether we should hardcode library paths into libraries. |
| 16414 | hardcode_into_libs=$hardcode_into_libs |
| 16415 | |
| 16416 | # Compile-time system search path for libraries. |
| 16417 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16418 | |
| 16419 | # Run-time system search path for libraries. |
| 16420 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 16421 | |
| 16422 | # Whether dlopen is supported. |
| 16423 | dlopen_support=$enable_dlopen |
| 16424 | |
| 16425 | # Whether dlopen of programs is supported. |
| 16426 | dlopen_self=$enable_dlopen_self |
| 16427 | |
| 16428 | # Whether dlopen of statically linked programs is supported. |
| 16429 | dlopen_self_static=$enable_dlopen_self_static |
| 16430 | |
| 16431 | # Commands to strip libraries. |
| 16432 | old_striplib=$lt_old_striplib |
| 16433 | striplib=$lt_striplib |
| 16434 | |
| 16435 | |
| 16436 | # The linker used to build libraries. |
| 16437 | LD=$lt_LD |
| 16438 | |
| 16439 | # Commands used to build an old-style archive. |
| 16440 | old_archive_cmds=$lt_old_archive_cmds |
| 16441 | |
| 16442 | # A language specific compiler. |
| 16443 | CC=$lt_compiler |
| 16444 | |
| 16445 | # Is the compiler the GNU compiler? |
| 16446 | with_gcc=$GCC |
| 16447 | |
| 16448 | # Compiler flag to turn off builtin functions. |
| 16449 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 16450 | |
| 16451 | # How to pass a linker flag through the compiler. |
| 16452 | wl=$lt_lt_prog_compiler_wl |
| 16453 | |
| 16454 | # Additional compiler flags for building library objects. |
| 16455 | pic_flag=$lt_lt_prog_compiler_pic |
| 16456 | |
| 16457 | # Compiler flag to prevent dynamic linking. |
| 16458 | link_static_flag=$lt_lt_prog_compiler_static |
| 16459 | |
| 16460 | # Does compiler simultaneously support -c and -o options? |
| 16461 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 16462 | |
| 16463 | # Whether or not to add -lc for building shared libraries. |
| 16464 | build_libtool_need_lc=$archive_cmds_need_lc |
| 16465 | |
| 16466 | # Whether or not to disallow shared libs when runtime libs are static. |
| 16467 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 16468 | |
| 16469 | # Compiler flag to allow reflexive dlopens. |
| 16470 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 16471 | |
| 16472 | # Compiler flag to generate shared objects directly from archives. |
| 16473 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 16474 | |
| 16475 | # Whether the compiler copes with passing no objects directly. |
| 16476 | compiler_needs_object=$lt_compiler_needs_object |
| 16477 | |
| 16478 | # Create an old-style archive from a shared archive. |
| 16479 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 16480 | |
| 16481 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16482 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 16483 | |
| 16484 | # Commands used to build a shared archive. |
| 16485 | archive_cmds=$lt_archive_cmds |
| 16486 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 16487 | |
| 16488 | # Commands used to build a loadable module if different from building |
| 16489 | # a shared archive. |
| 16490 | module_cmds=$lt_module_cmds |
| 16491 | module_expsym_cmds=$lt_module_expsym_cmds |
| 16492 | |
| 16493 | # Whether we are building with GNU ld or not. |
| 16494 | with_gnu_ld=$lt_with_gnu_ld |
| 16495 | |
| 16496 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16497 | allow_undefined_flag=$lt_allow_undefined_flag |
| 16498 | |
| 16499 | # Flag that enforces no undefined symbols. |
| 16500 | no_undefined_flag=$lt_no_undefined_flag |
| 16501 | |
| 16502 | # Flag to hardcode \$libdir into a binary during linking. |
| 16503 | # This must work even if \$libdir does not exist |
| 16504 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 16505 | |
| 16506 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 16507 | # during linking. This must work even if \$libdir does not exist. |
| 16508 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 16509 | |
| 16510 | # Whether we need a single "-rpath" flag with a separated argument. |
| 16511 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 16512 | |
| 16513 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16514 | # DIR into the resulting binary. |
| 16515 | hardcode_direct=$hardcode_direct |
| 16516 | |
| 16517 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16518 | # DIR into the resulting binary and the resulting library dependency is |
| 16519 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 16520 | # library is relocated. |
| 16521 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 16522 | |
| 16523 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 16524 | # into the resulting binary. |
| 16525 | hardcode_minus_L=$hardcode_minus_L |
| 16526 | |
| 16527 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 16528 | # into the resulting binary. |
| 16529 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 16530 | |
| 16531 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 16532 | # into the library and all subsequent libraries and executables linked |
| 16533 | # against it. |
| 16534 | hardcode_automatic=$hardcode_automatic |
| 16535 | |
| 16536 | # Set to yes if linker adds runtime paths of dependent libraries |
| 16537 | # to runtime path list. |
| 16538 | inherit_rpath=$inherit_rpath |
| 16539 | |
| 16540 | # Whether libtool must link a program against all its dependency libraries. |
| 16541 | link_all_deplibs=$link_all_deplibs |
| 16542 | |
| 16543 | # Fix the shell variable \$srcfile for the compiler. |
| 16544 | fix_srcfile_path=$lt_fix_srcfile_path |
| 16545 | |
| 16546 | # Set to "yes" if exported symbols are required. |
| 16547 | always_export_symbols=$always_export_symbols |
| 16548 | |
| 16549 | # The commands to list exported symbols. |
| 16550 | export_symbols_cmds=$lt_export_symbols_cmds |
| 16551 | |
| 16552 | # Symbols that should not be listed in the preloaded symbols. |
| 16553 | exclude_expsyms=$lt_exclude_expsyms |
| 16554 | |
| 16555 | # Symbols that must always be exported. |
| 16556 | include_expsyms=$lt_include_expsyms |
| 16557 | |
| 16558 | # Commands necessary for linking programs (against libraries) with templates. |
| 16559 | prelink_cmds=$lt_prelink_cmds |
| 16560 | |
| 16561 | # Specify filename containing input files. |
| 16562 | file_list_spec=$lt_file_list_spec |
| 16563 | |
| 16564 | # How to hardcode a shared library path into an executable. |
| 16565 | hardcode_action=$hardcode_action |
| 16566 | |
| 16567 | # The directories searched by this compiler when creating a shared library. |
| 16568 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 16569 | |
| 16570 | # Dependencies to place before and after the objects being linked to |
| 16571 | # create a shared library. |
| 16572 | predep_objects=$lt_predep_objects |
| 16573 | postdep_objects=$lt_postdep_objects |
| 16574 | predeps=$lt_predeps |
| 16575 | postdeps=$lt_postdeps |
| 16576 | |
| 16577 | # The library search path used internally by the compiler when linking |
| 16578 | # a shared library. |
| 16579 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 16580 | |
| 16581 | # ### END LIBTOOL CONFIG |
| 16582 | |
| 16583 | _LT_EOF |
| 16584 | |
| 16585 | case $host_os in |
| 16586 | aix3*) |
| 16587 | cat <<\_LT_EOF >> "$cfgfile" |
| 16588 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 16589 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 16590 | # vanish in a puff of smoke. |
| 16591 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 16592 | COLLECT_NAMES= |
| 16593 | export COLLECT_NAMES |
| 16594 | fi |
| 16595 | _LT_EOF |
| 16596 | ;; |
| 16597 | esac |
| 16598 | |
| 16599 | |
| 16600 | ltmain="$ac_aux_dir/ltmain.sh" |
| 16601 | |
| 16602 | |
| 16603 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 16604 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 16605 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 16606 | # is reportedly fixed, but why not run on old versions too? |
| 16607 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 16608 | || (rm -f "$cfgfile"; exit 1) |
| 16609 | |
| 16610 | case $xsi_shell in |
| 16611 | yes) |
| 16612 | cat << \_LT_EOF >> "$cfgfile" |
| 16613 | |
| 16614 | # func_dirname file append nondir_replacement |
| 16615 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 16616 | # otherwise set result to NONDIR_REPLACEMENT. |
| 16617 | func_dirname () |
| 16618 | { |
| 16619 | case ${1} in |
| 16620 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 16621 | * ) func_dirname_result="${3}" ;; |
| 16622 | esac |
| 16623 | } |
| 16624 | |
| 16625 | # func_basename file |
| 16626 | func_basename () |
| 16627 | { |
| 16628 | func_basename_result="${1##*/}" |
| 16629 | } |
| 16630 | |
| 16631 | # func_dirname_and_basename file append nondir_replacement |
| 16632 | # perform func_basename and func_dirname in a single function |
| 16633 | # call: |
| 16634 | # dirname: Compute the dirname of FILE. If nonempty, |
| 16635 | # add APPEND to the result, otherwise set result |
| 16636 | # to NONDIR_REPLACEMENT. |
| 16637 | # value returned in "$func_dirname_result" |
| 16638 | # basename: Compute filename of FILE. |
| 16639 | # value retuned in "$func_basename_result" |
| 16640 | # Implementation must be kept synchronized with func_dirname |
| 16641 | # and func_basename. For efficiency, we do not delegate to |
| 16642 | # those functions but instead duplicate the functionality here. |
| 16643 | func_dirname_and_basename () |
| 16644 | { |
| 16645 | case ${1} in |
| 16646 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 16647 | * ) func_dirname_result="${3}" ;; |
| 16648 | esac |
| 16649 | func_basename_result="${1##*/}" |
| 16650 | } |
| 16651 | |
| 16652 | # func_stripname prefix suffix name |
| 16653 | # strip PREFIX and SUFFIX off of NAME. |
| 16654 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 16655 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 16656 | # dot (in which case that matches only a dot). |
| 16657 | func_stripname () |
| 16658 | { |
| 16659 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 16660 | # positional parameters, so assign one to ordinary parameter first. |
| 16661 | func_stripname_result=${3} |
| 16662 | func_stripname_result=${func_stripname_result#"${1}"} |
| 16663 | func_stripname_result=${func_stripname_result%"${2}"} |
| 16664 | } |
| 16665 | |
| 16666 | # func_opt_split |
| 16667 | func_opt_split () |
| 16668 | { |
| 16669 | func_opt_split_opt=${1%%=*} |
| 16670 | func_opt_split_arg=${1#*=} |
| 16671 | } |
| 16672 | |
| 16673 | # func_lo2o object |
| 16674 | func_lo2o () |
| 16675 | { |
| 16676 | case ${1} in |
| 16677 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 16678 | *) func_lo2o_result=${1} ;; |
| 16679 | esac |
| 16680 | } |
| 16681 | |
| 16682 | # func_xform libobj-or-source |
| 16683 | func_xform () |
| 16684 | { |
| 16685 | func_xform_result=${1%.*}.lo |
| 16686 | } |
| 16687 | |
| 16688 | # func_arith arithmetic-term... |
| 16689 | func_arith () |
| 16690 | { |
| 16691 | func_arith_result=$(( $* )) |
| 16692 | } |
| 16693 | |
| 16694 | # func_len string |
| 16695 | # STRING may not start with a hyphen. |
| 16696 | func_len () |
| 16697 | { |
| 16698 | func_len_result=${#1} |
| 16699 | } |
| 16700 | |
| 16701 | _LT_EOF |
| 16702 | ;; |
| 16703 | *) # Bourne compatible functions. |
| 16704 | cat << \_LT_EOF >> "$cfgfile" |
| 16705 | |
| 16706 | # func_dirname file append nondir_replacement |
| 16707 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 16708 | # otherwise set result to NONDIR_REPLACEMENT. |
| 16709 | func_dirname () |
| 16710 | { |
| 16711 | # Extract subdirectory from the argument. |
| 16712 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 16713 | if test "X$func_dirname_result" = "X${1}"; then |
| 16714 | func_dirname_result="${3}" |
| 16715 | else |
| 16716 | func_dirname_result="$func_dirname_result${2}" |
| 16717 | fi |
| 16718 | } |
| 16719 | |
| 16720 | # func_basename file |
| 16721 | func_basename () |
| 16722 | { |
| 16723 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 16724 | } |
| 16725 | |
| 16726 | |
| 16727 | # func_stripname prefix suffix name |
| 16728 | # strip PREFIX and SUFFIX off of NAME. |
| 16729 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 16730 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 16731 | # dot (in which case that matches only a dot). |
| 16732 | # func_strip_suffix prefix name |
| 16733 | func_stripname () |
| 16734 | { |
| 16735 | case ${2} in |
| 16736 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 16737 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 16738 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 16739 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 16740 | esac |
| 16741 | } |
| 16742 | |
| 16743 | # sed scripts: |
| 16744 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 16745 | my_sed_long_arg='1s/^-[^=]*=//' |
| 16746 | |
| 16747 | # func_opt_split |
| 16748 | func_opt_split () |
| 16749 | { |
| 16750 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 16751 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 16752 | } |
| 16753 | |
| 16754 | # func_lo2o object |
| 16755 | func_lo2o () |
| 16756 | { |
| 16757 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 16758 | } |
| 16759 | |
| 16760 | # func_xform libobj-or-source |
| 16761 | func_xform () |
| 16762 | { |
| 16763 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 16764 | } |
| 16765 | |
| 16766 | # func_arith arithmetic-term... |
| 16767 | func_arith () |
| 16768 | { |
| 16769 | func_arith_result=`expr "$@"` |
| 16770 | } |
| 16771 | |
| 16772 | # func_len string |
| 16773 | # STRING may not start with a hyphen. |
| 16774 | func_len () |
| 16775 | { |
| 16776 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 16777 | } |
| 16778 | |
| 16779 | _LT_EOF |
| 16780 | esac |
| 16781 | |
| 16782 | case $lt_shell_append in |
| 16783 | yes) |
| 16784 | cat << \_LT_EOF >> "$cfgfile" |
| 16785 | |
| 16786 | # func_append var value |
| 16787 | # Append VALUE to the end of shell variable VAR. |
| 16788 | func_append () |
| 16789 | { |
| 16790 | eval "$1+=\$2" |
| 16791 | } |
| 16792 | _LT_EOF |
| 16793 | ;; |
| 16794 | *) |
| 16795 | cat << \_LT_EOF >> "$cfgfile" |
| 16796 | |
| 16797 | # func_append var value |
| 16798 | # Append VALUE to the end of shell variable VAR. |
| 16799 | func_append () |
| 16800 | { |
| 16801 | eval "$1=\$$1\$2" |
| 16802 | } |
| 16803 | |
| 16804 | _LT_EOF |
| 16805 | ;; |
| 16806 | esac |
| 16807 | |
| 16808 | |
| 16809 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 16810 | || (rm -f "$cfgfile"; exit 1) |
| 16811 | |
| 16812 | mv -f "$cfgfile" "$ofile" || |
| 16813 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 16814 | chmod +x "$ofile" |
| 16815 | |
| 16816 | |
| 16817 | cat <<_LT_EOF >> "$ofile" |
| 16818 | |
| 16819 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 16820 | |
| 16821 | # The linker used to build libraries. |
| 16822 | LD=$lt_LD_CXX |
| 16823 | |
| 16824 | # Commands used to build an old-style archive. |
| 16825 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 16826 | |
| 16827 | # A language specific compiler. |
| 16828 | CC=$lt_compiler_CXX |
| 16829 | |
| 16830 | # Is the compiler the GNU compiler? |
| 16831 | with_gcc=$GCC_CXX |
| 16832 | |
| 16833 | # Compiler flag to turn off builtin functions. |
| 16834 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 16835 | |
| 16836 | # How to pass a linker flag through the compiler. |
| 16837 | wl=$lt_lt_prog_compiler_wl_CXX |
| 16838 | |
| 16839 | # Additional compiler flags for building library objects. |
| 16840 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 16841 | |
| 16842 | # Compiler flag to prevent dynamic linking. |
| 16843 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 16844 | |
| 16845 | # Does compiler simultaneously support -c and -o options? |
| 16846 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 16847 | |
| 16848 | # Whether or not to add -lc for building shared libraries. |
| 16849 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 16850 | |
| 16851 | # Whether or not to disallow shared libs when runtime libs are static. |
| 16852 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 16853 | |
| 16854 | # Compiler flag to allow reflexive dlopens. |
| 16855 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 16856 | |
| 16857 | # Compiler flag to generate shared objects directly from archives. |
| 16858 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 16859 | |
| 16860 | # Whether the compiler copes with passing no objects directly. |
| 16861 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 16862 | |
| 16863 | # Create an old-style archive from a shared archive. |
| 16864 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 16865 | |
| 16866 | # Create a temporary old-style archive to link instead of a shared archive. |
| 16867 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 16868 | |
| 16869 | # Commands used to build a shared archive. |
| 16870 | archive_cmds=$lt_archive_cmds_CXX |
| 16871 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 16872 | |
| 16873 | # Commands used to build a loadable module if different from building |
| 16874 | # a shared archive. |
| 16875 | module_cmds=$lt_module_cmds_CXX |
| 16876 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 16877 | |
| 16878 | # Whether we are building with GNU ld or not. |
| 16879 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 16880 | |
| 16881 | # Flag that allows shared libraries with undefined symbols to be built. |
| 16882 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 16883 | |
| 16884 | # Flag that enforces no undefined symbols. |
| 16885 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 16886 | |
| 16887 | # Flag to hardcode \$libdir into a binary during linking. |
| 16888 | # This must work even if \$libdir does not exist |
| 16889 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 16890 | |
| 16891 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 16892 | # during linking. This must work even if \$libdir does not exist. |
| 16893 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 16894 | |
| 16895 | # Whether we need a single "-rpath" flag with a separated argument. |
| 16896 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 16897 | |
| 16898 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16899 | # DIR into the resulting binary. |
| 16900 | hardcode_direct=$hardcode_direct_CXX |
| 16901 | |
| 16902 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 16903 | # DIR into the resulting binary and the resulting library dependency is |
| 16904 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 16905 | # library is relocated. |
| 16906 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 16907 | |
| 16908 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 16909 | # into the resulting binary. |
| 16910 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 16911 | |
| 16912 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 16913 | # into the resulting binary. |
| 16914 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 16915 | |
| 16916 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 16917 | # into the library and all subsequent libraries and executables linked |
| 16918 | # against it. |
| 16919 | hardcode_automatic=$hardcode_automatic_CXX |
| 16920 | |
| 16921 | # Set to yes if linker adds runtime paths of dependent libraries |
| 16922 | # to runtime path list. |
| 16923 | inherit_rpath=$inherit_rpath_CXX |
| 16924 | |
| 16925 | # Whether libtool must link a program against all its dependency libraries. |
| 16926 | link_all_deplibs=$link_all_deplibs_CXX |
| 16927 | |
| 16928 | # Fix the shell variable \$srcfile for the compiler. |
| 16929 | fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 16930 | |
| 16931 | # Set to "yes" if exported symbols are required. |
| 16932 | always_export_symbols=$always_export_symbols_CXX |
| 16933 | |
| 16934 | # The commands to list exported symbols. |
| 16935 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 16936 | |
| 16937 | # Symbols that should not be listed in the preloaded symbols. |
| 16938 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 16939 | |
| 16940 | # Symbols that must always be exported. |
| 16941 | include_expsyms=$lt_include_expsyms_CXX |
| 16942 | |
| 16943 | # Commands necessary for linking programs (against libraries) with templates. |
| 16944 | prelink_cmds=$lt_prelink_cmds_CXX |
| 16945 | |
| 16946 | # Specify filename containing input files. |
| 16947 | file_list_spec=$lt_file_list_spec_CXX |
| 16948 | |
| 16949 | # How to hardcode a shared library path into an executable. |
| 16950 | hardcode_action=$hardcode_action_CXX |
| 16951 | |
| 16952 | # The directories searched by this compiler when creating a shared library. |
| 16953 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 16954 | |
| 16955 | # Dependencies to place before and after the objects being linked to |
| 16956 | # create a shared library. |
| 16957 | predep_objects=$lt_predep_objects_CXX |
| 16958 | postdep_objects=$lt_postdep_objects_CXX |
| 16959 | predeps=$lt_predeps_CXX |
| 16960 | postdeps=$lt_postdeps_CXX |
| 16961 | |
| 16962 | # The library search path used internally by the compiler when linking |
| 16963 | # a shared library. |
| 16964 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 16965 | |
| 16966 | # ### END LIBTOOL TAG CONFIG: CXX |
| 16967 | _LT_EOF |
| 16968 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16969 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16970 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16971 | esac |
| 16972 | done # for ac_tag |
| 16973 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16974 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16975 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16976 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16977 | ac_clean_files=$ac_clean_files_save |
| 16978 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16979 | test $ac_write_fail = 0 || |
| 16980 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 16981 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16982 | |
| 16983 | # configure is writing to config.log, and then calls config.status. |
| 16984 | # config.status does its own redirection, appending to config.log. |
| 16985 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 16986 | # by configure, so config.status won't be able to write to it; its |
| 16987 | # output is simply discarded. So we exec the FD to /dev/null, |
| 16988 | # effectively closing config.log, so it can be properly (re)opened and |
| 16989 | # appended to by config.status. When coming back to configure, we |
| 16990 | # need to make the FD available again. |
| 16991 | if test "$no_create" != yes; then |
| 16992 | ac_cs_success=: |
| 16993 | ac_config_status_args= |
| 16994 | test "$silent" = yes && |
| 16995 | ac_config_status_args="$ac_config_status_args --quiet" |
| 16996 | exec 5>/dev/null |
| 16997 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 16998 | exec 5>>config.log |
| 16999 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17000 | # would make configure fail if this is the last instruction. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17001 | $ac_cs_success || as_fn_exit $? |
| 17002 | fi |
| 17003 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17004 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17005 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17006 | fi |
| 17007 | |