bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65 for breakpad 0.1. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <opensource@google.com>. |
| 6 | # |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 10 | # Inc. |
| 11 | # |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 18 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 22 | emulate sh |
| 23 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 27 | setopt NO_GLOB_SUBST |
| 28 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 34 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 35 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 36 | |
| 37 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
| 62 | case $arg in #( |
| 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 75 | |
| 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 83 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 84 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 94 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 95 | *[\\/]* ) as_myself=$0 ;; |
| 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 97 | for as_dir in $PATH |
| 98 | do |
| 99 | IFS=$as_save_IFS |
| 100 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 101 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 102 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 103 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 104 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 105 | ;; |
| 106 | esac |
| 107 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 108 | # in which case we are not to be found in the path. |
| 109 | if test "x$as_myself" = x; then |
| 110 | as_myself=$0 |
| 111 | fi |
| 112 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 113 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 114 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 115 | fi |
| 116 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 117 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 118 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 119 | # suppresses any "Segmentation fault" message there. '((' could |
| 120 | # trigger a bug in pdksh 5.2.14. |
| 121 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 122 | do eval test x\${$as_var+set} = xset \ |
| 123 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 124 | done |
| 125 | PS1='$ ' |
| 126 | PS2='> ' |
| 127 | PS4='+ ' |
| 128 | |
| 129 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 130 | LC_ALL=C |
| 131 | export LC_ALL |
| 132 | LANGUAGE=C |
| 133 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 134 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 135 | # CDPATH. |
| 136 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 137 | |
| 138 | if test "x$CONFIG_SHELL" = x; then |
| 139 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 140 | emulate sh |
| 141 | NULLCMD=: |
| 142 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 143 | # is contrary to our usage. Disable this feature. |
| 144 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 145 | setopt NO_GLOB_SUBST |
| 146 | else |
| 147 | case \`(set -o) 2>/dev/null\` in #( |
| 148 | *posix*) : |
| 149 | set -o posix ;; #( |
| 150 | *) : |
| 151 | ;; |
| 152 | esac |
| 153 | fi |
| 154 | " |
| 155 | as_required="as_fn_return () { (exit \$1); } |
| 156 | as_fn_success () { as_fn_return 0; } |
| 157 | as_fn_failure () { as_fn_return 1; } |
| 158 | as_fn_ret_success () { return 0; } |
| 159 | as_fn_ret_failure () { return 1; } |
| 160 | |
| 161 | exitcode=0 |
| 162 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 163 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 164 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 165 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 166 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 167 | |
| 168 | else |
| 169 | exitcode=1; echo positional parameters were not saved. |
| 170 | fi |
| 171 | test x\$exitcode = x0 || exit 1" |
| 172 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 173 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 174 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 175 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 176 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 177 | if (eval "$as_required") 2>/dev/null; then : |
| 178 | as_have_required=yes |
| 179 | else |
| 180 | as_have_required=no |
| 181 | fi |
| 182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 183 | |
| 184 | else |
| 185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 186 | as_found=false |
| 187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 188 | do |
| 189 | IFS=$as_save_IFS |
| 190 | test -z "$as_dir" && as_dir=. |
| 191 | as_found=: |
| 192 | case $as_dir in #( |
| 193 | /*) |
| 194 | for as_base in sh bash ksh sh5; do |
| 195 | # Try only shells that exist, to save several forks. |
| 196 | as_shell=$as_dir/$as_base |
| 197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | break 2 |
| 202 | fi |
| 203 | fi |
| 204 | done;; |
| 205 | esac |
| 206 | as_found=false |
| 207 | done |
| 208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 210 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 211 | fi; } |
| 212 | IFS=$as_save_IFS |
| 213 | |
| 214 | |
| 215 | if test "x$CONFIG_SHELL" != x; then : |
| 216 | # We cannot yet assume a decent shell, so we have to provide a |
| 217 | # neutralization value for shells without unset; and this also |
| 218 | # works around shells that cannot unset nonexistent variables. |
| 219 | BASH_ENV=/dev/null |
| 220 | ENV=/dev/null |
| 221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 222 | export CONFIG_SHELL |
| 223 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 224 | fi |
| 225 | |
| 226 | if test x$as_have_required = xno; then : |
| 227 | $as_echo "$0: This script requires a shell more modern than all" |
| 228 | $as_echo "$0: the shells that I found on your system." |
| 229 | if test x${ZSH_VERSION+set} = xset ; then |
| 230 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 231 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 232 | else |
| 233 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 234 | $0: opensource@google.com about your system, including any |
| 235 | $0: error possibly output before this message. Then install |
| 236 | $0: a modern shell, or manually run the script under such a |
| 237 | $0: shell if you do have one." |
| 238 | fi |
| 239 | exit 1 |
| 240 | fi |
| 241 | fi |
| 242 | fi |
| 243 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 244 | export SHELL |
| 245 | # Unset more variables known to interfere with behavior of common tools. |
| 246 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 247 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 248 | |
| 249 | ## --------------------- ## |
| 250 | ## M4sh Shell Functions. ## |
| 251 | ## --------------------- ## |
| 252 | # as_fn_unset VAR |
| 253 | # --------------- |
| 254 | # Portably unset VAR. |
| 255 | as_fn_unset () |
| 256 | { |
| 257 | { eval $1=; unset $1;} |
| 258 | } |
| 259 | as_unset=as_fn_unset |
| 260 | |
| 261 | # as_fn_set_status STATUS |
| 262 | # ----------------------- |
| 263 | # Set $? to STATUS, without forking. |
| 264 | as_fn_set_status () |
| 265 | { |
| 266 | return $1 |
| 267 | } # as_fn_set_status |
| 268 | |
| 269 | # as_fn_exit STATUS |
| 270 | # ----------------- |
| 271 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 272 | as_fn_exit () |
| 273 | { |
| 274 | set +e |
| 275 | as_fn_set_status $1 |
| 276 | exit $1 |
| 277 | } # as_fn_exit |
| 278 | |
| 279 | # as_fn_mkdir_p |
| 280 | # ------------- |
| 281 | # Create "$as_dir" as a directory, including parents if necessary. |
| 282 | as_fn_mkdir_p () |
| 283 | { |
| 284 | |
| 285 | case $as_dir in #( |
| 286 | -*) as_dir=./$as_dir;; |
| 287 | esac |
| 288 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 289 | as_dirs= |
| 290 | while :; do |
| 291 | case $as_dir in #( |
| 292 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 293 | *) as_qdir=$as_dir;; |
| 294 | esac |
| 295 | as_dirs="'$as_qdir' $as_dirs" |
| 296 | as_dir=`$as_dirname -- "$as_dir" || |
| 297 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 298 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 299 | X"$as_dir" : 'X\(//\)$' \| \ |
| 300 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 301 | $as_echo X"$as_dir" | |
| 302 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 303 | s//\1/ |
| 304 | q |
| 305 | } |
| 306 | /^X\(\/\/\)[^/].*/{ |
| 307 | s//\1/ |
| 308 | q |
| 309 | } |
| 310 | /^X\(\/\/\)$/{ |
| 311 | s//\1/ |
| 312 | q |
| 313 | } |
| 314 | /^X\(\/\).*/{ |
| 315 | s//\1/ |
| 316 | q |
| 317 | } |
| 318 | s/.*/./; q'` |
| 319 | test -d "$as_dir" && break |
| 320 | done |
| 321 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 322 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 323 | |
| 324 | |
| 325 | } # as_fn_mkdir_p |
| 326 | # as_fn_append VAR VALUE |
| 327 | # ---------------------- |
| 328 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 329 | # advantage of any shell optimizations that allow amortized linear growth over |
| 330 | # repeated appends, instead of the typical quadratic growth present in naive |
| 331 | # implementations. |
| 332 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 333 | eval 'as_fn_append () |
| 334 | { |
| 335 | eval $1+=\$2 |
| 336 | }' |
| 337 | else |
| 338 | as_fn_append () |
| 339 | { |
| 340 | eval $1=\$$1\$2 |
| 341 | } |
| 342 | fi # as_fn_append |
| 343 | |
| 344 | # as_fn_arith ARG... |
| 345 | # ------------------ |
| 346 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 347 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 348 | # must be portable across $(()) and expr. |
| 349 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 350 | eval 'as_fn_arith () |
| 351 | { |
| 352 | as_val=$(( $* )) |
| 353 | }' |
| 354 | else |
| 355 | as_fn_arith () |
| 356 | { |
| 357 | as_val=`expr "$@" || test $? -eq 1` |
| 358 | } |
| 359 | fi # as_fn_arith |
| 360 | |
| 361 | |
| 362 | # as_fn_error ERROR [LINENO LOG_FD] |
| 363 | # --------------------------------- |
| 364 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 365 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 366 | # script with status $?, using 1 if that was 0. |
| 367 | as_fn_error () |
| 368 | { |
| 369 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 370 | if test "$3"; then |
| 371 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 372 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 373 | fi |
| 374 | $as_echo "$as_me: error: $1" >&2 |
| 375 | as_fn_exit $as_status |
| 376 | } # as_fn_error |
| 377 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 378 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 379 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 380 | as_expr=expr |
| 381 | else |
| 382 | as_expr=false |
| 383 | fi |
| 384 | |
| 385 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 386 | as_basename=basename |
| 387 | else |
| 388 | as_basename=false |
| 389 | fi |
| 390 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 391 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 392 | as_dirname=dirname |
| 393 | else |
| 394 | as_dirname=false |
| 395 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 396 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 397 | as_me=`$as_basename -- "$0" || |
| 398 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 399 | X"$0" : 'X\(//\)$' \| \ |
| 400 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 401 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 402 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 403 | s//\1/ |
| 404 | q |
| 405 | } |
| 406 | /^X\/\(\/\/\)$/{ |
| 407 | s//\1/ |
| 408 | q |
| 409 | } |
| 410 | /^X\/\(\/\).*/{ |
| 411 | s//\1/ |
| 412 | q |
| 413 | } |
| 414 | s/.*/./; q'` |
| 415 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 416 | # Avoid depending upon Character Ranges. |
| 417 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 418 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 419 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 420 | as_cr_digits='0123456789' |
| 421 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 422 | |
| 423 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 424 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 425 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 426 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 427 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 428 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 429 | sed -n ' |
| 430 | p |
| 431 | /[$]LINENO/= |
| 432 | ' <$as_myself | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 433 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 434 | s/[$]LINENO.*/&-/ |
| 435 | t lineno |
| 436 | b |
| 437 | :lineno |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 438 | N |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 439 | :loop |
| 440 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 441 | t loop |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 442 | s/-\n.*// |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 443 | ' >$as_me.lineno && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 444 | chmod +x "$as_me.lineno" || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 445 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 446 | |
| 447 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 448 | # (the dirname of $[0] is not the place where we might find the |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 449 | # original and so on. Autoconf is especially sensitive to this). |
| 450 | . "./$as_me.lineno" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 451 | # Exit status is that of the last command. |
| 452 | exit |
| 453 | } |
| 454 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 455 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 456 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 457 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 458 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 459 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 460 | xy) ECHO_C='\c';; |
| 461 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 462 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 463 | esac;; |
| 464 | *) |
| 465 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 466 | esac |
| 467 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 468 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 469 | if test -d conf$$.dir; then |
| 470 | rm -f conf$$.dir/conf$$.file |
| 471 | else |
| 472 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 473 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 474 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 475 | if (echo >conf$$.file) 2>/dev/null; then |
| 476 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 477 | as_ln_s='ln -s' |
| 478 | # ... but there are two gotchas: |
| 479 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 480 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 481 | # In both cases, we have to default to `cp -p'. |
| 482 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 483 | as_ln_s='cp -p' |
| 484 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 485 | as_ln_s=ln |
| 486 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 487 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 488 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 489 | else |
| 490 | as_ln_s='cp -p' |
| 491 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 492 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 493 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 494 | |
| 495 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 496 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 497 | else |
| 498 | test -d ./-p && rmdir ./-p |
| 499 | as_mkdir_p=false |
| 500 | fi |
| 501 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 502 | if test -x / >/dev/null 2>&1; then |
| 503 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 504 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 505 | if ls -dL / >/dev/null 2>&1; then |
| 506 | as_ls_L_option=L |
| 507 | else |
| 508 | as_ls_L_option= |
| 509 | fi |
| 510 | as_test_x=' |
| 511 | eval sh -c '\'' |
| 512 | if test -d "$1"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 513 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 514 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 515 | case $1 in #( |
| 516 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 517 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 518 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 519 | ???[sx]*):;;*)false;;esac;fi |
| 520 | '\'' sh |
| 521 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 522 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 523 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 524 | |
| 525 | # Sed expression to map a string onto a valid CPP name. |
| 526 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | # Sed expression to map a string onto a valid variable name. |
| 529 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 530 | |
| 531 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 532 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 533 | # Check that we are running under the correct shell. |
| 534 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 535 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 536 | case X$lt_ECHO in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 537 | X*--fallback-echo) |
| 538 | # Remove one level of quotation (which was required for Make). |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 539 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 540 | ;; |
| 541 | esac |
| 542 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 543 | ECHO=${lt_ECHO-echo} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 544 | if test "X$1" = X--no-reexec; then |
| 545 | # Discard the --no-reexec flag, and continue. |
| 546 | shift |
| 547 | elif test "X$1" = X--fallback-echo; then |
| 548 | # Avoid inline document here, it may be left over |
| 549 | : |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 550 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then |
| 551 | # Yippee, $ECHO works! |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 552 | : |
| 553 | else |
| 554 | # Restart under the correct shell. |
| 555 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
| 556 | fi |
| 557 | |
| 558 | if test "X$1" = X--fallback-echo; then |
| 559 | # used as fallback echo |
| 560 | shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 561 | cat <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 562 | $* |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 563 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 564 | exit 0 |
| 565 | fi |
| 566 | |
| 567 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 568 | # if CDPATH is set. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 569 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 570 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 571 | if test -z "$lt_ECHO"; then |
| 572 | if test "X${echo_test_string+set}" != Xset; then |
| 573 | # find a string as large as possible, as long as the shell can cope with it |
| 574 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
| 575 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
| 576 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && |
| 577 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null |
| 578 | then |
| 579 | break |
| 580 | fi |
| 581 | done |
| 582 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 583 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 584 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 585 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 586 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 587 | : |
| 588 | else |
| 589 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
| 590 | # backslashes. This makes it impossible to quote backslashes using |
| 591 | # echo "$something" | sed 's/\\/\\\\/g' |
| 592 | # |
| 593 | # So, first we look for a working echo in the user's PATH. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 594 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 595 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 596 | for dir in $PATH /usr/ucb; do |
| 597 | IFS="$lt_save_ifs" |
| 598 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
| 599 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
| 600 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
| 601 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 602 | ECHO="$dir/echo" |
| 603 | break |
| 604 | fi |
| 605 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 606 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 607 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 608 | if test "X$ECHO" = Xecho; then |
| 609 | # We didn't find a better echo, so look for alternatives. |
| 610 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && |
| 611 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && |
| 612 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 613 | # This shell has a builtin print -r that does the trick. |
| 614 | ECHO='print -r' |
| 615 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && |
| 616 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
| 617 | # If we have ksh, try running configure again with it. |
| 618 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
| 619 | export ORIGINAL_CONFIG_SHELL |
| 620 | CONFIG_SHELL=/bin/ksh |
| 621 | export CONFIG_SHELL |
| 622 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 623 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 624 | # Try using printf. |
| 625 | ECHO='printf %s\n' |
| 626 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && |
| 627 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && |
| 628 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 629 | # Cool, printf works |
| 630 | : |
| 631 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 632 | test "X$echo_testing_string" = 'X\t' && |
| 633 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 634 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 635 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
| 636 | export CONFIG_SHELL |
| 637 | SHELL="$CONFIG_SHELL" |
| 638 | export SHELL |
| 639 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 640 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
| 641 | test "X$echo_testing_string" = 'X\t' && |
| 642 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
| 643 | test "X$echo_testing_string" = "X$echo_test_string"; then |
| 644 | ECHO="$CONFIG_SHELL $0 --fallback-echo" |
| 645 | else |
| 646 | # maybe with a smaller string... |
| 647 | prev=: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 648 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 649 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
| 650 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null |
| 651 | then |
| 652 | break |
| 653 | fi |
| 654 | prev="$cmd" |
| 655 | done |
| 656 | |
| 657 | if test "$prev" != 'sed 50q "$0"'; then |
| 658 | echo_test_string=`eval $prev` |
| 659 | export echo_test_string |
| 660 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
| 661 | else |
| 662 | # Oops. We lost completely, so just stick with echo. |
| 663 | ECHO=echo |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 664 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 665 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 666 | fi |
| 667 | fi |
| 668 | fi |
| 669 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 670 | |
| 671 | # Copy echo and quote the copy suitably for passing to libtool from |
| 672 | # the Makefile, instead of quoting the original, which is used later. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 673 | lt_ECHO=$ECHO |
| 674 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
| 675 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 676 | fi |
| 677 | |
| 678 | |
| 679 | |
| 680 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 681 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 682 | exec 6>&1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 683 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 684 | # Name of the host. |
| 685 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 686 | # so uname gets run too. |
| 687 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 688 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 689 | # |
| 690 | # Initializations. |
| 691 | # |
| 692 | ac_default_prefix=/usr/local |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 693 | ac_clean_files= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 694 | ac_config_libobj_dir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 695 | LIBOBJS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 696 | cross_compiling=no |
| 697 | subdirs= |
| 698 | MFLAGS= |
| 699 | MAKEFLAGS= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 700 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 701 | # Identity of this package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 702 | PACKAGE_NAME='breakpad' |
| 703 | PACKAGE_TARNAME='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 704 | PACKAGE_VERSION='0.1' |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 705 | PACKAGE_STRING='breakpad 0.1' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 706 | PACKAGE_BUGREPORT='opensource@google.com' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 707 | PACKAGE_URL='' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 708 | |
| 709 | ac_unique_file="README" |
| 710 | # Factoring default headers for most tests. |
| 711 | ac_includes_default="\ |
| 712 | #include <stdio.h> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 713 | #ifdef HAVE_SYS_TYPES_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 714 | # include <sys/types.h> |
| 715 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 716 | #ifdef HAVE_SYS_STAT_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 717 | # include <sys/stat.h> |
| 718 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 719 | #ifdef STDC_HEADERS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 720 | # include <stdlib.h> |
| 721 | # include <stddef.h> |
| 722 | #else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 723 | # ifdef HAVE_STDLIB_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 724 | # include <stdlib.h> |
| 725 | # endif |
| 726 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 727 | #ifdef HAVE_STRING_H |
| 728 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 729 | # include <memory.h> |
| 730 | # endif |
| 731 | # include <string.h> |
| 732 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 733 | #ifdef HAVE_STRINGS_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 734 | # include <strings.h> |
| 735 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 736 | #ifdef HAVE_INTTYPES_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 737 | # include <inttypes.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 738 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 739 | #ifdef HAVE_STDINT_H |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 740 | # include <stdint.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 741 | #endif |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 742 | #ifdef HAVE_UNISTD_H |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 743 | # include <unistd.h> |
| 744 | #endif" |
| 745 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 746 | ac_subst_vars='am__EXEEXT_FALSE |
| 747 | am__EXEEXT_TRUE |
| 748 | LTLIBOBJS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 749 | LIBOBJS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 750 | SELFTEST_FALSE |
| 751 | SELFTEST_TRUE |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 752 | PTHREAD_CFLAGS |
| 753 | PTHREAD_LIBS |
| 754 | PTHREAD_CC |
| 755 | ax_pthread_config |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 756 | LIBTOOL_DEPS |
| 757 | CXXCPP |
| 758 | OTOOL64 |
| 759 | OTOOL |
| 760 | LIPO |
| 761 | NMEDIT |
| 762 | DSYMUTIL |
| 763 | lt_ECHO |
| 764 | RANLIB |
| 765 | AR |
| 766 | OBJDUMP |
| 767 | LN_S |
| 768 | NM |
| 769 | ac_ct_DUMPBIN |
| 770 | DUMPBIN |
| 771 | LD |
| 772 | FGREP |
| 773 | EGREP |
| 774 | GREP |
| 775 | SED |
| 776 | host_os |
| 777 | host_vendor |
| 778 | host_cpu |
| 779 | host |
| 780 | build_os |
| 781 | build_vendor |
| 782 | build_cpu |
| 783 | build |
| 784 | LIBTOOL |
| 785 | am__fastdepCXX_FALSE |
| 786 | am__fastdepCXX_TRUE |
| 787 | CXXDEPMODE |
| 788 | ac_ct_CXX |
| 789 | CXXFLAGS |
| 790 | CXX |
| 791 | CPP |
| 792 | am__fastdepCC_FALSE |
| 793 | am__fastdepCC_TRUE |
| 794 | CCDEPMODE |
| 795 | AMDEPBACKSLASH |
| 796 | AMDEP_FALSE |
| 797 | AMDEP_TRUE |
| 798 | am__quote |
| 799 | am__include |
| 800 | DEPDIR |
| 801 | OBJEXT |
| 802 | EXEEXT |
| 803 | ac_ct_CC |
| 804 | CPPFLAGS |
| 805 | LDFLAGS |
| 806 | CFLAGS |
| 807 | CC |
| 808 | am__untar |
| 809 | am__tar |
| 810 | AMTAR |
| 811 | am__leading_dot |
| 812 | SET_MAKE |
| 813 | AWK |
| 814 | mkdir_p |
| 815 | MKDIR_P |
| 816 | INSTALL_STRIP_PROGRAM |
| 817 | STRIP |
| 818 | install_sh |
| 819 | MAKEINFO |
| 820 | AUTOHEADER |
| 821 | AUTOMAKE |
| 822 | AUTOCONF |
| 823 | ACLOCAL |
| 824 | VERSION |
| 825 | PACKAGE |
| 826 | CYGPATH_W |
| 827 | am__isrc |
| 828 | INSTALL_DATA |
| 829 | INSTALL_SCRIPT |
| 830 | INSTALL_PROGRAM |
| 831 | target_alias |
| 832 | host_alias |
| 833 | build_alias |
| 834 | LIBS |
| 835 | ECHO_T |
| 836 | ECHO_N |
| 837 | ECHO_C |
| 838 | DEFS |
| 839 | mandir |
| 840 | localedir |
| 841 | libdir |
| 842 | psdir |
| 843 | pdfdir |
| 844 | dvidir |
| 845 | htmldir |
| 846 | infodir |
| 847 | docdir |
| 848 | oldincludedir |
| 849 | includedir |
| 850 | localstatedir |
| 851 | sharedstatedir |
| 852 | sysconfdir |
| 853 | datadir |
| 854 | datarootdir |
| 855 | libexecdir |
| 856 | sbindir |
| 857 | bindir |
| 858 | program_transform_name |
| 859 | prefix |
| 860 | exec_prefix |
| 861 | PACKAGE_URL |
| 862 | PACKAGE_BUGREPORT |
| 863 | PACKAGE_STRING |
| 864 | PACKAGE_VERSION |
| 865 | PACKAGE_TARNAME |
| 866 | PACKAGE_NAME |
| 867 | PATH_SEPARATOR |
| 868 | SHELL' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 869 | ac_subst_files='' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 870 | ac_user_opts=' |
| 871 | enable_option_checking |
| 872 | enable_dependency_tracking |
| 873 | enable_shared |
| 874 | enable_static |
| 875 | with_pic |
| 876 | enable_fast_install |
| 877 | with_gnu_ld |
| 878 | enable_libtool_lock |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 879 | enable_m32 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 880 | enable_selftest |
| 881 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 882 | ac_precious_vars='build_alias |
| 883 | host_alias |
| 884 | target_alias |
| 885 | CC |
| 886 | CFLAGS |
| 887 | LDFLAGS |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 888 | LIBS |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 889 | CPPFLAGS |
| 890 | CPP |
| 891 | CXX |
| 892 | CXXFLAGS |
| 893 | CCC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 894 | CXXCPP' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 895 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 896 | |
| 897 | # Initialize some variables set by options. |
| 898 | ac_init_help= |
| 899 | ac_init_version=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 900 | ac_unrecognized_opts= |
| 901 | ac_unrecognized_sep= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 902 | # The variables have the same names as the options, with |
| 903 | # dashes changed to underlines. |
| 904 | cache_file=/dev/null |
| 905 | exec_prefix=NONE |
| 906 | no_create= |
| 907 | no_recursion= |
| 908 | prefix=NONE |
| 909 | program_prefix=NONE |
| 910 | program_suffix=NONE |
| 911 | program_transform_name=s,x,x, |
| 912 | silent= |
| 913 | site= |
| 914 | srcdir= |
| 915 | verbose= |
| 916 | x_includes=NONE |
| 917 | x_libraries=NONE |
| 918 | |
| 919 | # Installation directory options. |
| 920 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 921 | # and all the variables that are supposed to be based on exec_prefix |
| 922 | # by default will actually change. |
| 923 | # Use braces instead of parens because sh, perl, etc. also accept them. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 924 | # (The list follows the same order as the GNU Coding Standards.) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 925 | bindir='${exec_prefix}/bin' |
| 926 | sbindir='${exec_prefix}/sbin' |
| 927 | libexecdir='${exec_prefix}/libexec' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 928 | datarootdir='${prefix}/share' |
| 929 | datadir='${datarootdir}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 930 | sysconfdir='${prefix}/etc' |
| 931 | sharedstatedir='${prefix}/com' |
| 932 | localstatedir='${prefix}/var' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 933 | includedir='${prefix}/include' |
| 934 | oldincludedir='/usr/include' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 935 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 936 | infodir='${datarootdir}/info' |
| 937 | htmldir='${docdir}' |
| 938 | dvidir='${docdir}' |
| 939 | pdfdir='${docdir}' |
| 940 | psdir='${docdir}' |
| 941 | libdir='${exec_prefix}/lib' |
| 942 | localedir='${datarootdir}/locale' |
| 943 | mandir='${datarootdir}/man' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 944 | |
| 945 | ac_prev= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 946 | ac_dashdash= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 947 | for ac_option |
| 948 | do |
| 949 | # If the previous option needs an argument, assign it. |
| 950 | if test -n "$ac_prev"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 951 | eval $ac_prev=\$ac_option |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 952 | ac_prev= |
| 953 | continue |
| 954 | fi |
| 955 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 956 | case $ac_option in |
| 957 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 958 | *) ac_optarg=yes ;; |
| 959 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 960 | |
| 961 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 962 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 963 | case $ac_dashdash$ac_option in |
| 964 | --) |
| 965 | ac_dashdash=yes ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 966 | |
| 967 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 968 | ac_prev=bindir ;; |
| 969 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 970 | bindir=$ac_optarg ;; |
| 971 | |
| 972 | -build | --build | --buil | --bui | --bu) |
| 973 | ac_prev=build_alias ;; |
| 974 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 975 | build_alias=$ac_optarg ;; |
| 976 | |
| 977 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 978 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 979 | ac_prev=cache_file ;; |
| 980 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 981 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 982 | cache_file=$ac_optarg ;; |
| 983 | |
| 984 | --config-cache | -C) |
| 985 | cache_file=config.cache ;; |
| 986 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 987 | -datadir | --datadir | --datadi | --datad) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 988 | ac_prev=datadir ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 989 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 990 | datadir=$ac_optarg ;; |
| 991 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 992 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 993 | | --dataroo | --dataro | --datar) |
| 994 | ac_prev=datarootdir ;; |
| 995 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 996 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 997 | datarootdir=$ac_optarg ;; |
| 998 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 999 | -disable-* | --disable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1000 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1001 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1002 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1003 | as_fn_error "invalid feature name: $ac_useropt" |
| 1004 | ac_useropt_orig=$ac_useropt |
| 1005 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1006 | case $ac_user_opts in |
| 1007 | *" |
| 1008 | "enable_$ac_useropt" |
| 1009 | "*) ;; |
| 1010 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1011 | ac_unrecognized_sep=', ';; |
| 1012 | esac |
| 1013 | eval enable_$ac_useropt=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1014 | |
| 1015 | -docdir | --docdir | --docdi | --doc | --do) |
| 1016 | ac_prev=docdir ;; |
| 1017 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1018 | docdir=$ac_optarg ;; |
| 1019 | |
| 1020 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1021 | ac_prev=dvidir ;; |
| 1022 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1023 | dvidir=$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1024 | |
| 1025 | -enable-* | --enable-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1026 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1027 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1028 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1029 | as_fn_error "invalid feature name: $ac_useropt" |
| 1030 | ac_useropt_orig=$ac_useropt |
| 1031 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1032 | case $ac_user_opts in |
| 1033 | *" |
| 1034 | "enable_$ac_useropt" |
| 1035 | "*) ;; |
| 1036 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1037 | ac_unrecognized_sep=', ';; |
| 1038 | esac |
| 1039 | eval enable_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1040 | |
| 1041 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1042 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1043 | | --exec | --exe | --ex) |
| 1044 | ac_prev=exec_prefix ;; |
| 1045 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1046 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1047 | | --exec=* | --exe=* | --ex=*) |
| 1048 | exec_prefix=$ac_optarg ;; |
| 1049 | |
| 1050 | -gas | --gas | --ga | --g) |
| 1051 | # Obsolete; use --with-gas. |
| 1052 | with_gas=yes ;; |
| 1053 | |
| 1054 | -help | --help | --hel | --he | -h) |
| 1055 | ac_init_help=long ;; |
| 1056 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1057 | ac_init_help=recursive ;; |
| 1058 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1059 | ac_init_help=short ;; |
| 1060 | |
| 1061 | -host | --host | --hos | --ho) |
| 1062 | ac_prev=host_alias ;; |
| 1063 | -host=* | --host=* | --hos=* | --ho=*) |
| 1064 | host_alias=$ac_optarg ;; |
| 1065 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1066 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1067 | ac_prev=htmldir ;; |
| 1068 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1069 | | --ht=*) |
| 1070 | htmldir=$ac_optarg ;; |
| 1071 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1072 | -includedir | --includedir | --includedi | --included | --include \ |
| 1073 | | --includ | --inclu | --incl | --inc) |
| 1074 | ac_prev=includedir ;; |
| 1075 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1076 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1077 | includedir=$ac_optarg ;; |
| 1078 | |
| 1079 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1080 | ac_prev=infodir ;; |
| 1081 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1082 | infodir=$ac_optarg ;; |
| 1083 | |
| 1084 | -libdir | --libdir | --libdi | --libd) |
| 1085 | ac_prev=libdir ;; |
| 1086 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1087 | libdir=$ac_optarg ;; |
| 1088 | |
| 1089 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1090 | | --libexe | --libex | --libe) |
| 1091 | ac_prev=libexecdir ;; |
| 1092 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1093 | | --libexe=* | --libex=* | --libe=*) |
| 1094 | libexecdir=$ac_optarg ;; |
| 1095 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1096 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1097 | ac_prev=localedir ;; |
| 1098 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1099 | localedir=$ac_optarg ;; |
| 1100 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1101 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1102 | | --localstate | --localstat | --localsta | --localst | --locals) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1103 | ac_prev=localstatedir ;; |
| 1104 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1105 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1106 | localstatedir=$ac_optarg ;; |
| 1107 | |
| 1108 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1109 | ac_prev=mandir ;; |
| 1110 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1111 | mandir=$ac_optarg ;; |
| 1112 | |
| 1113 | -nfp | --nfp | --nf) |
| 1114 | # Obsolete; use --without-fp. |
| 1115 | with_fp=no ;; |
| 1116 | |
| 1117 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1118 | | --no-cr | --no-c | -n) |
| 1119 | no_create=yes ;; |
| 1120 | |
| 1121 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1122 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1123 | no_recursion=yes ;; |
| 1124 | |
| 1125 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1126 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1127 | | --oldin | --oldi | --old | --ol | --o) |
| 1128 | ac_prev=oldincludedir ;; |
| 1129 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1130 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1131 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1132 | oldincludedir=$ac_optarg ;; |
| 1133 | |
| 1134 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1135 | ac_prev=prefix ;; |
| 1136 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1137 | prefix=$ac_optarg ;; |
| 1138 | |
| 1139 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1140 | | --program-pre | --program-pr | --program-p) |
| 1141 | ac_prev=program_prefix ;; |
| 1142 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1143 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1144 | program_prefix=$ac_optarg ;; |
| 1145 | |
| 1146 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1147 | | --program-suf | --program-su | --program-s) |
| 1148 | ac_prev=program_suffix ;; |
| 1149 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1150 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1151 | program_suffix=$ac_optarg ;; |
| 1152 | |
| 1153 | -program-transform-name | --program-transform-name \ |
| 1154 | | --program-transform-nam | --program-transform-na \ |
| 1155 | | --program-transform-n | --program-transform- \ |
| 1156 | | --program-transform | --program-transfor \ |
| 1157 | | --program-transfo | --program-transf \ |
| 1158 | | --program-trans | --program-tran \ |
| 1159 | | --progr-tra | --program-tr | --program-t) |
| 1160 | ac_prev=program_transform_name ;; |
| 1161 | -program-transform-name=* | --program-transform-name=* \ |
| 1162 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1163 | | --program-transform-n=* | --program-transform-=* \ |
| 1164 | | --program-transform=* | --program-transfor=* \ |
| 1165 | | --program-transfo=* | --program-transf=* \ |
| 1166 | | --program-trans=* | --program-tran=* \ |
| 1167 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1168 | program_transform_name=$ac_optarg ;; |
| 1169 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1170 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1171 | ac_prev=pdfdir ;; |
| 1172 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1173 | pdfdir=$ac_optarg ;; |
| 1174 | |
| 1175 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1176 | ac_prev=psdir ;; |
| 1177 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1178 | psdir=$ac_optarg ;; |
| 1179 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1180 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1181 | | -silent | --silent | --silen | --sile | --sil) |
| 1182 | silent=yes ;; |
| 1183 | |
| 1184 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1185 | ac_prev=sbindir ;; |
| 1186 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1187 | | --sbi=* | --sb=*) |
| 1188 | sbindir=$ac_optarg ;; |
| 1189 | |
| 1190 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1191 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1192 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1193 | | --sha | --sh) |
| 1194 | ac_prev=sharedstatedir ;; |
| 1195 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1196 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1197 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1198 | | --sha=* | --sh=*) |
| 1199 | sharedstatedir=$ac_optarg ;; |
| 1200 | |
| 1201 | -site | --site | --sit) |
| 1202 | ac_prev=site ;; |
| 1203 | -site=* | --site=* | --sit=*) |
| 1204 | site=$ac_optarg ;; |
| 1205 | |
| 1206 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1207 | ac_prev=srcdir ;; |
| 1208 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1209 | srcdir=$ac_optarg ;; |
| 1210 | |
| 1211 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1212 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1213 | ac_prev=sysconfdir ;; |
| 1214 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1215 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1216 | sysconfdir=$ac_optarg ;; |
| 1217 | |
| 1218 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1219 | ac_prev=target_alias ;; |
| 1220 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1221 | target_alias=$ac_optarg ;; |
| 1222 | |
| 1223 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1224 | verbose=yes ;; |
| 1225 | |
| 1226 | -version | --version | --versio | --versi | --vers | -V) |
| 1227 | ac_init_version=: ;; |
| 1228 | |
| 1229 | -with-* | --with-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1230 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1231 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1232 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1233 | as_fn_error "invalid package name: $ac_useropt" |
| 1234 | ac_useropt_orig=$ac_useropt |
| 1235 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1236 | case $ac_user_opts in |
| 1237 | *" |
| 1238 | "with_$ac_useropt" |
| 1239 | "*) ;; |
| 1240 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1241 | ac_unrecognized_sep=', ';; |
| 1242 | esac |
| 1243 | eval with_$ac_useropt=\$ac_optarg ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1244 | |
| 1245 | -without-* | --without-*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1246 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1247 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1248 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1249 | as_fn_error "invalid package name: $ac_useropt" |
| 1250 | ac_useropt_orig=$ac_useropt |
| 1251 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1252 | case $ac_user_opts in |
| 1253 | *" |
| 1254 | "with_$ac_useropt" |
| 1255 | "*) ;; |
| 1256 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1257 | ac_unrecognized_sep=', ';; |
| 1258 | esac |
| 1259 | eval with_$ac_useropt=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1260 | |
| 1261 | --x) |
| 1262 | # Obsolete; use --with-x. |
| 1263 | with_x=yes ;; |
| 1264 | |
| 1265 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1266 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1267 | ac_prev=x_includes ;; |
| 1268 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1269 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1270 | x_includes=$ac_optarg ;; |
| 1271 | |
| 1272 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1273 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1274 | ac_prev=x_libraries ;; |
| 1275 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1276 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1277 | x_libraries=$ac_optarg ;; |
| 1278 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1279 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1280 | Try \`$0 --help' for more information." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1281 | ;; |
| 1282 | |
| 1283 | *=*) |
| 1284 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1285 | # Reject names that are not valid shell variable names. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1286 | case $ac_envvar in #( |
| 1287 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1288 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1289 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1290 | eval $ac_envvar=\$ac_optarg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1291 | export $ac_envvar ;; |
| 1292 | |
| 1293 | *) |
| 1294 | # FIXME: should be removed in autoconf 3.0. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1295 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1296 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1297 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1298 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1299 | ;; |
| 1300 | |
| 1301 | esac |
| 1302 | done |
| 1303 | |
| 1304 | if test -n "$ac_prev"; then |
| 1305 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1306 | as_fn_error "missing argument to $ac_option" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1307 | fi |
| 1308 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1309 | if test -n "$ac_unrecognized_opts"; then |
| 1310 | case $enable_option_checking in |
| 1311 | no) ;; |
| 1312 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1313 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1314 | esac |
| 1315 | fi |
| 1316 | |
| 1317 | # Check all directory arguments for consistency. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1318 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1319 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1320 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1321 | libdir localedir mandir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1322 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1323 | eval ac_val=\$$ac_var |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1324 | # Remove trailing slashes. |
| 1325 | case $ac_val in |
| 1326 | */ ) |
| 1327 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1328 | eval $ac_var=\$ac_val;; |
| 1329 | esac |
| 1330 | # Be sure to have absolute directory names. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1331 | case $ac_val in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1332 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1333 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1334 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1335 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1336 | done |
| 1337 | |
| 1338 | # There might be people who depend on the old broken behavior: `$host' |
| 1339 | # used to hold the argument of --host etc. |
| 1340 | # FIXME: To remove some day. |
| 1341 | build=$build_alias |
| 1342 | host=$host_alias |
| 1343 | target=$target_alias |
| 1344 | |
| 1345 | # FIXME: To remove some day. |
| 1346 | if test "x$host_alias" != x; then |
| 1347 | if test "x$build_alias" = x; then |
| 1348 | cross_compiling=maybe |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1349 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1350 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1351 | elif test "x$build_alias" != "x$host_alias"; then |
| 1352 | cross_compiling=yes |
| 1353 | fi |
| 1354 | fi |
| 1355 | |
| 1356 | ac_tool_prefix= |
| 1357 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1358 | |
| 1359 | test "$silent" = yes && exec 6>/dev/null |
| 1360 | |
| 1361 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1362 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1363 | ac_ls_di=`ls -di .` && |
| 1364 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1365 | as_fn_error "working directory cannot be determined" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1366 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1367 | as_fn_error "pwd does not report name of working directory" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1368 | |
| 1369 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1370 | # Find the source files, if location was not specified. |
| 1371 | if test -z "$srcdir"; then |
| 1372 | ac_srcdir_defaulted=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1373 | # Try the directory containing this script, then the parent directory. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1374 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1375 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1376 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1377 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1378 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1379 | $as_echo X"$as_myself" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1380 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1381 | s//\1/ |
| 1382 | q |
| 1383 | } |
| 1384 | /^X\(\/\/\)[^/].*/{ |
| 1385 | s//\1/ |
| 1386 | q |
| 1387 | } |
| 1388 | /^X\(\/\/\)$/{ |
| 1389 | s//\1/ |
| 1390 | q |
| 1391 | } |
| 1392 | /^X\(\/\).*/{ |
| 1393 | s//\1/ |
| 1394 | q |
| 1395 | } |
| 1396 | s/.*/./; q'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1397 | srcdir=$ac_confdir |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1398 | if test ! -r "$srcdir/$ac_unique_file"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1399 | srcdir=.. |
| 1400 | fi |
| 1401 | else |
| 1402 | ac_srcdir_defaulted=no |
| 1403 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1404 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1405 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1406 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1407 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1408 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1409 | ac_abs_confdir=`( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1410 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1411 | pwd)` |
| 1412 | # When building in place, set srcdir=. |
| 1413 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1414 | srcdir=. |
| 1415 | fi |
| 1416 | # Remove unnecessary trailing slashes from srcdir. |
| 1417 | # Double slashes in file names in object file debugging info |
| 1418 | # mess up M-x gdb in Emacs. |
| 1419 | case $srcdir in |
| 1420 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1421 | esac |
| 1422 | for ac_var in $ac_precious_vars; do |
| 1423 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1424 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1425 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1426 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1427 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1428 | |
| 1429 | # |
| 1430 | # Report the --help message. |
| 1431 | # |
| 1432 | if test "$ac_init_help" = "long"; then |
| 1433 | # Omit some internal or obsolete options to make the list less imposing. |
| 1434 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1435 | cat <<_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1436 | \`configure' configures breakpad 0.1 to adapt to many kinds of systems. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1437 | |
| 1438 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1439 | |
| 1440 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1441 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1442 | |
| 1443 | Defaults for the options are specified in brackets. |
| 1444 | |
| 1445 | Configuration: |
| 1446 | -h, --help display this help and exit |
| 1447 | --help=short display options specific to this package |
| 1448 | --help=recursive display the short help of all the included packages |
| 1449 | -V, --version display version information and exit |
| 1450 | -q, --quiet, --silent do not print \`checking...' messages |
| 1451 | --cache-file=FILE cache test results in FILE [disabled] |
| 1452 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1453 | -n, --no-create do not create output files |
| 1454 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1455 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1456 | Installation directories: |
| 1457 | --prefix=PREFIX install architecture-independent files in PREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1458 | [$ac_default_prefix] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1459 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1460 | [PREFIX] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1461 | |
| 1462 | By default, \`make install' will install all the files in |
| 1463 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1464 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1465 | for instance \`--prefix=\$HOME'. |
| 1466 | |
| 1467 | For better control, use the options below. |
| 1468 | |
| 1469 | Fine tuning of the installation directories: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1470 | --bindir=DIR user executables [EPREFIX/bin] |
| 1471 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1472 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1473 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1474 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1475 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1476 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1477 | --includedir=DIR C header files [PREFIX/include] |
| 1478 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1479 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1480 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1481 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1482 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1483 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1484 | --docdir=DIR documentation root [DATAROOTDIR/doc/breakpad] |
| 1485 | --htmldir=DIR html documentation [DOCDIR] |
| 1486 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1487 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1488 | --psdir=DIR ps documentation [DOCDIR] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1489 | _ACEOF |
| 1490 | |
| 1491 | cat <<\_ACEOF |
| 1492 | |
| 1493 | Program names: |
| 1494 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1495 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1496 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1497 | |
| 1498 | System types: |
| 1499 | --build=BUILD configure for building on BUILD [guessed] |
| 1500 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1501 | _ACEOF |
| 1502 | fi |
| 1503 | |
| 1504 | if test -n "$ac_init_help"; then |
| 1505 | case $ac_init_help in |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1506 | short | recursive ) echo "Configuration of breakpad 0.1:";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1507 | esac |
| 1508 | cat <<\_ACEOF |
| 1509 | |
| 1510 | Optional Features: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1511 | --disable-option-checking ignore unrecognized --enable/--with options |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1512 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1513 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1514 | --disable-dependency-tracking speeds up one-time build |
| 1515 | --enable-dependency-tracking do not reject slow dependency extractors |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1516 | --enable-shared[=PKGS] build shared libraries [default=yes] |
| 1517 | --enable-static[=PKGS] build static libraries [default=yes] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1518 | --enable-fast-install[=PKGS] |
| 1519 | optimize for fast installation [default=yes] |
| 1520 | --disable-libtool-lock avoid locking (might break parallel builds) |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 1521 | --enable-m32 Compile/build with -m32 (default is no) |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 1522 | --enable-selftest Run extra tests with "make check" (may conflict with |
| 1523 | optimizations) (default is no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1524 | |
| 1525 | Optional Packages: |
| 1526 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1527 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1528 | --with-pic try to use only PIC/non-PIC objects [default=use |
| 1529 | both] |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1530 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1531 | |
| 1532 | Some influential environment variables: |
| 1533 | CC C compiler command |
| 1534 | CFLAGS C compiler flags |
| 1535 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1536 | nonstandard directory <lib dir> |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 1537 | LIBS libraries to pass to the linker, e.g. -l<library> |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1538 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1539 | you have headers in a nonstandard directory <include dir> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1540 | CPP C preprocessor |
| 1541 | CXX C++ compiler command |
| 1542 | CXXFLAGS C++ compiler flags |
| 1543 | CXXCPP C++ preprocessor |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1544 | |
| 1545 | Use these variables to override the choices made by `configure' or to help |
| 1546 | it to find libraries and programs with nonstandard names/locations. |
| 1547 | |
| 1548 | Report bugs to <opensource@google.com>. |
| 1549 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1550 | ac_status=$? |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1551 | fi |
| 1552 | |
| 1553 | if test "$ac_init_help" = "recursive"; then |
| 1554 | # If there are subdirs, report their specific --help. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1555 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1556 | test -d "$ac_dir" || |
| 1557 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1558 | continue |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1559 | ac_builddir=. |
| 1560 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1561 | case "$ac_dir" in |
| 1562 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1563 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1564 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1565 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1566 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1567 | case $ac_top_builddir_sub in |
| 1568 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1569 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1570 | esac ;; |
| 1571 | esac |
| 1572 | ac_abs_top_builddir=$ac_pwd |
| 1573 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1574 | # for backward compatibility: |
| 1575 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1576 | |
| 1577 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1578 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1579 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1580 | ac_top_srcdir=$ac_top_builddir_sub |
| 1581 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1582 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1583 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1584 | ac_top_srcdir=$srcdir |
| 1585 | ac_abs_top_srcdir=$srcdir ;; |
| 1586 | *) # Relative name. |
| 1587 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1588 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1589 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1590 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1591 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1592 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1593 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1594 | # Check for guested configure. |
| 1595 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1596 | echo && |
| 1597 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1598 | elif test -f "$ac_srcdir/configure"; then |
| 1599 | echo && |
| 1600 | $SHELL "$ac_srcdir/configure" --help=recursive |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1601 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1602 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1603 | fi || ac_status=$? |
| 1604 | cd "$ac_pwd" || { ac_status=$?; break; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1605 | done |
| 1606 | fi |
| 1607 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1608 | test -n "$ac_init_help" && exit $ac_status |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1609 | if $ac_init_version; then |
| 1610 | cat <<\_ACEOF |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 1611 | breakpad configure 0.1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1612 | generated by GNU Autoconf 2.65 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1613 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1614 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1615 | This configure script is free software; the Free Software Foundation |
| 1616 | gives unlimited permission to copy, distribute and modify it. |
| 1617 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 1618 | exit |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 1619 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1620 | |
| 1621 | ## ------------------------ ## |
| 1622 | ## Autoconf initialization. ## |
| 1623 | ## ------------------------ ## |
| 1624 | |
| 1625 | # ac_fn_c_try_compile LINENO |
| 1626 | # -------------------------- |
| 1627 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1628 | ac_fn_c_try_compile () |
| 1629 | { |
| 1630 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1631 | rm -f conftest.$ac_objext |
| 1632 | if { { ac_try="$ac_compile" |
| 1633 | case "(($ac_try" in |
| 1634 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1635 | *) ac_try_echo=$ac_try;; |
| 1636 | esac |
| 1637 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1638 | $as_echo "$ac_try_echo"; } >&5 |
| 1639 | (eval "$ac_compile") 2>conftest.err |
| 1640 | ac_status=$? |
| 1641 | if test -s conftest.err; then |
| 1642 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1643 | cat conftest.er1 >&5 |
| 1644 | mv -f conftest.er1 conftest.err |
| 1645 | fi |
| 1646 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1647 | test $ac_status = 0; } && { |
| 1648 | test -z "$ac_c_werror_flag" || |
| 1649 | test ! -s conftest.err |
| 1650 | } && test -s conftest.$ac_objext; then : |
| 1651 | ac_retval=0 |
| 1652 | else |
| 1653 | $as_echo "$as_me: failed program was:" >&5 |
| 1654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1655 | |
| 1656 | ac_retval=1 |
| 1657 | fi |
| 1658 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1659 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1660 | |
| 1661 | } # ac_fn_c_try_compile |
| 1662 | |
| 1663 | # ac_fn_c_try_cpp LINENO |
| 1664 | # ---------------------- |
| 1665 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1666 | ac_fn_c_try_cpp () |
| 1667 | { |
| 1668 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1669 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1670 | case "(($ac_try" in |
| 1671 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1672 | *) ac_try_echo=$ac_try;; |
| 1673 | esac |
| 1674 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1675 | $as_echo "$ac_try_echo"; } >&5 |
| 1676 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1677 | ac_status=$? |
| 1678 | if test -s conftest.err; then |
| 1679 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1680 | cat conftest.er1 >&5 |
| 1681 | mv -f conftest.er1 conftest.err |
| 1682 | fi |
| 1683 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1684 | test $ac_status = 0; } >/dev/null && { |
| 1685 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1686 | test ! -s conftest.err |
| 1687 | }; then : |
| 1688 | ac_retval=0 |
| 1689 | else |
| 1690 | $as_echo "$as_me: failed program was:" >&5 |
| 1691 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1692 | |
| 1693 | ac_retval=1 |
| 1694 | fi |
| 1695 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1696 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1697 | |
| 1698 | } # ac_fn_c_try_cpp |
| 1699 | |
| 1700 | # ac_fn_cxx_try_compile LINENO |
| 1701 | # ---------------------------- |
| 1702 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1703 | ac_fn_cxx_try_compile () |
| 1704 | { |
| 1705 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1706 | rm -f conftest.$ac_objext |
| 1707 | if { { ac_try="$ac_compile" |
| 1708 | case "(($ac_try" in |
| 1709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1710 | *) ac_try_echo=$ac_try;; |
| 1711 | esac |
| 1712 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1713 | $as_echo "$ac_try_echo"; } >&5 |
| 1714 | (eval "$ac_compile") 2>conftest.err |
| 1715 | ac_status=$? |
| 1716 | if test -s conftest.err; then |
| 1717 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1718 | cat conftest.er1 >&5 |
| 1719 | mv -f conftest.er1 conftest.err |
| 1720 | fi |
| 1721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1722 | test $ac_status = 0; } && { |
| 1723 | test -z "$ac_cxx_werror_flag" || |
| 1724 | test ! -s conftest.err |
| 1725 | } && test -s conftest.$ac_objext; then : |
| 1726 | ac_retval=0 |
| 1727 | else |
| 1728 | $as_echo "$as_me: failed program was:" >&5 |
| 1729 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1730 | |
| 1731 | ac_retval=1 |
| 1732 | fi |
| 1733 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1734 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1735 | |
| 1736 | } # ac_fn_cxx_try_compile |
| 1737 | |
| 1738 | # ac_fn_c_try_link LINENO |
| 1739 | # ----------------------- |
| 1740 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1741 | ac_fn_c_try_link () |
| 1742 | { |
| 1743 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1744 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1745 | if { { ac_try="$ac_link" |
| 1746 | case "(($ac_try" in |
| 1747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1748 | *) ac_try_echo=$ac_try;; |
| 1749 | esac |
| 1750 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1751 | $as_echo "$ac_try_echo"; } >&5 |
| 1752 | (eval "$ac_link") 2>conftest.err |
| 1753 | ac_status=$? |
| 1754 | if test -s conftest.err; then |
| 1755 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1756 | cat conftest.er1 >&5 |
| 1757 | mv -f conftest.er1 conftest.err |
| 1758 | fi |
| 1759 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1760 | test $ac_status = 0; } && { |
| 1761 | test -z "$ac_c_werror_flag" || |
| 1762 | test ! -s conftest.err |
| 1763 | } && test -s conftest$ac_exeext && { |
| 1764 | test "$cross_compiling" = yes || |
| 1765 | $as_test_x conftest$ac_exeext |
| 1766 | }; then : |
| 1767 | ac_retval=0 |
| 1768 | else |
| 1769 | $as_echo "$as_me: failed program was:" >&5 |
| 1770 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1771 | |
| 1772 | ac_retval=1 |
| 1773 | fi |
| 1774 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1775 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1776 | # interfere with the next link command; also delete a directory that is |
| 1777 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1778 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1779 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1780 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1781 | |
| 1782 | } # ac_fn_c_try_link |
| 1783 | |
| 1784 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1785 | # ------------------------------------------------------- |
| 1786 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1787 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1788 | ac_fn_c_check_header_compile () |
| 1789 | { |
| 1790 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1792 | $as_echo_n "checking for $2... " >&6; } |
| 1793 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1794 | $as_echo_n "(cached) " >&6 |
| 1795 | else |
| 1796 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1797 | /* end confdefs.h. */ |
| 1798 | $4 |
| 1799 | #include <$2> |
| 1800 | _ACEOF |
| 1801 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1802 | eval "$3=yes" |
| 1803 | else |
| 1804 | eval "$3=no" |
| 1805 | fi |
| 1806 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1807 | fi |
| 1808 | eval ac_res=\$$3 |
| 1809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1810 | $as_echo "$ac_res" >&6; } |
| 1811 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1812 | |
| 1813 | } # ac_fn_c_check_header_compile |
| 1814 | |
| 1815 | # ac_fn_c_try_run LINENO |
| 1816 | # ---------------------- |
| 1817 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1818 | # that executables *can* be run. |
| 1819 | ac_fn_c_try_run () |
| 1820 | { |
| 1821 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1822 | if { { ac_try="$ac_link" |
| 1823 | case "(($ac_try" in |
| 1824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1825 | *) ac_try_echo=$ac_try;; |
| 1826 | esac |
| 1827 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1828 | $as_echo "$ac_try_echo"; } >&5 |
| 1829 | (eval "$ac_link") 2>&5 |
| 1830 | ac_status=$? |
| 1831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1832 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1833 | { { case "(($ac_try" in |
| 1834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1835 | *) ac_try_echo=$ac_try;; |
| 1836 | esac |
| 1837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1838 | $as_echo "$ac_try_echo"; } >&5 |
| 1839 | (eval "$ac_try") 2>&5 |
| 1840 | ac_status=$? |
| 1841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1842 | test $ac_status = 0; }; }; then : |
| 1843 | ac_retval=0 |
| 1844 | else |
| 1845 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1846 | $as_echo "$as_me: failed program was:" >&5 |
| 1847 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1848 | |
| 1849 | ac_retval=$ac_status |
| 1850 | fi |
| 1851 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1852 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1853 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1854 | |
| 1855 | } # ac_fn_c_try_run |
| 1856 | |
| 1857 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1858 | # ---------------------------------- |
| 1859 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1860 | ac_fn_c_check_func () |
| 1861 | { |
| 1862 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1863 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1864 | $as_echo_n "checking for $2... " >&6; } |
| 1865 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1866 | $as_echo_n "(cached) " >&6 |
| 1867 | else |
| 1868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1869 | /* end confdefs.h. */ |
| 1870 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1871 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1872 | #define $2 innocuous_$2 |
| 1873 | |
| 1874 | /* System header to define __stub macros and hopefully few prototypes, |
| 1875 | which can conflict with char $2 (); below. |
| 1876 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1877 | <limits.h> exists even on freestanding compilers. */ |
| 1878 | |
| 1879 | #ifdef __STDC__ |
| 1880 | # include <limits.h> |
| 1881 | #else |
| 1882 | # include <assert.h> |
| 1883 | #endif |
| 1884 | |
| 1885 | #undef $2 |
| 1886 | |
| 1887 | /* Override any GCC internal prototype to avoid an error. |
| 1888 | Use char because int might match the return type of a GCC |
| 1889 | builtin and then its argument prototype would still apply. */ |
| 1890 | #ifdef __cplusplus |
| 1891 | extern "C" |
| 1892 | #endif |
| 1893 | char $2 (); |
| 1894 | /* The GNU C library defines this for functions which it implements |
| 1895 | to always fail with ENOSYS. Some functions are actually named |
| 1896 | something starting with __ and the normal name is an alias. */ |
| 1897 | #if defined __stub_$2 || defined __stub___$2 |
| 1898 | choke me |
| 1899 | #endif |
| 1900 | |
| 1901 | int |
| 1902 | main () |
| 1903 | { |
| 1904 | return $2 (); |
| 1905 | ; |
| 1906 | return 0; |
| 1907 | } |
| 1908 | _ACEOF |
| 1909 | if ac_fn_c_try_link "$LINENO"; then : |
| 1910 | eval "$3=yes" |
| 1911 | else |
| 1912 | eval "$3=no" |
| 1913 | fi |
| 1914 | rm -f core conftest.err conftest.$ac_objext \ |
| 1915 | conftest$ac_exeext conftest.$ac_ext |
| 1916 | fi |
| 1917 | eval ac_res=\$$3 |
| 1918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1919 | $as_echo "$ac_res" >&6; } |
| 1920 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1921 | |
| 1922 | } # ac_fn_c_check_func |
| 1923 | |
| 1924 | # ac_fn_cxx_try_cpp LINENO |
| 1925 | # ------------------------ |
| 1926 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1927 | ac_fn_cxx_try_cpp () |
| 1928 | { |
| 1929 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1930 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1931 | case "(($ac_try" in |
| 1932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1933 | *) ac_try_echo=$ac_try;; |
| 1934 | esac |
| 1935 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1936 | $as_echo "$ac_try_echo"; } >&5 |
| 1937 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1938 | ac_status=$? |
| 1939 | if test -s conftest.err; then |
| 1940 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1941 | cat conftest.er1 >&5 |
| 1942 | mv -f conftest.er1 conftest.err |
| 1943 | fi |
| 1944 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1945 | test $ac_status = 0; } >/dev/null && { |
| 1946 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
| 1947 | test ! -s conftest.err |
| 1948 | }; then : |
| 1949 | ac_retval=0 |
| 1950 | else |
| 1951 | $as_echo "$as_me: failed program was:" >&5 |
| 1952 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1953 | |
| 1954 | ac_retval=1 |
| 1955 | fi |
| 1956 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 1957 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 1958 | |
| 1959 | } # ac_fn_cxx_try_cpp |
| 1960 | |
| 1961 | # ac_fn_cxx_try_link LINENO |
| 1962 | # ------------------------- |
| 1963 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1964 | ac_fn_cxx_try_link () |
| 1965 | { |
| 1966 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1967 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1968 | if { { ac_try="$ac_link" |
| 1969 | case "(($ac_try" in |
| 1970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1971 | *) ac_try_echo=$ac_try;; |
| 1972 | esac |
| 1973 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1974 | $as_echo "$ac_try_echo"; } >&5 |
| 1975 | (eval "$ac_link") 2>conftest.err |
| 1976 | ac_status=$? |
| 1977 | if test -s conftest.err; then |
| 1978 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1979 | cat conftest.er1 >&5 |
| 1980 | mv -f conftest.er1 conftest.err |
| 1981 | fi |
| 1982 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1983 | test $ac_status = 0; } && { |
| 1984 | test -z "$ac_cxx_werror_flag" || |
| 1985 | test ! -s conftest.err |
| 1986 | } && test -s conftest$ac_exeext && { |
| 1987 | test "$cross_compiling" = yes || |
| 1988 | $as_test_x conftest$ac_exeext |
| 1989 | }; then : |
| 1990 | ac_retval=0 |
| 1991 | else |
| 1992 | $as_echo "$as_me: failed program was:" >&5 |
| 1993 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1994 | |
| 1995 | ac_retval=1 |
| 1996 | fi |
| 1997 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1998 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1999 | # interfere with the next link command; also delete a directory that is |
| 2000 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2001 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2002 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2003 | as_fn_set_status $ac_retval |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2004 | |
| 2005 | } # ac_fn_cxx_try_link |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 2006 | |
| 2007 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2008 | # ---------------------------------------------------- |
| 2009 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2010 | # INCLUDES, setting cache variable VAR accordingly. |
| 2011 | ac_fn_c_check_member () |
| 2012 | { |
| 2013 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2015 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2016 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2017 | $as_echo_n "(cached) " >&6 |
| 2018 | else |
| 2019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2020 | /* end confdefs.h. */ |
| 2021 | $5 |
| 2022 | int |
| 2023 | main () |
| 2024 | { |
| 2025 | static $2 ac_aggr; |
| 2026 | if (ac_aggr.$3) |
| 2027 | return 0; |
| 2028 | ; |
| 2029 | return 0; |
| 2030 | } |
| 2031 | _ACEOF |
| 2032 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2033 | eval "$4=yes" |
| 2034 | else |
| 2035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2036 | /* end confdefs.h. */ |
| 2037 | $5 |
| 2038 | int |
| 2039 | main () |
| 2040 | { |
| 2041 | static $2 ac_aggr; |
| 2042 | if (sizeof ac_aggr.$3) |
| 2043 | return 0; |
| 2044 | ; |
| 2045 | return 0; |
| 2046 | } |
| 2047 | _ACEOF |
| 2048 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2049 | eval "$4=yes" |
| 2050 | else |
| 2051 | eval "$4=no" |
| 2052 | fi |
| 2053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2054 | fi |
| 2055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2056 | fi |
| 2057 | eval ac_res=\$$4 |
| 2058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2059 | $as_echo "$ac_res" >&6; } |
| 2060 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2061 | |
| 2062 | } # ac_fn_c_check_member |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2063 | cat >config.log <<_ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2064 | This file contains any messages produced by compilers while |
| 2065 | running configure, to aid debugging if configure makes a mistake. |
| 2066 | |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2067 | It was created by breakpad $as_me 0.1, which was |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2068 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2069 | |
| 2070 | $ $0 $@ |
| 2071 | |
| 2072 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2073 | exec 5>>config.log |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2074 | { |
| 2075 | cat <<_ASUNAME |
| 2076 | ## --------- ## |
| 2077 | ## Platform. ## |
| 2078 | ## --------- ## |
| 2079 | |
| 2080 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2081 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2082 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2083 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2084 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2085 | |
| 2086 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2087 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2088 | |
| 2089 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2090 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2091 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2092 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2093 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2094 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2095 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2096 | |
| 2097 | _ASUNAME |
| 2098 | |
| 2099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2100 | for as_dir in $PATH |
| 2101 | do |
| 2102 | IFS=$as_save_IFS |
| 2103 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2104 | $as_echo "PATH: $as_dir" |
| 2105 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2106 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2107 | |
| 2108 | } >&5 |
| 2109 | |
| 2110 | cat >&5 <<_ACEOF |
| 2111 | |
| 2112 | |
| 2113 | ## ----------- ## |
| 2114 | ## Core tests. ## |
| 2115 | ## ----------- ## |
| 2116 | |
| 2117 | _ACEOF |
| 2118 | |
| 2119 | |
| 2120 | # Keep a trace of the command line. |
| 2121 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2122 | # Strip out --silent because we don't want to record it for future runs. |
| 2123 | # Also quote any args containing shell meta-characters. |
| 2124 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2125 | ac_configure_args= |
| 2126 | ac_configure_args0= |
| 2127 | ac_configure_args1= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2128 | ac_must_keep_next=false |
| 2129 | for ac_pass in 1 2 |
| 2130 | do |
| 2131 | for ac_arg |
| 2132 | do |
| 2133 | case $ac_arg in |
| 2134 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2135 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2136 | | -silent | --silent | --silen | --sile | --sil) |
| 2137 | continue ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2138 | *\'*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2139 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2140 | esac |
| 2141 | case $ac_pass in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2142 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2143 | 2) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2144 | as_fn_append ac_configure_args1 " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2145 | if test $ac_must_keep_next = true; then |
| 2146 | ac_must_keep_next=false # Got value, back to normal. |
| 2147 | else |
| 2148 | case $ac_arg in |
| 2149 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2150 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2151 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2152 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2153 | case "$ac_configure_args0 " in |
| 2154 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2155 | esac |
| 2156 | ;; |
| 2157 | -* ) ac_must_keep_next=true ;; |
| 2158 | esac |
| 2159 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2160 | as_fn_append ac_configure_args " '$ac_arg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2161 | ;; |
| 2162 | esac |
| 2163 | done |
| 2164 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2165 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2166 | { ac_configure_args1=; unset ac_configure_args1;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2167 | |
| 2168 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2169 | # config.log. We remove comments because anyway the quotes in there |
| 2170 | # would cause problems or look ugly. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2171 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2172 | # 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] | 2173 | trap 'exit_status=$? |
| 2174 | # Save into config.log some information that might help in debugging. |
| 2175 | { |
| 2176 | echo |
| 2177 | |
| 2178 | cat <<\_ASBOX |
| 2179 | ## ---------------- ## |
| 2180 | ## Cache variables. ## |
| 2181 | ## ---------------- ## |
| 2182 | _ASBOX |
| 2183 | echo |
| 2184 | # The following way of writing the cache mishandles newlines in values, |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2185 | ( |
| 2186 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2187 | eval ac_val=\$$ac_var |
| 2188 | case $ac_val in #( |
| 2189 | *${as_nl}*) |
| 2190 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2191 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2192 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2193 | esac |
| 2194 | case $ac_var in #( |
| 2195 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2196 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2197 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2198 | esac ;; |
| 2199 | esac |
| 2200 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2201 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2202 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2203 | *${as_nl}ac_space=\ *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2204 | sed -n \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2205 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2206 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2207 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2208 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2209 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2210 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2211 | esac | |
| 2212 | sort |
| 2213 | ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2214 | echo |
| 2215 | |
| 2216 | cat <<\_ASBOX |
| 2217 | ## ----------------- ## |
| 2218 | ## Output variables. ## |
| 2219 | ## ----------------- ## |
| 2220 | _ASBOX |
| 2221 | echo |
| 2222 | for ac_var in $ac_subst_vars |
| 2223 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2224 | eval ac_val=\$$ac_var |
| 2225 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2226 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2227 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2228 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2229 | done | sort |
| 2230 | echo |
| 2231 | |
| 2232 | if test -n "$ac_subst_files"; then |
| 2233 | cat <<\_ASBOX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2234 | ## ------------------- ## |
| 2235 | ## File substitutions. ## |
| 2236 | ## ------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2237 | _ASBOX |
| 2238 | echo |
| 2239 | for ac_var in $ac_subst_files |
| 2240 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2241 | eval ac_val=\$$ac_var |
| 2242 | case $ac_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2243 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2244 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2245 | $as_echo "$ac_var='\''$ac_val'\''" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2246 | done | sort |
| 2247 | echo |
| 2248 | fi |
| 2249 | |
| 2250 | if test -s confdefs.h; then |
| 2251 | cat <<\_ASBOX |
| 2252 | ## ----------- ## |
| 2253 | ## confdefs.h. ## |
| 2254 | ## ----------- ## |
| 2255 | _ASBOX |
| 2256 | echo |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2257 | cat confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2258 | echo |
| 2259 | fi |
| 2260 | test "$ac_signal" != 0 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2261 | $as_echo "$as_me: caught signal $ac_signal" |
| 2262 | $as_echo "$as_me: exit $exit_status" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2263 | } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2264 | rm -f core *.core core.conftest.* && |
| 2265 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2266 | exit $exit_status |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2267 | ' 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2268 | for ac_signal in 1 2 13 15; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2269 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2270 | done |
| 2271 | ac_signal=0 |
| 2272 | |
| 2273 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2274 | rm -f -r conftest* confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2275 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2276 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2277 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2278 | # Predefined preprocessor variables. |
| 2279 | |
| 2280 | cat >>confdefs.h <<_ACEOF |
| 2281 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2282 | _ACEOF |
| 2283 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2284 | cat >>confdefs.h <<_ACEOF |
| 2285 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2286 | _ACEOF |
| 2287 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2288 | cat >>confdefs.h <<_ACEOF |
| 2289 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2290 | _ACEOF |
| 2291 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2292 | cat >>confdefs.h <<_ACEOF |
| 2293 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2294 | _ACEOF |
| 2295 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2296 | cat >>confdefs.h <<_ACEOF |
| 2297 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2298 | _ACEOF |
| 2299 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2300 | cat >>confdefs.h <<_ACEOF |
| 2301 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2302 | _ACEOF |
| 2303 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2304 | |
| 2305 | # Let the site file select an alternate cache file if it wants to. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2306 | # Prefer an explicitly selected file to automatically selected ones. |
| 2307 | ac_site_file1=NONE |
| 2308 | ac_site_file2=NONE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2309 | if test -n "$CONFIG_SITE"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2310 | ac_site_file1=$CONFIG_SITE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2311 | elif test "x$prefix" != xNONE; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2312 | ac_site_file1=$prefix/share/config.site |
| 2313 | ac_site_file2=$prefix/etc/config.site |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2314 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2315 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2316 | ac_site_file2=$ac_default_prefix/etc/config.site |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2317 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2318 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2319 | do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2320 | test "x$ac_site_file" = xNONE && continue |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2321 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2322 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2323 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2324 | sed 's/^/| /' "$ac_site_file" >&5 |
| 2325 | . "$ac_site_file" |
| 2326 | fi |
| 2327 | done |
| 2328 | |
| 2329 | if test -r "$cache_file"; then |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2330 | # Some versions of bash will fail to source /dev/null (special files |
| 2331 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2332 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2333 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2334 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2335 | case $cache_file in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2336 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2337 | *) . "./$cache_file";; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2338 | esac |
| 2339 | fi |
| 2340 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2341 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2342 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2343 | >$cache_file |
| 2344 | fi |
| 2345 | |
| 2346 | # Check that the precious variables saved in the cache have kept the same |
| 2347 | # value. |
| 2348 | ac_cache_corrupted=false |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2349 | for ac_var in $ac_precious_vars; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2350 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2351 | eval ac_new_set=\$ac_env_${ac_var}_set |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2352 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2353 | eval ac_new_val=\$ac_env_${ac_var}_value |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2354 | case $ac_old_set,$ac_new_set in |
| 2355 | set,) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 2357 | $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] | 2358 | ac_cache_corrupted=: ;; |
| 2359 | ,set) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2360 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 2361 | $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] | 2362 | ac_cache_corrupted=: ;; |
| 2363 | ,);; |
| 2364 | *) |
| 2365 | if test "x$ac_old_val" != "x$ac_new_val"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2366 | # differences in whitespace do not lead to failure. |
| 2367 | ac_old_val_w=`echo x $ac_old_val` |
| 2368 | ac_new_val_w=`echo x $ac_new_val` |
| 2369 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2370 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 2371 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2372 | ac_cache_corrupted=: |
| 2373 | else |
| 2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 2375 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2376 | eval $ac_var=\$ac_old_val |
| 2377 | fi |
| 2378 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 2379 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 2380 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 2381 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2382 | fi;; |
| 2383 | esac |
| 2384 | # Pass precious variables to config.status. |
| 2385 | if test "$ac_new_set" = set; then |
| 2386 | case $ac_new_val in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2387 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2388 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2389 | esac |
| 2390 | case " $ac_configure_args " in |
| 2391 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2392 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2393 | esac |
| 2394 | fi |
| 2395 | done |
| 2396 | if $ac_cache_corrupted; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2397 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2398 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2399 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2400 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2401 | 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] | 2402 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2403 | ## -------------------- ## |
| 2404 | ## Main body of script. ## |
| 2405 | ## -------------------- ## |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2406 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2407 | ac_ext=c |
| 2408 | ac_cpp='$CPP $CPPFLAGS' |
| 2409 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2410 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2411 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2412 | |
| 2413 | |
| 2414 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2415 | ac_aux_dir= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2416 | for ac_dir in autotools "$srcdir"/autotools; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2417 | for ac_t in install-sh install.sh shtool; do |
| 2418 | if test -f "$ac_dir/$ac_t"; then |
| 2419 | ac_aux_dir=$ac_dir |
| 2420 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2421 | break 2 |
| 2422 | fi |
| 2423 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2424 | done |
| 2425 | if test -z "$ac_aux_dir"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2426 | 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] | 2427 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2428 | |
| 2429 | # These three variables are undocumented and unsupported, |
| 2430 | # and are intended to be withdrawn in a future Autoconf release. |
| 2431 | # They can cause serious problems if a builder's source tree is in a directory |
| 2432 | # whose full name contains unusual characters. |
| 2433 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2434 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2435 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2436 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2437 | |
mmentovai | 425d256 | 2006-08-30 20:05:05 +0000 | [diff] [blame] | 2438 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2439 | am__api_version='1.11' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2440 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2441 | # Find a good install program. We prefer a C program (faster), |
| 2442 | # so one script is as good as another. But avoid the broken or |
| 2443 | # incompatible versions: |
| 2444 | # SysV /etc/install, /usr/sbin/install |
| 2445 | # SunOS /usr/etc/install |
| 2446 | # IRIX /sbin/install |
| 2447 | # AIX /bin/install |
| 2448 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 2449 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 2450 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 2451 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 2452 | # OS/2's system install, which has a completely different semantic |
| 2453 | # ./install, which can be erroneously created by make from ./install.sh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2454 | # Reject install programs that cannot install multiple files. |
| 2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 2456 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2457 | if test -z "$INSTALL"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2458 | if test "${ac_cv_path_install+set}" = set; then : |
| 2459 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2460 | else |
| 2461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2462 | for as_dir in $PATH |
| 2463 | do |
| 2464 | IFS=$as_save_IFS |
| 2465 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2466 | # Account for people who put trailing slashes in PATH elements. |
| 2467 | case $as_dir/ in #(( |
| 2468 | ./ | .// | /[cC]/* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2469 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2470 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2471 | /usr/ucb/* ) ;; |
| 2472 | *) |
| 2473 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 2474 | # Don't use installbsd from OSF since it installs stuff as root |
| 2475 | # by default. |
| 2476 | for ac_prog in ginstall scoinst install; do |
| 2477 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2478 | 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] | 2479 | if test $ac_prog = install && |
| 2480 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2481 | # AIX install. It has an incompatible calling convention. |
| 2482 | : |
| 2483 | elif test $ac_prog = install && |
| 2484 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 2485 | # program-specific install script used by HP pwplus--don't use. |
| 2486 | : |
| 2487 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2488 | rm -rf conftest.one conftest.two conftest.dir |
| 2489 | echo one > conftest.one |
| 2490 | echo two > conftest.two |
| 2491 | mkdir conftest.dir |
| 2492 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 2493 | test -s conftest.one && test -s conftest.two && |
| 2494 | test -s conftest.dir/conftest.one && |
| 2495 | test -s conftest.dir/conftest.two |
| 2496 | then |
| 2497 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 2498 | break 3 |
| 2499 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2500 | fi |
| 2501 | fi |
| 2502 | done |
| 2503 | done |
| 2504 | ;; |
| 2505 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2506 | |
| 2507 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2508 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2509 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2510 | rm -rf conftest.one conftest.two conftest.dir |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2511 | |
| 2512 | fi |
| 2513 | if test "${ac_cv_path_install+set}" = set; then |
| 2514 | INSTALL=$ac_cv_path_install |
| 2515 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2516 | # As a last resort, use the slow shell script. Don't cache a |
| 2517 | # value for INSTALL within a source directory, because that will |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2518 | # break other packages using the cache if that directory is |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2519 | # removed, or if the value is a relative name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2520 | INSTALL=$ac_install_sh |
| 2521 | fi |
| 2522 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 2524 | $as_echo "$INSTALL" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2525 | |
| 2526 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 2527 | # It thinks the first close brace ends the variable substitution. |
| 2528 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 2529 | |
| 2530 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 2531 | |
| 2532 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 2533 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 2535 | $as_echo_n "checking whether build environment is sane... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2536 | # Just in case |
| 2537 | sleep 1 |
| 2538 | echo timestamp > conftest.file |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2539 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 2540 | # name. Accept space and tab only in the latter. |
| 2541 | am_lf=' |
| 2542 | ' |
| 2543 | case `pwd` in |
| 2544 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 2545 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| 2546 | esac |
| 2547 | case $srcdir in |
| 2548 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 2549 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 2550 | esac |
| 2551 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2552 | # Do `set' in a subshell so we don't clobber the current shell's |
| 2553 | # arguments. Must try -L first in case configure is actually a |
| 2554 | # symlink; some systems play weird games with the mod time of symlinks |
| 2555 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 2556 | # directory). |
| 2557 | if ( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2558 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2559 | if test "$*" = "X"; then |
| 2560 | # -L didn't work. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2561 | set X `ls -t "$srcdir/configure" conftest.file` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2562 | fi |
| 2563 | rm -f conftest.file |
| 2564 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 2565 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 2566 | |
| 2567 | # If neither matched, then we have a broken ls. This can happen |
| 2568 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 2569 | # broken ls alias from the environment. This has actually |
| 2570 | # happened. Such a system could not be considered "sane". |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2571 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 2572 | alias in your environment" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2573 | fi |
| 2574 | |
| 2575 | test "$2" = conftest.file |
| 2576 | ) |
| 2577 | then |
| 2578 | # Ok. |
| 2579 | : |
| 2580 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2581 | as_fn_error "newly created file is older than distributed files! |
| 2582 | Check your system clock" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2583 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2585 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2586 | test "$program_prefix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2587 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2588 | # Use a double $ so make ignores it. |
| 2589 | test "$program_suffix" != NONE && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2590 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2591 | # Double any \ or $. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2592 | # By default was `s,x,x', remove it if useless. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2593 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 2594 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2595 | |
| 2596 | # expand $ac_aux_dir to an absolute path |
| 2597 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 2598 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2599 | if test x"${MISSING+set}" != xset; then |
| 2600 | case $am_aux_dir in |
| 2601 | *\ * | *\ *) |
| 2602 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 2603 | *) |
| 2604 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 2605 | esac |
| 2606 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2607 | # Use eval to expand $SHELL |
| 2608 | if eval "$MISSING --run true"; then |
| 2609 | am_missing_run="$MISSING --run " |
| 2610 | else |
| 2611 | am_missing_run= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 2613 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2614 | fi |
| 2615 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2616 | if test x"${install_sh}" != xset; then |
| 2617 | case $am_aux_dir in |
| 2618 | *\ * | *\ *) |
| 2619 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 2620 | *) |
| 2621 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 2622 | esac |
| 2623 | fi |
| 2624 | |
| 2625 | # Installed binaries are usually stripped using `strip' when the user |
| 2626 | # run `make install-strip'. However `strip' might not be the right |
| 2627 | # tool to use in cross-compilation environments, therefore Automake |
| 2628 | # will honor the `STRIP' environment variable to overrule this program. |
| 2629 | if test "$cross_compiling" != no; then |
| 2630 | if test -n "$ac_tool_prefix"; then |
| 2631 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 2632 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2634 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2635 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 2636 | $as_echo_n "(cached) " >&6 |
| 2637 | else |
| 2638 | if test -n "$STRIP"; then |
| 2639 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 2640 | else |
| 2641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2642 | for as_dir in $PATH |
| 2643 | do |
| 2644 | IFS=$as_save_IFS |
| 2645 | test -z "$as_dir" && as_dir=. |
| 2646 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2647 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2648 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2649 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2650 | break 2 |
| 2651 | fi |
| 2652 | done |
| 2653 | done |
| 2654 | IFS=$as_save_IFS |
| 2655 | |
| 2656 | fi |
| 2657 | fi |
| 2658 | STRIP=$ac_cv_prog_STRIP |
| 2659 | if test -n "$STRIP"; then |
| 2660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2661 | $as_echo "$STRIP" >&6; } |
| 2662 | else |
| 2663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2664 | $as_echo "no" >&6; } |
| 2665 | fi |
| 2666 | |
| 2667 | |
| 2668 | fi |
| 2669 | if test -z "$ac_cv_prog_STRIP"; then |
| 2670 | ac_ct_STRIP=$STRIP |
| 2671 | # Extract the first word of "strip", so it can be a program name with args. |
| 2672 | set dummy strip; ac_word=$2 |
| 2673 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2674 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2675 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 2676 | $as_echo_n "(cached) " >&6 |
| 2677 | else |
| 2678 | if test -n "$ac_ct_STRIP"; then |
| 2679 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2680 | else |
| 2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2682 | for as_dir in $PATH |
| 2683 | do |
| 2684 | IFS=$as_save_IFS |
| 2685 | test -z "$as_dir" && as_dir=. |
| 2686 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2687 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2688 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2689 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2690 | break 2 |
| 2691 | fi |
| 2692 | done |
| 2693 | done |
| 2694 | IFS=$as_save_IFS |
| 2695 | |
| 2696 | fi |
| 2697 | fi |
| 2698 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2699 | if test -n "$ac_ct_STRIP"; then |
| 2700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2701 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2702 | else |
| 2703 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2704 | $as_echo "no" >&6; } |
| 2705 | fi |
| 2706 | |
| 2707 | if test "x$ac_ct_STRIP" = x; then |
| 2708 | STRIP=":" |
| 2709 | else |
| 2710 | case $cross_compiling:$ac_tool_warned in |
| 2711 | yes:) |
| 2712 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2713 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2714 | ac_tool_warned=yes ;; |
| 2715 | esac |
| 2716 | STRIP=$ac_ct_STRIP |
| 2717 | fi |
| 2718 | else |
| 2719 | STRIP="$ac_cv_prog_STRIP" |
| 2720 | fi |
| 2721 | |
| 2722 | fi |
| 2723 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2724 | |
| 2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2726 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2727 | if test -z "$MKDIR_P"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2728 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| 2729 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2730 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2732 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2733 | do |
| 2734 | IFS=$as_save_IFS |
| 2735 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2736 | for ac_prog in mkdir gmkdir; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2737 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2738 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2739 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2740 | 'mkdir (GNU coreutils) '* | \ |
| 2741 | 'mkdir (coreutils) '* | \ |
| 2742 | 'mkdir (fileutils) '4.1*) |
| 2743 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2744 | break 3;; |
| 2745 | esac |
| 2746 | done |
| 2747 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2748 | done |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2749 | IFS=$as_save_IFS |
| 2750 | |
| 2751 | fi |
| 2752 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 2753 | test -d ./--version && rmdir ./--version |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2754 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2755 | MKDIR_P="$ac_cv_path_mkdir -p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2756 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2757 | # As a last resort, use the slow shell script. Don't cache a |
| 2758 | # value for MKDIR_P within a source directory, because that will |
| 2759 | # break other packages using the cache if that directory is |
| 2760 | # removed, or if the value is a relative name. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2761 | MKDIR_P="$ac_install_sh -d" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2762 | fi |
| 2763 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2765 | $as_echo "$MKDIR_P" >&6; } |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2766 | |
| 2767 | mkdir_p="$MKDIR_P" |
| 2768 | case $mkdir_p in |
| 2769 | [\\/$]* | ?:[\\/]*) ;; |
| 2770 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2771 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2772 | |
| 2773 | for ac_prog in gawk mawk nawk awk |
| 2774 | do |
| 2775 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2776 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2778 | $as_echo_n "checking for $ac_word... " >&6; } |
| 2779 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| 2780 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2781 | else |
| 2782 | if test -n "$AWK"; then |
| 2783 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2784 | else |
| 2785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2786 | for as_dir in $PATH |
| 2787 | do |
| 2788 | IFS=$as_save_IFS |
| 2789 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2790 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2791 | 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] | 2792 | ac_cv_prog_AWK="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2793 | $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] | 2794 | break 2 |
| 2795 | fi |
| 2796 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2797 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2798 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2799 | |
| 2800 | fi |
| 2801 | fi |
| 2802 | AWK=$ac_cv_prog_AWK |
| 2803 | if test -n "$AWK"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2805 | $as_echo "$AWK" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2806 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2808 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2809 | fi |
| 2810 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2811 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2812 | test -n "$AWK" && break |
| 2813 | done |
| 2814 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2816 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2817 | set x ${MAKE-make} |
| 2818 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 2819 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2820 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2821 | else |
| 2822 | cat >conftest.make <<\_ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2823 | SHELL = /bin/sh |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2824 | all: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2825 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2826 | _ACEOF |
| 2827 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2828 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2829 | *@@@%%%=?*=@@@%%%*) |
| 2830 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2831 | *) |
| 2832 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2833 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2834 | rm -f conftest.make |
| 2835 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2836 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2838 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2839 | SET_MAKE= |
| 2840 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2841 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2842 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2843 | SET_MAKE="MAKE=${MAKE-make}" |
| 2844 | fi |
| 2845 | |
| 2846 | rm -rf .tst 2>/dev/null |
| 2847 | mkdir .tst 2>/dev/null |
| 2848 | if test -d .tst; then |
| 2849 | am__leading_dot=. |
| 2850 | else |
| 2851 | am__leading_dot=_ |
| 2852 | fi |
| 2853 | rmdir .tst 2>/dev/null |
| 2854 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 2855 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2856 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2857 | # is not polluted with repeated "-I." |
| 2858 | am__isrc=' -I$(srcdir)' |
| 2859 | # test to see if srcdir already configured |
| 2860 | if test -f $srcdir/config.status; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2861 | 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] | 2862 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2863 | fi |
| 2864 | |
| 2865 | # test whether we have cygpath |
| 2866 | if test -z "$CYGPATH_W"; then |
| 2867 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2868 | CYGPATH_W='cygpath -w' |
| 2869 | else |
| 2870 | CYGPATH_W=echo |
| 2871 | fi |
| 2872 | fi |
| 2873 | |
| 2874 | |
| 2875 | # Define the identity of the package. |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 2876 | PACKAGE='breakpad' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2877 | VERSION='0.1' |
| 2878 | |
| 2879 | |
| 2880 | cat >>confdefs.h <<_ACEOF |
| 2881 | #define PACKAGE "$PACKAGE" |
| 2882 | _ACEOF |
| 2883 | |
| 2884 | |
| 2885 | cat >>confdefs.h <<_ACEOF |
| 2886 | #define VERSION "$VERSION" |
| 2887 | _ACEOF |
| 2888 | |
| 2889 | # Some tools Automake needs. |
| 2890 | |
| 2891 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2892 | |
| 2893 | |
| 2894 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2895 | |
| 2896 | |
| 2897 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2898 | |
| 2899 | |
| 2900 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2901 | |
| 2902 | |
| 2903 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2904 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2905 | # We need awk for the "check" target. The system "awk" is bad on |
| 2906 | # some platforms. |
| 2907 | # Always define AMTAR for backward compatibility. |
| 2908 | |
| 2909 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2910 | |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2911 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 |
| 2913 | $as_echo_n "checking how to create a ustar tar archive... " >&6; } |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2914 | # Loop over all known methods to create a tar archive until one works. |
| 2915 | _am_tools='gnutar plaintar pax cpio none' |
| 2916 | _am_tools=${am_cv_prog_tar_ustar-$_am_tools} |
| 2917 | # Do not fold the above two line into one, because Tru64 sh and |
| 2918 | # Solaris sh will not grok spaces in the rhs of `-'. |
| 2919 | for _am_tool in $_am_tools |
| 2920 | do |
| 2921 | case $_am_tool in |
| 2922 | gnutar) |
| 2923 | for _am_tar in tar gnutar gtar; |
| 2924 | do |
| 2925 | { echo "$as_me:$LINENO: $_am_tar --version" >&5 |
| 2926 | ($_am_tar --version) >&5 2>&5 |
| 2927 | ac_status=$? |
| 2928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2929 | (exit $ac_status); } && break |
| 2930 | done |
| 2931 | am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"' |
| 2932 | am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"' |
| 2933 | am__untar="$_am_tar -xf -" |
| 2934 | ;; |
| 2935 | plaintar) |
| 2936 | # Must skip GNU tar: if it does not support --format= it doesn't create |
| 2937 | # ustar tarball either. |
| 2938 | (tar --version) >/dev/null 2>&1 && continue |
| 2939 | am__tar='tar chf - "$$tardir"' |
| 2940 | am__tar_='tar chf - "$tardir"' |
| 2941 | am__untar='tar xf -' |
| 2942 | ;; |
| 2943 | pax) |
| 2944 | am__tar='pax -L -x ustar -w "$$tardir"' |
| 2945 | am__tar_='pax -L -x ustar -w "$tardir"' |
| 2946 | am__untar='pax -r' |
| 2947 | ;; |
| 2948 | cpio) |
| 2949 | am__tar='find "$$tardir" -print | cpio -o -H ustar -L' |
| 2950 | am__tar_='find "$tardir" -print | cpio -o -H ustar -L' |
| 2951 | am__untar='cpio -i -H ustar -d' |
| 2952 | ;; |
| 2953 | none) |
| 2954 | am__tar=false |
| 2955 | am__tar_=false |
| 2956 | am__untar=false |
| 2957 | ;; |
| 2958 | esac |
| 2959 | |
| 2960 | # If the value was cached, stop now. We just wanted to have am__tar |
| 2961 | # and am__untar set. |
| 2962 | test -n "${am_cv_prog_tar_ustar}" && break |
| 2963 | |
| 2964 | # tar/untar a dummy directory, and stop if the command works |
| 2965 | rm -rf conftest.dir |
| 2966 | mkdir conftest.dir |
| 2967 | echo GrepMe > conftest.dir/file |
| 2968 | { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5 |
| 2969 | (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5 |
| 2970 | ac_status=$? |
| 2971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2972 | (exit $ac_status); } |
| 2973 | rm -rf conftest.dir |
| 2974 | if test -s conftest.tar; then |
| 2975 | { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5 |
| 2976 | ($am__untar <conftest.tar) >&5 2>&5 |
| 2977 | ac_status=$? |
| 2978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2979 | (exit $ac_status); } |
| 2980 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
| 2981 | fi |
| 2982 | done |
| 2983 | rm -rf conftest.dir |
| 2984 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2985 | if test "${am_cv_prog_tar_ustar+set}" = set; then : |
| 2986 | $as_echo_n "(cached) " >&6 |
mmentovai | db3342a | 2006-12-05 22:52:28 +0000 | [diff] [blame] | 2987 | else |
| 2988 | am_cv_prog_tar_ustar=$_am_tool |
| 2989 | fi |
| 2990 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 |
| 2992 | $as_echo "$am_cv_prog_tar_ustar" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2993 | |
| 2994 | |
| 2995 | |
| 2996 | |
| 2997 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 2998 | ac_config_headers="$ac_config_headers src/config.h" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 2999 | |
| 3000 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3001 | ac_ext=c |
| 3002 | ac_cpp='$CPP $CPPFLAGS' |
| 3003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3006 | if test -n "$ac_tool_prefix"; then |
| 3007 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3008 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3010 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3011 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3012 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3013 | else |
| 3014 | if test -n "$CC"; then |
| 3015 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3016 | else |
| 3017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3018 | for as_dir in $PATH |
| 3019 | do |
| 3020 | IFS=$as_save_IFS |
| 3021 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3022 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3023 | 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] | 3024 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3025 | $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] | 3026 | break 2 |
| 3027 | fi |
| 3028 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3029 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3030 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3031 | |
| 3032 | fi |
| 3033 | fi |
| 3034 | CC=$ac_cv_prog_CC |
| 3035 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3037 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3038 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3040 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3041 | fi |
| 3042 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3043 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3044 | fi |
| 3045 | if test -z "$ac_cv_prog_CC"; then |
| 3046 | ac_ct_CC=$CC |
| 3047 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3048 | set dummy gcc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3050 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3051 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3052 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3053 | else |
| 3054 | if test -n "$ac_ct_CC"; then |
| 3055 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3056 | else |
| 3057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3058 | for as_dir in $PATH |
| 3059 | do |
| 3060 | IFS=$as_save_IFS |
| 3061 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3062 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3063 | 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] | 3064 | ac_cv_prog_ac_ct_CC="gcc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3065 | $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] | 3066 | break 2 |
| 3067 | fi |
| 3068 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3069 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3070 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3071 | |
| 3072 | fi |
| 3073 | fi |
| 3074 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3075 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3076 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3077 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3078 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3080 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3081 | fi |
| 3082 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3083 | if test "x$ac_ct_CC" = x; then |
| 3084 | CC="" |
| 3085 | else |
| 3086 | case $cross_compiling:$ac_tool_warned in |
| 3087 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3088 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3089 | $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] | 3090 | ac_tool_warned=yes ;; |
| 3091 | esac |
| 3092 | CC=$ac_ct_CC |
| 3093 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3094 | else |
| 3095 | CC="$ac_cv_prog_CC" |
| 3096 | fi |
| 3097 | |
| 3098 | if test -z "$CC"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3099 | if test -n "$ac_tool_prefix"; then |
| 3100 | # 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] | 3101 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3102 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3103 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3104 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3105 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3106 | else |
| 3107 | if test -n "$CC"; then |
| 3108 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3109 | else |
| 3110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3111 | for as_dir in $PATH |
| 3112 | do |
| 3113 | IFS=$as_save_IFS |
| 3114 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3115 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3116 | 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] | 3117 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3118 | $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] | 3119 | break 2 |
| 3120 | fi |
| 3121 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3122 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3123 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3124 | |
| 3125 | fi |
| 3126 | fi |
| 3127 | CC=$ac_cv_prog_CC |
| 3128 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3130 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3131 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3133 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3134 | fi |
| 3135 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3136 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3137 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3138 | fi |
| 3139 | if test -z "$CC"; then |
| 3140 | # Extract the first word of "cc", so it can be a program name with args. |
| 3141 | set dummy cc; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3143 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3144 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3145 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3146 | else |
| 3147 | if test -n "$CC"; then |
| 3148 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3149 | else |
| 3150 | ac_prog_rejected=no |
| 3151 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3152 | for as_dir in $PATH |
| 3153 | do |
| 3154 | IFS=$as_save_IFS |
| 3155 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3156 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3157 | 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] | 3158 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3159 | ac_prog_rejected=yes |
| 3160 | continue |
| 3161 | fi |
| 3162 | ac_cv_prog_CC="cc" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3163 | $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] | 3164 | break 2 |
| 3165 | fi |
| 3166 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3167 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3168 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3169 | |
| 3170 | if test $ac_prog_rejected = yes; then |
| 3171 | # We found a bogon in the path, so make sure we never use it. |
| 3172 | set dummy $ac_cv_prog_CC |
| 3173 | shift |
| 3174 | if test $# != 0; then |
| 3175 | # We chose a different compiler from the bogus one. |
| 3176 | # However, it has the same basename, so the bogon will be chosen |
| 3177 | # first if we set CC to just the basename; use the full file name. |
| 3178 | shift |
| 3179 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3180 | fi |
| 3181 | fi |
| 3182 | fi |
| 3183 | fi |
| 3184 | CC=$ac_cv_prog_CC |
| 3185 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3187 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3188 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3189 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3190 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3191 | fi |
| 3192 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3193 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3194 | fi |
| 3195 | if test -z "$CC"; then |
| 3196 | if test -n "$ac_tool_prefix"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3197 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3198 | do |
| 3199 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3200 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3202 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3203 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3204 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3205 | else |
| 3206 | if test -n "$CC"; then |
| 3207 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3208 | else |
| 3209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3210 | for as_dir in $PATH |
| 3211 | do |
| 3212 | IFS=$as_save_IFS |
| 3213 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3214 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3215 | 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] | 3216 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3217 | $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] | 3218 | break 2 |
| 3219 | fi |
| 3220 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3221 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3222 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3223 | |
| 3224 | fi |
| 3225 | fi |
| 3226 | CC=$ac_cv_prog_CC |
| 3227 | if test -n "$CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3229 | $as_echo "$CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3230 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3232 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3233 | fi |
| 3234 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3235 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3236 | test -n "$CC" && break |
| 3237 | done |
| 3238 | fi |
| 3239 | if test -z "$CC"; then |
| 3240 | ac_ct_CC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3241 | for ac_prog in cl.exe |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3242 | do |
| 3243 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3244 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3246 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3247 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3248 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3249 | else |
| 3250 | if test -n "$ac_ct_CC"; then |
| 3251 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3252 | else |
| 3253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3254 | for as_dir in $PATH |
| 3255 | do |
| 3256 | IFS=$as_save_IFS |
| 3257 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3258 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3259 | 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] | 3260 | ac_cv_prog_ac_ct_CC="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3261 | $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] | 3262 | break 2 |
| 3263 | fi |
| 3264 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3265 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3266 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3267 | |
| 3268 | fi |
| 3269 | fi |
| 3270 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3271 | if test -n "$ac_ct_CC"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3273 | $as_echo "$ac_ct_CC" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3274 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3276 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3277 | fi |
| 3278 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3279 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3280 | test -n "$ac_ct_CC" && break |
| 3281 | done |
| 3282 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3283 | if test "x$ac_ct_CC" = x; then |
| 3284 | CC="" |
| 3285 | else |
| 3286 | case $cross_compiling:$ac_tool_warned in |
| 3287 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3288 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3289 | $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] | 3290 | ac_tool_warned=yes ;; |
| 3291 | esac |
| 3292 | CC=$ac_ct_CC |
| 3293 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3294 | fi |
| 3295 | |
| 3296 | fi |
| 3297 | |
| 3298 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3299 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3300 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3301 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3302 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3303 | |
| 3304 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3305 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3306 | set X $ac_compile |
| 3307 | ac_compiler=$2 |
| 3308 | for ac_option in --version -v -V -qversion; do |
| 3309 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3310 | case "(($ac_try" in |
| 3311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3312 | *) ac_try_echo=$ac_try;; |
| 3313 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3314 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3315 | $as_echo "$ac_try_echo"; } >&5 |
| 3316 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3317 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3318 | if test -s conftest.err; then |
| 3319 | sed '10a\ |
| 3320 | ... rest of stderr output deleted ... |
| 3321 | 10q' conftest.err >conftest.er1 |
| 3322 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3323 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3324 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3325 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3326 | test $ac_status = 0; } |
| 3327 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3328 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3330 | /* end confdefs.h. */ |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3331 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3332 | int |
| 3333 | main () |
| 3334 | { |
| 3335 | |
| 3336 | ; |
| 3337 | return 0; |
| 3338 | } |
| 3339 | _ACEOF |
| 3340 | ac_clean_files_save=$ac_clean_files |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3341 | 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] | 3342 | # Try to create an executable without -o first, disregard a.out. |
| 3343 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3344 | # of exeext. |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3346 | $as_echo_n "checking whether the C compiler works... " >&6; } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3347 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3348 | |
| 3349 | # The possible output files: |
| 3350 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3351 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3352 | ac_rmfiles= |
| 3353 | for ac_file in $ac_files |
| 3354 | do |
| 3355 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3356 | *.$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] | 3357 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3358 | esac |
| 3359 | done |
| 3360 | rm -f $ac_rmfiles |
| 3361 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3362 | if { { ac_try="$ac_link_default" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3363 | case "(($ac_try" in |
| 3364 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3365 | *) ac_try_echo=$ac_try;; |
| 3366 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3367 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3368 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3369 | (eval "$ac_link_default") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3370 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3371 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3372 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3373 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3374 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3375 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3376 | # so that the user can short-circuit this test for compilers unknown to |
| 3377 | # Autoconf. |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3378 | for ac_file in $ac_files '' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3379 | do |
| 3380 | test -f "$ac_file" || continue |
| 3381 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3382 | *.$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] | 3383 | ;; |
| 3384 | [ab].out ) |
| 3385 | # We found the default executable, but exeext='' is most |
| 3386 | # certainly right. |
| 3387 | break;; |
| 3388 | *.* ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3389 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3390 | then :; else |
| 3391 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3392 | fi |
| 3393 | # We set ac_cv_exeext here because the later test for it is not |
| 3394 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3395 | # argument, so we may need to know it at that point already. |
| 3396 | # Even if this section looks crufty: it has the advantage of |
| 3397 | # actually working. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3398 | break;; |
| 3399 | * ) |
| 3400 | break;; |
| 3401 | esac |
| 3402 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3403 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3404 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3405 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3406 | ac_file='' |
| 3407 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3408 | if test -z "$ac_file"; then : |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3410 | $as_echo "no" >&6; } |
| 3411 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3412 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3413 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3414 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3415 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3416 | { as_fn_set_status 77 |
| 3417 | as_fn_error "C compiler cannot create executables |
| 3418 | See \`config.log' for more details." "$LINENO" 5; }; } |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3419 | else |
| 3420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3421 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3422 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3424 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3426 | $as_echo "$ac_file" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3427 | ac_exeext=$ac_cv_exeext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3428 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3429 | 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] | 3430 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 3432 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 3433 | if { { ac_try="$ac_link" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3434 | case "(($ac_try" in |
| 3435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3436 | *) ac_try_echo=$ac_try;; |
| 3437 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3438 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3439 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3440 | (eval "$ac_link") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3441 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3442 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3443 | test $ac_status = 0; }; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3444 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3445 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3446 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3447 | # `rm'. |
| 3448 | for ac_file in conftest.exe conftest conftest.*; do |
| 3449 | test -f "$ac_file" || continue |
| 3450 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3451 | *.$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] | 3452 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3453 | break;; |
| 3454 | * ) break;; |
| 3455 | esac |
| 3456 | done |
| 3457 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3458 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3459 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3460 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3461 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3462 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3463 | rm -f conftest conftest$ac_cv_exeext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 3465 | $as_echo "$ac_cv_exeext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3466 | |
| 3467 | rm -f conftest.$ac_ext |
| 3468 | EXEEXT=$ac_cv_exeext |
| 3469 | ac_exeext=$EXEEXT |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 3470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3471 | /* end confdefs.h. */ |
| 3472 | #include <stdio.h> |
| 3473 | int |
| 3474 | main () |
| 3475 | { |
| 3476 | FILE *f = fopen ("conftest.out", "w"); |
| 3477 | return ferror (f) || fclose (f) != 0; |
| 3478 | |
| 3479 | ; |
| 3480 | return 0; |
| 3481 | } |
| 3482 | _ACEOF |
| 3483 | ac_clean_files="$ac_clean_files conftest.out" |
| 3484 | # Check that the compiler produces executables we can run. If not, either |
| 3485 | # the compiler is broken, or we cross compile. |
| 3486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3487 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3488 | if test "$cross_compiling" != yes; then |
| 3489 | { { ac_try="$ac_link" |
| 3490 | case "(($ac_try" in |
| 3491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3492 | *) ac_try_echo=$ac_try;; |
| 3493 | esac |
| 3494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3495 | $as_echo "$ac_try_echo"; } >&5 |
| 3496 | (eval "$ac_link") 2>&5 |
| 3497 | ac_status=$? |
| 3498 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3499 | test $ac_status = 0; } |
| 3500 | if { ac_try='./conftest$ac_cv_exeext' |
| 3501 | { { case "(($ac_try" in |
| 3502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3503 | *) ac_try_echo=$ac_try;; |
| 3504 | esac |
| 3505 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3506 | $as_echo "$ac_try_echo"; } >&5 |
| 3507 | (eval "$ac_try") 2>&5 |
| 3508 | ac_status=$? |
| 3509 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3510 | test $ac_status = 0; }; }; then |
| 3511 | cross_compiling=no |
| 3512 | else |
| 3513 | if test "$cross_compiling" = maybe; then |
| 3514 | cross_compiling=yes |
| 3515 | else |
| 3516 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3517 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3518 | as_fn_error "cannot run C compiled programs. |
| 3519 | If you meant to cross compile, use \`--host'. |
| 3520 | See \`config.log' for more details." "$LINENO" 5; } |
| 3521 | fi |
| 3522 | fi |
| 3523 | fi |
| 3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3525 | $as_echo "$cross_compiling" >&6; } |
| 3526 | |
| 3527 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3528 | ac_clean_files=$ac_clean_files_save |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 3530 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 3531 | if test "${ac_cv_objext+set}" = set; then : |
| 3532 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3533 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3535 | /* end confdefs.h. */ |
| 3536 | |
| 3537 | int |
| 3538 | main () |
| 3539 | { |
| 3540 | |
| 3541 | ; |
| 3542 | return 0; |
| 3543 | } |
| 3544 | _ACEOF |
| 3545 | rm -f conftest.o conftest.obj |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3546 | if { { ac_try="$ac_compile" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3547 | case "(($ac_try" in |
| 3548 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3549 | *) ac_try_echo=$ac_try;; |
| 3550 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3551 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3552 | $as_echo "$ac_try_echo"; } >&5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3553 | (eval "$ac_compile") 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3554 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3555 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3556 | test $ac_status = 0; }; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3557 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3558 | test -f "$ac_file" || continue; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3559 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3560 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3561 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3562 | break;; |
| 3563 | esac |
| 3564 | done |
| 3565 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3566 | $as_echo "$as_me: failed program was:" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3567 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3568 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3569 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3570 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3571 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3572 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3573 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3574 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3575 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3577 | $as_echo "$ac_cv_objext" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3578 | OBJEXT=$ac_cv_objext |
| 3579 | ac_objext=$OBJEXT |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3581 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3582 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3583 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3584 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3585 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3586 | /* end confdefs.h. */ |
| 3587 | |
| 3588 | int |
| 3589 | main () |
| 3590 | { |
| 3591 | #ifndef __GNUC__ |
| 3592 | choke me |
| 3593 | #endif |
| 3594 | |
| 3595 | ; |
| 3596 | return 0; |
| 3597 | } |
| 3598 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3599 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3600 | ac_compiler_gnu=yes |
| 3601 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3602 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3603 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3604 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3605 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3606 | |
| 3607 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3609 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3610 | if test $ac_compiler_gnu = yes; then |
| 3611 | GCC=yes |
| 3612 | else |
| 3613 | GCC= |
| 3614 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3615 | ac_test_CFLAGS=${CFLAGS+set} |
| 3616 | ac_save_CFLAGS=$CFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3618 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 3619 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 3620 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3621 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3622 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3623 | ac_c_werror_flag=yes |
| 3624 | ac_cv_prog_cc_g=no |
| 3625 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3627 | /* end confdefs.h. */ |
| 3628 | |
| 3629 | int |
| 3630 | main () |
| 3631 | { |
| 3632 | |
| 3633 | ; |
| 3634 | return 0; |
| 3635 | } |
| 3636 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3637 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3638 | ac_cv_prog_cc_g=yes |
| 3639 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3640 | CFLAGS="" |
| 3641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3642 | /* end confdefs.h. */ |
| 3643 | |
| 3644 | int |
| 3645 | main () |
| 3646 | { |
| 3647 | |
| 3648 | ; |
| 3649 | return 0; |
| 3650 | } |
| 3651 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3652 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3653 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3654 | else |
| 3655 | ac_c_werror_flag=$ac_save_c_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3656 | CFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3658 | /* end confdefs.h. */ |
| 3659 | |
| 3660 | int |
| 3661 | main () |
| 3662 | { |
| 3663 | |
| 3664 | ; |
| 3665 | return 0; |
| 3666 | } |
| 3667 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3668 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3669 | ac_cv_prog_cc_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3670 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3672 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3673 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3674 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3675 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3676 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3677 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3679 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3680 | if test "$ac_test_CFLAGS" = set; then |
| 3681 | CFLAGS=$ac_save_CFLAGS |
| 3682 | elif test $ac_cv_prog_cc_g = yes; then |
| 3683 | if test "$GCC" = yes; then |
| 3684 | CFLAGS="-g -O2" |
| 3685 | else |
| 3686 | CFLAGS="-g" |
| 3687 | fi |
| 3688 | else |
| 3689 | if test "$GCC" = yes; then |
| 3690 | CFLAGS="-O2" |
| 3691 | else |
| 3692 | CFLAGS= |
| 3693 | fi |
| 3694 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 3696 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 3697 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 3698 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3699 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3700 | ac_cv_prog_cc_c89=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3701 | ac_save_CC=$CC |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3703 | /* end confdefs.h. */ |
| 3704 | #include <stdarg.h> |
| 3705 | #include <stdio.h> |
| 3706 | #include <sys/types.h> |
| 3707 | #include <sys/stat.h> |
| 3708 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3709 | struct buf { int x; }; |
| 3710 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3711 | static char *e (p, i) |
| 3712 | char **p; |
| 3713 | int i; |
| 3714 | { |
| 3715 | return p[i]; |
| 3716 | } |
| 3717 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3718 | { |
| 3719 | char *s; |
| 3720 | va_list v; |
| 3721 | va_start (v,p); |
| 3722 | s = g (p, va_arg (v,int)); |
| 3723 | va_end (v); |
| 3724 | return s; |
| 3725 | } |
| 3726 | |
| 3727 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3728 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3729 | These don't provoke an error unfortunately, instead are silently treated |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3730 | as 'x'. The following induces an error, until -std is added to get |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3731 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3732 | 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] | 3733 | that's true only with -std. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3734 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3735 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3736 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3737 | inside strings and character constants. */ |
| 3738 | #define FOO(x) 'x' |
| 3739 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3740 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3741 | int test (int i, double x); |
| 3742 | struct s1 {int (*f) (int a);}; |
| 3743 | struct s2 {int (*f) (double a);}; |
| 3744 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3745 | int argc; |
| 3746 | char **argv; |
| 3747 | int |
| 3748 | main () |
| 3749 | { |
| 3750 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3751 | ; |
| 3752 | return 0; |
| 3753 | } |
| 3754 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3755 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3756 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3757 | do |
| 3758 | CC="$ac_save_CC $ac_arg" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3759 | if ac_fn_c_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3760 | ac_cv_prog_cc_c89=$ac_arg |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3761 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3762 | rm -f core conftest.err conftest.$ac_objext |
| 3763 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3764 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3765 | rm -f conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3766 | CC=$ac_save_CC |
| 3767 | |
| 3768 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3769 | # AC_CACHE_VAL |
| 3770 | case "x$ac_cv_prog_cc_c89" in |
| 3771 | x) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3773 | $as_echo "none needed" >&6; } ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3774 | xno) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3776 | $as_echo "unsupported" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3777 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3778 | CC="$CC $ac_cv_prog_cc_c89" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3780 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3781 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3782 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3783 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3784 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3785 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3786 | ac_ext=c |
| 3787 | ac_cpp='$CPP $CPPFLAGS' |
| 3788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3791 | DEPDIR="${am__leading_dot}deps" |
| 3792 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3793 | ac_config_commands="$ac_config_commands depfiles" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3794 | |
| 3795 | |
| 3796 | am_make=${MAKE-make} |
| 3797 | cat > confinc << 'END' |
| 3798 | am__doit: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3799 | @echo this is the am__doit target |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3800 | .PHONY: am__doit |
| 3801 | END |
| 3802 | # If we don't find an include directive, just comment out the code. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 3804 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3805 | am__include="#" |
| 3806 | am__quote= |
| 3807 | _am_result=none |
| 3808 | # First try GNU make style include. |
| 3809 | echo "include confinc" > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3810 | # Ignore all kinds of additional output from `make'. |
| 3811 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3812 | *the\ am__doit\ target*) |
| 3813 | am__include=include |
| 3814 | am__quote= |
| 3815 | _am_result=GNU |
| 3816 | ;; |
| 3817 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3818 | # Now try BSD make style include. |
| 3819 | if test "$am__include" = "#"; then |
| 3820 | echo '.include "confinc"' > confmf |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3821 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 3822 | *the\ am__doit\ target*) |
| 3823 | am__include=.include |
| 3824 | am__quote="\"" |
| 3825 | _am_result=BSD |
| 3826 | ;; |
| 3827 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3828 | fi |
| 3829 | |
| 3830 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 3832 | $as_echo "$_am_result" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3833 | rm -f confinc confmf |
| 3834 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3835 | # Check whether --enable-dependency-tracking was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3836 | if test "${enable_dependency_tracking+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 3837 | enableval=$enable_dependency_tracking; |
| 3838 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3839 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3840 | if test "x$enable_dependency_tracking" != xno; then |
| 3841 | am_depcomp="$ac_aux_dir/depcomp" |
| 3842 | AMDEPBACKSLASH='\' |
| 3843 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3844 | if test "x$enable_dependency_tracking" != xno; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3845 | AMDEP_TRUE= |
| 3846 | AMDEP_FALSE='#' |
| 3847 | else |
| 3848 | AMDEP_TRUE='#' |
| 3849 | AMDEP_FALSE= |
| 3850 | fi |
| 3851 | |
| 3852 | |
| 3853 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3854 | depcc="$CC" am_compiler_list= |
| 3855 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 3857 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 3858 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 3859 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3860 | else |
| 3861 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3862 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3863 | # making bogus files that we don't know about and never remove. For |
| 3864 | # instance it was reported that on HP-UX the gcc test will end up |
| 3865 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3866 | # in D'. |
| 3867 | mkdir conftest.dir |
| 3868 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3869 | # using a relative directory. |
| 3870 | cp "$am_depcomp" conftest.dir |
| 3871 | cd conftest.dir |
| 3872 | # We will build objects and dependencies in a subdirectory because |
| 3873 | # it helps to detect inapplicable dependency modes. For instance |
| 3874 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 3875 | # side effect of compilation, but ICC will put the dependencies in |
| 3876 | # the current directory while Tru64 will put them in the object |
| 3877 | # directory. |
| 3878 | mkdir sub |
| 3879 | |
| 3880 | am_cv_CC_dependencies_compiler_type=none |
| 3881 | if test "$am_compiler_list" = ""; then |
| 3882 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3883 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3884 | am__universal=false |
| 3885 | case " $depcc " in #( |
| 3886 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 3887 | esac |
| 3888 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3889 | for depmode in $am_compiler_list; do |
| 3890 | # Setup a source with many dependencies, because some compilers |
| 3891 | # like to wrap large dependency lists on column 80 (with \), and |
| 3892 | # we should not choose a depcomp mode which is confused by this. |
| 3893 | # |
| 3894 | # We need to recreate these files for each test, as the compiler may |
| 3895 | # overwrite some of them when testing with obscure command lines. |
| 3896 | # This happens at least with the AIX C compiler. |
| 3897 | : > sub/conftest.c |
| 3898 | for i in 1 2 3 4 5 6; do |
| 3899 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 3900 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 3901 | # Solaris 8's {/usr,}/bin/sh. |
| 3902 | touch sub/conftst$i.h |
| 3903 | done |
| 3904 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 3905 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3906 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 3907 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 3908 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 3909 | # versions had trouble with output in subdirs |
| 3910 | am__obj=sub/conftest.${OBJEXT-o} |
| 3911 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3912 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3913 | gcc) |
| 3914 | # This depmode causes a compiler race in universal mode. |
| 3915 | test "$am__universal" = false || continue |
| 3916 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3917 | nosideeffect) |
| 3918 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3919 | # only be used when explicitly requested |
| 3920 | if test "x$enable_dependency_tracking" = xyes; then |
| 3921 | continue |
| 3922 | else |
| 3923 | break |
| 3924 | fi |
| 3925 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3926 | msvisualcpp | msvcmsys) |
| 3927 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 3928 | # not run yet. These depmodes are late enough in the game, and |
| 3929 | # so weak that their functioning should not be impacted. |
| 3930 | am__obj=conftest.${OBJEXT-o} |
| 3931 | am__minus_obj= |
| 3932 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3933 | none) break ;; |
| 3934 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3935 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3936 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3937 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3938 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3939 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3940 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3941 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3942 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3943 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 3944 | # icc doesn't choke on unknown options, it will just issue warnings |
| 3945 | # or remarks (even with -Werror). So we grep stderr for any message |
| 3946 | # that says an option was ignored or not supported. |
| 3947 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 3948 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 3949 | # The diagnosis changed in icc 8.0: |
| 3950 | # icc: Command line remark: option '-MP' not supported |
| 3951 | if (grep 'ignoring option' conftest.err || |
| 3952 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 3953 | am_cv_CC_dependencies_compiler_type=$depmode |
| 3954 | break |
| 3955 | fi |
| 3956 | fi |
| 3957 | done |
| 3958 | |
| 3959 | cd .. |
| 3960 | rm -rf conftest.dir |
| 3961 | else |
| 3962 | am_cv_CC_dependencies_compiler_type=none |
| 3963 | fi |
| 3964 | |
| 3965 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 3967 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3968 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 3969 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 3970 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3971 | test "x$enable_dependency_tracking" != xno \ |
| 3972 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 3973 | am__fastdepCC_TRUE= |
| 3974 | am__fastdepCC_FALSE='#' |
| 3975 | else |
| 3976 | am__fastdepCC_TRUE='#' |
| 3977 | am__fastdepCC_FALSE= |
| 3978 | fi |
| 3979 | |
| 3980 | |
| 3981 | ac_ext=c |
| 3982 | ac_cpp='$CPP $CPPFLAGS' |
| 3983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3987 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3988 | # On Suns, sometimes $CPP names a directory. |
| 3989 | if test -n "$CPP" && test -d "$CPP"; then |
| 3990 | CPP= |
| 3991 | fi |
| 3992 | if test -z "$CPP"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 3993 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 3994 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 3995 | else |
| 3996 | # Double quotes because CPP needs to be expanded |
| 3997 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 3998 | do |
| 3999 | ac_preproc_ok=false |
| 4000 | for ac_c_preproc_warn_flag in '' yes |
| 4001 | do |
| 4002 | # Use a header file that comes with gcc, so configuring glibc |
| 4003 | # with a fresh cross-compiler works. |
| 4004 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4005 | # <limits.h> exists even on freestanding compilers. |
| 4006 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4007 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4008 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4009 | /* end confdefs.h. */ |
| 4010 | #ifdef __STDC__ |
| 4011 | # include <limits.h> |
| 4012 | #else |
| 4013 | # include <assert.h> |
| 4014 | #endif |
| 4015 | Syntax error |
| 4016 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4017 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4018 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4019 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4020 | # Broken: fails on valid input. |
| 4021 | continue |
| 4022 | fi |
| 4023 | rm -f conftest.err conftest.$ac_ext |
| 4024 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4025 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4026 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4028 | /* end confdefs.h. */ |
| 4029 | #include <ac_nonexistent.h> |
| 4030 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4031 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4032 | # Broken: success on invalid input. |
| 4033 | continue |
| 4034 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4035 | # Passes both tests. |
| 4036 | ac_preproc_ok=: |
| 4037 | break |
| 4038 | fi |
| 4039 | rm -f conftest.err conftest.$ac_ext |
| 4040 | |
| 4041 | done |
| 4042 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4043 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4044 | if $ac_preproc_ok; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4045 | break |
| 4046 | fi |
| 4047 | |
| 4048 | done |
| 4049 | ac_cv_prog_CPP=$CPP |
| 4050 | |
| 4051 | fi |
| 4052 | CPP=$ac_cv_prog_CPP |
| 4053 | else |
| 4054 | ac_cv_prog_CPP=$CPP |
| 4055 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 4057 | $as_echo "$CPP" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4058 | ac_preproc_ok=false |
| 4059 | for ac_c_preproc_warn_flag in '' yes |
| 4060 | do |
| 4061 | # Use a header file that comes with gcc, so configuring glibc |
| 4062 | # with a fresh cross-compiler works. |
| 4063 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4064 | # <limits.h> exists even on freestanding compilers. |
| 4065 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4066 | # not just through cpp. "Syntax error" is here to catch this case. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4067 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4068 | /* end confdefs.h. */ |
| 4069 | #ifdef __STDC__ |
| 4070 | # include <limits.h> |
| 4071 | #else |
| 4072 | # include <assert.h> |
| 4073 | #endif |
| 4074 | Syntax error |
| 4075 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4076 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4077 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4078 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4079 | # Broken: fails on valid input. |
| 4080 | continue |
| 4081 | fi |
| 4082 | rm -f conftest.err conftest.$ac_ext |
| 4083 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4084 | # OK, works on sane cases. Now check whether nonexistent headers |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4085 | # can be detected and how. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4086 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4087 | /* end confdefs.h. */ |
| 4088 | #include <ac_nonexistent.h> |
| 4089 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4090 | if ac_fn_c_try_cpp "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4091 | # Broken: success on invalid input. |
| 4092 | continue |
| 4093 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4094 | # Passes both tests. |
| 4095 | ac_preproc_ok=: |
| 4096 | break |
| 4097 | fi |
| 4098 | rm -f conftest.err conftest.$ac_ext |
| 4099 | |
| 4100 | done |
| 4101 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4102 | rm -f conftest.err conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4103 | if $ac_preproc_ok; then : |
| 4104 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4105 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4106 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4107 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4108 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4109 | See \`config.log' for more details." "$LINENO" 5; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4110 | fi |
| 4111 | |
| 4112 | ac_ext=c |
| 4113 | ac_cpp='$CPP $CPPFLAGS' |
| 4114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4117 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4118 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4119 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 4120 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4121 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4122 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4123 | if test -z "$CXX"; then |
| 4124 | if test -n "$CCC"; then |
| 4125 | CXX=$CCC |
| 4126 | else |
| 4127 | if test -n "$ac_tool_prefix"; then |
| 4128 | 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] | 4129 | do |
| 4130 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4131 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4133 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4134 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 4135 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4136 | else |
| 4137 | if test -n "$CXX"; then |
| 4138 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4139 | else |
| 4140 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4141 | for as_dir in $PATH |
| 4142 | do |
| 4143 | IFS=$as_save_IFS |
| 4144 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4145 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4146 | 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] | 4147 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4148 | $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] | 4149 | break 2 |
| 4150 | fi |
| 4151 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4152 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4153 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4154 | |
| 4155 | fi |
| 4156 | fi |
| 4157 | CXX=$ac_cv_prog_CXX |
| 4158 | if test -n "$CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4160 | $as_echo "$CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4161 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4163 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4164 | fi |
| 4165 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4166 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4167 | test -n "$CXX" && break |
| 4168 | done |
| 4169 | fi |
| 4170 | if test -z "$CXX"; then |
| 4171 | ac_ct_CXX=$CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4172 | 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] | 4173 | do |
| 4174 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4175 | set dummy $ac_prog; ac_word=$2 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4177 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4178 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 4179 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4180 | else |
| 4181 | if test -n "$ac_ct_CXX"; then |
| 4182 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 4183 | else |
| 4184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4185 | for as_dir in $PATH |
| 4186 | do |
| 4187 | IFS=$as_save_IFS |
| 4188 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4189 | for ac_exec_ext in '' $ac_executable_extensions; do |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4190 | 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] | 4191 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4192 | $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] | 4193 | break 2 |
| 4194 | fi |
| 4195 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4196 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4197 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4198 | |
| 4199 | fi |
| 4200 | fi |
| 4201 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 4202 | if test -n "$ac_ct_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 4204 | $as_echo "$ac_ct_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4205 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4207 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4208 | fi |
| 4209 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4210 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4211 | test -n "$ac_ct_CXX" && break |
| 4212 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4213 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4214 | if test "x$ac_ct_CXX" = x; then |
| 4215 | CXX="g++" |
| 4216 | else |
| 4217 | case $cross_compiling:$ac_tool_warned in |
| 4218 | yes:) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4220 | $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] | 4221 | ac_tool_warned=yes ;; |
| 4222 | esac |
| 4223 | CXX=$ac_ct_CXX |
| 4224 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4225 | fi |
| 4226 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4227 | fi |
| 4228 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4229 | # Provide some information about the compiler. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4230 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 4231 | set X $ac_compile |
| 4232 | ac_compiler=$2 |
| 4233 | for ac_option in --version -v -V -qversion; do |
| 4234 | { { ac_try="$ac_compiler $ac_option >&5" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4235 | case "(($ac_try" in |
| 4236 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4237 | *) ac_try_echo=$ac_try;; |
| 4238 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4239 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4240 | $as_echo "$ac_try_echo"; } >&5 |
| 4241 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4242 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4243 | if test -s conftest.err; then |
| 4244 | sed '10a\ |
| 4245 | ... rest of stderr output deleted ... |
| 4246 | 10q' conftest.err >conftest.er1 |
| 4247 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4248 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4249 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4250 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4251 | test $ac_status = 0; } |
| 4252 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4253 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 4255 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 4256 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 4257 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4258 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4260 | /* end confdefs.h. */ |
| 4261 | |
| 4262 | int |
| 4263 | main () |
| 4264 | { |
| 4265 | #ifndef __GNUC__ |
| 4266 | choke me |
| 4267 | #endif |
| 4268 | |
| 4269 | ; |
| 4270 | return 0; |
| 4271 | } |
| 4272 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4273 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4274 | ac_compiler_gnu=yes |
| 4275 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4276 | ac_compiler_gnu=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4277 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4278 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4279 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 4280 | |
| 4281 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 4283 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 4284 | if test $ac_compiler_gnu = yes; then |
| 4285 | GXX=yes |
| 4286 | else |
| 4287 | GXX= |
| 4288 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4289 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 4290 | ac_save_CXXFLAGS=$CXXFLAGS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 4292 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 4293 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 4294 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4295 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4296 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 4297 | ac_cxx_werror_flag=yes |
| 4298 | ac_cv_prog_cxx_g=no |
| 4299 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4301 | /* end confdefs.h. */ |
| 4302 | |
| 4303 | int |
| 4304 | main () |
| 4305 | { |
| 4306 | |
| 4307 | ; |
| 4308 | return 0; |
| 4309 | } |
| 4310 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4311 | if ac_fn_cxx_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4312 | ac_cv_prog_cxx_g=yes |
| 4313 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4314 | CXXFLAGS="" |
| 4315 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4316 | /* end confdefs.h. */ |
| 4317 | |
| 4318 | int |
| 4319 | main () |
| 4320 | { |
| 4321 | |
| 4322 | ; |
| 4323 | return 0; |
| 4324 | } |
| 4325 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4326 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4327 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4328 | else |
| 4329 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4330 | CXXFLAGS="-g" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4331 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4332 | /* end confdefs.h. */ |
| 4333 | |
| 4334 | int |
| 4335 | main () |
| 4336 | { |
| 4337 | |
| 4338 | ; |
| 4339 | return 0; |
| 4340 | } |
| 4341 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4342 | if ac_fn_cxx_try_compile "$LINENO"; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4343 | ac_cv_prog_cxx_g=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4344 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4345 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4346 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4348 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4349 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4350 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 4351 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 4353 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4354 | if test "$ac_test_CXXFLAGS" = set; then |
| 4355 | CXXFLAGS=$ac_save_CXXFLAGS |
| 4356 | elif test $ac_cv_prog_cxx_g = yes; then |
| 4357 | if test "$GXX" = yes; then |
| 4358 | CXXFLAGS="-g -O2" |
| 4359 | else |
| 4360 | CXXFLAGS="-g" |
| 4361 | fi |
| 4362 | else |
| 4363 | if test "$GXX" = yes; then |
| 4364 | CXXFLAGS="-O2" |
| 4365 | else |
| 4366 | CXXFLAGS= |
| 4367 | fi |
| 4368 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4369 | ac_ext=c |
| 4370 | ac_cpp='$CPP $CPPFLAGS' |
| 4371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4374 | |
| 4375 | depcc="$CXX" am_compiler_list= |
| 4376 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 4378 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 4379 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 4380 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4381 | else |
| 4382 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 4383 | # We make a subdir and do the tests there. Otherwise we can end up |
| 4384 | # making bogus files that we don't know about and never remove. For |
| 4385 | # instance it was reported that on HP-UX the gcc test will end up |
| 4386 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 4387 | # in D'. |
| 4388 | mkdir conftest.dir |
| 4389 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 4390 | # using a relative directory. |
| 4391 | cp "$am_depcomp" conftest.dir |
| 4392 | cd conftest.dir |
| 4393 | # We will build objects and dependencies in a subdirectory because |
| 4394 | # it helps to detect inapplicable dependency modes. For instance |
| 4395 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 4396 | # side effect of compilation, but ICC will put the dependencies in |
| 4397 | # the current directory while Tru64 will put them in the object |
| 4398 | # directory. |
| 4399 | mkdir sub |
| 4400 | |
| 4401 | am_cv_CXX_dependencies_compiler_type=none |
| 4402 | if test "$am_compiler_list" = ""; then |
| 4403 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 4404 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4405 | am__universal=false |
| 4406 | case " $depcc " in #( |
| 4407 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 4408 | esac |
| 4409 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4410 | for depmode in $am_compiler_list; do |
| 4411 | # Setup a source with many dependencies, because some compilers |
| 4412 | # like to wrap large dependency lists on column 80 (with \), and |
| 4413 | # we should not choose a depcomp mode which is confused by this. |
| 4414 | # |
| 4415 | # We need to recreate these files for each test, as the compiler may |
| 4416 | # overwrite some of them when testing with obscure command lines. |
| 4417 | # This happens at least with the AIX C compiler. |
| 4418 | : > sub/conftest.c |
| 4419 | for i in 1 2 3 4 5 6; do |
| 4420 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 4421 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 4422 | # Solaris 8's {/usr,}/bin/sh. |
| 4423 | touch sub/conftst$i.h |
| 4424 | done |
| 4425 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 4426 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4427 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4428 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4429 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 4430 | # versions had trouble with output in subdirs |
| 4431 | am__obj=sub/conftest.${OBJEXT-o} |
| 4432 | am__minus_obj="-o $am__obj" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4433 | case $depmode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4434 | gcc) |
| 4435 | # This depmode causes a compiler race in universal mode. |
| 4436 | test "$am__universal" = false || continue |
| 4437 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4438 | nosideeffect) |
| 4439 | # after this tag, mechanisms are not by side-effect, so they'll |
| 4440 | # only be used when explicitly requested |
| 4441 | if test "x$enable_dependency_tracking" = xyes; then |
| 4442 | continue |
| 4443 | else |
| 4444 | break |
| 4445 | fi |
| 4446 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4447 | msvisualcpp | msvcmsys) |
| 4448 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 4449 | # not run yet. These depmodes are late enough in the game, and |
| 4450 | # so weak that their functioning should not be impacted. |
| 4451 | am__obj=conftest.${OBJEXT-o} |
| 4452 | am__minus_obj= |
| 4453 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4454 | none) break ;; |
| 4455 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4456 | if depmode=$depmode \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4457 | source=sub/conftest.c object=$am__obj \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4458 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4459 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4460 | >/dev/null 2>conftest.err && |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4461 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4462 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4463 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4464 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4465 | # icc doesn't choke on unknown options, it will just issue warnings |
| 4466 | # or remarks (even with -Werror). So we grep stderr for any message |
| 4467 | # that says an option was ignored or not supported. |
| 4468 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 4469 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 4470 | # The diagnosis changed in icc 8.0: |
| 4471 | # icc: Command line remark: option '-MP' not supported |
| 4472 | if (grep 'ignoring option' conftest.err || |
| 4473 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 4474 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 4475 | break |
| 4476 | fi |
| 4477 | fi |
| 4478 | done |
| 4479 | |
| 4480 | cd .. |
| 4481 | rm -rf conftest.dir |
| 4482 | else |
| 4483 | am_cv_CXX_dependencies_compiler_type=none |
| 4484 | fi |
| 4485 | |
| 4486 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 4488 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4489 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 4490 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 4491 | if |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4492 | test "x$enable_dependency_tracking" != xno \ |
| 4493 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 4494 | am__fastdepCXX_TRUE= |
| 4495 | am__fastdepCXX_FALSE='#' |
| 4496 | else |
| 4497 | am__fastdepCXX_TRUE='#' |
| 4498 | am__fastdepCXX_FALSE= |
| 4499 | fi |
| 4500 | |
| 4501 | |
| 4502 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4503 | case `pwd` in |
| 4504 | *\ * | *\ *) |
| 4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 4506 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 4507 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4508 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4509 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4510 | |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 4511 | macro_version='2.2.6b' |
| 4512 | macro_revision='1.3017' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4513 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4514 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4515 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4516 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4517 | |
| 4518 | |
| 4519 | |
| 4520 | |
| 4521 | |
| 4522 | |
| 4523 | |
| 4524 | |
| 4525 | |
| 4526 | ltmain="$ac_aux_dir/ltmain.sh" |
| 4527 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4528 | # Make sure we can run config.sub. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4529 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4530 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4531 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4533 | $as_echo_n "checking build system type... " >&6; } |
| 4534 | if test "${ac_cv_build+set}" = set; then : |
| 4535 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4536 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4537 | ac_build_alias=$build_alias |
| 4538 | test "x$ac_build_alias" = x && |
| 4539 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4540 | test "x$ac_build_alias" = x && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4541 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4542 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4543 | 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] | 4544 | |
| 4545 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4547 | $as_echo "$ac_cv_build" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4548 | case $ac_cv_build in |
| 4549 | *-*-*) ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4550 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4551 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4552 | build=$ac_cv_build |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4553 | ac_save_IFS=$IFS; IFS='-' |
| 4554 | set x $ac_cv_build |
| 4555 | shift |
| 4556 | build_cpu=$1 |
| 4557 | build_vendor=$2 |
| 4558 | shift; shift |
| 4559 | # Remember, the first character of IFS is used to create $*, |
| 4560 | # except with old shells: |
| 4561 | build_os=$* |
| 4562 | IFS=$ac_save_IFS |
| 4563 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4564 | |
| 4565 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4566 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4567 | $as_echo_n "checking host system type... " >&6; } |
| 4568 | if test "${ac_cv_host+set}" = set; then : |
| 4569 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4570 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4571 | if test "x$host_alias" = x; then |
| 4572 | ac_cv_host=$ac_cv_build |
| 4573 | else |
| 4574 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4575 | 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] | 4576 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4577 | |
| 4578 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4579 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4580 | $as_echo "$ac_cv_host" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4581 | case $ac_cv_host in |
| 4582 | *-*-*) ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4583 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4584 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4585 | host=$ac_cv_host |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4586 | ac_save_IFS=$IFS; IFS='-' |
| 4587 | set x $ac_cv_host |
| 4588 | shift |
| 4589 | host_cpu=$1 |
| 4590 | host_vendor=$2 |
| 4591 | shift; shift |
| 4592 | # Remember, the first character of IFS is used to create $*, |
| 4593 | # except with old shells: |
| 4594 | host_os=$* |
| 4595 | IFS=$ac_save_IFS |
| 4596 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4597 | |
| 4598 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 4600 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
| 4601 | if test "${ac_cv_path_SED+set}" = set; then : |
| 4602 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4603 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4604 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 4605 | for ac_i in 1 2 3 4 5 6 7; do |
| 4606 | ac_script="$ac_script$as_nl$ac_script" |
| 4607 | done |
| 4608 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 4609 | { ac_script=; unset ac_script;} |
| 4610 | if test -z "$SED"; then |
| 4611 | ac_path_SED_found=false |
| 4612 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4614 | for as_dir in $PATH |
| 4615 | do |
| 4616 | IFS=$as_save_IFS |
| 4617 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4618 | for ac_prog in sed gsed; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4619 | for ac_exec_ext in '' $ac_executable_extensions; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4620 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
| 4621 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue |
| 4622 | # Check for GNU ac_path_SED and select it if it is found. |
| 4623 | # Check for GNU $ac_path_SED |
| 4624 | case `"$ac_path_SED" --version 2>&1` in |
| 4625 | *GNU*) |
| 4626 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 4627 | *) |
| 4628 | ac_count=0 |
| 4629 | $as_echo_n 0123456789 >"conftest.in" |
| 4630 | while : |
| 4631 | do |
| 4632 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4633 | mv "conftest.tmp" "conftest.in" |
| 4634 | cp "conftest.in" "conftest.nl" |
| 4635 | $as_echo '' >> "conftest.nl" |
| 4636 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4637 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4638 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4639 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 4640 | # Best one so far, save it but keep looking for a better one |
| 4641 | ac_cv_path_SED="$ac_path_SED" |
| 4642 | ac_path_SED_max=$ac_count |
| 4643 | fi |
| 4644 | # 10*(2^10) chars as input seems more than enough |
| 4645 | test $ac_count -gt 10 && break |
| 4646 | done |
| 4647 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4648 | esac |
| 4649 | |
| 4650 | $ac_path_SED_found && break 3 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4651 | done |
| 4652 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4653 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4654 | IFS=$as_save_IFS |
| 4655 | if test -z "$ac_cv_path_SED"; then |
| 4656 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 4657 | fi |
| 4658 | else |
| 4659 | ac_cv_path_SED=$SED |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4660 | fi |
| 4661 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4662 | fi |
| 4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 4664 | $as_echo "$ac_cv_path_SED" >&6; } |
| 4665 | SED="$ac_cv_path_SED" |
| 4666 | rm -f conftest.sed |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 4667 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4668 | test -z "$SED" && SED=sed |
| 4669 | Xsed="$SED -e 1s/^X//" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4670 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4671 | |
| 4672 | |
| 4673 | |
| 4674 | |
| 4675 | |
| 4676 | |
| 4677 | |
| 4678 | |
| 4679 | |
| 4680 | |
| 4681 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4682 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 4683 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 4684 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4685 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4686 | if test -z "$GREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4687 | ac_path_GREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4688 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4690 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4691 | do |
| 4692 | IFS=$as_save_IFS |
| 4693 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4694 | for ac_prog in grep ggrep; do |
| 4695 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4696 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4697 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 4698 | # Check for GNU ac_path_GREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4699 | # Check for GNU $ac_path_GREP |
| 4700 | case `"$ac_path_GREP" --version 2>&1` in |
| 4701 | *GNU*) |
| 4702 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4703 | *) |
| 4704 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4705 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4706 | while : |
| 4707 | do |
| 4708 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4709 | mv "conftest.tmp" "conftest.in" |
| 4710 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4711 | $as_echo 'GREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4712 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4713 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4714 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4715 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4716 | # Best one so far, save it but keep looking for a better one |
| 4717 | ac_cv_path_GREP="$ac_path_GREP" |
| 4718 | ac_path_GREP_max=$ac_count |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4719 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4720 | # 10*(2^10) chars as input seems more than enough |
| 4721 | test $ac_count -gt 10 && break |
| 4722 | done |
| 4723 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4724 | esac |
| 4725 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4726 | $ac_path_GREP_found && break 3 |
| 4727 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4728 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4729 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4730 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4731 | if test -z "$ac_cv_path_GREP"; then |
| 4732 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4733 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4734 | else |
| 4735 | ac_cv_path_GREP=$GREP |
| 4736 | fi |
| 4737 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4738 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4740 | $as_echo "$ac_cv_path_GREP" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4741 | GREP="$ac_cv_path_GREP" |
| 4742 | |
| 4743 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 4745 | $as_echo_n "checking for egrep... " >&6; } |
| 4746 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 4747 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4748 | else |
| 4749 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 4750 | then ac_cv_path_EGREP="$GREP -E" |
| 4751 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4752 | if test -z "$EGREP"; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4753 | ac_path_EGREP_found=false |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4754 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4756 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4757 | do |
| 4758 | IFS=$as_save_IFS |
| 4759 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4760 | for ac_prog in egrep; do |
| 4761 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4762 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4763 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 4764 | # Check for GNU ac_path_EGREP and select it if it is found. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4765 | # Check for GNU $ac_path_EGREP |
| 4766 | case `"$ac_path_EGREP" --version 2>&1` in |
| 4767 | *GNU*) |
| 4768 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 4769 | *) |
| 4770 | ac_count=0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4771 | $as_echo_n 0123456789 >"conftest.in" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4772 | while : |
| 4773 | do |
| 4774 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4775 | mv "conftest.tmp" "conftest.in" |
| 4776 | cp "conftest.in" "conftest.nl" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4777 | $as_echo 'EGREP' >> "conftest.nl" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4778 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4779 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4780 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4781 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 4782 | # Best one so far, save it but keep looking for a better one |
| 4783 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 4784 | ac_path_EGREP_max=$ac_count |
| 4785 | fi |
| 4786 | # 10*(2^10) chars as input seems more than enough |
| 4787 | test $ac_count -gt 10 && break |
| 4788 | done |
| 4789 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4790 | esac |
| 4791 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4792 | $ac_path_EGREP_found && break 3 |
| 4793 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4794 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4795 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4796 | IFS=$as_save_IFS |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4797 | if test -z "$ac_cv_path_EGREP"; then |
| 4798 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4799 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4800 | else |
| 4801 | ac_cv_path_EGREP=$EGREP |
| 4802 | fi |
| 4803 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4804 | fi |
| 4805 | fi |
| 4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 4807 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 4808 | EGREP="$ac_cv_path_EGREP" |
| 4809 | |
| 4810 | |
| 4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4812 | $as_echo_n "checking for fgrep... " >&6; } |
| 4813 | if test "${ac_cv_path_FGREP+set}" = set; then : |
| 4814 | $as_echo_n "(cached) " >&6 |
| 4815 | else |
| 4816 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4817 | then ac_cv_path_FGREP="$GREP -F" |
| 4818 | else |
| 4819 | if test -z "$FGREP"; then |
| 4820 | ac_path_FGREP_found=false |
| 4821 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 4822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4823 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4824 | do |
| 4825 | IFS=$as_save_IFS |
| 4826 | test -z "$as_dir" && as_dir=. |
| 4827 | for ac_prog in fgrep; do |
| 4828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4829 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 4830 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue |
| 4831 | # Check for GNU ac_path_FGREP and select it if it is found. |
| 4832 | # Check for GNU $ac_path_FGREP |
| 4833 | case `"$ac_path_FGREP" --version 2>&1` in |
| 4834 | *GNU*) |
| 4835 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4836 | *) |
| 4837 | ac_count=0 |
| 4838 | $as_echo_n 0123456789 >"conftest.in" |
| 4839 | while : |
| 4840 | do |
| 4841 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4842 | mv "conftest.tmp" "conftest.in" |
| 4843 | cp "conftest.in" "conftest.nl" |
| 4844 | $as_echo 'FGREP' >> "conftest.nl" |
| 4845 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4846 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4847 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4848 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4849 | # Best one so far, save it but keep looking for a better one |
| 4850 | ac_cv_path_FGREP="$ac_path_FGREP" |
| 4851 | ac_path_FGREP_max=$ac_count |
| 4852 | fi |
| 4853 | # 10*(2^10) chars as input seems more than enough |
| 4854 | test $ac_count -gt 10 && break |
| 4855 | done |
| 4856 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4857 | esac |
| 4858 | |
| 4859 | $ac_path_FGREP_found && break 3 |
| 4860 | done |
| 4861 | done |
| 4862 | done |
| 4863 | IFS=$as_save_IFS |
| 4864 | if test -z "$ac_cv_path_FGREP"; then |
| 4865 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4866 | fi |
| 4867 | else |
| 4868 | ac_cv_path_FGREP=$FGREP |
| 4869 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4870 | |
| 4871 | fi |
| 4872 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4874 | $as_echo "$ac_cv_path_FGREP" >&6; } |
| 4875 | FGREP="$ac_cv_path_FGREP" |
| 4876 | |
| 4877 | |
| 4878 | test -z "$GREP" && GREP=grep |
| 4879 | |
| 4880 | |
| 4881 | |
| 4882 | |
| 4883 | |
| 4884 | |
| 4885 | |
| 4886 | |
| 4887 | |
| 4888 | |
| 4889 | |
| 4890 | |
| 4891 | |
| 4892 | |
| 4893 | |
| 4894 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4895 | |
| 4896 | |
| 4897 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4898 | # Check whether --with-gnu-ld was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4899 | if test "${with_gnu_ld+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4900 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4901 | else |
| 4902 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4903 | fi |
| 4904 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4905 | ac_prog=ld |
| 4906 | if test "$GCC" = yes; then |
| 4907 | # Check if gcc -print-prog-name=ld gives a path. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 4909 | $as_echo_n "checking for ld used by $CC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4910 | case $host in |
| 4911 | *-*-mingw*) |
| 4912 | # gcc leaves a trailing carriage return which upsets mingw |
| 4913 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 4914 | *) |
| 4915 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 4916 | esac |
| 4917 | case $ac_prog in |
| 4918 | # Accept absolute paths. |
| 4919 | [\\/]* | ?:[\\/]*) |
| 4920 | re_direlt='/[^/][^/]*/\.\./' |
| 4921 | # Canonicalize the pathname of ld |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4922 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 4923 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 4924 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4925 | done |
| 4926 | test -z "$LD" && LD="$ac_prog" |
| 4927 | ;; |
| 4928 | "") |
| 4929 | # If it fails, then pretend we aren't using GCC. |
| 4930 | ac_prog=ld |
| 4931 | ;; |
| 4932 | *) |
| 4933 | # If it is relative, then search for the first ld in PATH. |
| 4934 | with_gnu_ld=unknown |
| 4935 | ;; |
| 4936 | esac |
| 4937 | elif test "$with_gnu_ld" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 4939 | $as_echo_n "checking for GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4940 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 4942 | $as_echo_n "checking for non-GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4943 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4944 | if test "${lt_cv_path_LD+set}" = set; then : |
| 4945 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4946 | else |
| 4947 | if test -z "$LD"; then |
| 4948 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 4949 | for ac_dir in $PATH; do |
| 4950 | IFS="$lt_save_ifs" |
| 4951 | test -z "$ac_dir" && ac_dir=. |
| 4952 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 4953 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 4954 | # 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] | 4955 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4956 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 4957 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 4958 | *GNU* | *'with BFD'*) |
| 4959 | test "$with_gnu_ld" != no && break |
| 4960 | ;; |
| 4961 | *) |
| 4962 | test "$with_gnu_ld" != yes && break |
| 4963 | ;; |
| 4964 | esac |
| 4965 | fi |
| 4966 | done |
| 4967 | IFS="$lt_save_ifs" |
| 4968 | else |
| 4969 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 4970 | fi |
| 4971 | fi |
| 4972 | |
| 4973 | LD="$lt_cv_path_LD" |
| 4974 | if test -n "$LD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4976 | $as_echo "$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4977 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4979 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4980 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4981 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 4983 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 4984 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 4985 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4986 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 4987 | # 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] | 4988 | case `$LD -v 2>&1 </dev/null` in |
| 4989 | *GNU* | *'with BFD'*) |
| 4990 | lt_cv_prog_gnu_ld=yes |
| 4991 | ;; |
| 4992 | *) |
| 4993 | lt_cv_prog_gnu_ld=no |
| 4994 | ;; |
| 4995 | esac |
| 4996 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 4997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 4998 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 4999 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 5000 | |
| 5001 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5002 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5003 | |
| 5004 | |
| 5005 | |
| 5006 | |
| 5007 | |
| 5008 | |
| 5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 5010 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 5011 | if test "${lt_cv_path_NM+set}" = set; then : |
| 5012 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5013 | else |
| 5014 | if test -n "$NM"; then |
| 5015 | # Let the user override the test. |
| 5016 | lt_cv_path_NM="$NM" |
| 5017 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5018 | lt_nm_to_check="${ac_tool_prefix}nm" |
| 5019 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 5020 | lt_nm_to_check="$lt_nm_to_check nm" |
| 5021 | fi |
| 5022 | for lt_tmp_nm in $lt_nm_to_check; do |
| 5023 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 5024 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 5025 | IFS="$lt_save_ifs" |
| 5026 | test -z "$ac_dir" && ac_dir=. |
| 5027 | tmp_nm="$ac_dir/$lt_tmp_nm" |
| 5028 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
| 5029 | # Check to see if the nm accepts a BSD-compat flag. |
| 5030 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 5031 | # nm: unknown option "B" ignored |
| 5032 | # Tru64's nm complains that /dev/null is an invalid object file |
| 5033 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
| 5034 | */dev/null* | *'Invalid file or object type'*) |
| 5035 | lt_cv_path_NM="$tmp_nm -B" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5036 | break |
| 5037 | ;; |
| 5038 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5039 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
| 5040 | */dev/null*) |
| 5041 | lt_cv_path_NM="$tmp_nm -p" |
| 5042 | break |
| 5043 | ;; |
| 5044 | *) |
| 5045 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 5046 | continue # so that we can try to find one that supports BSD flags |
| 5047 | ;; |
| 5048 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5049 | ;; |
| 5050 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5051 | fi |
| 5052 | done |
| 5053 | IFS="$lt_save_ifs" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5054 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5055 | : ${lt_cv_path_NM=no} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5056 | fi |
| 5057 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 5059 | $as_echo "$lt_cv_path_NM" >&6; } |
| 5060 | if test "$lt_cv_path_NM" != "no"; then |
| 5061 | NM="$lt_cv_path_NM" |
| 5062 | else |
| 5063 | # Didn't find any BSD compatible name lister, look for dumpbin. |
| 5064 | if test -n "$ac_tool_prefix"; then |
| 5065 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5066 | do |
| 5067 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5068 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5070 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5071 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : |
| 5072 | $as_echo_n "(cached) " >&6 |
| 5073 | else |
| 5074 | if test -n "$DUMPBIN"; then |
| 5075 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 5076 | else |
| 5077 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5078 | for as_dir in $PATH |
| 5079 | do |
| 5080 | IFS=$as_save_IFS |
| 5081 | test -z "$as_dir" && as_dir=. |
| 5082 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5083 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5084 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 5085 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5086 | break 2 |
| 5087 | fi |
| 5088 | done |
| 5089 | done |
| 5090 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5091 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5092 | fi |
| 5093 | fi |
| 5094 | DUMPBIN=$ac_cv_prog_DUMPBIN |
| 5095 | if test -n "$DUMPBIN"; then |
| 5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 5097 | $as_echo "$DUMPBIN" >&6; } |
| 5098 | else |
| 5099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5100 | $as_echo "no" >&6; } |
| 5101 | fi |
| 5102 | |
| 5103 | |
| 5104 | test -n "$DUMPBIN" && break |
| 5105 | done |
| 5106 | fi |
| 5107 | if test -z "$DUMPBIN"; then |
| 5108 | ac_ct_DUMPBIN=$DUMPBIN |
| 5109 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" |
| 5110 | do |
| 5111 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5112 | set dummy $ac_prog; ac_word=$2 |
| 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5114 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5115 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : |
| 5116 | $as_echo_n "(cached) " >&6 |
| 5117 | else |
| 5118 | if test -n "$ac_ct_DUMPBIN"; then |
| 5119 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 5120 | else |
| 5121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5122 | for as_dir in $PATH |
| 5123 | do |
| 5124 | IFS=$as_save_IFS |
| 5125 | test -z "$as_dir" && as_dir=. |
| 5126 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5128 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 5129 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5130 | break 2 |
| 5131 | fi |
| 5132 | done |
| 5133 | done |
| 5134 | IFS=$as_save_IFS |
| 5135 | |
| 5136 | fi |
| 5137 | fi |
| 5138 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 5139 | if test -n "$ac_ct_DUMPBIN"; then |
| 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 5141 | $as_echo "$ac_ct_DUMPBIN" >&6; } |
| 5142 | else |
| 5143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5144 | $as_echo "no" >&6; } |
| 5145 | fi |
| 5146 | |
| 5147 | |
| 5148 | test -n "$ac_ct_DUMPBIN" && break |
| 5149 | done |
| 5150 | |
| 5151 | if test "x$ac_ct_DUMPBIN" = x; then |
| 5152 | DUMPBIN=":" |
| 5153 | else |
| 5154 | case $cross_compiling:$ac_tool_warned in |
| 5155 | yes:) |
| 5156 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5157 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5158 | ac_tool_warned=yes ;; |
| 5159 | esac |
| 5160 | DUMPBIN=$ac_ct_DUMPBIN |
| 5161 | fi |
| 5162 | fi |
| 5163 | |
| 5164 | |
| 5165 | if test "$DUMPBIN" != ":"; then |
| 5166 | NM="$DUMPBIN" |
| 5167 | fi |
| 5168 | fi |
| 5169 | test -z "$NM" && NM=nm |
| 5170 | |
| 5171 | |
| 5172 | |
| 5173 | |
| 5174 | |
| 5175 | |
| 5176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 5177 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
| 5178 | if test "${lt_cv_nm_interface+set}" = set; then : |
| 5179 | $as_echo_n "(cached) " >&6 |
| 5180 | else |
| 5181 | lt_cv_nm_interface="BSD nm" |
| 5182 | echo "int some_variable = 0;" > conftest.$ac_ext |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5183 | (eval echo "\"\$as_me:5183: $ac_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5184 | (eval "$ac_compile" 2>conftest.err) |
| 5185 | cat conftest.err >&5 |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5186 | (eval echo "\"\$as_me:5186: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5187 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 5188 | cat conftest.err >&5 |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5189 | (eval echo "\"\$as_me:5189: output\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5190 | cat conftest.out >&5 |
| 5191 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 5192 | lt_cv_nm_interface="MS dumpbin" |
| 5193 | fi |
| 5194 | rm -f conftest* |
| 5195 | fi |
| 5196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 5197 | $as_echo "$lt_cv_nm_interface" >&6; } |
| 5198 | |
| 5199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 5200 | $as_echo_n "checking whether ln -s works... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5201 | LN_S=$as_ln_s |
| 5202 | if test "$LN_S" = "ln -s"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5203 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5204 | $as_echo "yes" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5205 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 5207 | $as_echo "no, using $LN_S" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5208 | fi |
| 5209 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5210 | # find the maximum length of command line arguments |
| 5211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 5212 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
| 5213 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : |
| 5214 | $as_echo_n "(cached) " >&6 |
| 5215 | else |
| 5216 | i=0 |
| 5217 | teststring="ABCD" |
| 5218 | |
| 5219 | case $build_os in |
| 5220 | msdosdjgpp*) |
| 5221 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
| 5222 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
| 5223 | # during glob expansion). Even if it were fixed, the result of this |
| 5224 | # check would be larger than it should be. |
| 5225 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 5226 | ;; |
| 5227 | |
| 5228 | gnu*) |
| 5229 | # Under GNU Hurd, this test is not required because there is |
| 5230 | # no limit to the length of command line arguments. |
| 5231 | # Libtool will interpret -1 as no limit whatsoever |
| 5232 | lt_cv_sys_max_cmd_len=-1; |
| 5233 | ;; |
| 5234 | |
| 5235 | cygwin* | mingw* | cegcc*) |
| 5236 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
| 5237 | # about 5 minutes as the teststring grows exponentially. |
| 5238 | # Worse, since 9x/ME are not pre-emptively multitasking, |
| 5239 | # you end up with a "frozen" computer, even though with patience |
| 5240 | # the test eventually succeeds (with a max line length of 256k). |
| 5241 | # Instead, let's just punt: use the minimum linelength reported by |
| 5242 | # all of the supported platforms: 8192 (on NT/2K/XP). |
| 5243 | lt_cv_sys_max_cmd_len=8192; |
| 5244 | ;; |
| 5245 | |
| 5246 | amigaos*) |
| 5247 | # On AmigaOS with pdksh, this test takes hours, literally. |
| 5248 | # So we just punt and use a minimum line length of 8192. |
| 5249 | lt_cv_sys_max_cmd_len=8192; |
| 5250 | ;; |
| 5251 | |
| 5252 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
| 5253 | # This has been around since 386BSD, at least. Likely further. |
| 5254 | if test -x /sbin/sysctl; then |
| 5255 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 5256 | elif test -x /usr/sbin/sysctl; then |
| 5257 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 5258 | else |
| 5259 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 5260 | fi |
| 5261 | # And add a safety zone |
| 5262 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5263 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5264 | ;; |
| 5265 | |
| 5266 | interix*) |
| 5267 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 5268 | lt_cv_sys_max_cmd_len=196608 |
| 5269 | ;; |
| 5270 | |
| 5271 | osf*) |
| 5272 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 5273 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 5274 | # nice to cause kernel panics so lets avoid the loop below. |
| 5275 | # First set a reasonable default. |
| 5276 | lt_cv_sys_max_cmd_len=16384 |
| 5277 | # |
| 5278 | if test -x /sbin/sysconfig; then |
| 5279 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 5280 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 5281 | esac |
| 5282 | fi |
| 5283 | ;; |
| 5284 | sco3.2v5*) |
| 5285 | lt_cv_sys_max_cmd_len=102400 |
| 5286 | ;; |
| 5287 | sysv5* | sco5v6* | sysv4.2uw2*) |
| 5288 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 5289 | if test -n "$kargmax"; then |
| 5290 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
| 5291 | else |
| 5292 | lt_cv_sys_max_cmd_len=32768 |
| 5293 | fi |
| 5294 | ;; |
| 5295 | *) |
| 5296 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 5297 | if test -n "$lt_cv_sys_max_cmd_len"; then |
| 5298 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 5299 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 5300 | else |
| 5301 | # Make teststring a little bigger before we do anything with it. |
| 5302 | # a 1K string should be a reasonable start. |
| 5303 | for i in 1 2 3 4 5 6 7 8 ; do |
| 5304 | teststring=$teststring$teststring |
| 5305 | done |
| 5306 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 5307 | # If test is not a shell built-in, we'll probably end up computing a |
| 5308 | # maximum length that is only half of the actual maximum length, but |
| 5309 | # we can't tell. |
| 5310 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ |
| 5311 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && |
| 5312 | test $i != 17 # 1/2 MB should be enough |
| 5313 | do |
| 5314 | i=`expr $i + 1` |
| 5315 | teststring=$teststring$teststring |
| 5316 | done |
| 5317 | # Only check the string length outside the loop. |
| 5318 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 5319 | teststring= |
| 5320 | # Add a significant safety factor because C++ compilers can tack on |
| 5321 | # massive amounts of additional arguments before passing them to the |
| 5322 | # linker. It appears as though 1/2 is a usable value. |
| 5323 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 5324 | fi |
| 5325 | ;; |
| 5326 | esac |
| 5327 | |
| 5328 | fi |
| 5329 | |
| 5330 | if test -n $lt_cv_sys_max_cmd_len ; then |
| 5331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 5332 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } |
| 5333 | else |
| 5334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 5335 | $as_echo "none" >&6; } |
| 5336 | fi |
| 5337 | max_cmd_len=$lt_cv_sys_max_cmd_len |
| 5338 | |
| 5339 | |
| 5340 | |
| 5341 | |
| 5342 | |
| 5343 | |
| 5344 | : ${CP="cp -f"} |
| 5345 | : ${MV="mv -f"} |
| 5346 | : ${RM="rm -f"} |
| 5347 | |
| 5348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
| 5349 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } |
| 5350 | # Try some XSI features |
| 5351 | xsi_shell=no |
| 5352 | ( _lt_dummy="a/b/c" |
| 5353 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ |
| 5354 | = c,a/b,, \ |
| 5355 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
| 5356 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
| 5357 | && xsi_shell=yes |
| 5358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
| 5359 | $as_echo "$xsi_shell" >&6; } |
| 5360 | |
| 5361 | |
| 5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
| 5363 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } |
| 5364 | lt_shell_append=no |
| 5365 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ |
| 5366 | >/dev/null 2>&1 \ |
| 5367 | && lt_shell_append=yes |
| 5368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
| 5369 | $as_echo "$lt_shell_append" >&6; } |
| 5370 | |
| 5371 | |
| 5372 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 5373 | lt_unset=unset |
| 5374 | else |
| 5375 | lt_unset=false |
| 5376 | fi |
| 5377 | |
| 5378 | |
| 5379 | |
| 5380 | |
| 5381 | |
| 5382 | # test EBCDIC or ASCII |
| 5383 | case `echo X|tr X '\101'` in |
| 5384 | A) # ASCII based system |
| 5385 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 5386 | lt_SP2NL='tr \040 \012' |
| 5387 | lt_NL2SP='tr \015\012 \040\040' |
| 5388 | ;; |
| 5389 | *) # EBCDIC based system |
| 5390 | lt_SP2NL='tr \100 \n' |
| 5391 | lt_NL2SP='tr \r\n \100\100' |
| 5392 | ;; |
| 5393 | esac |
| 5394 | |
| 5395 | |
| 5396 | |
| 5397 | |
| 5398 | |
| 5399 | |
| 5400 | |
| 5401 | |
| 5402 | |
| 5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 5404 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
| 5405 | if test "${lt_cv_ld_reload_flag+set}" = set; then : |
| 5406 | $as_echo_n "(cached) " >&6 |
| 5407 | else |
| 5408 | lt_cv_ld_reload_flag='-r' |
| 5409 | fi |
| 5410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 5411 | $as_echo "$lt_cv_ld_reload_flag" >&6; } |
| 5412 | reload_flag=$lt_cv_ld_reload_flag |
| 5413 | case $reload_flag in |
| 5414 | "" | " "*) ;; |
| 5415 | *) reload_flag=" $reload_flag" ;; |
| 5416 | esac |
| 5417 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5418 | case $host_os in |
| 5419 | darwin*) |
| 5420 | if test "$GCC" = yes; then |
| 5421 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
| 5422 | else |
| 5423 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 5424 | fi |
| 5425 | ;; |
| 5426 | esac |
| 5427 | |
| 5428 | |
| 5429 | |
| 5430 | |
| 5431 | |
| 5432 | |
| 5433 | |
| 5434 | |
| 5435 | |
| 5436 | if test -n "$ac_tool_prefix"; then |
| 5437 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 5438 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 5439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5440 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5441 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : |
| 5442 | $as_echo_n "(cached) " >&6 |
| 5443 | else |
| 5444 | if test -n "$OBJDUMP"; then |
| 5445 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5446 | else |
| 5447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5448 | for as_dir in $PATH |
| 5449 | do |
| 5450 | IFS=$as_save_IFS |
| 5451 | test -z "$as_dir" && as_dir=. |
| 5452 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5453 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5454 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 5455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5456 | break 2 |
| 5457 | fi |
| 5458 | done |
| 5459 | done |
| 5460 | IFS=$as_save_IFS |
| 5461 | |
| 5462 | fi |
| 5463 | fi |
| 5464 | OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5465 | if test -n "$OBJDUMP"; then |
| 5466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5467 | $as_echo "$OBJDUMP" >&6; } |
| 5468 | else |
| 5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5470 | $as_echo "no" >&6; } |
| 5471 | fi |
| 5472 | |
| 5473 | |
| 5474 | fi |
| 5475 | if test -z "$ac_cv_prog_OBJDUMP"; then |
| 5476 | ac_ct_OBJDUMP=$OBJDUMP |
| 5477 | # Extract the first word of "objdump", so it can be a program name with args. |
| 5478 | set dummy objdump; ac_word=$2 |
| 5479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5480 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5481 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : |
| 5482 | $as_echo_n "(cached) " >&6 |
| 5483 | else |
| 5484 | if test -n "$ac_ct_OBJDUMP"; then |
| 5485 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 5486 | else |
| 5487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5488 | for as_dir in $PATH |
| 5489 | do |
| 5490 | IFS=$as_save_IFS |
| 5491 | test -z "$as_dir" && as_dir=. |
| 5492 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5493 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5494 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 5495 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5496 | break 2 |
| 5497 | fi |
| 5498 | done |
| 5499 | done |
| 5500 | IFS=$as_save_IFS |
| 5501 | |
| 5502 | fi |
| 5503 | fi |
| 5504 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 5505 | if test -n "$ac_ct_OBJDUMP"; then |
| 5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 5507 | $as_echo "$ac_ct_OBJDUMP" >&6; } |
| 5508 | else |
| 5509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5510 | $as_echo "no" >&6; } |
| 5511 | fi |
| 5512 | |
| 5513 | if test "x$ac_ct_OBJDUMP" = x; then |
| 5514 | OBJDUMP="false" |
| 5515 | else |
| 5516 | case $cross_compiling:$ac_tool_warned in |
| 5517 | yes:) |
| 5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5519 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5520 | ac_tool_warned=yes ;; |
| 5521 | esac |
| 5522 | OBJDUMP=$ac_ct_OBJDUMP |
| 5523 | fi |
| 5524 | else |
| 5525 | OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 5526 | fi |
| 5527 | |
| 5528 | test -z "$OBJDUMP" && OBJDUMP=objdump |
| 5529 | |
| 5530 | |
| 5531 | |
| 5532 | |
| 5533 | |
| 5534 | |
| 5535 | |
| 5536 | |
| 5537 | |
| 5538 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 5539 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
| 5540 | if test "${lt_cv_deplibs_check_method+set}" = set; then : |
| 5541 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5542 | else |
| 5543 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 5544 | lt_cv_file_magic_test_file= |
| 5545 | lt_cv_deplibs_check_method='unknown' |
| 5546 | # Need to set the preceding variable on all platforms that support |
| 5547 | # interlibrary dependencies. |
| 5548 | # 'none' -- dependencies not supported. |
| 5549 | # `unknown' -- same as none, but documents that we really don't know. |
| 5550 | # 'pass_all' -- all dependencies passed with no checks. |
| 5551 | # 'test_compile' -- check by making test program. |
| 5552 | # 'file_magic [[regex]]' -- check by looking for files in library path |
| 5553 | # which responds to the $file_magic_cmd with a given extended regex. |
| 5554 | # If you have `file' or equivalent on your system and you're not sure |
| 5555 | # whether `pass_all' will *always* work, you probably want this one. |
| 5556 | |
| 5557 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5558 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5559 | lt_cv_deplibs_check_method=pass_all |
| 5560 | ;; |
| 5561 | |
| 5562 | beos*) |
| 5563 | lt_cv_deplibs_check_method=pass_all |
| 5564 | ;; |
| 5565 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5566 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5567 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 5568 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
| 5569 | lt_cv_file_magic_test_file=/shlib/libc.so |
| 5570 | ;; |
| 5571 | |
| 5572 | cygwin*) |
| 5573 | # func_win32_libid is a shell function defined in ltmain.sh |
| 5574 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5575 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5576 | ;; |
| 5577 | |
| 5578 | mingw* | pw32*) |
| 5579 | # Base MSYS/MinGW do not provide the 'file' command needed by |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5580 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 5581 | # unless we find 'file', for example because we are cross-compiling. |
| 5582 | if ( file / ) >/dev/null 2>&1; then |
| 5583 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 5584 | lt_cv_file_magic_cmd='func_win32_libid' |
| 5585 | else |
| 5586 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
| 5587 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5588 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5589 | ;; |
| 5590 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5591 | cegcc) |
| 5592 | # use the weaker test based on 'objdump'. See mingw*. |
| 5593 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 5594 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 5595 | ;; |
| 5596 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5597 | darwin* | rhapsody*) |
| 5598 | lt_cv_deplibs_check_method=pass_all |
| 5599 | ;; |
| 5600 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5601 | freebsd* | dragonfly*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5602 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5603 | case $host_cpu in |
| 5604 | i*86 ) |
| 5605 | # Not sure whether the presence of OpenBSD here was a mistake. |
| 5606 | # Let's accept both of them until this is cleared up. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5607 | 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] | 5608 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5609 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 5610 | ;; |
| 5611 | esac |
| 5612 | else |
| 5613 | lt_cv_deplibs_check_method=pass_all |
| 5614 | fi |
| 5615 | ;; |
| 5616 | |
| 5617 | gnu*) |
| 5618 | lt_cv_deplibs_check_method=pass_all |
| 5619 | ;; |
| 5620 | |
| 5621 | hpux10.20* | hpux11*) |
| 5622 | lt_cv_file_magic_cmd=/usr/bin/file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5623 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5624 | ia64*) |
| 5625 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 5626 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 5627 | ;; |
| 5628 | hppa*64*) |
| 5629 | 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]' |
| 5630 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 5631 | ;; |
| 5632 | *) |
| 5633 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
| 5634 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 5635 | ;; |
| 5636 | esac |
| 5637 | ;; |
| 5638 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5639 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5640 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 5641 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 5642 | ;; |
| 5643 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5644 | irix5* | irix6* | nonstopux*) |
| 5645 | case $LD in |
| 5646 | *-32|*"-32 ") libmagic=32-bit;; |
| 5647 | *-n32|*"-n32 ") libmagic=N32;; |
| 5648 | *-64|*"-64 ") libmagic=64-bit;; |
| 5649 | *) libmagic=never-match;; |
| 5650 | esac |
| 5651 | lt_cv_deplibs_check_method=pass_all |
| 5652 | ;; |
| 5653 | |
| 5654 | # This must be Linux ELF. |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5655 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5656 | lt_cv_deplibs_check_method=pass_all |
| 5657 | ;; |
| 5658 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 5659 | netbsd* | netbsdelf*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5660 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5661 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 5662 | else |
| 5663 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 5664 | fi |
| 5665 | ;; |
| 5666 | |
| 5667 | newos6*) |
| 5668 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 5669 | lt_cv_file_magic_cmd=/usr/bin/file |
| 5670 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 5671 | ;; |
| 5672 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5673 | *nto* | *qnx*) |
| 5674 | lt_cv_deplibs_check_method=pass_all |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5675 | ;; |
| 5676 | |
| 5677 | openbsd*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5678 | 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] | 5679 | 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] | 5680 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5681 | 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] | 5682 | fi |
| 5683 | ;; |
| 5684 | |
| 5685 | osf3* | osf4* | osf5*) |
| 5686 | lt_cv_deplibs_check_method=pass_all |
| 5687 | ;; |
| 5688 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 5689 | rdos*) |
| 5690 | lt_cv_deplibs_check_method=pass_all |
| 5691 | ;; |
| 5692 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5693 | solaris*) |
| 5694 | lt_cv_deplibs_check_method=pass_all |
| 5695 | ;; |
| 5696 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5697 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 5698 | lt_cv_deplibs_check_method=pass_all |
| 5699 | ;; |
| 5700 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5701 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5702 | case $host_vendor in |
| 5703 | motorola) |
| 5704 | 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]' |
| 5705 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 5706 | ;; |
| 5707 | ncr) |
| 5708 | lt_cv_deplibs_check_method=pass_all |
| 5709 | ;; |
| 5710 | sequent) |
| 5711 | lt_cv_file_magic_cmd='/bin/file' |
| 5712 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 5713 | ;; |
| 5714 | sni) |
| 5715 | lt_cv_file_magic_cmd='/bin/file' |
| 5716 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 5717 | lt_cv_file_magic_test_file=/lib/libc.so |
| 5718 | ;; |
| 5719 | siemens) |
| 5720 | lt_cv_deplibs_check_method=pass_all |
| 5721 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 5722 | pc) |
| 5723 | lt_cv_deplibs_check_method=pass_all |
| 5724 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5725 | esac |
| 5726 | ;; |
| 5727 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5728 | tpf*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5729 | lt_cv_deplibs_check_method=pass_all |
| 5730 | ;; |
| 5731 | esac |
| 5732 | |
| 5733 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 5735 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 5736 | file_magic_cmd=$lt_cv_file_magic_cmd |
| 5737 | deplibs_check_method=$lt_cv_deplibs_check_method |
| 5738 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 5739 | |
| 5740 | |
| 5741 | |
| 5742 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 5743 | |
| 5744 | |
| 5745 | |
| 5746 | |
| 5747 | |
| 5748 | |
| 5749 | |
| 5750 | |
| 5751 | if test -n "$ac_tool_prefix"; then |
| 5752 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 5753 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 5754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5755 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5756 | if test "${ac_cv_prog_AR+set}" = set; then : |
| 5757 | $as_echo_n "(cached) " >&6 |
| 5758 | else |
| 5759 | if test -n "$AR"; then |
| 5760 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5761 | else |
| 5762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5763 | for as_dir in $PATH |
| 5764 | do |
| 5765 | IFS=$as_save_IFS |
| 5766 | test -z "$as_dir" && as_dir=. |
| 5767 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5768 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5769 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 5770 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5771 | break 2 |
| 5772 | fi |
| 5773 | done |
| 5774 | done |
| 5775 | IFS=$as_save_IFS |
| 5776 | |
| 5777 | fi |
| 5778 | fi |
| 5779 | AR=$ac_cv_prog_AR |
| 5780 | if test -n "$AR"; then |
| 5781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5782 | $as_echo "$AR" >&6; } |
| 5783 | else |
| 5784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5785 | $as_echo "no" >&6; } |
| 5786 | fi |
| 5787 | |
| 5788 | |
| 5789 | fi |
| 5790 | if test -z "$ac_cv_prog_AR"; then |
| 5791 | ac_ct_AR=$AR |
| 5792 | # Extract the first word of "ar", so it can be a program name with args. |
| 5793 | set dummy ar; ac_word=$2 |
| 5794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5795 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5796 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| 5797 | $as_echo_n "(cached) " >&6 |
| 5798 | else |
| 5799 | if test -n "$ac_ct_AR"; then |
| 5800 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 5801 | else |
| 5802 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5803 | for as_dir in $PATH |
| 5804 | do |
| 5805 | IFS=$as_save_IFS |
| 5806 | test -z "$as_dir" && as_dir=. |
| 5807 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5808 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5809 | ac_cv_prog_ac_ct_AR="ar" |
| 5810 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5811 | break 2 |
| 5812 | fi |
| 5813 | done |
| 5814 | done |
| 5815 | IFS=$as_save_IFS |
| 5816 | |
| 5817 | fi |
| 5818 | fi |
| 5819 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 5820 | if test -n "$ac_ct_AR"; then |
| 5821 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 5822 | $as_echo "$ac_ct_AR" >&6; } |
| 5823 | else |
| 5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5825 | $as_echo "no" >&6; } |
| 5826 | fi |
| 5827 | |
| 5828 | if test "x$ac_ct_AR" = x; then |
| 5829 | AR="false" |
| 5830 | else |
| 5831 | case $cross_compiling:$ac_tool_warned in |
| 5832 | yes:) |
| 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5834 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5835 | ac_tool_warned=yes ;; |
| 5836 | esac |
| 5837 | AR=$ac_ct_AR |
| 5838 | fi |
| 5839 | else |
| 5840 | AR="$ac_cv_prog_AR" |
| 5841 | fi |
| 5842 | |
| 5843 | test -z "$AR" && AR=ar |
| 5844 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
| 5845 | |
| 5846 | |
| 5847 | |
| 5848 | |
| 5849 | |
| 5850 | |
| 5851 | |
| 5852 | |
| 5853 | |
| 5854 | |
| 5855 | |
| 5856 | if test -n "$ac_tool_prefix"; then |
| 5857 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 5858 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5860 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5861 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 5862 | $as_echo_n "(cached) " >&6 |
| 5863 | else |
| 5864 | if test -n "$STRIP"; then |
| 5865 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5866 | else |
| 5867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5868 | for as_dir in $PATH |
| 5869 | do |
| 5870 | IFS=$as_save_IFS |
| 5871 | test -z "$as_dir" && as_dir=. |
| 5872 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5873 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5874 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 5875 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5876 | break 2 |
| 5877 | fi |
| 5878 | done |
| 5879 | done |
| 5880 | IFS=$as_save_IFS |
| 5881 | |
| 5882 | fi |
| 5883 | fi |
| 5884 | STRIP=$ac_cv_prog_STRIP |
| 5885 | if test -n "$STRIP"; then |
| 5886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5887 | $as_echo "$STRIP" >&6; } |
| 5888 | else |
| 5889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5890 | $as_echo "no" >&6; } |
| 5891 | fi |
| 5892 | |
| 5893 | |
| 5894 | fi |
| 5895 | if test -z "$ac_cv_prog_STRIP"; then |
| 5896 | ac_ct_STRIP=$STRIP |
| 5897 | # Extract the first word of "strip", so it can be a program name with args. |
| 5898 | set dummy strip; ac_word=$2 |
| 5899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5900 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5901 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 5902 | $as_echo_n "(cached) " >&6 |
| 5903 | else |
| 5904 | if test -n "$ac_ct_STRIP"; then |
| 5905 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 5906 | else |
| 5907 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5908 | for as_dir in $PATH |
| 5909 | do |
| 5910 | IFS=$as_save_IFS |
| 5911 | test -z "$as_dir" && as_dir=. |
| 5912 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5913 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5914 | ac_cv_prog_ac_ct_STRIP="strip" |
| 5915 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5916 | break 2 |
| 5917 | fi |
| 5918 | done |
| 5919 | done |
| 5920 | IFS=$as_save_IFS |
| 5921 | |
| 5922 | fi |
| 5923 | fi |
| 5924 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 5925 | if test -n "$ac_ct_STRIP"; then |
| 5926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 5927 | $as_echo "$ac_ct_STRIP" >&6; } |
| 5928 | else |
| 5929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5930 | $as_echo "no" >&6; } |
| 5931 | fi |
| 5932 | |
| 5933 | if test "x$ac_ct_STRIP" = x; then |
| 5934 | STRIP=":" |
| 5935 | else |
| 5936 | case $cross_compiling:$ac_tool_warned in |
| 5937 | yes:) |
| 5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5939 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5940 | ac_tool_warned=yes ;; |
| 5941 | esac |
| 5942 | STRIP=$ac_ct_STRIP |
| 5943 | fi |
| 5944 | else |
| 5945 | STRIP="$ac_cv_prog_STRIP" |
| 5946 | fi |
| 5947 | |
| 5948 | test -z "$STRIP" && STRIP=: |
| 5949 | |
| 5950 | |
| 5951 | |
| 5952 | |
| 5953 | |
| 5954 | |
| 5955 | if test -n "$ac_tool_prefix"; then |
| 5956 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5957 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 5958 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5959 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5960 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 5961 | $as_echo_n "(cached) " >&6 |
| 5962 | else |
| 5963 | if test -n "$RANLIB"; then |
| 5964 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5965 | else |
| 5966 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5967 | for as_dir in $PATH |
| 5968 | do |
| 5969 | IFS=$as_save_IFS |
| 5970 | test -z "$as_dir" && as_dir=. |
| 5971 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5972 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5973 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 5974 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5975 | break 2 |
| 5976 | fi |
| 5977 | done |
| 5978 | done |
| 5979 | IFS=$as_save_IFS |
| 5980 | |
| 5981 | fi |
| 5982 | fi |
| 5983 | RANLIB=$ac_cv_prog_RANLIB |
| 5984 | if test -n "$RANLIB"; then |
| 5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5986 | $as_echo "$RANLIB" >&6; } |
| 5987 | else |
| 5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5989 | $as_echo "no" >&6; } |
| 5990 | fi |
| 5991 | |
| 5992 | |
| 5993 | fi |
| 5994 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5995 | ac_ct_RANLIB=$RANLIB |
| 5996 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5997 | set dummy ranlib; ac_word=$2 |
| 5998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5999 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6000 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 6001 | $as_echo_n "(cached) " >&6 |
| 6002 | else |
| 6003 | if test -n "$ac_ct_RANLIB"; then |
| 6004 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6005 | else |
| 6006 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6007 | for as_dir in $PATH |
| 6008 | do |
| 6009 | IFS=$as_save_IFS |
| 6010 | test -z "$as_dir" && as_dir=. |
| 6011 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6013 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6015 | break 2 |
| 6016 | fi |
| 6017 | done |
| 6018 | done |
| 6019 | IFS=$as_save_IFS |
| 6020 | |
| 6021 | fi |
| 6022 | fi |
| 6023 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6024 | if test -n "$ac_ct_RANLIB"; then |
| 6025 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6026 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6027 | else |
| 6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6029 | $as_echo "no" >&6; } |
| 6030 | fi |
| 6031 | |
| 6032 | if test "x$ac_ct_RANLIB" = x; then |
| 6033 | RANLIB=":" |
| 6034 | else |
| 6035 | case $cross_compiling:$ac_tool_warned in |
| 6036 | yes:) |
| 6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6038 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6039 | ac_tool_warned=yes ;; |
| 6040 | esac |
| 6041 | RANLIB=$ac_ct_RANLIB |
| 6042 | fi |
| 6043 | else |
| 6044 | RANLIB="$ac_cv_prog_RANLIB" |
| 6045 | fi |
| 6046 | |
| 6047 | test -z "$RANLIB" && RANLIB=: |
| 6048 | |
| 6049 | |
| 6050 | |
| 6051 | |
| 6052 | |
| 6053 | |
| 6054 | # Determine commands to create old-style static archives. |
| 6055 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 6056 | old_postinstall_cmds='chmod 644 $oldlib' |
| 6057 | old_postuninstall_cmds= |
| 6058 | |
| 6059 | if test -n "$RANLIB"; then |
| 6060 | case $host_os in |
| 6061 | openbsd*) |
| 6062 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
| 6063 | ;; |
| 6064 | *) |
| 6065 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
| 6066 | ;; |
| 6067 | esac |
| 6068 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
| 6069 | fi |
| 6070 | |
| 6071 | |
| 6072 | |
| 6073 | |
| 6074 | |
| 6075 | |
| 6076 | |
| 6077 | |
| 6078 | |
| 6079 | |
| 6080 | |
| 6081 | |
| 6082 | |
| 6083 | |
| 6084 | |
| 6085 | |
| 6086 | |
| 6087 | |
| 6088 | |
| 6089 | |
| 6090 | |
| 6091 | |
| 6092 | |
| 6093 | |
| 6094 | |
| 6095 | |
| 6096 | |
| 6097 | |
| 6098 | |
| 6099 | |
| 6100 | |
| 6101 | |
| 6102 | |
| 6103 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6104 | # If no C compiler was specified, use CC. |
| 6105 | LTCC=${LTCC-"$CC"} |
| 6106 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6107 | # If no C compiler flags were specified, use CFLAGS. |
| 6108 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 6109 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6110 | # Allow CC to be a program name with arguments. |
| 6111 | compiler=$CC |
| 6112 | |
| 6113 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6114 | # 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] | 6115 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 6116 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
| 6117 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : |
| 6118 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6119 | else |
| 6120 | |
| 6121 | # These are sane defaults that work on at least a few old systems. |
| 6122 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 6123 | |
| 6124 | # Character class describing NM global symbol codes. |
| 6125 | symcode='[BCDEGRST]' |
| 6126 | |
| 6127 | # Regexp to match symbols that can be accessed directly from C. |
| 6128 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 6129 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6130 | # Define system-specific variables. |
| 6131 | case $host_os in |
| 6132 | aix*) |
| 6133 | symcode='[BCDT]' |
| 6134 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6135 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6136 | symcode='[ABCDGISTW]' |
| 6137 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6138 | hpux*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6139 | if test "$host_cpu" = ia64; then |
| 6140 | symcode='[ABCDEGRST]' |
| 6141 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6142 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6143 | irix* | nonstopux*) |
| 6144 | symcode='[BCDEGRST]' |
| 6145 | ;; |
| 6146 | osf*) |
| 6147 | symcode='[BCDEGQRST]' |
| 6148 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6149 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6150 | symcode='[BDRT]' |
| 6151 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6152 | sco3.2v5*) |
| 6153 | symcode='[DT]' |
| 6154 | ;; |
| 6155 | sysv4.2uw2*) |
| 6156 | symcode='[DT]' |
| 6157 | ;; |
| 6158 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 6159 | symcode='[ABDT]' |
| 6160 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6161 | sysv4) |
| 6162 | symcode='[DFNSTU]' |
| 6163 | ;; |
| 6164 | esac |
| 6165 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6166 | # If we're using GNU nm, then use its standard symbol codes. |
| 6167 | case `$NM -V 2>&1` in |
| 6168 | *GNU* | *'with BFD'*) |
| 6169 | symcode='[ABCDGIRSTW]' ;; |
| 6170 | esac |
| 6171 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6172 | # Transform an extracted symbol line into a proper C declaration. |
| 6173 | # Some systems (esp. on ia64) link data and code symbols differently, |
| 6174 | # so use this general approach. |
| 6175 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
| 6176 | |
| 6177 | # Transform an extracted symbol line into symbol name and symbol address |
| 6178 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" |
| 6179 | 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'" |
| 6180 | |
| 6181 | # Handle CRLF in mingw tool chain |
| 6182 | opt_cr= |
| 6183 | case $build_os in |
| 6184 | mingw*) |
| 6185 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 6186 | ;; |
| 6187 | esac |
| 6188 | |
| 6189 | # Try without a prefix underscore, then with it. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6190 | for ac_symprfx in "" "_"; do |
| 6191 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 6192 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 6193 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 6194 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6195 | # Write the raw and C identifiers. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6196 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 6197 | # Fake it for dumpbin and say T for any non-static function |
| 6198 | # and D for any global variable. |
| 6199 | # Also find C++ and __fastcall symbols from MSVC++, |
| 6200 | # which start with @ or ?. |
| 6201 | lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 6202 | " {last_section=section; section=\$ 3};"\ |
| 6203 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 6204 | " \$ 0!~/External *\|/{next};"\ |
| 6205 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 6206 | " {if(hide[section]) next};"\ |
| 6207 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ |
| 6208 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ |
| 6209 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ |
| 6210 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ |
| 6211 | " ' prfx=^$ac_symprfx" |
| 6212 | else |
| 6213 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 6214 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6215 | |
| 6216 | # Check to see that the pipe works correctly. |
| 6217 | pipe_works=no |
| 6218 | |
| 6219 | rm -f conftest* |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6220 | cat > conftest.$ac_ext <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6221 | #ifdef __cplusplus |
| 6222 | extern "C" { |
| 6223 | #endif |
| 6224 | char nm_test_var; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6225 | void nm_test_func(void); |
| 6226 | void nm_test_func(void){} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6227 | #ifdef __cplusplus |
| 6228 | } |
| 6229 | #endif |
| 6230 | int main(){nm_test_var='a';nm_test_func();return(0);} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6231 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6232 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6233 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6234 | (eval $ac_compile) 2>&5 |
| 6235 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6236 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6237 | test $ac_status = 0; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6238 | # Now try to grab the symbols. |
| 6239 | nlist=conftest.nm |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6240 | 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] | 6241 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
| 6242 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6243 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6244 | test $ac_status = 0; } && test -s "$nlist"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6245 | # Try sorting and uniquifying the output. |
| 6246 | if sort "$nlist" | uniq > "$nlist"T; then |
| 6247 | mv -f "$nlist"T "$nlist" |
| 6248 | else |
| 6249 | rm -f "$nlist"T |
| 6250 | fi |
| 6251 | |
| 6252 | # Make sure that we snagged all the symbols we need. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6253 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 6254 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 6255 | cat <<_LT_EOF > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6256 | #ifdef __cplusplus |
| 6257 | extern "C" { |
| 6258 | #endif |
| 6259 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6260 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6261 | # Now generate the symbol file. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6262 | 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] | 6263 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6264 | cat <<_LT_EOF >> conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6265 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6266 | /* The mapping between symbol names and symbols. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6267 | const struct { |
| 6268 | const char *name; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6269 | void *address; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6270 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6271 | lt__PROGRAM__LTX_preloaded_symbols[] = |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6272 | { |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6273 | { "@PROGRAM@", (void *) 0 }, |
| 6274 | _LT_EOF |
| 6275 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 6276 | cat <<\_LT_EOF >> conftest.$ac_ext |
| 6277 | {0, (void *) 0} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6278 | }; |
| 6279 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6280 | /* This works around a problem in FreeBSD linker */ |
| 6281 | #ifdef FREEBSD_WORKAROUND |
| 6282 | static const void *lt_preloaded_setup() { |
| 6283 | return lt__PROGRAM__LTX_preloaded_symbols; |
| 6284 | } |
| 6285 | #endif |
| 6286 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6287 | #ifdef __cplusplus |
| 6288 | } |
| 6289 | #endif |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6290 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6291 | # Now try linking the two files. |
| 6292 | mv conftest.$ac_objext conftstm.$ac_objext |
| 6293 | lt_save_LIBS="$LIBS" |
| 6294 | lt_save_CFLAGS="$CFLAGS" |
| 6295 | LIBS="conftstm.$ac_objext" |
| 6296 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6297 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6298 | (eval $ac_link) 2>&5 |
| 6299 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6300 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6301 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6302 | pipe_works=yes |
| 6303 | fi |
| 6304 | LIBS="$lt_save_LIBS" |
| 6305 | CFLAGS="$lt_save_CFLAGS" |
| 6306 | else |
| 6307 | echo "cannot find nm_test_func in $nlist" >&5 |
| 6308 | fi |
| 6309 | else |
| 6310 | echo "cannot find nm_test_var in $nlist" >&5 |
| 6311 | fi |
| 6312 | else |
| 6313 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 6314 | fi |
| 6315 | else |
| 6316 | echo "$progname: failed program was:" >&5 |
| 6317 | cat conftest.$ac_ext >&5 |
| 6318 | fi |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 6319 | rm -rf conftest* conftst* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6320 | |
| 6321 | # Do not use the global_symbol_pipe unless it works. |
| 6322 | if test "$pipe_works" = yes; then |
| 6323 | break |
| 6324 | else |
| 6325 | lt_cv_sys_global_symbol_pipe= |
| 6326 | fi |
| 6327 | done |
| 6328 | |
| 6329 | fi |
| 6330 | |
| 6331 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 6332 | lt_cv_sys_global_symbol_to_cdecl= |
| 6333 | fi |
| 6334 | 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] | 6335 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 6336 | $as_echo "failed" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6337 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 6339 | $as_echo "ok" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 6340 | fi |
| 6341 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6342 | |
| 6343 | |
| 6344 | |
| 6345 | |
| 6346 | |
| 6347 | |
| 6348 | |
| 6349 | |
| 6350 | |
| 6351 | |
| 6352 | |
| 6353 | |
| 6354 | |
| 6355 | |
| 6356 | |
| 6357 | |
| 6358 | |
| 6359 | |
| 6360 | |
| 6361 | |
| 6362 | |
| 6363 | |
| 6364 | # Check whether --enable-libtool-lock was given. |
| 6365 | if test "${enable_libtool_lock+set}" = set; then : |
| 6366 | enableval=$enable_libtool_lock; |
| 6367 | fi |
| 6368 | |
| 6369 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
| 6370 | |
| 6371 | # Some flags need to be propagated to the compiler or linker for good |
| 6372 | # libtool support. |
| 6373 | case $host in |
| 6374 | ia64-*-hpux*) |
| 6375 | # Find out which ABI we are using. |
| 6376 | echo 'int i;' > conftest.$ac_ext |
| 6377 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6378 | (eval $ac_compile) 2>&5 |
| 6379 | ac_status=$? |
| 6380 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6381 | test $ac_status = 0; }; then |
| 6382 | case `/usr/bin/file conftest.$ac_objext` in |
| 6383 | *ELF-32*) |
| 6384 | HPUX_IA64_MODE="32" |
| 6385 | ;; |
| 6386 | *ELF-64*) |
| 6387 | HPUX_IA64_MODE="64" |
| 6388 | ;; |
| 6389 | esac |
| 6390 | fi |
| 6391 | rm -rf conftest* |
| 6392 | ;; |
| 6393 | *-*-irix6*) |
| 6394 | # Find out which ABI we are using. |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 6395 | echo '#line 6395 "configure"' > conftest.$ac_ext |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 6396 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6397 | (eval $ac_compile) 2>&5 |
| 6398 | ac_status=$? |
| 6399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6400 | test $ac_status = 0; }; then |
| 6401 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 6402 | case `/usr/bin/file conftest.$ac_objext` in |
| 6403 | *32-bit*) |
| 6404 | LD="${LD-ld} -melf32bsmip" |
| 6405 | ;; |
| 6406 | *N32*) |
| 6407 | LD="${LD-ld} -melf32bmipn32" |
| 6408 | ;; |
| 6409 | *64-bit*) |
| 6410 | LD="${LD-ld} -melf64bmip" |
| 6411 | ;; |
| 6412 | esac |
| 6413 | else |
| 6414 | case `/usr/bin/file conftest.$ac_objext` in |
| 6415 | *32-bit*) |
| 6416 | LD="${LD-ld} -32" |
| 6417 | ;; |
| 6418 | *N32*) |
| 6419 | LD="${LD-ld} -n32" |
| 6420 | ;; |
| 6421 | *64-bit*) |
| 6422 | LD="${LD-ld} -64" |
| 6423 | ;; |
| 6424 | esac |
| 6425 | fi |
| 6426 | fi |
| 6427 | rm -rf conftest* |
| 6428 | ;; |
| 6429 | |
| 6430 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
| 6431 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
| 6432 | # Find out which ABI we are using. |
| 6433 | echo 'int i;' > conftest.$ac_ext |
| 6434 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6435 | (eval $ac_compile) 2>&5 |
| 6436 | ac_status=$? |
| 6437 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6438 | test $ac_status = 0; }; then |
| 6439 | case `/usr/bin/file conftest.o` in |
| 6440 | *32-bit*) |
| 6441 | case $host in |
| 6442 | x86_64-*kfreebsd*-gnu) |
| 6443 | LD="${LD-ld} -m elf_i386_fbsd" |
| 6444 | ;; |
| 6445 | x86_64-*linux*) |
| 6446 | LD="${LD-ld} -m elf_i386" |
| 6447 | ;; |
| 6448 | ppc64-*linux*|powerpc64-*linux*) |
| 6449 | LD="${LD-ld} -m elf32ppclinux" |
| 6450 | ;; |
| 6451 | s390x-*linux*) |
| 6452 | LD="${LD-ld} -m elf_s390" |
| 6453 | ;; |
| 6454 | sparc64-*linux*) |
| 6455 | LD="${LD-ld} -m elf32_sparc" |
| 6456 | ;; |
| 6457 | esac |
| 6458 | ;; |
| 6459 | *64-bit*) |
| 6460 | case $host in |
| 6461 | x86_64-*kfreebsd*-gnu) |
| 6462 | LD="${LD-ld} -m elf_x86_64_fbsd" |
| 6463 | ;; |
| 6464 | x86_64-*linux*) |
| 6465 | LD="${LD-ld} -m elf_x86_64" |
| 6466 | ;; |
| 6467 | ppc*-*linux*|powerpc*-*linux*) |
| 6468 | LD="${LD-ld} -m elf64ppc" |
| 6469 | ;; |
| 6470 | s390*-*linux*|s390*-*tpf*) |
| 6471 | LD="${LD-ld} -m elf64_s390" |
| 6472 | ;; |
| 6473 | sparc*-*linux*) |
| 6474 | LD="${LD-ld} -m elf64_sparc" |
| 6475 | ;; |
| 6476 | esac |
| 6477 | ;; |
| 6478 | esac |
| 6479 | fi |
| 6480 | rm -rf conftest* |
| 6481 | ;; |
| 6482 | |
| 6483 | *-*-sco3.2v5*) |
| 6484 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 6485 | SAVE_CFLAGS="$CFLAGS" |
| 6486 | CFLAGS="$CFLAGS -belf" |
| 6487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 6488 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
| 6489 | if test "${lt_cv_cc_needs_belf+set}" = set; then : |
| 6490 | $as_echo_n "(cached) " >&6 |
| 6491 | else |
| 6492 | ac_ext=c |
| 6493 | ac_cpp='$CPP $CPPFLAGS' |
| 6494 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6495 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6496 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6497 | |
| 6498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6499 | /* end confdefs.h. */ |
| 6500 | |
| 6501 | int |
| 6502 | main () |
| 6503 | { |
| 6504 | |
| 6505 | ; |
| 6506 | return 0; |
| 6507 | } |
| 6508 | _ACEOF |
| 6509 | if ac_fn_c_try_link "$LINENO"; then : |
| 6510 | lt_cv_cc_needs_belf=yes |
| 6511 | else |
| 6512 | lt_cv_cc_needs_belf=no |
| 6513 | fi |
| 6514 | rm -f core conftest.err conftest.$ac_objext \ |
| 6515 | conftest$ac_exeext conftest.$ac_ext |
| 6516 | ac_ext=c |
| 6517 | ac_cpp='$CPP $CPPFLAGS' |
| 6518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6521 | |
| 6522 | fi |
| 6523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 6524 | $as_echo "$lt_cv_cc_needs_belf" >&6; } |
| 6525 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 6526 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 6527 | CFLAGS="$SAVE_CFLAGS" |
| 6528 | fi |
| 6529 | ;; |
| 6530 | sparc*-*solaris*) |
| 6531 | # Find out which ABI we are using. |
| 6532 | echo 'int i;' > conftest.$ac_ext |
| 6533 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 6534 | (eval $ac_compile) 2>&5 |
| 6535 | ac_status=$? |
| 6536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6537 | test $ac_status = 0; }; then |
| 6538 | case `/usr/bin/file conftest.o` in |
| 6539 | *64-bit*) |
| 6540 | case $lt_cv_prog_gnu_ld in |
| 6541 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
| 6542 | *) |
| 6543 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 6544 | LD="${LD-ld} -64" |
| 6545 | fi |
| 6546 | ;; |
| 6547 | esac |
| 6548 | ;; |
| 6549 | esac |
| 6550 | fi |
| 6551 | rm -rf conftest* |
| 6552 | ;; |
| 6553 | esac |
| 6554 | |
| 6555 | need_locks="$enable_libtool_lock" |
| 6556 | |
| 6557 | |
| 6558 | case $host_os in |
| 6559 | rhapsody* | darwin*) |
| 6560 | if test -n "$ac_tool_prefix"; then |
| 6561 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 6562 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 6563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6564 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6565 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : |
| 6566 | $as_echo_n "(cached) " >&6 |
| 6567 | else |
| 6568 | if test -n "$DSYMUTIL"; then |
| 6569 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 6570 | else |
| 6571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6572 | for as_dir in $PATH |
| 6573 | do |
| 6574 | IFS=$as_save_IFS |
| 6575 | test -z "$as_dir" && as_dir=. |
| 6576 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6577 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6578 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 6579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6580 | break 2 |
| 6581 | fi |
| 6582 | done |
| 6583 | done |
| 6584 | IFS=$as_save_IFS |
| 6585 | |
| 6586 | fi |
| 6587 | fi |
| 6588 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 6589 | if test -n "$DSYMUTIL"; then |
| 6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 6591 | $as_echo "$DSYMUTIL" >&6; } |
| 6592 | else |
| 6593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6594 | $as_echo "no" >&6; } |
| 6595 | fi |
| 6596 | |
| 6597 | |
| 6598 | fi |
| 6599 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 6600 | ac_ct_DSYMUTIL=$DSYMUTIL |
| 6601 | # Extract the first word of "dsymutil", so it can be a program name with args. |
| 6602 | set dummy dsymutil; ac_word=$2 |
| 6603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6604 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6605 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : |
| 6606 | $as_echo_n "(cached) " >&6 |
| 6607 | else |
| 6608 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6609 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 6610 | else |
| 6611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6612 | for as_dir in $PATH |
| 6613 | do |
| 6614 | IFS=$as_save_IFS |
| 6615 | test -z "$as_dir" && as_dir=. |
| 6616 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6618 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 6619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6620 | break 2 |
| 6621 | fi |
| 6622 | done |
| 6623 | done |
| 6624 | IFS=$as_save_IFS |
| 6625 | |
| 6626 | fi |
| 6627 | fi |
| 6628 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 6629 | if test -n "$ac_ct_DSYMUTIL"; then |
| 6630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 6631 | $as_echo "$ac_ct_DSYMUTIL" >&6; } |
| 6632 | else |
| 6633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6634 | $as_echo "no" >&6; } |
| 6635 | fi |
| 6636 | |
| 6637 | if test "x$ac_ct_DSYMUTIL" = x; then |
| 6638 | DSYMUTIL=":" |
| 6639 | else |
| 6640 | case $cross_compiling:$ac_tool_warned in |
| 6641 | yes:) |
| 6642 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6643 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6644 | ac_tool_warned=yes ;; |
| 6645 | esac |
| 6646 | DSYMUTIL=$ac_ct_DSYMUTIL |
| 6647 | fi |
| 6648 | else |
| 6649 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 6650 | fi |
| 6651 | |
| 6652 | if test -n "$ac_tool_prefix"; then |
| 6653 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 6654 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 6655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6656 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6657 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
| 6658 | $as_echo_n "(cached) " >&6 |
| 6659 | else |
| 6660 | if test -n "$NMEDIT"; then |
| 6661 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 6662 | else |
| 6663 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6664 | for as_dir in $PATH |
| 6665 | do |
| 6666 | IFS=$as_save_IFS |
| 6667 | test -z "$as_dir" && as_dir=. |
| 6668 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6669 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6670 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 6671 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6672 | break 2 |
| 6673 | fi |
| 6674 | done |
| 6675 | done |
| 6676 | IFS=$as_save_IFS |
| 6677 | |
| 6678 | fi |
| 6679 | fi |
| 6680 | NMEDIT=$ac_cv_prog_NMEDIT |
| 6681 | if test -n "$NMEDIT"; then |
| 6682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 6683 | $as_echo "$NMEDIT" >&6; } |
| 6684 | else |
| 6685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6686 | $as_echo "no" >&6; } |
| 6687 | fi |
| 6688 | |
| 6689 | |
| 6690 | fi |
| 6691 | if test -z "$ac_cv_prog_NMEDIT"; then |
| 6692 | ac_ct_NMEDIT=$NMEDIT |
| 6693 | # Extract the first word of "nmedit", so it can be a program name with args. |
| 6694 | set dummy nmedit; ac_word=$2 |
| 6695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6696 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6697 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
| 6698 | $as_echo_n "(cached) " >&6 |
| 6699 | else |
| 6700 | if test -n "$ac_ct_NMEDIT"; then |
| 6701 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 6702 | else |
| 6703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6704 | for as_dir in $PATH |
| 6705 | do |
| 6706 | IFS=$as_save_IFS |
| 6707 | test -z "$as_dir" && as_dir=. |
| 6708 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6710 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 6711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6712 | break 2 |
| 6713 | fi |
| 6714 | done |
| 6715 | done |
| 6716 | IFS=$as_save_IFS |
| 6717 | |
| 6718 | fi |
| 6719 | fi |
| 6720 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 6721 | if test -n "$ac_ct_NMEDIT"; then |
| 6722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 6723 | $as_echo "$ac_ct_NMEDIT" >&6; } |
| 6724 | else |
| 6725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6726 | $as_echo "no" >&6; } |
| 6727 | fi |
| 6728 | |
| 6729 | if test "x$ac_ct_NMEDIT" = x; then |
| 6730 | NMEDIT=":" |
| 6731 | else |
| 6732 | case $cross_compiling:$ac_tool_warned in |
| 6733 | yes:) |
| 6734 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6735 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6736 | ac_tool_warned=yes ;; |
| 6737 | esac |
| 6738 | NMEDIT=$ac_ct_NMEDIT |
| 6739 | fi |
| 6740 | else |
| 6741 | NMEDIT="$ac_cv_prog_NMEDIT" |
| 6742 | fi |
| 6743 | |
| 6744 | if test -n "$ac_tool_prefix"; then |
| 6745 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 6746 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 6747 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6748 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6749 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
| 6750 | $as_echo_n "(cached) " >&6 |
| 6751 | else |
| 6752 | if test -n "$LIPO"; then |
| 6753 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 6754 | else |
| 6755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6756 | for as_dir in $PATH |
| 6757 | do |
| 6758 | IFS=$as_save_IFS |
| 6759 | test -z "$as_dir" && as_dir=. |
| 6760 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6761 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6762 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 6763 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6764 | break 2 |
| 6765 | fi |
| 6766 | done |
| 6767 | done |
| 6768 | IFS=$as_save_IFS |
| 6769 | |
| 6770 | fi |
| 6771 | fi |
| 6772 | LIPO=$ac_cv_prog_LIPO |
| 6773 | if test -n "$LIPO"; then |
| 6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 6775 | $as_echo "$LIPO" >&6; } |
| 6776 | else |
| 6777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6778 | $as_echo "no" >&6; } |
| 6779 | fi |
| 6780 | |
| 6781 | |
| 6782 | fi |
| 6783 | if test -z "$ac_cv_prog_LIPO"; then |
| 6784 | ac_ct_LIPO=$LIPO |
| 6785 | # Extract the first word of "lipo", so it can be a program name with args. |
| 6786 | set dummy lipo; ac_word=$2 |
| 6787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6788 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6789 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
| 6790 | $as_echo_n "(cached) " >&6 |
| 6791 | else |
| 6792 | if test -n "$ac_ct_LIPO"; then |
| 6793 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 6794 | else |
| 6795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6796 | for as_dir in $PATH |
| 6797 | do |
| 6798 | IFS=$as_save_IFS |
| 6799 | test -z "$as_dir" && as_dir=. |
| 6800 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6802 | ac_cv_prog_ac_ct_LIPO="lipo" |
| 6803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6804 | break 2 |
| 6805 | fi |
| 6806 | done |
| 6807 | done |
| 6808 | IFS=$as_save_IFS |
| 6809 | |
| 6810 | fi |
| 6811 | fi |
| 6812 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 6813 | if test -n "$ac_ct_LIPO"; then |
| 6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 6815 | $as_echo "$ac_ct_LIPO" >&6; } |
| 6816 | else |
| 6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6818 | $as_echo "no" >&6; } |
| 6819 | fi |
| 6820 | |
| 6821 | if test "x$ac_ct_LIPO" = x; then |
| 6822 | LIPO=":" |
| 6823 | else |
| 6824 | case $cross_compiling:$ac_tool_warned in |
| 6825 | yes:) |
| 6826 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6827 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6828 | ac_tool_warned=yes ;; |
| 6829 | esac |
| 6830 | LIPO=$ac_ct_LIPO |
| 6831 | fi |
| 6832 | else |
| 6833 | LIPO="$ac_cv_prog_LIPO" |
| 6834 | fi |
| 6835 | |
| 6836 | if test -n "$ac_tool_prefix"; then |
| 6837 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 6838 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6840 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6841 | if test "${ac_cv_prog_OTOOL+set}" = set; then : |
| 6842 | $as_echo_n "(cached) " >&6 |
| 6843 | else |
| 6844 | if test -n "$OTOOL"; then |
| 6845 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 6846 | else |
| 6847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6848 | for as_dir in $PATH |
| 6849 | do |
| 6850 | IFS=$as_save_IFS |
| 6851 | test -z "$as_dir" && as_dir=. |
| 6852 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6854 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 6855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6856 | break 2 |
| 6857 | fi |
| 6858 | done |
| 6859 | done |
| 6860 | IFS=$as_save_IFS |
| 6861 | |
| 6862 | fi |
| 6863 | fi |
| 6864 | OTOOL=$ac_cv_prog_OTOOL |
| 6865 | if test -n "$OTOOL"; then |
| 6866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 6867 | $as_echo "$OTOOL" >&6; } |
| 6868 | else |
| 6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6870 | $as_echo "no" >&6; } |
| 6871 | fi |
| 6872 | |
| 6873 | |
| 6874 | fi |
| 6875 | if test -z "$ac_cv_prog_OTOOL"; then |
| 6876 | ac_ct_OTOOL=$OTOOL |
| 6877 | # Extract the first word of "otool", so it can be a program name with args. |
| 6878 | set dummy otool; ac_word=$2 |
| 6879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6880 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6881 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : |
| 6882 | $as_echo_n "(cached) " >&6 |
| 6883 | else |
| 6884 | if test -n "$ac_ct_OTOOL"; then |
| 6885 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 6886 | else |
| 6887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6888 | for as_dir in $PATH |
| 6889 | do |
| 6890 | IFS=$as_save_IFS |
| 6891 | test -z "$as_dir" && as_dir=. |
| 6892 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6894 | ac_cv_prog_ac_ct_OTOOL="otool" |
| 6895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6896 | break 2 |
| 6897 | fi |
| 6898 | done |
| 6899 | done |
| 6900 | IFS=$as_save_IFS |
| 6901 | |
| 6902 | fi |
| 6903 | fi |
| 6904 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 6905 | if test -n "$ac_ct_OTOOL"; then |
| 6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 6907 | $as_echo "$ac_ct_OTOOL" >&6; } |
| 6908 | else |
| 6909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6910 | $as_echo "no" >&6; } |
| 6911 | fi |
| 6912 | |
| 6913 | if test "x$ac_ct_OTOOL" = x; then |
| 6914 | OTOOL=":" |
| 6915 | else |
| 6916 | case $cross_compiling:$ac_tool_warned in |
| 6917 | yes:) |
| 6918 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6919 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6920 | ac_tool_warned=yes ;; |
| 6921 | esac |
| 6922 | OTOOL=$ac_ct_OTOOL |
| 6923 | fi |
| 6924 | else |
| 6925 | OTOOL="$ac_cv_prog_OTOOL" |
| 6926 | fi |
| 6927 | |
| 6928 | if test -n "$ac_tool_prefix"; then |
| 6929 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 6930 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6932 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6933 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : |
| 6934 | $as_echo_n "(cached) " >&6 |
| 6935 | else |
| 6936 | if test -n "$OTOOL64"; then |
| 6937 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 6938 | else |
| 6939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6940 | for as_dir in $PATH |
| 6941 | do |
| 6942 | IFS=$as_save_IFS |
| 6943 | test -z "$as_dir" && as_dir=. |
| 6944 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6946 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 6947 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6948 | break 2 |
| 6949 | fi |
| 6950 | done |
| 6951 | done |
| 6952 | IFS=$as_save_IFS |
| 6953 | |
| 6954 | fi |
| 6955 | fi |
| 6956 | OTOOL64=$ac_cv_prog_OTOOL64 |
| 6957 | if test -n "$OTOOL64"; then |
| 6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 6959 | $as_echo "$OTOOL64" >&6; } |
| 6960 | else |
| 6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6962 | $as_echo "no" >&6; } |
| 6963 | fi |
| 6964 | |
| 6965 | |
| 6966 | fi |
| 6967 | if test -z "$ac_cv_prog_OTOOL64"; then |
| 6968 | ac_ct_OTOOL64=$OTOOL64 |
| 6969 | # Extract the first word of "otool64", so it can be a program name with args. |
| 6970 | set dummy otool64; ac_word=$2 |
| 6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6972 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6973 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : |
| 6974 | $as_echo_n "(cached) " >&6 |
| 6975 | else |
| 6976 | if test -n "$ac_ct_OTOOL64"; then |
| 6977 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 6978 | else |
| 6979 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6980 | for as_dir in $PATH |
| 6981 | do |
| 6982 | IFS=$as_save_IFS |
| 6983 | test -z "$as_dir" && as_dir=. |
| 6984 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6985 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6986 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 6987 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6988 | break 2 |
| 6989 | fi |
| 6990 | done |
| 6991 | done |
| 6992 | IFS=$as_save_IFS |
| 6993 | |
| 6994 | fi |
| 6995 | fi |
| 6996 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 6997 | if test -n "$ac_ct_OTOOL64"; then |
| 6998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 6999 | $as_echo "$ac_ct_OTOOL64" >&6; } |
| 7000 | else |
| 7001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7002 | $as_echo "no" >&6; } |
| 7003 | fi |
| 7004 | |
| 7005 | if test "x$ac_ct_OTOOL64" = x; then |
| 7006 | OTOOL64=":" |
| 7007 | else |
| 7008 | case $cross_compiling:$ac_tool_warned in |
| 7009 | yes:) |
| 7010 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7011 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7012 | ac_tool_warned=yes ;; |
| 7013 | esac |
| 7014 | OTOOL64=$ac_ct_OTOOL64 |
| 7015 | fi |
| 7016 | else |
| 7017 | OTOOL64="$ac_cv_prog_OTOOL64" |
| 7018 | fi |
| 7019 | |
| 7020 | |
| 7021 | |
| 7022 | |
| 7023 | |
| 7024 | |
| 7025 | |
| 7026 | |
| 7027 | |
| 7028 | |
| 7029 | |
| 7030 | |
| 7031 | |
| 7032 | |
| 7033 | |
| 7034 | |
| 7035 | |
| 7036 | |
| 7037 | |
| 7038 | |
| 7039 | |
| 7040 | |
| 7041 | |
| 7042 | |
| 7043 | |
| 7044 | |
| 7045 | |
| 7046 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 7047 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
| 7048 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : |
| 7049 | $as_echo_n "(cached) " >&6 |
| 7050 | else |
| 7051 | lt_cv_apple_cc_single_mod=no |
| 7052 | if test -z "${LT_MULTI_MODULE}"; then |
| 7053 | # By default we will add the -single_module flag. You can override |
| 7054 | # by either setting the environment variable LT_MULTI_MODULE |
| 7055 | # non-empty at configure time, or by adding -multi_module to the |
| 7056 | # link flags. |
| 7057 | rm -rf libconftest.dylib* |
| 7058 | echo "int foo(void){return 1;}" > conftest.c |
| 7059 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7060 | -dynamiclib -Wl,-single_module conftest.c" >&5 |
| 7061 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 7062 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 7063 | _lt_result=$? |
| 7064 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then |
| 7065 | lt_cv_apple_cc_single_mod=yes |
| 7066 | else |
| 7067 | cat conftest.err >&5 |
| 7068 | fi |
| 7069 | rm -rf libconftest.dylib* |
| 7070 | rm -f conftest.* |
| 7071 | fi |
| 7072 | fi |
| 7073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 7074 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
| 7075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 7076 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
| 7077 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : |
| 7078 | $as_echo_n "(cached) " >&6 |
| 7079 | else |
| 7080 | lt_cv_ld_exported_symbols_list=no |
| 7081 | save_LDFLAGS=$LDFLAGS |
| 7082 | echo "_main" > conftest.sym |
| 7083 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 7084 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7085 | /* end confdefs.h. */ |
| 7086 | |
| 7087 | int |
| 7088 | main () |
| 7089 | { |
| 7090 | |
| 7091 | ; |
| 7092 | return 0; |
| 7093 | } |
| 7094 | _ACEOF |
| 7095 | if ac_fn_c_try_link "$LINENO"; then : |
| 7096 | lt_cv_ld_exported_symbols_list=yes |
| 7097 | else |
| 7098 | lt_cv_ld_exported_symbols_list=no |
| 7099 | fi |
| 7100 | rm -f core conftest.err conftest.$ac_objext \ |
| 7101 | conftest$ac_exeext conftest.$ac_ext |
| 7102 | LDFLAGS="$save_LDFLAGS" |
| 7103 | |
| 7104 | fi |
| 7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 7106 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
| 7107 | case $host_os in |
| 7108 | rhapsody* | darwin1.[012]) |
| 7109 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
| 7110 | darwin1.*) |
| 7111 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7112 | darwin*) # darwin 5.x on |
| 7113 | # if running on 10.5 or later, the deployment target defaults |
| 7114 | # to the OS version, if on x86, and 10.4, the deployment |
| 7115 | # target defaults to 10.4. Don't you love it? |
| 7116 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 7117 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
| 7118 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7119 | 10.[012]*) |
| 7120 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
| 7121 | 10.*) |
| 7122 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
| 7123 | esac |
| 7124 | ;; |
| 7125 | esac |
| 7126 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
| 7127 | _lt_dar_single_mod='$single_module' |
| 7128 | fi |
| 7129 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
| 7130 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
| 7131 | else |
| 7132 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' |
| 7133 | fi |
| 7134 | if test "$DSYMUTIL" != ":"; then |
| 7135 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
| 7136 | else |
| 7137 | _lt_dsymutil= |
| 7138 | fi |
| 7139 | ;; |
| 7140 | esac |
| 7141 | |
| 7142 | |
| 7143 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 7144 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 7145 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 7146 | $as_echo_n "(cached) " >&6 |
| 7147 | else |
| 7148 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7149 | /* end confdefs.h. */ |
| 7150 | #include <stdlib.h> |
| 7151 | #include <stdarg.h> |
| 7152 | #include <string.h> |
| 7153 | #include <float.h> |
| 7154 | |
| 7155 | int |
| 7156 | main () |
| 7157 | { |
| 7158 | |
| 7159 | ; |
| 7160 | return 0; |
| 7161 | } |
| 7162 | _ACEOF |
| 7163 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7164 | ac_cv_header_stdc=yes |
| 7165 | else |
| 7166 | ac_cv_header_stdc=no |
| 7167 | fi |
| 7168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7169 | |
| 7170 | if test $ac_cv_header_stdc = yes; then |
| 7171 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 7172 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7173 | /* end confdefs.h. */ |
| 7174 | #include <string.h> |
| 7175 | |
| 7176 | _ACEOF |
| 7177 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7178 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 7179 | |
| 7180 | else |
| 7181 | ac_cv_header_stdc=no |
| 7182 | fi |
| 7183 | rm -f conftest* |
| 7184 | |
| 7185 | fi |
| 7186 | |
| 7187 | if test $ac_cv_header_stdc = yes; then |
| 7188 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 7189 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7190 | /* end confdefs.h. */ |
| 7191 | #include <stdlib.h> |
| 7192 | |
| 7193 | _ACEOF |
| 7194 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 7195 | $EGREP "free" >/dev/null 2>&1; then : |
| 7196 | |
| 7197 | else |
| 7198 | ac_cv_header_stdc=no |
| 7199 | fi |
| 7200 | rm -f conftest* |
| 7201 | |
| 7202 | fi |
| 7203 | |
| 7204 | if test $ac_cv_header_stdc = yes; then |
| 7205 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 7206 | if test "$cross_compiling" = yes; then : |
| 7207 | : |
| 7208 | else |
| 7209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7210 | /* end confdefs.h. */ |
| 7211 | #include <ctype.h> |
| 7212 | #include <stdlib.h> |
| 7213 | #if ((' ' & 0x0FF) == 0x020) |
| 7214 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 7215 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 7216 | #else |
| 7217 | # define ISLOWER(c) \ |
| 7218 | (('a' <= (c) && (c) <= 'i') \ |
| 7219 | || ('j' <= (c) && (c) <= 'r') \ |
| 7220 | || ('s' <= (c) && (c) <= 'z')) |
| 7221 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 7222 | #endif |
| 7223 | |
| 7224 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 7225 | int |
| 7226 | main () |
| 7227 | { |
| 7228 | int i; |
| 7229 | for (i = 0; i < 256; i++) |
| 7230 | if (XOR (islower (i), ISLOWER (i)) |
| 7231 | || toupper (i) != TOUPPER (i)) |
| 7232 | return 2; |
| 7233 | return 0; |
| 7234 | } |
| 7235 | _ACEOF |
| 7236 | if ac_fn_c_try_run "$LINENO"; then : |
| 7237 | |
| 7238 | else |
| 7239 | ac_cv_header_stdc=no |
| 7240 | fi |
| 7241 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7242 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7243 | fi |
| 7244 | |
| 7245 | fi |
| 7246 | fi |
| 7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 7248 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 7249 | if test $ac_cv_header_stdc = yes; then |
| 7250 | |
| 7251 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 7252 | |
| 7253 | fi |
| 7254 | |
| 7255 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 7256 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 7257 | inttypes.h stdint.h unistd.h |
| 7258 | do : |
| 7259 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 7260 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7261 | " |
| 7262 | eval as_val=\$$as_ac_Header |
| 7263 | if test "x$as_val" = x""yes; then : |
| 7264 | cat >>confdefs.h <<_ACEOF |
| 7265 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 7266 | _ACEOF |
| 7267 | |
| 7268 | fi |
| 7269 | |
| 7270 | done |
| 7271 | |
| 7272 | |
| 7273 | for ac_header in dlfcn.h |
| 7274 | do : |
| 7275 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 7276 | " |
| 7277 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : |
| 7278 | cat >>confdefs.h <<_ACEOF |
| 7279 | #define HAVE_DLFCN_H 1 |
| 7280 | _ACEOF |
| 7281 | |
| 7282 | fi |
| 7283 | |
| 7284 | done |
| 7285 | |
| 7286 | |
| 7287 | |
| 7288 | ac_ext=cpp |
| 7289 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7290 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7291 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7292 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7293 | if test -z "$CXX"; then |
| 7294 | if test -n "$CCC"; then |
| 7295 | CXX=$CCC |
| 7296 | else |
| 7297 | if test -n "$ac_tool_prefix"; then |
| 7298 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7299 | do |
| 7300 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7301 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7303 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7304 | if test "${ac_cv_prog_CXX+set}" = set; then : |
| 7305 | $as_echo_n "(cached) " >&6 |
| 7306 | else |
| 7307 | if test -n "$CXX"; then |
| 7308 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 7309 | else |
| 7310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7311 | for as_dir in $PATH |
| 7312 | do |
| 7313 | IFS=$as_save_IFS |
| 7314 | test -z "$as_dir" && as_dir=. |
| 7315 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7316 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7317 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 7318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7319 | break 2 |
| 7320 | fi |
| 7321 | done |
| 7322 | done |
| 7323 | IFS=$as_save_IFS |
| 7324 | |
| 7325 | fi |
| 7326 | fi |
| 7327 | CXX=$ac_cv_prog_CXX |
| 7328 | if test -n "$CXX"; then |
| 7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 7330 | $as_echo "$CXX" >&6; } |
| 7331 | else |
| 7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7333 | $as_echo "no" >&6; } |
| 7334 | fi |
| 7335 | |
| 7336 | |
| 7337 | test -n "$CXX" && break |
| 7338 | done |
| 7339 | fi |
| 7340 | if test -z "$CXX"; then |
| 7341 | ac_ct_CXX=$CXX |
| 7342 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
| 7343 | do |
| 7344 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7345 | set dummy $ac_prog; ac_word=$2 |
| 7346 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7347 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7348 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : |
| 7349 | $as_echo_n "(cached) " >&6 |
| 7350 | else |
| 7351 | if test -n "$ac_ct_CXX"; then |
| 7352 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 7353 | else |
| 7354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7355 | for as_dir in $PATH |
| 7356 | do |
| 7357 | IFS=$as_save_IFS |
| 7358 | test -z "$as_dir" && as_dir=. |
| 7359 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7360 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7361 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 7362 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7363 | break 2 |
| 7364 | fi |
| 7365 | done |
| 7366 | done |
| 7367 | IFS=$as_save_IFS |
| 7368 | |
| 7369 | fi |
| 7370 | fi |
| 7371 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 7372 | if test -n "$ac_ct_CXX"; then |
| 7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 7374 | $as_echo "$ac_ct_CXX" >&6; } |
| 7375 | else |
| 7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7377 | $as_echo "no" >&6; } |
| 7378 | fi |
| 7379 | |
| 7380 | |
| 7381 | test -n "$ac_ct_CXX" && break |
| 7382 | done |
| 7383 | |
| 7384 | if test "x$ac_ct_CXX" = x; then |
| 7385 | CXX="g++" |
| 7386 | else |
| 7387 | case $cross_compiling:$ac_tool_warned in |
| 7388 | yes:) |
| 7389 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7390 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7391 | ac_tool_warned=yes ;; |
| 7392 | esac |
| 7393 | CXX=$ac_ct_CXX |
| 7394 | fi |
| 7395 | fi |
| 7396 | |
| 7397 | fi |
| 7398 | fi |
| 7399 | # Provide some information about the compiler. |
| 7400 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 7401 | set X $ac_compile |
| 7402 | ac_compiler=$2 |
| 7403 | for ac_option in --version -v -V -qversion; do |
| 7404 | { { ac_try="$ac_compiler $ac_option >&5" |
| 7405 | case "(($ac_try" in |
| 7406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 7407 | *) ac_try_echo=$ac_try;; |
| 7408 | esac |
| 7409 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 7410 | $as_echo "$ac_try_echo"; } >&5 |
| 7411 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 7412 | ac_status=$? |
| 7413 | if test -s conftest.err; then |
| 7414 | sed '10a\ |
| 7415 | ... rest of stderr output deleted ... |
| 7416 | 10q' conftest.err >conftest.er1 |
| 7417 | cat conftest.er1 >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7418 | fi |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 7419 | rm -f conftest.er1 conftest.err |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 7420 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 7421 | test $ac_status = 0; } |
| 7422 | done |
| 7423 | |
| 7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
| 7425 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
| 7426 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : |
| 7427 | $as_echo_n "(cached) " >&6 |
| 7428 | else |
| 7429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7430 | /* end confdefs.h. */ |
| 7431 | |
| 7432 | int |
| 7433 | main () |
| 7434 | { |
| 7435 | #ifndef __GNUC__ |
| 7436 | choke me |
| 7437 | #endif |
| 7438 | |
| 7439 | ; |
| 7440 | return 0; |
| 7441 | } |
| 7442 | _ACEOF |
| 7443 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7444 | ac_compiler_gnu=yes |
| 7445 | else |
| 7446 | ac_compiler_gnu=no |
| 7447 | fi |
| 7448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7449 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 7450 | |
| 7451 | fi |
| 7452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 7453 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
| 7454 | if test $ac_compiler_gnu = yes; then |
| 7455 | GXX=yes |
| 7456 | else |
| 7457 | GXX= |
| 7458 | fi |
| 7459 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
| 7460 | ac_save_CXXFLAGS=$CXXFLAGS |
| 7461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 7462 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
| 7463 | if test "${ac_cv_prog_cxx_g+set}" = set; then : |
| 7464 | $as_echo_n "(cached) " >&6 |
| 7465 | else |
| 7466 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 7467 | ac_cxx_werror_flag=yes |
| 7468 | ac_cv_prog_cxx_g=no |
| 7469 | CXXFLAGS="-g" |
| 7470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7471 | /* end confdefs.h. */ |
| 7472 | |
| 7473 | int |
| 7474 | main () |
| 7475 | { |
| 7476 | |
| 7477 | ; |
| 7478 | return 0; |
| 7479 | } |
| 7480 | _ACEOF |
| 7481 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7482 | ac_cv_prog_cxx_g=yes |
| 7483 | else |
| 7484 | CXXFLAGS="" |
| 7485 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7486 | /* end confdefs.h. */ |
| 7487 | |
| 7488 | int |
| 7489 | main () |
| 7490 | { |
| 7491 | |
| 7492 | ; |
| 7493 | return 0; |
| 7494 | } |
| 7495 | _ACEOF |
| 7496 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7497 | |
| 7498 | else |
| 7499 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7500 | CXXFLAGS="-g" |
| 7501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7502 | /* end confdefs.h. */ |
| 7503 | |
| 7504 | int |
| 7505 | main () |
| 7506 | { |
| 7507 | |
| 7508 | ; |
| 7509 | return 0; |
| 7510 | } |
| 7511 | _ACEOF |
| 7512 | if ac_fn_cxx_try_compile "$LINENO"; then : |
| 7513 | ac_cv_prog_cxx_g=yes |
| 7514 | fi |
| 7515 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7516 | fi |
| 7517 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7518 | fi |
| 7519 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7520 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 7521 | fi |
| 7522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 7523 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
| 7524 | if test "$ac_test_CXXFLAGS" = set; then |
| 7525 | CXXFLAGS=$ac_save_CXXFLAGS |
| 7526 | elif test $ac_cv_prog_cxx_g = yes; then |
| 7527 | if test "$GXX" = yes; then |
| 7528 | CXXFLAGS="-g -O2" |
| 7529 | else |
| 7530 | CXXFLAGS="-g" |
| 7531 | fi |
| 7532 | else |
| 7533 | if test "$GXX" = yes; then |
| 7534 | CXXFLAGS="-O2" |
| 7535 | else |
| 7536 | CXXFLAGS= |
| 7537 | fi |
| 7538 | fi |
| 7539 | ac_ext=c |
| 7540 | ac_cpp='$CPP $CPPFLAGS' |
| 7541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7544 | |
| 7545 | depcc="$CXX" am_compiler_list= |
| 7546 | |
| 7547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 7548 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 7549 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then : |
| 7550 | $as_echo_n "(cached) " >&6 |
| 7551 | else |
| 7552 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 7553 | # We make a subdir and do the tests there. Otherwise we can end up |
| 7554 | # making bogus files that we don't know about and never remove. For |
| 7555 | # instance it was reported that on HP-UX the gcc test will end up |
| 7556 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 7557 | # in D'. |
| 7558 | mkdir conftest.dir |
| 7559 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 7560 | # using a relative directory. |
| 7561 | cp "$am_depcomp" conftest.dir |
| 7562 | cd conftest.dir |
| 7563 | # We will build objects and dependencies in a subdirectory because |
| 7564 | # it helps to detect inapplicable dependency modes. For instance |
| 7565 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 7566 | # side effect of compilation, but ICC will put the dependencies in |
| 7567 | # the current directory while Tru64 will put them in the object |
| 7568 | # directory. |
| 7569 | mkdir sub |
| 7570 | |
| 7571 | am_cv_CXX_dependencies_compiler_type=none |
| 7572 | if test "$am_compiler_list" = ""; then |
| 7573 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 7574 | fi |
| 7575 | am__universal=false |
| 7576 | case " $depcc " in #( |
| 7577 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 7578 | esac |
| 7579 | |
| 7580 | for depmode in $am_compiler_list; do |
| 7581 | # Setup a source with many dependencies, because some compilers |
| 7582 | # like to wrap large dependency lists on column 80 (with \), and |
| 7583 | # we should not choose a depcomp mode which is confused by this. |
| 7584 | # |
| 7585 | # We need to recreate these files for each test, as the compiler may |
| 7586 | # overwrite some of them when testing with obscure command lines. |
| 7587 | # This happens at least with the AIX C compiler. |
| 7588 | : > sub/conftest.c |
| 7589 | for i in 1 2 3 4 5 6; do |
| 7590 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 7591 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 7592 | # Solaris 8's {/usr,}/bin/sh. |
| 7593 | touch sub/conftst$i.h |
| 7594 | done |
| 7595 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 7596 | |
| 7597 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 7598 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 7599 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 7600 | # versions had trouble with output in subdirs |
| 7601 | am__obj=sub/conftest.${OBJEXT-o} |
| 7602 | am__minus_obj="-o $am__obj" |
| 7603 | case $depmode in |
| 7604 | gcc) |
| 7605 | # This depmode causes a compiler race in universal mode. |
| 7606 | test "$am__universal" = false || continue |
| 7607 | ;; |
| 7608 | nosideeffect) |
| 7609 | # after this tag, mechanisms are not by side-effect, so they'll |
| 7610 | # only be used when explicitly requested |
| 7611 | if test "x$enable_dependency_tracking" = xyes; then |
| 7612 | continue |
| 7613 | else |
| 7614 | break |
| 7615 | fi |
| 7616 | ;; |
| 7617 | msvisualcpp | msvcmsys) |
| 7618 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 7619 | # not run yet. These depmodes are late enough in the game, and |
| 7620 | # so weak that their functioning should not be impacted. |
| 7621 | am__obj=conftest.${OBJEXT-o} |
| 7622 | am__minus_obj= |
| 7623 | ;; |
| 7624 | none) break ;; |
| 7625 | esac |
| 7626 | if depmode=$depmode \ |
| 7627 | source=sub/conftest.c object=$am__obj \ |
| 7628 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 7629 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 7630 | >/dev/null 2>conftest.err && |
| 7631 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 7632 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 7633 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 7634 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 7635 | # icc doesn't choke on unknown options, it will just issue warnings |
| 7636 | # or remarks (even with -Werror). So we grep stderr for any message |
| 7637 | # that says an option was ignored or not supported. |
| 7638 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 7639 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 7640 | # The diagnosis changed in icc 8.0: |
| 7641 | # icc: Command line remark: option '-MP' not supported |
| 7642 | if (grep 'ignoring option' conftest.err || |
| 7643 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 7644 | am_cv_CXX_dependencies_compiler_type=$depmode |
| 7645 | break |
| 7646 | fi |
| 7647 | fi |
| 7648 | done |
| 7649 | |
| 7650 | cd .. |
| 7651 | rm -rf conftest.dir |
| 7652 | else |
| 7653 | am_cv_CXX_dependencies_compiler_type=none |
| 7654 | fi |
| 7655 | |
| 7656 | fi |
| 7657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
| 7658 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } |
| 7659 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
| 7660 | |
| 7661 | if |
| 7662 | test "x$enable_dependency_tracking" != xno \ |
| 7663 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
| 7664 | am__fastdepCXX_TRUE= |
| 7665 | am__fastdepCXX_FALSE='#' |
| 7666 | else |
| 7667 | am__fastdepCXX_TRUE='#' |
| 7668 | am__fastdepCXX_FALSE= |
| 7669 | fi |
| 7670 | |
| 7671 | |
| 7672 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
| 7673 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
| 7674 | (test "X$CXX" != "Xg++"))) ; then |
| 7675 | ac_ext=cpp |
| 7676 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 7677 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7678 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7679 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 7680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 |
| 7681 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } |
| 7682 | if test -z "$CXXCPP"; then |
| 7683 | if test "${ac_cv_prog_CXXCPP+set}" = set; then : |
| 7684 | $as_echo_n "(cached) " >&6 |
| 7685 | else |
| 7686 | # Double quotes because CXXCPP needs to be expanded |
| 7687 | for CXXCPP in "$CXX -E" "/lib/cpp" |
| 7688 | do |
| 7689 | ac_preproc_ok=false |
| 7690 | for ac_cxx_preproc_warn_flag in '' yes |
| 7691 | do |
| 7692 | # Use a header file that comes with gcc, so configuring glibc |
| 7693 | # with a fresh cross-compiler works. |
| 7694 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7695 | # <limits.h> exists even on freestanding compilers. |
| 7696 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7697 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7699 | /* end confdefs.h. */ |
| 7700 | #ifdef __STDC__ |
| 7701 | # include <limits.h> |
| 7702 | #else |
| 7703 | # include <assert.h> |
| 7704 | #endif |
| 7705 | Syntax error |
| 7706 | _ACEOF |
| 7707 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7708 | |
| 7709 | else |
| 7710 | # Broken: fails on valid input. |
| 7711 | continue |
| 7712 | fi |
| 7713 | rm -f conftest.err conftest.$ac_ext |
| 7714 | |
| 7715 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7716 | # can be detected and how. |
| 7717 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7718 | /* end confdefs.h. */ |
| 7719 | #include <ac_nonexistent.h> |
| 7720 | _ACEOF |
| 7721 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7722 | # Broken: success on invalid input. |
| 7723 | continue |
| 7724 | else |
| 7725 | # Passes both tests. |
| 7726 | ac_preproc_ok=: |
| 7727 | break |
| 7728 | fi |
| 7729 | rm -f conftest.err conftest.$ac_ext |
| 7730 | |
| 7731 | done |
| 7732 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7733 | rm -f conftest.err conftest.$ac_ext |
| 7734 | if $ac_preproc_ok; then : |
| 7735 | break |
| 7736 | fi |
| 7737 | |
| 7738 | done |
| 7739 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7740 | |
| 7741 | fi |
| 7742 | CXXCPP=$ac_cv_prog_CXXCPP |
| 7743 | else |
| 7744 | ac_cv_prog_CXXCPP=$CXXCPP |
| 7745 | fi |
| 7746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 |
| 7747 | $as_echo "$CXXCPP" >&6; } |
| 7748 | ac_preproc_ok=false |
| 7749 | for ac_cxx_preproc_warn_flag in '' yes |
| 7750 | do |
| 7751 | # Use a header file that comes with gcc, so configuring glibc |
| 7752 | # with a fresh cross-compiler works. |
| 7753 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 7754 | # <limits.h> exists even on freestanding compilers. |
| 7755 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 7756 | # not just through cpp. "Syntax error" is here to catch this case. |
| 7757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7758 | /* end confdefs.h. */ |
| 7759 | #ifdef __STDC__ |
| 7760 | # include <limits.h> |
| 7761 | #else |
| 7762 | # include <assert.h> |
| 7763 | #endif |
| 7764 | Syntax error |
| 7765 | _ACEOF |
| 7766 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7767 | |
| 7768 | else |
| 7769 | # Broken: fails on valid input. |
| 7770 | continue |
| 7771 | fi |
| 7772 | rm -f conftest.err conftest.$ac_ext |
| 7773 | |
| 7774 | # OK, works on sane cases. Now check whether nonexistent headers |
| 7775 | # can be detected and how. |
| 7776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7777 | /* end confdefs.h. */ |
| 7778 | #include <ac_nonexistent.h> |
| 7779 | _ACEOF |
| 7780 | if ac_fn_cxx_try_cpp "$LINENO"; then : |
| 7781 | # Broken: success on invalid input. |
| 7782 | continue |
| 7783 | else |
| 7784 | # Passes both tests. |
| 7785 | ac_preproc_ok=: |
| 7786 | break |
| 7787 | fi |
| 7788 | rm -f conftest.err conftest.$ac_ext |
| 7789 | |
| 7790 | done |
| 7791 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7792 | rm -f conftest.err conftest.$ac_ext |
| 7793 | if $ac_preproc_ok; then : |
| 7794 | |
| 7795 | else |
| 7796 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7797 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7798 | _lt_caught_CXX_error=yes; } |
| 7799 | fi |
| 7800 | |
| 7801 | ac_ext=c |
| 7802 | ac_cpp='$CPP $CPPFLAGS' |
| 7803 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7804 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7805 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7806 | |
| 7807 | else |
| 7808 | _lt_caught_CXX_error=yes |
| 7809 | fi |
| 7810 | |
| 7811 | |
| 7812 | |
| 7813 | |
| 7814 | |
| 7815 | # Set options |
| 7816 | |
| 7817 | |
| 7818 | |
| 7819 | enable_dlopen=no |
| 7820 | |
| 7821 | |
| 7822 | enable_win32_dll=no |
| 7823 | |
| 7824 | |
| 7825 | # Check whether --enable-shared was given. |
| 7826 | if test "${enable_shared+set}" = set; then : |
| 7827 | enableval=$enable_shared; p=${PACKAGE-default} |
| 7828 | case $enableval in |
| 7829 | yes) enable_shared=yes ;; |
| 7830 | no) enable_shared=no ;; |
| 7831 | *) |
| 7832 | enable_shared=no |
| 7833 | # Look at the argument we got. We use all the common list separators. |
| 7834 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7835 | for pkg in $enableval; do |
| 7836 | IFS="$lt_save_ifs" |
| 7837 | if test "X$pkg" = "X$p"; then |
| 7838 | enable_shared=yes |
| 7839 | fi |
| 7840 | done |
| 7841 | IFS="$lt_save_ifs" |
| 7842 | ;; |
| 7843 | esac |
| 7844 | else |
| 7845 | enable_shared=yes |
| 7846 | fi |
| 7847 | |
| 7848 | |
| 7849 | |
| 7850 | |
| 7851 | |
| 7852 | |
| 7853 | |
| 7854 | |
| 7855 | |
| 7856 | # Check whether --enable-static was given. |
| 7857 | if test "${enable_static+set}" = set; then : |
| 7858 | enableval=$enable_static; p=${PACKAGE-default} |
| 7859 | case $enableval in |
| 7860 | yes) enable_static=yes ;; |
| 7861 | no) enable_static=no ;; |
| 7862 | *) |
| 7863 | enable_static=no |
| 7864 | # Look at the argument we got. We use all the common list separators. |
| 7865 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7866 | for pkg in $enableval; do |
| 7867 | IFS="$lt_save_ifs" |
| 7868 | if test "X$pkg" = "X$p"; then |
| 7869 | enable_static=yes |
| 7870 | fi |
| 7871 | done |
| 7872 | IFS="$lt_save_ifs" |
| 7873 | ;; |
| 7874 | esac |
| 7875 | else |
| 7876 | enable_static=yes |
| 7877 | fi |
| 7878 | |
| 7879 | |
| 7880 | |
| 7881 | |
| 7882 | |
| 7883 | |
| 7884 | |
| 7885 | |
| 7886 | |
| 7887 | |
| 7888 | # Check whether --with-pic was given. |
| 7889 | if test "${with_pic+set}" = set; then : |
| 7890 | withval=$with_pic; pic_mode="$withval" |
| 7891 | else |
| 7892 | pic_mode=default |
| 7893 | fi |
| 7894 | |
| 7895 | |
| 7896 | test -z "$pic_mode" && pic_mode=default |
| 7897 | |
| 7898 | |
| 7899 | |
| 7900 | |
| 7901 | |
| 7902 | |
| 7903 | |
| 7904 | # Check whether --enable-fast-install was given. |
| 7905 | if test "${enable_fast_install+set}" = set; then : |
| 7906 | enableval=$enable_fast_install; p=${PACKAGE-default} |
| 7907 | case $enableval in |
| 7908 | yes) enable_fast_install=yes ;; |
| 7909 | no) enable_fast_install=no ;; |
| 7910 | *) |
| 7911 | enable_fast_install=no |
| 7912 | # Look at the argument we got. We use all the common list separators. |
| 7913 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
| 7914 | for pkg in $enableval; do |
| 7915 | IFS="$lt_save_ifs" |
| 7916 | if test "X$pkg" = "X$p"; then |
| 7917 | enable_fast_install=yes |
| 7918 | fi |
| 7919 | done |
| 7920 | IFS="$lt_save_ifs" |
| 7921 | ;; |
| 7922 | esac |
| 7923 | else |
| 7924 | enable_fast_install=yes |
| 7925 | fi |
| 7926 | |
| 7927 | |
| 7928 | |
| 7929 | |
| 7930 | |
| 7931 | |
| 7932 | |
| 7933 | |
| 7934 | |
| 7935 | |
| 7936 | |
| 7937 | # This can be used to rebuild libtool when needed |
| 7938 | LIBTOOL_DEPS="$ltmain" |
| 7939 | |
| 7940 | # Always use our own libtool. |
| 7941 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 7942 | |
| 7943 | |
| 7944 | |
| 7945 | |
| 7946 | |
| 7947 | |
| 7948 | |
| 7949 | |
| 7950 | |
| 7951 | |
| 7952 | |
| 7953 | |
| 7954 | |
| 7955 | |
| 7956 | |
| 7957 | |
| 7958 | |
| 7959 | |
| 7960 | |
| 7961 | |
| 7962 | |
| 7963 | |
| 7964 | |
| 7965 | |
| 7966 | |
| 7967 | test -z "$LN_S" && LN_S="ln -s" |
| 7968 | |
| 7969 | |
| 7970 | |
| 7971 | |
| 7972 | |
| 7973 | |
| 7974 | |
| 7975 | |
| 7976 | |
| 7977 | |
| 7978 | |
| 7979 | |
| 7980 | |
| 7981 | |
| 7982 | if test -n "${ZSH_VERSION+set}" ; then |
| 7983 | setopt NO_GLOB_SUBST |
| 7984 | fi |
| 7985 | |
| 7986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 7987 | $as_echo_n "checking for objdir... " >&6; } |
| 7988 | if test "${lt_cv_objdir+set}" = set; then : |
| 7989 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 7990 | else |
| 7991 | rm -f .libs 2>/dev/null |
| 7992 | mkdir .libs 2>/dev/null |
| 7993 | if test -d .libs; then |
| 7994 | lt_cv_objdir=.libs |
| 7995 | else |
| 7996 | # MS-DOS does not allow filenames that begin with a dot. |
| 7997 | lt_cv_objdir=_libs |
| 7998 | fi |
| 7999 | rmdir .libs 2>/dev/null |
| 8000 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8001 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 8002 | $as_echo "$lt_cv_objdir" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8003 | objdir=$lt_cv_objdir |
| 8004 | |
| 8005 | |
| 8006 | |
| 8007 | |
| 8008 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8009 | cat >>confdefs.h <<_ACEOF |
| 8010 | #define LT_OBJDIR "$lt_cv_objdir/" |
| 8011 | _ACEOF |
| 8012 | |
| 8013 | |
| 8014 | |
| 8015 | |
| 8016 | |
| 8017 | |
| 8018 | |
| 8019 | |
| 8020 | |
| 8021 | |
| 8022 | |
| 8023 | |
| 8024 | |
| 8025 | |
| 8026 | |
| 8027 | |
| 8028 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8029 | case $host_os in |
| 8030 | aix3*) |
| 8031 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 8032 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 8033 | # vanish in a puff of smoke. |
| 8034 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 8035 | COLLECT_NAMES= |
| 8036 | export COLLECT_NAMES |
| 8037 | fi |
| 8038 | ;; |
| 8039 | esac |
| 8040 | |
| 8041 | # Sed substitution that helps us do robust quoting. It backslashifies |
| 8042 | # metacharacters that are still active within double-quoted strings. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8043 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8044 | |
| 8045 | # Same as above, but do not quote variable references. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8046 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8047 | |
| 8048 | # Sed substitution to delay expansion of an escaped shell variable in a |
| 8049 | # double_quote_subst'ed string. |
| 8050 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 8051 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8052 | # Sed substitution to delay expansion of an escaped single quote. |
| 8053 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 8054 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8055 | # Sed substitution to avoid accidental globbing in evaled expressions |
| 8056 | no_glob_subst='s/\*/\\\*/g' |
| 8057 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8058 | # Global variables: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8059 | ofile=libtool |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8060 | can_build_shared=yes |
| 8061 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8062 | # All known linkers require a `.a' archive for static linking (except MSVC, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8063 | # which needs '.lib'). |
| 8064 | libext=a |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8065 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8066 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
| 8067 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8068 | old_CC="$CC" |
| 8069 | old_CFLAGS="$CFLAGS" |
| 8070 | |
| 8071 | # Set sane defaults for various variables |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8072 | test -z "$CC" && CC=cc |
| 8073 | test -z "$LTCC" && LTCC=$CC |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8074 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8075 | test -z "$LD" && LD=ld |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8076 | test -z "$ac_objext" && ac_objext=o |
| 8077 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8078 | for cc_temp in $compiler""; do |
| 8079 | case $cc_temp in |
| 8080 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 8081 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 8082 | \-*) ;; |
| 8083 | *) break;; |
| 8084 | esac |
| 8085 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8086 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8087 | |
| 8088 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8089 | # Only perform the check for file, if the check method requires it |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8090 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8091 | case $deplibs_check_method in |
| 8092 | file_magic*) |
| 8093 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 8095 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
| 8096 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 8097 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8098 | else |
| 8099 | case $MAGIC_CMD in |
| 8100 | [\\/*] | ?:[\\/]*) |
| 8101 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8102 | ;; |
| 8103 | *) |
| 8104 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8105 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8106 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8107 | for ac_dir in $ac_dummy; do |
| 8108 | IFS="$lt_save_ifs" |
| 8109 | test -z "$ac_dir" && ac_dir=. |
| 8110 | if test -f $ac_dir/${ac_tool_prefix}file; then |
| 8111 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
| 8112 | if test -n "$file_magic_test_file"; then |
| 8113 | case $deplibs_check_method in |
| 8114 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8115 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8116 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8117 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8118 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8119 | : |
| 8120 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8121 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8122 | |
| 8123 | *** Warning: the command libtool uses to detect shared libraries, |
| 8124 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8125 | *** The result is that libtool may fail to recognize shared libraries |
| 8126 | *** as such. This will affect the creation of libtool libraries that |
| 8127 | *** depend on shared libraries, but programs linked with such libtool |
| 8128 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8129 | *** may want to report the problem to your system manager and/or to |
| 8130 | *** bug-libtool@gnu.org |
| 8131 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8132 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8133 | fi ;; |
| 8134 | esac |
| 8135 | fi |
| 8136 | break |
| 8137 | fi |
| 8138 | done |
| 8139 | IFS="$lt_save_ifs" |
| 8140 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8141 | ;; |
| 8142 | esac |
| 8143 | fi |
| 8144 | |
| 8145 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8146 | if test -n "$MAGIC_CMD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8148 | $as_echo "$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8149 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8150 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8151 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8152 | fi |
| 8153 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8154 | |
| 8155 | |
| 8156 | |
| 8157 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8158 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 8159 | if test -n "$ac_tool_prefix"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8160 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 8161 | $as_echo_n "checking for file... " >&6; } |
| 8162 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : |
| 8163 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8164 | else |
| 8165 | case $MAGIC_CMD in |
| 8166 | [\\/*] | ?:[\\/]*) |
| 8167 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
| 8168 | ;; |
| 8169 | *) |
| 8170 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
| 8171 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 8172 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 8173 | for ac_dir in $ac_dummy; do |
| 8174 | IFS="$lt_save_ifs" |
| 8175 | test -z "$ac_dir" && ac_dir=. |
| 8176 | if test -f $ac_dir/file; then |
| 8177 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
| 8178 | if test -n "$file_magic_test_file"; then |
| 8179 | case $deplibs_check_method in |
| 8180 | "file_magic "*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8181 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8182 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8183 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 8184 | $EGREP "$file_magic_regex" > /dev/null; then |
| 8185 | : |
| 8186 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8187 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8188 | |
| 8189 | *** Warning: the command libtool uses to detect shared libraries, |
| 8190 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
| 8191 | *** The result is that libtool may fail to recognize shared libraries |
| 8192 | *** as such. This will affect the creation of libtool libraries that |
| 8193 | *** depend on shared libraries, but programs linked with such libtool |
| 8194 | *** libraries will work regardless of this problem. Nevertheless, you |
| 8195 | *** may want to report the problem to your system manager and/or to |
| 8196 | *** bug-libtool@gnu.org |
| 8197 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8198 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8199 | fi ;; |
| 8200 | esac |
| 8201 | fi |
| 8202 | break |
| 8203 | fi |
| 8204 | done |
| 8205 | IFS="$lt_save_ifs" |
| 8206 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
| 8207 | ;; |
| 8208 | esac |
| 8209 | fi |
| 8210 | |
| 8211 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
| 8212 | if test -n "$MAGIC_CMD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 8214 | $as_echo "$MAGIC_CMD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8215 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8217 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8218 | fi |
| 8219 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8220 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8221 | else |
| 8222 | MAGIC_CMD=: |
| 8223 | fi |
| 8224 | fi |
| 8225 | |
| 8226 | fi |
| 8227 | ;; |
| 8228 | esac |
| 8229 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8230 | # Use C for the default configuration in the libtool script |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8231 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8232 | lt_save_CC="$CC" |
| 8233 | ac_ext=c |
| 8234 | ac_cpp='$CPP $CPPFLAGS' |
| 8235 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 8236 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 8237 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 8238 | |
| 8239 | |
| 8240 | # Source file extension for C test sources. |
| 8241 | ac_ext=c |
| 8242 | |
| 8243 | # Object file extension for compiled C test sources. |
| 8244 | objext=o |
| 8245 | objext=$objext |
| 8246 | |
| 8247 | # Code to be used in simple compile tests |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8248 | lt_simple_compile_test_code="int some_variable = 0;" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8249 | |
| 8250 | # Code to be used in simple link tests |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8251 | lt_simple_link_test_code='int main(){return(0);}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8252 | |
| 8253 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8254 | |
| 8255 | |
| 8256 | |
| 8257 | |
| 8258 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8259 | # If no C compiler was specified, use CC. |
| 8260 | LTCC=${LTCC-"$CC"} |
| 8261 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8262 | # If no C compiler flags were specified, use CFLAGS. |
| 8263 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 8264 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8265 | # Allow CC to be a program name with arguments. |
| 8266 | compiler=$CC |
| 8267 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8268 | # Save the default compiler, since it gets overwritten when the other |
| 8269 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 8270 | compiler_DEFAULT=$CC |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8271 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8272 | # save warnings/boilerplate of simple test code |
| 8273 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8274 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8275 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8276 | _lt_compiler_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8277 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8278 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8279 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8280 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8281 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 8282 | _lt_linker_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8283 | $RM -r conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8284 | |
| 8285 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8286 | if test -n "$compiler"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8287 | |
| 8288 | lt_prog_compiler_no_builtin_flag= |
| 8289 | |
| 8290 | if test "$GCC" = yes; then |
| 8291 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
| 8292 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 8294 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 8295 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : |
| 8296 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8297 | else |
| 8298 | lt_cv_prog_compiler_rtti_exceptions=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8299 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8300 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8301 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
| 8302 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8303 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8304 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8305 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8306 | # The option is referenced via a variable to avoid confusing sed. |
| 8307 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8308 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8309 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8310 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8311 | (eval echo "\"\$as_me:8311: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8312 | (eval "$lt_compile" 2>conftest.err) |
| 8313 | ac_status=$? |
| 8314 | cat conftest.err >&5 |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8315 | echo "$as_me:8315: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8316 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8317 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8318 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8319 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8320 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8321 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8322 | lt_cv_prog_compiler_rtti_exceptions=yes |
| 8323 | fi |
| 8324 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8325 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8326 | |
| 8327 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 8329 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8330 | |
| 8331 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
| 8332 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 8333 | else |
| 8334 | : |
| 8335 | fi |
| 8336 | |
| 8337 | fi |
| 8338 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8339 | |
| 8340 | |
| 8341 | |
| 8342 | |
| 8343 | |
| 8344 | lt_prog_compiler_wl= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8345 | lt_prog_compiler_pic= |
| 8346 | lt_prog_compiler_static= |
| 8347 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 8349 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8350 | |
| 8351 | if test "$GCC" = yes; then |
| 8352 | lt_prog_compiler_wl='-Wl,' |
| 8353 | lt_prog_compiler_static='-static' |
| 8354 | |
| 8355 | case $host_os in |
| 8356 | aix*) |
| 8357 | # All AIX code is PIC. |
| 8358 | if test "$host_cpu" = ia64; then |
| 8359 | # AIX 5 now supports IA64 processor |
| 8360 | lt_prog_compiler_static='-Bstatic' |
| 8361 | fi |
| 8362 | ;; |
| 8363 | |
| 8364 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8365 | case $host_cpu in |
| 8366 | powerpc) |
| 8367 | # see comment about AmigaOS4 .so support |
| 8368 | lt_prog_compiler_pic='-fPIC' |
| 8369 | ;; |
| 8370 | m68k) |
| 8371 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 8372 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 8373 | # like `-m68040'. |
| 8374 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 8375 | ;; |
| 8376 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8377 | ;; |
| 8378 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8379 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8380 | # PIC is the default for these OSes. |
| 8381 | ;; |
| 8382 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8383 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8384 | # This hack is so that the source file can tell whether it is being |
| 8385 | # built for inclusion in a dll (and should export symbols for example). |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8386 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 8387 | # (--disable-auto-import) libraries |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8388 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8389 | ;; |
| 8390 | |
| 8391 | darwin* | rhapsody*) |
| 8392 | # PIC is the default on this platform |
| 8393 | # Common symbols not allowed in MH_DYLIB files |
| 8394 | lt_prog_compiler_pic='-fno-common' |
| 8395 | ;; |
| 8396 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8397 | hpux*) |
| 8398 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 8399 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 8400 | # sets the default TLS model and affects inlining. |
| 8401 | case $host_cpu in |
| 8402 | hppa*64*) |
| 8403 | # +Z the default |
| 8404 | ;; |
| 8405 | *) |
| 8406 | lt_prog_compiler_pic='-fPIC' |
| 8407 | ;; |
| 8408 | esac |
| 8409 | ;; |
| 8410 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8411 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8412 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 8413 | # Instead, we relocate shared libraries at runtime. |
| 8414 | ;; |
| 8415 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8416 | msdosdjgpp*) |
| 8417 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
| 8418 | # on systems that don't support them. |
| 8419 | lt_prog_compiler_can_build_shared=no |
| 8420 | enable_shared=no |
| 8421 | ;; |
| 8422 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8423 | *nto* | *qnx*) |
| 8424 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8425 | # it will coredump. |
| 8426 | lt_prog_compiler_pic='-fPIC -shared' |
| 8427 | ;; |
| 8428 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8429 | sysv4*MP*) |
| 8430 | if test -d /usr/nec; then |
| 8431 | lt_prog_compiler_pic=-Kconform_pic |
| 8432 | fi |
| 8433 | ;; |
| 8434 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8435 | *) |
| 8436 | lt_prog_compiler_pic='-fPIC' |
| 8437 | ;; |
| 8438 | esac |
| 8439 | else |
| 8440 | # PORTME Check for flag to pass linker flags through the system compiler. |
| 8441 | case $host_os in |
| 8442 | aix*) |
| 8443 | lt_prog_compiler_wl='-Wl,' |
| 8444 | if test "$host_cpu" = ia64; then |
| 8445 | # AIX 5 now supports IA64 processor |
| 8446 | lt_prog_compiler_static='-Bstatic' |
| 8447 | else |
| 8448 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 8449 | fi |
| 8450 | ;; |
| 8451 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8452 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8453 | # This hack is so that the source file can tell whether it is being |
| 8454 | # built for inclusion in a dll (and should export symbols for example). |
| 8455 | lt_prog_compiler_pic='-DDLL_EXPORT' |
| 8456 | ;; |
| 8457 | |
| 8458 | hpux9* | hpux10* | hpux11*) |
| 8459 | lt_prog_compiler_wl='-Wl,' |
| 8460 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 8461 | # not for PA HP-UX. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8462 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8463 | hppa*64*|ia64*) |
| 8464 | # +Z the default |
| 8465 | ;; |
| 8466 | *) |
| 8467 | lt_prog_compiler_pic='+Z' |
| 8468 | ;; |
| 8469 | esac |
| 8470 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 8471 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
| 8472 | ;; |
| 8473 | |
| 8474 | irix5* | irix6* | nonstopux*) |
| 8475 | lt_prog_compiler_wl='-Wl,' |
| 8476 | # PIC (with -KPIC) is the default. |
| 8477 | lt_prog_compiler_static='-non_shared' |
| 8478 | ;; |
| 8479 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8480 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8481 | case $cc_basename in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8482 | # old Intel for x86_64 which still supported -KPIC. |
| 8483 | ecc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8484 | lt_prog_compiler_wl='-Wl,' |
| 8485 | lt_prog_compiler_pic='-KPIC' |
| 8486 | lt_prog_compiler_static='-static' |
| 8487 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8488 | # icc used to be incompatible with GCC. |
| 8489 | # ICC 10 doesn't accept -KPIC any more. |
| 8490 | icc* | ifort*) |
| 8491 | lt_prog_compiler_wl='-Wl,' |
| 8492 | lt_prog_compiler_pic='-fPIC' |
| 8493 | lt_prog_compiler_static='-static' |
| 8494 | ;; |
| 8495 | # Lahey Fortran 8.1. |
| 8496 | lf95*) |
| 8497 | lt_prog_compiler_wl='-Wl,' |
| 8498 | lt_prog_compiler_pic='--shared' |
| 8499 | lt_prog_compiler_static='--static' |
| 8500 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8501 | pgcc* | pgf77* | pgf90* | pgf95*) |
| 8502 | # Portland Group compilers (*not* the Pentium gcc compiler, |
| 8503 | # which looks to be a dead project) |
| 8504 | lt_prog_compiler_wl='-Wl,' |
| 8505 | lt_prog_compiler_pic='-fpic' |
| 8506 | lt_prog_compiler_static='-Bstatic' |
| 8507 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8508 | ccc*) |
| 8509 | lt_prog_compiler_wl='-Wl,' |
| 8510 | # All Alpha code is PIC. |
| 8511 | lt_prog_compiler_static='-non_shared' |
| 8512 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8513 | xl*) |
| 8514 | # IBM XL C 8.0/Fortran 10.1 on PPC |
| 8515 | lt_prog_compiler_wl='-Wl,' |
| 8516 | lt_prog_compiler_pic='-qpic' |
| 8517 | lt_prog_compiler_static='-qstaticlink' |
| 8518 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8519 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8520 | case `$CC -V 2>&1 | sed 5q` in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8521 | *Sun\ C*) |
| 8522 | # Sun C 5.9 |
| 8523 | lt_prog_compiler_pic='-KPIC' |
| 8524 | lt_prog_compiler_static='-Bstatic' |
| 8525 | lt_prog_compiler_wl='-Wl,' |
| 8526 | ;; |
| 8527 | *Sun\ F*) |
| 8528 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 8529 | lt_prog_compiler_pic='-KPIC' |
| 8530 | lt_prog_compiler_static='-Bstatic' |
| 8531 | lt_prog_compiler_wl='' |
| 8532 | ;; |
| 8533 | esac |
| 8534 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8535 | esac |
| 8536 | ;; |
| 8537 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8538 | newsos6) |
| 8539 | lt_prog_compiler_pic='-KPIC' |
| 8540 | lt_prog_compiler_static='-Bstatic' |
| 8541 | ;; |
| 8542 | |
| 8543 | *nto* | *qnx*) |
| 8544 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 8545 | # it will coredump. |
| 8546 | lt_prog_compiler_pic='-fPIC -shared' |
| 8547 | ;; |
| 8548 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8549 | osf3* | osf4* | osf5*) |
| 8550 | lt_prog_compiler_wl='-Wl,' |
| 8551 | # All OSF/1 code is PIC. |
| 8552 | lt_prog_compiler_static='-non_shared' |
| 8553 | ;; |
| 8554 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8555 | rdos*) |
| 8556 | lt_prog_compiler_static='-non_shared' |
| 8557 | ;; |
| 8558 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8559 | solaris*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8560 | lt_prog_compiler_pic='-KPIC' |
| 8561 | lt_prog_compiler_static='-Bstatic' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8562 | case $cc_basename in |
| 8563 | f77* | f90* | f95*) |
| 8564 | lt_prog_compiler_wl='-Qoption ld ';; |
| 8565 | *) |
| 8566 | lt_prog_compiler_wl='-Wl,';; |
| 8567 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8568 | ;; |
| 8569 | |
| 8570 | sunos4*) |
| 8571 | lt_prog_compiler_wl='-Qoption ld ' |
| 8572 | lt_prog_compiler_pic='-PIC' |
| 8573 | lt_prog_compiler_static='-Bstatic' |
| 8574 | ;; |
| 8575 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8576 | sysv4 | sysv4.2uw2* | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8577 | lt_prog_compiler_wl='-Wl,' |
| 8578 | lt_prog_compiler_pic='-KPIC' |
| 8579 | lt_prog_compiler_static='-Bstatic' |
| 8580 | ;; |
| 8581 | |
| 8582 | sysv4*MP*) |
| 8583 | if test -d /usr/nec ;then |
| 8584 | lt_prog_compiler_pic='-Kconform_pic' |
| 8585 | lt_prog_compiler_static='-Bstatic' |
| 8586 | fi |
| 8587 | ;; |
| 8588 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8589 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 8590 | lt_prog_compiler_wl='-Wl,' |
| 8591 | lt_prog_compiler_pic='-KPIC' |
| 8592 | lt_prog_compiler_static='-Bstatic' |
| 8593 | ;; |
| 8594 | |
| 8595 | unicos*) |
| 8596 | lt_prog_compiler_wl='-Wl,' |
| 8597 | lt_prog_compiler_can_build_shared=no |
| 8598 | ;; |
| 8599 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8600 | uts4*) |
| 8601 | lt_prog_compiler_pic='-pic' |
| 8602 | lt_prog_compiler_static='-Bstatic' |
| 8603 | ;; |
| 8604 | |
| 8605 | *) |
| 8606 | lt_prog_compiler_can_build_shared=no |
| 8607 | ;; |
| 8608 | esac |
| 8609 | fi |
| 8610 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8611 | case $host_os in |
| 8612 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 8613 | *djgpp*) |
| 8614 | lt_prog_compiler_pic= |
| 8615 | ;; |
| 8616 | *) |
| 8617 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 8618 | ;; |
| 8619 | esac |
| 8620 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
| 8621 | $as_echo "$lt_prog_compiler_pic" >&6; } |
| 8622 | |
| 8623 | |
| 8624 | |
| 8625 | |
| 8626 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8627 | |
| 8628 | # |
| 8629 | # Check to make sure the PIC flag actually works. |
| 8630 | # |
| 8631 | if test -n "$lt_prog_compiler_pic"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 8633 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 8634 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : |
| 8635 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8636 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8637 | lt_cv_prog_compiler_pic_works=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8638 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8639 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8640 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
| 8641 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8642 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8643 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8644 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8645 | # The option is referenced via a variable to avoid confusing sed. |
| 8646 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8647 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8648 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8649 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8650 | (eval echo "\"\$as_me:8650: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8651 | (eval "$lt_compile" 2>conftest.err) |
| 8652 | ac_status=$? |
| 8653 | cat conftest.err >&5 |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8654 | echo "$as_me:8654: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8655 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 8656 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8657 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8658 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8659 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8660 | 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] | 8661 | lt_cv_prog_compiler_pic_works=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8662 | fi |
| 8663 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8664 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8665 | |
| 8666 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8667 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 8668 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8669 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8670 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8671 | case $lt_prog_compiler_pic in |
| 8672 | "" | " "*) ;; |
| 8673 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 8674 | esac |
| 8675 | else |
| 8676 | lt_prog_compiler_pic= |
| 8677 | lt_prog_compiler_can_build_shared=no |
| 8678 | fi |
| 8679 | |
| 8680 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8681 | |
| 8682 | |
| 8683 | |
| 8684 | |
| 8685 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8686 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8687 | # |
| 8688 | # Check to make sure the static flag actually works. |
| 8689 | # |
| 8690 | 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] | 8691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 8692 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 8693 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : |
| 8694 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8695 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8696 | lt_cv_prog_compiler_static_works=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8697 | save_LDFLAGS="$LDFLAGS" |
| 8698 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8699 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8700 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 8701 | # The linker can only warn and ignore the option if not recognized |
| 8702 | # So say no if there are warnings |
| 8703 | if test -s conftest.err; then |
| 8704 | # Append any errors to the config.log. |
| 8705 | cat conftest.err 1>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8706 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8707 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 8708 | if diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8709 | lt_cv_prog_compiler_static_works=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8710 | fi |
| 8711 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8712 | lt_cv_prog_compiler_static_works=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8713 | fi |
| 8714 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8715 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8716 | LDFLAGS="$save_LDFLAGS" |
| 8717 | |
| 8718 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 8720 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8721 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8722 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8723 | : |
| 8724 | else |
| 8725 | lt_prog_compiler_static= |
| 8726 | fi |
| 8727 | |
| 8728 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8729 | |
| 8730 | |
| 8731 | |
| 8732 | |
| 8733 | |
| 8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8735 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8736 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8737 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8738 | else |
| 8739 | lt_cv_prog_compiler_c_o=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8740 | $RM -r conftest 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8741 | mkdir conftest |
| 8742 | cd conftest |
| 8743 | mkdir out |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8744 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8745 | |
| 8746 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8747 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8748 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8749 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8750 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8751 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8752 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8753 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8754 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8755 | (eval echo "\"\$as_me:8755: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8756 | (eval "$lt_compile" 2>out/conftest.err) |
| 8757 | ac_status=$? |
| 8758 | cat out/conftest.err >&5 |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8759 | echo "$as_me:8759: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8760 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8761 | then |
| 8762 | # The compiler can only warn and ignore the option if not recognized |
| 8763 | # So say no if there are warnings |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8764 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8765 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8766 | 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] | 8767 | lt_cv_prog_compiler_c_o=yes |
| 8768 | fi |
| 8769 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8770 | chmod u+w . 2>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8771 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8772 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8773 | # template instantiation |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8774 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8775 | $RM out/* && rmdir out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8776 | cd .. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8777 | $RM -r conftest |
| 8778 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8779 | |
| 8780 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8782 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8783 | |
| 8784 | |
| 8785 | |
| 8786 | |
| 8787 | |
| 8788 | |
| 8789 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 8790 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 8791 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : |
| 8792 | $as_echo_n "(cached) " >&6 |
| 8793 | else |
| 8794 | lt_cv_prog_compiler_c_o=no |
| 8795 | $RM -r conftest 2>/dev/null |
| 8796 | mkdir conftest |
| 8797 | cd conftest |
| 8798 | mkdir out |
| 8799 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 8800 | |
| 8801 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 8802 | # Insert the option either (1) after the last *FLAGS variable, or |
| 8803 | # (2) before a word containing "conftest.", or (3) at the end. |
| 8804 | # Note that $ac_compile itself does not contain backslashes and begins |
| 8805 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 8806 | lt_compile=`echo "$ac_compile" | $SED \ |
| 8807 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 8808 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 8809 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8810 | (eval echo "\"\$as_me:8810: $lt_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8811 | (eval "$lt_compile" 2>out/conftest.err) |
| 8812 | ac_status=$? |
| 8813 | cat out/conftest.err >&5 |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8814 | echo "$as_me:8814: \$? = $ac_status" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8815 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 8816 | then |
| 8817 | # The compiler can only warn and ignore the option if not recognized |
| 8818 | # So say no if there are warnings |
| 8819 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 8820 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 8821 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 8822 | lt_cv_prog_compiler_c_o=yes |
| 8823 | fi |
| 8824 | fi |
| 8825 | chmod u+w . 2>&5 |
| 8826 | $RM conftest* |
| 8827 | # SGI C++ compiler will create directory out/ii_files/ for |
| 8828 | # template instantiation |
| 8829 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 8830 | $RM out/* && rmdir out |
| 8831 | cd .. |
| 8832 | $RM -r conftest |
| 8833 | $RM conftest* |
| 8834 | |
| 8835 | fi |
| 8836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 8837 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } |
| 8838 | |
| 8839 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8840 | |
| 8841 | |
| 8842 | hard_links="nottested" |
| 8843 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
| 8844 | # do not overwrite the value of need_locks provided by the user |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 8846 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8847 | hard_links=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8848 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8849 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 8850 | touch conftest.a |
| 8851 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 8852 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 8854 | $as_echo "$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8855 | if test "$hard_links" = no; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 8857 | $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] | 8858 | need_locks=warn |
| 8859 | fi |
| 8860 | else |
| 8861 | need_locks=no |
| 8862 | fi |
| 8863 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8864 | |
| 8865 | |
| 8866 | |
| 8867 | |
| 8868 | |
| 8869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 8870 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8871 | |
| 8872 | runpath_var= |
| 8873 | allow_undefined_flag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8874 | always_export_symbols=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8875 | archive_cmds= |
| 8876 | archive_expsym_cmds= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8877 | compiler_needs_object=no |
| 8878 | enable_shared_with_static_runtimes=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8879 | export_dynamic_flag_spec= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8880 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 8881 | hardcode_automatic=no |
| 8882 | hardcode_direct=no |
| 8883 | hardcode_direct_absolute=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8884 | hardcode_libdir_flag_spec= |
| 8885 | hardcode_libdir_flag_spec_ld= |
| 8886 | hardcode_libdir_separator= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8887 | hardcode_minus_L=no |
| 8888 | hardcode_shlibpath_var=unsupported |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8889 | inherit_rpath=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8890 | link_all_deplibs=unknown |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8891 | module_cmds= |
| 8892 | module_expsym_cmds= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8893 | old_archive_from_new_cmds= |
| 8894 | old_archive_from_expsyms_cmds= |
| 8895 | thread_safe_flag_spec= |
| 8896 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8897 | # include_expsyms should be a list of space-separated symbols to be *always* |
| 8898 | # included in the symbol list |
| 8899 | include_expsyms= |
| 8900 | # exclude_expsyms can be an extended regexp of symbols to exclude |
| 8901 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
| 8902 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
| 8903 | # as well as any symbol that contains `d'. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8904 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8905 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 8906 | # platforms (ab)use it in PIC code, but their linkers get confused if |
| 8907 | # the symbol is explicitly referenced. Since portable code cannot |
| 8908 | # rely on this symbol name, it's probably fine to never include it in |
| 8909 | # preloaded symbol tables. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8910 | # Exclude shared library initialization/finalization symbols. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8911 | extract_expsyms_cmds= |
| 8912 | |
| 8913 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8914 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8915 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
| 8916 | # When not using gcc, we currently assume that we are using |
| 8917 | # Microsoft Visual C++. |
| 8918 | if test "$GCC" != yes; then |
| 8919 | with_gnu_ld=no |
| 8920 | fi |
| 8921 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8922 | interix*) |
| 8923 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
| 8924 | with_gnu_ld=yes |
| 8925 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8926 | openbsd*) |
| 8927 | with_gnu_ld=no |
| 8928 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8929 | linux* | k*bsd*-gnu) |
| 8930 | link_all_deplibs=no |
| 8931 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8932 | esac |
| 8933 | |
| 8934 | ld_shlibs=yes |
| 8935 | if test "$with_gnu_ld" = yes; then |
| 8936 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 8937 | wlarc='${wl}' |
| 8938 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8939 | # Set some defaults for GNU ld with shared library support. These |
| 8940 | # are reset later if shared libraries are not supported. Putting them |
| 8941 | # here allows them to be overridden if necessary. |
| 8942 | runpath_var=LD_RUN_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8943 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8944 | export_dynamic_flag_spec='${wl}--export-dynamic' |
| 8945 | # ancient GNU ld didn't support --whole-archive et. al. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8946 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 8947 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 8948 | else |
| 8949 | whole_archive_flag_spec= |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8950 | fi |
| 8951 | supports_anon_versioning=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8952 | case `$LD -v 2>&1` in |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 8953 | *GNU\ gold*) supports_anon_versioning=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 8954 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 8955 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 8956 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 8957 | *\ 2.11.*) ;; # other 2.11 versions |
| 8958 | *) supports_anon_versioning=yes ;; |
| 8959 | esac |
| 8960 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8961 | # See if GNU ld supports shared libraries. |
| 8962 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 8963 | aix[3-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8964 | # On AIX/PPC, the GNU linker is very broken |
| 8965 | if test "$host_cpu" != ia64; then |
| 8966 | ld_shlibs=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8967 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8968 | |
| 8969 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
| 8970 | *** to be unable to reliably create shared libraries on AIX. |
| 8971 | *** Therefore, libtool is disabling shared libraries support. If you |
| 8972 | *** really care for shared libraries, you may want to modify your PATH |
| 8973 | *** so that a non-GNU linker is found, and then restart. |
| 8974 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8975 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8976 | fi |
| 8977 | ;; |
| 8978 | |
| 8979 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8980 | case $host_cpu in |
| 8981 | powerpc) |
| 8982 | # see comment about AmigaOS4 .so support |
| 8983 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 8984 | archive_expsym_cmds='' |
| 8985 | ;; |
| 8986 | m68k) |
| 8987 | 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)' |
| 8988 | hardcode_libdir_flag_spec='-L$libdir' |
| 8989 | hardcode_minus_L=yes |
| 8990 | ;; |
| 8991 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8992 | ;; |
| 8993 | |
| 8994 | beos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 8995 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 8996 | allow_undefined_flag=unsupported |
| 8997 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 8998 | # support --undefined. This deserves some investigation. FIXME |
| 8999 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9000 | else |
| 9001 | ld_shlibs=no |
| 9002 | fi |
| 9003 | ;; |
| 9004 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9005 | cygwin* | mingw* | pw32* | cegcc*) |
| 9006 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9007 | # as there is no search path for DLLs. |
| 9008 | hardcode_libdir_flag_spec='-L$libdir' |
| 9009 | allow_undefined_flag=unsupported |
| 9010 | always_export_symbols=no |
| 9011 | enable_shared_with_static_runtimes=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9012 | 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] | 9013 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9014 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9015 | 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] | 9016 | # If the export-symbols file already is a .def file (1st line |
| 9017 | # is EXPORTS), use it as is; otherwise, prepend... |
| 9018 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 9019 | cp $export_symbols $output_objdir/$soname.def; |
| 9020 | else |
| 9021 | echo EXPORTS > $output_objdir/$soname.def; |
| 9022 | cat $export_symbols >> $output_objdir/$soname.def; |
| 9023 | fi~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9024 | $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] | 9025 | else |
| 9026 | ld_shlibs=no |
| 9027 | fi |
| 9028 | ;; |
| 9029 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9030 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9031 | hardcode_direct=no |
| 9032 | hardcode_shlibpath_var=no |
| 9033 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9034 | export_dynamic_flag_spec='${wl}-E' |
| 9035 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 9036 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 9037 | # default) and relocated if they conflict, which is a slow very memory |
| 9038 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 9039 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 9040 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 9041 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 9042 | 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' |
| 9043 | ;; |
| 9044 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9045 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9046 | tmp_diet=no |
| 9047 | if test "$host_os" = linux-dietlibc; then |
| 9048 | case $cc_basename in |
| 9049 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 9050 | esac |
| 9051 | fi |
| 9052 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 9053 | && test "$tmp_diet" = no |
| 9054 | then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9055 | tmp_addflag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9056 | tmp_sharedflag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9057 | case $cc_basename,$host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9058 | pgcc*) # Portland Group C compiler |
| 9059 | 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] | 9060 | tmp_addflag=' $pic_flag' |
| 9061 | ;; |
| 9062 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9063 | 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] | 9064 | tmp_addflag=' $pic_flag -Mnomain' ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9065 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9066 | tmp_addflag=' -i_dynamic' ;; |
| 9067 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 9068 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 9069 | ifc* | ifort*) # Intel Fortran compiler |
| 9070 | tmp_addflag=' -nofor_main' ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9071 | lf95*) # Lahey Fortran 8.1 |
| 9072 | whole_archive_flag_spec= |
| 9073 | tmp_sharedflag='--shared' ;; |
| 9074 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 9075 | tmp_sharedflag='-qmkshrobj' |
| 9076 | tmp_addflag= ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9077 | esac |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9078 | case `$CC -V 2>&1 | sed 5q` in |
| 9079 | *Sun\ C*) # Sun C 5.9 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9080 | 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' |
| 9081 | compiler_needs_object=yes |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9082 | tmp_sharedflag='-G' ;; |
| 9083 | *Sun\ F*) # Sun Fortran 8.3 |
| 9084 | tmp_sharedflag='-G' ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9085 | esac |
| 9086 | 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] | 9087 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9088 | if test "x$supports_anon_versioning" = xyes; then |
| 9089 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9090 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9091 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9092 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 9093 | fi |
| 9094 | |
| 9095 | case $cc_basename in |
| 9096 | xlf*) |
| 9097 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 9098 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 9099 | hardcode_libdir_flag_spec= |
| 9100 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
| 9101 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' |
| 9102 | if test "x$supports_anon_versioning" = xyes; then |
| 9103 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 9104 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 9105 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 9106 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 9107 | fi |
| 9108 | ;; |
| 9109 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9110 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9111 | ld_shlibs=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9112 | fi |
| 9113 | ;; |
| 9114 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9115 | netbsd* | netbsdelf*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9116 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9117 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 9118 | wlarc= |
| 9119 | else |
| 9120 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9121 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9122 | fi |
| 9123 | ;; |
| 9124 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9125 | solaris*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9126 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9127 | ld_shlibs=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9128 | cat <<_LT_EOF 1>&2 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9129 | |
| 9130 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 9131 | *** create shared libraries on Solaris systems. Therefore, libtool |
| 9132 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9133 | *** binutils to release 2.9.1 or newer. Another option is to modify |
| 9134 | *** your PATH or compiler configuration so that the native linker is |
| 9135 | *** used, and then restart. |
| 9136 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9137 | _LT_EOF |
| 9138 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9139 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9140 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9141 | else |
| 9142 | ld_shlibs=no |
| 9143 | fi |
| 9144 | ;; |
| 9145 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9146 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 9147 | case `$LD -v 2>&1` in |
| 9148 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 9149 | ld_shlibs=no |
| 9150 | cat <<_LT_EOF 1>&2 |
| 9151 | |
| 9152 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
| 9153 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
| 9154 | *** is disabling shared libraries support. We urge you to upgrade GNU |
| 9155 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 9156 | *** your PATH or compiler configuration so that the native linker is |
| 9157 | *** used, and then restart. |
| 9158 | |
| 9159 | _LT_EOF |
| 9160 | ;; |
| 9161 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9162 | # For security reasons, it is highly recommended that you always |
| 9163 | # use absolute paths for naming shared libraries, and exclude the |
| 9164 | # DT_RUNPATH tag from executables and libraries. But doing so |
| 9165 | # requires that you compile everything twice, which is a pain. |
| 9166 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 9167 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9168 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9169 | 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] | 9170 | else |
| 9171 | ld_shlibs=no |
| 9172 | fi |
| 9173 | ;; |
| 9174 | esac |
| 9175 | ;; |
| 9176 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9177 | sunos4*) |
| 9178 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9179 | wlarc= |
| 9180 | hardcode_direct=yes |
| 9181 | hardcode_shlibpath_var=no |
| 9182 | ;; |
| 9183 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9184 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9185 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9186 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9187 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
| 9188 | else |
| 9189 | ld_shlibs=no |
| 9190 | fi |
| 9191 | ;; |
| 9192 | esac |
| 9193 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9194 | if test "$ld_shlibs" = no; then |
| 9195 | runpath_var= |
| 9196 | hardcode_libdir_flag_spec= |
| 9197 | export_dynamic_flag_spec= |
| 9198 | whole_archive_flag_spec= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9199 | fi |
| 9200 | else |
| 9201 | # PORTME fill in a description of your system's linker (not GNU ld) |
| 9202 | case $host_os in |
| 9203 | aix3*) |
| 9204 | allow_undefined_flag=unsupported |
| 9205 | always_export_symbols=yes |
| 9206 | 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' |
| 9207 | # Note: this linker hardcodes the directories in LIBPATH if there |
| 9208 | # are no directories specified by -L. |
| 9209 | hardcode_minus_L=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9210 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9211 | # Neither direct hardcoding nor static linking is supported with a |
| 9212 | # broken collect2. |
| 9213 | hardcode_direct=unsupported |
| 9214 | fi |
| 9215 | ;; |
| 9216 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9217 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9218 | if test "$host_cpu" = ia64; then |
| 9219 | # On IA64, the linker does run time linking by default, so we don't |
| 9220 | # have to do anything special. |
| 9221 | aix_use_runtimelinking=no |
| 9222 | exp_sym_flag='-Bexport' |
| 9223 | no_entry_flag="" |
| 9224 | else |
| 9225 | # If we're using GNU nm, then we don't want the "-C" option. |
| 9226 | # -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] | 9227 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 9228 | 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] | 9229 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9230 | 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] | 9231 | fi |
| 9232 | aix_use_runtimelinking=no |
| 9233 | |
| 9234 | # Test if we are trying to use run time linking or normal |
| 9235 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 9236 | # need to do runtime linking. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9237 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9238 | for ld_flag in $LDFLAGS; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9239 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
| 9240 | aix_use_runtimelinking=yes |
| 9241 | break |
| 9242 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9243 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9244 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9245 | esac |
| 9246 | |
| 9247 | exp_sym_flag='-bexport' |
| 9248 | no_entry_flag='-bnoentry' |
| 9249 | fi |
| 9250 | |
| 9251 | # When large executables or shared objects are built, AIX ld can |
| 9252 | # have problems creating the table of contents. If linking a library |
| 9253 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 9254 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 9255 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 9256 | |
| 9257 | archive_cmds='' |
| 9258 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9259 | hardcode_direct_absolute=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9260 | hardcode_libdir_separator=':' |
| 9261 | link_all_deplibs=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9262 | file_list_spec='${wl}-f,' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9263 | |
| 9264 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9265 | case $host_os in aix4.[012]|aix4.[012].*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9266 | # We only want to do this on AIX 4.2 and lower, the check |
| 9267 | # below for broken collect2 doesn't work under 4.3+ |
| 9268 | collect2name=`${CC} -print-prog-name=collect2` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9269 | if test -f "$collect2name" && |
| 9270 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9271 | then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9272 | # We have reworked collect2 |
| 9273 | : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9274 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9275 | # We have old collect2 |
| 9276 | hardcode_direct=unsupported |
| 9277 | # It fails to find uninstalled libraries when the uninstalled |
| 9278 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 9279 | # to unsupported forces relinking |
| 9280 | hardcode_minus_L=yes |
| 9281 | hardcode_libdir_flag_spec='-L$libdir' |
| 9282 | hardcode_libdir_separator= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9283 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9284 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9285 | esac |
| 9286 | shared_flag='-shared' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9287 | if test "$aix_use_runtimelinking" = yes; then |
| 9288 | shared_flag="$shared_flag "'${wl}-G' |
| 9289 | fi |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9290 | link_all_deplibs=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9291 | else |
| 9292 | # not using gcc |
| 9293 | if test "$host_cpu" = ia64; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9294 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 9295 | # chokes on -Wl,-G. The following line is correct: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9296 | shared_flag='-G' |
| 9297 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9298 | if test "$aix_use_runtimelinking" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9299 | shared_flag='${wl}-G' |
| 9300 | else |
| 9301 | shared_flag='${wl}-bM:SRE' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9302 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9303 | fi |
| 9304 | fi |
| 9305 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9306 | export_dynamic_flag_spec='${wl}-bexpall' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9307 | # It seems that -bexpall does not export symbols beginning with |
| 9308 | # underscore (_), so it is better to generate a list of symbols to export. |
| 9309 | always_export_symbols=yes |
| 9310 | if test "$aix_use_runtimelinking" = yes; then |
| 9311 | # Warning - without using the other runtime loading flags (-brtl), |
| 9312 | # -berok will link without error, but may produce a broken library. |
| 9313 | allow_undefined_flag='-berok' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9314 | # Determine the default libpath from the value encoded in an |
| 9315 | # empty executable. |
| 9316 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9317 | /* end confdefs.h. */ |
| 9318 | |
| 9319 | int |
| 9320 | main () |
| 9321 | { |
| 9322 | |
| 9323 | ; |
| 9324 | return 0; |
| 9325 | } |
| 9326 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9327 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9328 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9329 | lt_aix_libpath_sed=' |
| 9330 | /Import File Strings/,/^$/ { |
| 9331 | /^0/ { |
| 9332 | s/^0 *\(.*\)$/\1/ |
| 9333 | p |
| 9334 | } |
| 9335 | }' |
| 9336 | 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] | 9337 | # Check for a 64-bit object if we didn't find anything. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9338 | if test -z "$aix_libpath"; then |
| 9339 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9340 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9341 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9342 | rm -f core conftest.err conftest.$ac_objext \ |
| 9343 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9344 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9345 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9346 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9347 | 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" |
| 9348 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9349 | if test "$host_cpu" = ia64; then |
| 9350 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
| 9351 | allow_undefined_flag="-z nodefs" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9352 | 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] | 9353 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9354 | # Determine the default libpath from the value encoded in an |
| 9355 | # empty executable. |
| 9356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9357 | /* end confdefs.h. */ |
| 9358 | |
| 9359 | int |
| 9360 | main () |
| 9361 | { |
| 9362 | |
| 9363 | ; |
| 9364 | return 0; |
| 9365 | } |
| 9366 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9367 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9368 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9369 | lt_aix_libpath_sed=' |
| 9370 | /Import File Strings/,/^$/ { |
| 9371 | /^0/ { |
| 9372 | s/^0 *\(.*\)$/\1/ |
| 9373 | p |
| 9374 | } |
| 9375 | }' |
| 9376 | 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] | 9377 | # Check for a 64-bit object if we didn't find anything. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9378 | if test -z "$aix_libpath"; then |
| 9379 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 9380 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9381 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9382 | rm -f core conftest.err conftest.$ac_objext \ |
| 9383 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9384 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 9385 | |
| 9386 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 9387 | # Warning - without using the other run time loading flags, |
| 9388 | # -berok will link without error, but may produce a broken library. |
| 9389 | no_undefined_flag=' ${wl}-bernotok' |
| 9390 | allow_undefined_flag=' ${wl}-berok' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9391 | # Exported symbols can be pulled into shared objects from archives |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9392 | whole_archive_flag_spec='$convenience' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9393 | archive_cmds_need_lc=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9394 | # This is similar to how AIX traditionally builds its shared libraries. |
| 9395 | 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] | 9396 | fi |
| 9397 | fi |
| 9398 | ;; |
| 9399 | |
| 9400 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9401 | case $host_cpu in |
| 9402 | powerpc) |
| 9403 | # see comment about AmigaOS4 .so support |
| 9404 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 9405 | archive_expsym_cmds='' |
| 9406 | ;; |
| 9407 | m68k) |
| 9408 | 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)' |
| 9409 | hardcode_libdir_flag_spec='-L$libdir' |
| 9410 | hardcode_minus_L=yes |
| 9411 | ;; |
| 9412 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9413 | ;; |
| 9414 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9415 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9416 | export_dynamic_flag_spec=-rdynamic |
| 9417 | ;; |
| 9418 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9419 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9420 | # When not using gcc, we currently assume that we are using |
| 9421 | # Microsoft Visual C++. |
| 9422 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
| 9423 | # no search path for DLLs. |
| 9424 | hardcode_libdir_flag_spec=' ' |
| 9425 | allow_undefined_flag=unsupported |
| 9426 | # Tell ltmain to make .lib files, not .a files. |
| 9427 | libext=lib |
| 9428 | # Tell ltmain to make .dll files, not .so files. |
| 9429 | shrext_cmds=".dll" |
| 9430 | # FIXME: Setting linknames here is a bad hack. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9431 | 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] | 9432 | # The linker will automatically build a .lib file if we build a DLL. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9433 | old_archive_from_new_cmds='true' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9434 | # FIXME: Should let the user specify the lib program. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9435 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9436 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
| 9437 | enable_shared_with_static_runtimes=yes |
| 9438 | ;; |
| 9439 | |
| 9440 | darwin* | rhapsody*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9441 | |
| 9442 | |
| 9443 | archive_cmds_need_lc=no |
| 9444 | hardcode_direct=no |
| 9445 | hardcode_automatic=yes |
| 9446 | hardcode_shlibpath_var=unsupported |
| 9447 | whole_archive_flag_spec='' |
| 9448 | link_all_deplibs=yes |
| 9449 | allow_undefined_flag="$_lt_dar_allow_undefined" |
| 9450 | case $cc_basename in |
| 9451 | ifort*) _lt_dar_can_shared=yes ;; |
| 9452 | *) _lt_dar_can_shared=$GCC ;; |
| 9453 | esac |
| 9454 | if test "$_lt_dar_can_shared" = "yes"; then |
| 9455 | output_verbose_link_cmd=echo |
| 9456 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
| 9457 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 9458 | 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}" |
| 9459 | 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}" |
| 9460 | |
| 9461 | else |
| 9462 | ld_shlibs=no |
| 9463 | fi |
| 9464 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9465 | ;; |
| 9466 | |
| 9467 | dgux*) |
| 9468 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9469 | hardcode_libdir_flag_spec='-L$libdir' |
| 9470 | hardcode_shlibpath_var=no |
| 9471 | ;; |
| 9472 | |
| 9473 | freebsd1*) |
| 9474 | ld_shlibs=no |
| 9475 | ;; |
| 9476 | |
| 9477 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 9478 | # support. Future versions do this automatically, but an explicit c++rt0.o |
| 9479 | # does not break anything, and helps significantly (at the cost of a little |
| 9480 | # extra space). |
| 9481 | freebsd2.2*) |
| 9482 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 9483 | hardcode_libdir_flag_spec='-R$libdir' |
| 9484 | hardcode_direct=yes |
| 9485 | hardcode_shlibpath_var=no |
| 9486 | ;; |
| 9487 | |
| 9488 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 9489 | freebsd2*) |
| 9490 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9491 | hardcode_direct=yes |
| 9492 | hardcode_minus_L=yes |
| 9493 | hardcode_shlibpath_var=no |
| 9494 | ;; |
| 9495 | |
| 9496 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9497 | freebsd* | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9498 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
| 9499 | hardcode_libdir_flag_spec='-R$libdir' |
| 9500 | hardcode_direct=yes |
| 9501 | hardcode_shlibpath_var=no |
| 9502 | ;; |
| 9503 | |
| 9504 | hpux9*) |
| 9505 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9506 | 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] | 9507 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9508 | 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] | 9509 | fi |
| 9510 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9511 | hardcode_libdir_separator=: |
| 9512 | hardcode_direct=yes |
| 9513 | |
| 9514 | # hardcode_minus_L: Not really in the search PATH, |
| 9515 | # but as the default location of the library. |
| 9516 | hardcode_minus_L=yes |
| 9517 | export_dynamic_flag_spec='${wl}-E' |
| 9518 | ;; |
| 9519 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9520 | hpux10*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9521 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9522 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9523 | else |
| 9524 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 9525 | fi |
| 9526 | if test "$with_gnu_ld" = no; then |
| 9527 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9528 | hardcode_libdir_flag_spec_ld='+b $libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9529 | hardcode_libdir_separator=: |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9530 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9531 | hardcode_direct_absolute=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9532 | export_dynamic_flag_spec='${wl}-E' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9533 | # hardcode_minus_L: Not really in the search PATH, |
| 9534 | # but as the default location of the library. |
| 9535 | hardcode_minus_L=yes |
| 9536 | fi |
| 9537 | ;; |
| 9538 | |
| 9539 | hpux11*) |
| 9540 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
| 9541 | case $host_cpu in |
| 9542 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9543 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9544 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9545 | ia64*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9546 | 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] | 9547 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9548 | *) |
| 9549 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 9550 | ;; |
| 9551 | esac |
| 9552 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9553 | case $host_cpu in |
| 9554 | hppa*64*) |
| 9555 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9556 | ;; |
| 9557 | ia64*) |
| 9558 | 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] | 9559 | ;; |
| 9560 | *) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9561 | 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] | 9562 | ;; |
| 9563 | esac |
| 9564 | fi |
| 9565 | if test "$with_gnu_ld" = no; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9566 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
| 9567 | hardcode_libdir_separator=: |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9568 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9569 | case $host_cpu in |
| 9570 | hppa*64*|ia64*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9571 | hardcode_direct=no |
| 9572 | hardcode_shlibpath_var=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9573 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9574 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9575 | hardcode_direct=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9576 | hardcode_direct_absolute=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9577 | export_dynamic_flag_spec='${wl}-E' |
| 9578 | |
| 9579 | # hardcode_minus_L: Not really in the search PATH, |
| 9580 | # but as the default location of the library. |
| 9581 | hardcode_minus_L=yes |
| 9582 | ;; |
| 9583 | esac |
| 9584 | fi |
| 9585 | ;; |
| 9586 | |
| 9587 | irix5* | irix6* | nonstopux*) |
| 9588 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9589 | 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' |
| 9590 | # Try to use the -exported_symbol ld option, if it does not |
| 9591 | # work, assume that -exports_file does not work either and |
| 9592 | # implicitly export all symbols. |
| 9593 | save_LDFLAGS="$LDFLAGS" |
| 9594 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" |
| 9595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9596 | /* end confdefs.h. */ |
| 9597 | int foo(void) {} |
| 9598 | _ACEOF |
| 9599 | if ac_fn_c_try_link "$LINENO"; then : |
| 9600 | 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' |
| 9601 | |
| 9602 | fi |
| 9603 | rm -f core conftest.err conftest.$ac_objext \ |
| 9604 | conftest$ac_exeext conftest.$ac_ext |
| 9605 | LDFLAGS="$save_LDFLAGS" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9606 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9607 | 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' |
| 9608 | 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] | 9609 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9610 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9611 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9612 | hardcode_libdir_separator=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9613 | inherit_rpath=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9614 | link_all_deplibs=yes |
| 9615 | ;; |
| 9616 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 9617 | netbsd* | netbsdelf*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9618 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9619 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 9620 | else |
| 9621 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 9622 | fi |
| 9623 | hardcode_libdir_flag_spec='-R$libdir' |
| 9624 | hardcode_direct=yes |
| 9625 | hardcode_shlibpath_var=no |
| 9626 | ;; |
| 9627 | |
| 9628 | newsos6) |
| 9629 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9630 | hardcode_direct=yes |
| 9631 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9632 | hardcode_libdir_separator=: |
| 9633 | hardcode_shlibpath_var=no |
| 9634 | ;; |
| 9635 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9636 | *nto* | *qnx*) |
| 9637 | ;; |
| 9638 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9639 | openbsd*) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9640 | if test -f /usr/libexec/ld.so; then |
| 9641 | hardcode_direct=yes |
| 9642 | hardcode_shlibpath_var=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9643 | hardcode_direct_absolute=yes |
| 9644 | 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] | 9645 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9646 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
| 9647 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9648 | export_dynamic_flag_spec='${wl}-E' |
| 9649 | else |
| 9650 | case $host_os in |
| 9651 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
| 9652 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 9653 | hardcode_libdir_flag_spec='-R$libdir' |
| 9654 | ;; |
| 9655 | *) |
| 9656 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 9657 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
| 9658 | ;; |
| 9659 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9660 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9661 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9662 | ld_shlibs=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9663 | fi |
| 9664 | ;; |
| 9665 | |
| 9666 | os2*) |
| 9667 | hardcode_libdir_flag_spec='-L$libdir' |
| 9668 | hardcode_minus_L=yes |
| 9669 | allow_undefined_flag=unsupported |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9670 | 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' |
| 9671 | 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] | 9672 | ;; |
| 9673 | |
| 9674 | osf3*) |
| 9675 | if test "$GCC" = yes; then |
| 9676 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9677 | 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] | 9678 | else |
| 9679 | allow_undefined_flag=' -expect_unresolved \*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9680 | 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] | 9681 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9682 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9683 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9684 | hardcode_libdir_separator=: |
| 9685 | ;; |
| 9686 | |
| 9687 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 9688 | if test "$GCC" = yes; then |
| 9689 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9690 | 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] | 9691 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
| 9692 | else |
| 9693 | allow_undefined_flag=' -expect_unresolved \*' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9694 | 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' |
| 9695 | 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~ |
| 9696 | $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] | 9697 | |
| 9698 | # Both c and cxx compiler support -rpath directly |
| 9699 | hardcode_libdir_flag_spec='-rpath $libdir' |
| 9700 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9701 | archive_cmds_need_lc='no' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9702 | hardcode_libdir_separator=: |
| 9703 | ;; |
| 9704 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9705 | solaris*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9706 | no_undefined_flag=' -z defs' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9707 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9708 | wlarc='${wl}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9709 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9710 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9711 | $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] | 9712 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9713 | case `$CC -V 2>&1` in |
| 9714 | *"Compilers 5.0"*) |
| 9715 | wlarc='' |
| 9716 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9717 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9718 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 9719 | ;; |
| 9720 | *) |
| 9721 | wlarc='${wl}' |
| 9722 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9723 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 9724 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 9725 | ;; |
| 9726 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9727 | fi |
| 9728 | hardcode_libdir_flag_spec='-R$libdir' |
| 9729 | hardcode_shlibpath_var=no |
| 9730 | case $host_os in |
| 9731 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9732 | *) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9733 | # The compiler driver will combine and reorder linker options, |
| 9734 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
| 9735 | # but is careful enough not to reorder. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9736 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9737 | if test "$GCC" = yes; then |
| 9738 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 9739 | else |
| 9740 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 9741 | fi |
| 9742 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9743 | esac |
| 9744 | link_all_deplibs=yes |
| 9745 | ;; |
| 9746 | |
| 9747 | sunos4*) |
| 9748 | if test "x$host_vendor" = xsequent; then |
| 9749 | # Use $CC to link under sequent, because it throws in some extra .o |
| 9750 | # files that make .init and .fini sections work. |
| 9751 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9752 | else |
| 9753 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 9754 | fi |
| 9755 | hardcode_libdir_flag_spec='-L$libdir' |
| 9756 | hardcode_direct=yes |
| 9757 | hardcode_minus_L=yes |
| 9758 | hardcode_shlibpath_var=no |
| 9759 | ;; |
| 9760 | |
| 9761 | sysv4) |
| 9762 | case $host_vendor in |
| 9763 | sni) |
| 9764 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9765 | hardcode_direct=yes # is this really true??? |
| 9766 | ;; |
| 9767 | siemens) |
| 9768 | ## LD is ld it makes a PLAMLIB |
| 9769 | ## CC just makes a GrossModule. |
| 9770 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 9771 | reload_cmds='$CC -r -o $output$reload_objs' |
| 9772 | hardcode_direct=no |
| 9773 | ;; |
| 9774 | motorola) |
| 9775 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9776 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 9777 | ;; |
| 9778 | esac |
| 9779 | runpath_var='LD_RUN_PATH' |
| 9780 | hardcode_shlibpath_var=no |
| 9781 | ;; |
| 9782 | |
| 9783 | sysv4.3*) |
| 9784 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9785 | hardcode_shlibpath_var=no |
| 9786 | export_dynamic_flag_spec='-Bexport' |
| 9787 | ;; |
| 9788 | |
| 9789 | sysv4*MP*) |
| 9790 | if test -d /usr/nec; then |
| 9791 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9792 | hardcode_shlibpath_var=no |
| 9793 | runpath_var=LD_RUN_PATH |
| 9794 | hardcode_runpath_var=yes |
| 9795 | ld_shlibs=yes |
| 9796 | fi |
| 9797 | ;; |
| 9798 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9799 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9800 | no_undefined_flag='${wl}-z,text' |
| 9801 | archive_cmds_need_lc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9802 | hardcode_shlibpath_var=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9803 | runpath_var='LD_RUN_PATH' |
bryner | 07f8ef5 | 2006-09-05 19:42:57 +0000 | [diff] [blame] | 9804 | |
mmentovai | 3261e8b | 2006-09-06 02:56:44 +0000 | [diff] [blame] | 9805 | if test "$GCC" = yes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9806 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9807 | 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] | 9808 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9809 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9810 | 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] | 9811 | fi |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9812 | ;; |
| 9813 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9814 | sysv5* | sco3.2v5* | sco5v6*) |
| 9815 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 9816 | # link with -lc, and that would cause any symbols used from libc to |
| 9817 | # always be unresolved, which means just about no library would |
| 9818 | # ever link correctly. If we're not using GNU ld we use -z text |
| 9819 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 9820 | # as -z defs. |
| 9821 | no_undefined_flag='${wl}-z,text' |
| 9822 | allow_undefined_flag='${wl}-z,nodefs' |
| 9823 | archive_cmds_need_lc=no |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9824 | hardcode_shlibpath_var=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9825 | hardcode_libdir_flag_spec='${wl}-R,$libdir' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9826 | hardcode_libdir_separator=':' |
| 9827 | link_all_deplibs=yes |
| 9828 | export_dynamic_flag_spec='${wl}-Bexport' |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 9829 | runpath_var='LD_RUN_PATH' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9830 | |
| 9831 | if test "$GCC" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9832 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9833 | 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] | 9834 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9835 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 9836 | 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] | 9837 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9838 | ;; |
| 9839 | |
| 9840 | uts4*) |
| 9841 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 9842 | hardcode_libdir_flag_spec='-L$libdir' |
| 9843 | hardcode_shlibpath_var=no |
| 9844 | ;; |
| 9845 | |
| 9846 | *) |
| 9847 | ld_shlibs=no |
| 9848 | ;; |
| 9849 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9850 | |
| 9851 | if test x$host_vendor = xsni; then |
| 9852 | case $host in |
| 9853 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 9854 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
| 9855 | ;; |
| 9856 | esac |
| 9857 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9858 | fi |
| 9859 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 9861 | $as_echo "$ld_shlibs" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9862 | test "$ld_shlibs" = no && can_build_shared=no |
| 9863 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9864 | with_gnu_ld=$with_gnu_ld |
| 9865 | |
| 9866 | |
| 9867 | |
| 9868 | |
| 9869 | |
| 9870 | |
| 9871 | |
| 9872 | |
| 9873 | |
| 9874 | |
| 9875 | |
| 9876 | |
| 9877 | |
| 9878 | |
| 9879 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9880 | # |
| 9881 | # Do we need to explicitly link libc? |
| 9882 | # |
| 9883 | case "x$archive_cmds_need_lc" in |
| 9884 | x|xyes) |
| 9885 | # Assume -lc should be added |
| 9886 | archive_cmds_need_lc=yes |
| 9887 | |
| 9888 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 9889 | case $archive_cmds in |
| 9890 | *'~'*) |
| 9891 | # FIXME: we may have to deal with multi-command sequences. |
| 9892 | ;; |
| 9893 | '$CC '*) |
| 9894 | # Test whether the compiler implicitly links with -lc since on some |
| 9895 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 9896 | # to ld, don't add -lc before -lgcc. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 9898 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 9899 | $RM conftest* |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 9900 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9901 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9902 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9903 | (eval $ac_compile) 2>&5 |
| 9904 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9906 | test $ac_status = 0; } 2>conftest.err; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9907 | soname=conftest |
| 9908 | lib=conftest |
| 9909 | libobjs=conftest.$ac_objext |
| 9910 | deplibs= |
| 9911 | wl=$lt_prog_compiler_wl |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 9912 | pic_flag=$lt_prog_compiler_pic |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9913 | compiler_flags=-v |
| 9914 | linker_flags=-v |
| 9915 | verstring= |
| 9916 | output_objdir=. |
| 9917 | libname=conftest |
| 9918 | lt_save_allow_undefined_flag=$allow_undefined_flag |
| 9919 | allow_undefined_flag= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9920 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 9921 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9922 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9923 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 9924 | test $ac_status = 0; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9925 | then |
| 9926 | archive_cmds_need_lc=no |
| 9927 | else |
| 9928 | archive_cmds_need_lc=yes |
| 9929 | fi |
| 9930 | allow_undefined_flag=$lt_save_allow_undefined_flag |
| 9931 | else |
| 9932 | cat conftest.err 1>&5 |
| 9933 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9934 | $RM conftest* |
| 9935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5 |
| 9936 | $as_echo "$archive_cmds_need_lc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 9937 | ;; |
| 9938 | esac |
| 9939 | fi |
| 9940 | ;; |
| 9941 | esac |
| 9942 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 9943 | |
| 9944 | |
| 9945 | |
| 9946 | |
| 9947 | |
| 9948 | |
| 9949 | |
| 9950 | |
| 9951 | |
| 9952 | |
| 9953 | |
| 9954 | |
| 9955 | |
| 9956 | |
| 9957 | |
| 9958 | |
| 9959 | |
| 9960 | |
| 9961 | |
| 9962 | |
| 9963 | |
| 9964 | |
| 9965 | |
| 9966 | |
| 9967 | |
| 9968 | |
| 9969 | |
| 9970 | |
| 9971 | |
| 9972 | |
| 9973 | |
| 9974 | |
| 9975 | |
| 9976 | |
| 9977 | |
| 9978 | |
| 9979 | |
| 9980 | |
| 9981 | |
| 9982 | |
| 9983 | |
| 9984 | |
| 9985 | |
| 9986 | |
| 9987 | |
| 9988 | |
| 9989 | |
| 9990 | |
| 9991 | |
| 9992 | |
| 9993 | |
| 9994 | |
| 9995 | |
| 9996 | |
| 9997 | |
| 9998 | |
| 9999 | |
| 10000 | |
| 10001 | |
| 10002 | |
| 10003 | |
| 10004 | |
| 10005 | |
| 10006 | |
| 10007 | |
| 10008 | |
| 10009 | |
| 10010 | |
| 10011 | |
| 10012 | |
| 10013 | |
| 10014 | |
| 10015 | |
| 10016 | |
| 10017 | |
| 10018 | |
| 10019 | |
| 10020 | |
| 10021 | |
| 10022 | |
| 10023 | |
| 10024 | |
| 10025 | |
| 10026 | |
| 10027 | |
| 10028 | |
| 10029 | |
| 10030 | |
| 10031 | |
| 10032 | |
| 10033 | |
| 10034 | |
| 10035 | |
| 10036 | |
| 10037 | |
| 10038 | |
| 10039 | |
| 10040 | |
| 10041 | |
| 10042 | |
| 10043 | |
| 10044 | |
| 10045 | |
| 10046 | |
| 10047 | |
| 10048 | |
| 10049 | |
| 10050 | |
| 10051 | |
| 10052 | |
| 10053 | |
| 10054 | |
| 10055 | |
| 10056 | |
| 10057 | |
| 10058 | |
| 10059 | |
| 10060 | |
| 10061 | |
| 10062 | |
| 10063 | |
| 10064 | |
| 10065 | |
| 10066 | |
| 10067 | |
| 10068 | |
| 10069 | |
| 10070 | |
| 10071 | |
| 10072 | |
| 10073 | |
| 10074 | |
| 10075 | |
| 10076 | |
| 10077 | |
| 10078 | |
| 10079 | |
| 10080 | |
| 10081 | |
| 10082 | |
| 10083 | |
| 10084 | |
| 10085 | |
| 10086 | |
| 10087 | |
| 10088 | |
| 10089 | |
| 10090 | |
| 10091 | |
| 10092 | |
| 10093 | |
| 10094 | |
| 10095 | |
| 10096 | |
| 10097 | |
| 10098 | |
| 10099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 10100 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10101 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10102 | if test "$GCC" = yes; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10103 | case $host_os in |
| 10104 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
| 10105 | *) lt_awk_arg="/^libraries:/" ;; |
| 10106 | esac |
| 10107 | 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] | 10108 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10109 | # if the path contains ";" then we assume it to be the separator |
| 10110 | # otherwise default to the standard path separator (i.e. ":") - it is |
| 10111 | # assumed that no part of a normal pathname contains ";" but that should |
| 10112 | # okay in the real world where ";" in dirpaths is itself problematic. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10113 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10114 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10115 | 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] | 10116 | fi |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10117 | # Ok, now we have the path, separated by spaces, we can step through it |
| 10118 | # and add multilib dir if necessary. |
| 10119 | lt_tmp_lt_search_path_spec= |
| 10120 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 10121 | for lt_sys_path in $lt_search_path_spec; do |
| 10122 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
| 10123 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
| 10124 | else |
| 10125 | test -d "$lt_sys_path" && \ |
| 10126 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 10127 | fi |
| 10128 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10129 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10130 | BEGIN {RS=" "; FS="/|\n";} { |
| 10131 | lt_foo=""; |
| 10132 | lt_count=0; |
| 10133 | for (lt_i = NF; lt_i > 0; lt_i--) { |
| 10134 | if ($lt_i != "" && $lt_i != ".") { |
| 10135 | if ($lt_i == "..") { |
| 10136 | lt_count++; |
| 10137 | } else { |
| 10138 | if (lt_count == 0) { |
| 10139 | lt_foo="/" $lt_i lt_foo; |
| 10140 | } else { |
| 10141 | lt_count--; |
| 10142 | } |
| 10143 | } |
| 10144 | } |
| 10145 | } |
| 10146 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 10147 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 10148 | }'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10149 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10150 | else |
| 10151 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 10152 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10153 | library_names_spec= |
| 10154 | libname_spec='lib$name' |
| 10155 | soname_spec= |
| 10156 | shrext_cmds=".so" |
| 10157 | postinstall_cmds= |
| 10158 | postuninstall_cmds= |
| 10159 | finish_cmds= |
| 10160 | finish_eval= |
| 10161 | shlibpath_var= |
| 10162 | shlibpath_overrides_runpath=unknown |
| 10163 | version_type=none |
| 10164 | dynamic_linker="$host_os ld.so" |
| 10165 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10166 | need_lib_prefix=unknown |
| 10167 | hardcode_into_libs=no |
| 10168 | |
| 10169 | # when you set need_version to no, make sure it does not cause -set_version |
| 10170 | # flags to be left without arguments |
| 10171 | need_version=unknown |
| 10172 | |
| 10173 | case $host_os in |
| 10174 | aix3*) |
| 10175 | version_type=linux |
| 10176 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 10177 | shlibpath_var=LIBPATH |
| 10178 | |
| 10179 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 10180 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10181 | ;; |
| 10182 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10183 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10184 | version_type=linux |
| 10185 | need_lib_prefix=no |
| 10186 | need_version=no |
| 10187 | hardcode_into_libs=yes |
| 10188 | if test "$host_cpu" = ia64; then |
| 10189 | # AIX 5 supports IA64 |
| 10190 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 10191 | shlibpath_var=LD_LIBRARY_PATH |
| 10192 | else |
| 10193 | # With GCC up to 2.95.x, collect2 would create an import file |
| 10194 | # for dependence libraries. The import file would start with |
| 10195 | # the line `#! .'. This would cause the generated library to |
| 10196 | # depend on `.', always an invalid library. This was fixed in |
| 10197 | # development snapshots of GCC prior to 3.0. |
| 10198 | case $host_os in |
| 10199 | aix4 | aix4.[01] | aix4.[01].*) |
| 10200 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 10201 | echo ' yes ' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10202 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10203 | : |
| 10204 | else |
| 10205 | can_build_shared=no |
| 10206 | fi |
| 10207 | ;; |
| 10208 | esac |
| 10209 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 10210 | # soname into executable. Probably we can add versioning support to |
| 10211 | # collect2, so additional links can be useful in future. |
| 10212 | if test "$aix_use_runtimelinking" = yes; then |
| 10213 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 10214 | # instead of lib<name>.a to let people know that these are not |
| 10215 | # typical AIX shared libraries. |
| 10216 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10217 | else |
| 10218 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 10219 | # and later when we are not doing run time linking. |
| 10220 | library_names_spec='${libname}${release}.a $libname.a' |
| 10221 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10222 | fi |
| 10223 | shlibpath_var=LIBPATH |
| 10224 | fi |
| 10225 | ;; |
| 10226 | |
| 10227 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10228 | case $host_cpu in |
| 10229 | powerpc) |
| 10230 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 10231 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 10232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10233 | ;; |
| 10234 | m68k) |
| 10235 | library_names_spec='$libname.ixlibrary $libname.a' |
| 10236 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 10237 | 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' |
| 10238 | ;; |
| 10239 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10240 | ;; |
| 10241 | |
| 10242 | beos*) |
| 10243 | library_names_spec='${libname}${shared_ext}' |
| 10244 | dynamic_linker="$host_os ld.so" |
| 10245 | shlibpath_var=LIBRARY_PATH |
| 10246 | ;; |
| 10247 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10248 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10249 | version_type=linux |
| 10250 | need_version=no |
| 10251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10252 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10253 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 10254 | shlibpath_var=LD_LIBRARY_PATH |
| 10255 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 10256 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 10257 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 10258 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 10259 | # libtool to hard-code these into programs |
| 10260 | ;; |
| 10261 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10262 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10263 | version_type=windows |
| 10264 | shrext_cmds=".dll" |
| 10265 | need_version=no |
| 10266 | need_lib_prefix=no |
| 10267 | |
| 10268 | case $GCC,$host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10269 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10270 | library_names_spec='$libname.dll.a' |
| 10271 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 10272 | postinstall_cmds='base_file=`basename \${file}`~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10273 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10274 | dldir=$destdir/`dirname \$dlpath`~ |
| 10275 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10276 | $install_prog $dir/$dlname \$dldir/$dlname~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10277 | chmod a+x \$dldir/$dlname~ |
| 10278 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 10279 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 10280 | fi' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10281 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 10282 | dlpath=$dir/\$dldll~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10283 | $RM \$dlpath' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10284 | shlibpath_overrides_runpath=yes |
| 10285 | |
| 10286 | case $host_os in |
| 10287 | cygwin*) |
| 10288 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 10289 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 10290 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 10291 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10292 | mingw* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10293 | # MinGW DLLs use traditional 'lib' prefix |
| 10294 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10295 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 10296 | 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] | 10297 | # It is most probably a Windows format PATH printed by |
| 10298 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 10299 | # path with ; separators, and with drive letters. We can handle the |
| 10300 | # drive letters (cygwin fileutils understands them), so leave them, |
| 10301 | # especially as we might pass files found there to a mingw objdump, |
| 10302 | # which wouldn't understand a cygwinified path. Ahh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10303 | 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] | 10304 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10305 | 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] | 10306 | fi |
| 10307 | ;; |
| 10308 | pw32*) |
| 10309 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10310 | 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] | 10311 | ;; |
| 10312 | esac |
| 10313 | ;; |
| 10314 | |
| 10315 | *) |
| 10316 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 10317 | ;; |
| 10318 | esac |
| 10319 | dynamic_linker='Win32 ld.exe' |
| 10320 | # FIXME: first we should search . and the directory the executable is in |
| 10321 | shlibpath_var=PATH |
| 10322 | ;; |
| 10323 | |
| 10324 | darwin* | rhapsody*) |
| 10325 | dynamic_linker="$host_os dyld" |
| 10326 | version_type=darwin |
| 10327 | need_lib_prefix=no |
| 10328 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10329 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10330 | soname_spec='${libname}${release}${major}$shared_ext' |
| 10331 | shlibpath_overrides_runpath=yes |
| 10332 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10333 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10334 | |
| 10335 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10336 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 10337 | ;; |
| 10338 | |
| 10339 | dgux*) |
| 10340 | version_type=linux |
| 10341 | need_lib_prefix=no |
| 10342 | need_version=no |
| 10343 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 10344 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10345 | shlibpath_var=LD_LIBRARY_PATH |
| 10346 | ;; |
| 10347 | |
| 10348 | freebsd1*) |
| 10349 | dynamic_linker=no |
| 10350 | ;; |
| 10351 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10352 | freebsd* | dragonfly*) |
| 10353 | # DragonFly does not have aout. When/if they implement a new |
| 10354 | # versioning mechanism, adjust this. |
| 10355 | if test -x /usr/bin/objformat; then |
| 10356 | objformat=`/usr/bin/objformat` |
| 10357 | else |
| 10358 | case $host_os in |
| 10359 | freebsd[123]*) objformat=aout ;; |
| 10360 | *) objformat=elf ;; |
| 10361 | esac |
| 10362 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10363 | version_type=freebsd-$objformat |
| 10364 | case $version_type in |
| 10365 | freebsd-elf*) |
| 10366 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10367 | need_version=no |
| 10368 | need_lib_prefix=no |
| 10369 | ;; |
| 10370 | freebsd-*) |
| 10371 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 10372 | need_version=yes |
| 10373 | ;; |
| 10374 | esac |
| 10375 | shlibpath_var=LD_LIBRARY_PATH |
| 10376 | case $host_os in |
| 10377 | freebsd2*) |
| 10378 | shlibpath_overrides_runpath=yes |
| 10379 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10380 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10381 | shlibpath_overrides_runpath=yes |
| 10382 | hardcode_into_libs=yes |
| 10383 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10384 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 10385 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10386 | shlibpath_overrides_runpath=no |
| 10387 | hardcode_into_libs=yes |
| 10388 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10389 | *) # from 4.6 on, and DragonFly |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10390 | shlibpath_overrides_runpath=yes |
| 10391 | hardcode_into_libs=yes |
| 10392 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10393 | esac |
| 10394 | ;; |
| 10395 | |
| 10396 | gnu*) |
| 10397 | version_type=linux |
| 10398 | need_lib_prefix=no |
| 10399 | need_version=no |
| 10400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 10401 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10402 | shlibpath_var=LD_LIBRARY_PATH |
| 10403 | hardcode_into_libs=yes |
| 10404 | ;; |
| 10405 | |
| 10406 | hpux9* | hpux10* | hpux11*) |
| 10407 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 10408 | # link against other versions. |
| 10409 | version_type=sunos |
| 10410 | need_lib_prefix=no |
| 10411 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10412 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10413 | ia64*) |
| 10414 | shrext_cmds='.so' |
| 10415 | hardcode_into_libs=yes |
| 10416 | dynamic_linker="$host_os dld.so" |
| 10417 | shlibpath_var=LD_LIBRARY_PATH |
| 10418 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10420 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10421 | if test "X$HPUX_IA64_MODE" = X32; then |
| 10422 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 10423 | else |
| 10424 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 10425 | fi |
| 10426 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10427 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10428 | hppa*64*) |
| 10429 | shrext_cmds='.sl' |
| 10430 | hardcode_into_libs=yes |
| 10431 | dynamic_linker="$host_os dld.sl" |
| 10432 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 10433 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 10434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10435 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10436 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 10437 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 10438 | ;; |
| 10439 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10440 | shrext_cmds='.sl' |
| 10441 | dynamic_linker="$host_os dld.sl" |
| 10442 | shlibpath_var=SHLIB_PATH |
| 10443 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 10444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10445 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10446 | ;; |
| 10447 | esac |
| 10448 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 10449 | postinstall_cmds='chmod 555 $lib' |
| 10450 | ;; |
| 10451 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10452 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10453 | version_type=linux |
| 10454 | need_lib_prefix=no |
| 10455 | need_version=no |
| 10456 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10457 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10458 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 10459 | shlibpath_var=LD_LIBRARY_PATH |
| 10460 | shlibpath_overrides_runpath=no |
| 10461 | hardcode_into_libs=yes |
| 10462 | ;; |
| 10463 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10464 | irix5* | irix6* | nonstopux*) |
| 10465 | case $host_os in |
| 10466 | nonstopux*) version_type=nonstopux ;; |
| 10467 | *) |
| 10468 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 10469 | version_type=linux |
| 10470 | else |
| 10471 | version_type=irix |
| 10472 | fi ;; |
| 10473 | esac |
| 10474 | need_lib_prefix=no |
| 10475 | need_version=no |
| 10476 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10478 | case $host_os in |
| 10479 | irix5* | nonstopux*) |
| 10480 | libsuff= shlibsuff= |
| 10481 | ;; |
| 10482 | *) |
| 10483 | case $LD in # libtool.m4 will add one of these switches to LD |
| 10484 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 10485 | libsuff= shlibsuff= libmagic=32-bit;; |
| 10486 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 10487 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 10488 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 10489 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 10490 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 10491 | esac |
| 10492 | ;; |
| 10493 | esac |
| 10494 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 10495 | shlibpath_overrides_runpath=no |
| 10496 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 10497 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 10498 | hardcode_into_libs=yes |
| 10499 | ;; |
| 10500 | |
| 10501 | # No shared lib support for Linux oldld, aout, or coff. |
| 10502 | linux*oldld* | linux*aout* | linux*coff*) |
| 10503 | dynamic_linker=no |
| 10504 | ;; |
| 10505 | |
| 10506 | # This must be Linux ELF. |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 10507 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10508 | version_type=linux |
| 10509 | need_lib_prefix=no |
| 10510 | need_version=no |
| 10511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10512 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10513 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 10514 | shlibpath_var=LD_LIBRARY_PATH |
| 10515 | shlibpath_overrides_runpath=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10516 | # Some binutils ld are patched to set DT_RUNPATH |
| 10517 | save_LDFLAGS=$LDFLAGS |
| 10518 | save_libdir=$libdir |
| 10519 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 10520 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 10521 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10522 | /* end confdefs.h. */ |
| 10523 | |
| 10524 | int |
| 10525 | main () |
| 10526 | { |
| 10527 | |
| 10528 | ; |
| 10529 | return 0; |
| 10530 | } |
| 10531 | _ACEOF |
| 10532 | if ac_fn_c_try_link "$LINENO"; then : |
| 10533 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 10534 | shlibpath_overrides_runpath=yes |
| 10535 | fi |
| 10536 | fi |
| 10537 | rm -f core conftest.err conftest.$ac_objext \ |
| 10538 | conftest$ac_exeext conftest.$ac_ext |
| 10539 | LDFLAGS=$save_LDFLAGS |
| 10540 | libdir=$save_libdir |
| 10541 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10542 | # This implies no fast_install, which is unacceptable. |
| 10543 | # Some rework will be needed to allow for fast_install |
| 10544 | # before this can be enabled. |
| 10545 | hardcode_into_libs=yes |
| 10546 | |
| 10547 | # Append ld.so.conf contents to the search path |
| 10548 | if test -f /etc/ld.so.conf; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10549 | 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] | 10550 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 10551 | fi |
| 10552 | |
| 10553 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 10554 | # powerpc, because MkLinux only supported shared libraries with the |
| 10555 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 10556 | # most powerpc-linux boxes support dynamic linking these days and |
| 10557 | # people can always --disable-shared, the test was removed, and we |
| 10558 | # assume the GNU/Linux dynamic linker is in use. |
| 10559 | dynamic_linker='GNU/Linux ld.so' |
| 10560 | ;; |
| 10561 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 10562 | netbsdelf*-gnu) |
| 10563 | version_type=linux |
| 10564 | need_lib_prefix=no |
| 10565 | need_version=no |
| 10566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10567 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10568 | shlibpath_var=LD_LIBRARY_PATH |
| 10569 | shlibpath_overrides_runpath=no |
| 10570 | hardcode_into_libs=yes |
| 10571 | dynamic_linker='NetBSD ld.elf_so' |
| 10572 | ;; |
| 10573 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10574 | netbsd*) |
| 10575 | version_type=sunos |
| 10576 | need_lib_prefix=no |
| 10577 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10578 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10579 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10580 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10581 | dynamic_linker='NetBSD (a.out) ld.so' |
| 10582 | else |
| 10583 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 10584 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10585 | dynamic_linker='NetBSD ld.elf_so' |
| 10586 | fi |
| 10587 | shlibpath_var=LD_LIBRARY_PATH |
| 10588 | shlibpath_overrides_runpath=yes |
| 10589 | hardcode_into_libs=yes |
| 10590 | ;; |
| 10591 | |
| 10592 | newsos6) |
| 10593 | version_type=linux |
| 10594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10595 | shlibpath_var=LD_LIBRARY_PATH |
| 10596 | shlibpath_overrides_runpath=yes |
| 10597 | ;; |
| 10598 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10599 | *nto* | *qnx*) |
| 10600 | version_type=qnx |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10601 | need_lib_prefix=no |
| 10602 | need_version=no |
| 10603 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10604 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10605 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10606 | shlibpath_overrides_runpath=no |
| 10607 | hardcode_into_libs=yes |
| 10608 | dynamic_linker='ldqnx.so' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10609 | ;; |
| 10610 | |
| 10611 | openbsd*) |
| 10612 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10613 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10614 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10615 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 10616 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10617 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 10618 | *) need_version=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10619 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10620 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10621 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 10622 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10623 | 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] | 10624 | case $host_os in |
| 10625 | openbsd2.[89] | openbsd2.[89].*) |
| 10626 | shlibpath_overrides_runpath=no |
| 10627 | ;; |
| 10628 | *) |
| 10629 | shlibpath_overrides_runpath=yes |
| 10630 | ;; |
| 10631 | esac |
| 10632 | else |
| 10633 | shlibpath_overrides_runpath=yes |
| 10634 | fi |
| 10635 | ;; |
| 10636 | |
| 10637 | os2*) |
| 10638 | libname_spec='$name' |
| 10639 | shrext_cmds=".dll" |
| 10640 | need_lib_prefix=no |
| 10641 | library_names_spec='$libname${shared_ext} $libname.a' |
| 10642 | dynamic_linker='OS/2 ld.exe' |
| 10643 | shlibpath_var=LIBPATH |
| 10644 | ;; |
| 10645 | |
| 10646 | osf3* | osf4* | osf5*) |
| 10647 | version_type=osf |
| 10648 | need_lib_prefix=no |
| 10649 | need_version=no |
| 10650 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10652 | shlibpath_var=LD_LIBRARY_PATH |
| 10653 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 10654 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 10655 | ;; |
| 10656 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 10657 | rdos*) |
| 10658 | dynamic_linker=no |
| 10659 | ;; |
| 10660 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10661 | solaris*) |
| 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 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10667 | shlibpath_var=LD_LIBRARY_PATH |
| 10668 | shlibpath_overrides_runpath=yes |
| 10669 | hardcode_into_libs=yes |
| 10670 | # ldd complains unless libraries are executable |
| 10671 | postinstall_cmds='chmod +x $lib' |
| 10672 | ;; |
| 10673 | |
| 10674 | sunos4*) |
| 10675 | version_type=sunos |
| 10676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 10677 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 10678 | shlibpath_var=LD_LIBRARY_PATH |
| 10679 | shlibpath_overrides_runpath=yes |
| 10680 | if test "$with_gnu_ld" = yes; then |
| 10681 | need_lib_prefix=no |
| 10682 | fi |
| 10683 | need_version=yes |
| 10684 | ;; |
| 10685 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10686 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10687 | version_type=linux |
| 10688 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10689 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10690 | shlibpath_var=LD_LIBRARY_PATH |
| 10691 | case $host_vendor in |
| 10692 | sni) |
| 10693 | shlibpath_overrides_runpath=no |
| 10694 | need_lib_prefix=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10695 | runpath_var=LD_RUN_PATH |
| 10696 | ;; |
| 10697 | siemens) |
| 10698 | need_lib_prefix=no |
| 10699 | ;; |
| 10700 | motorola) |
| 10701 | need_lib_prefix=no |
| 10702 | need_version=no |
| 10703 | shlibpath_overrides_runpath=no |
| 10704 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 10705 | ;; |
| 10706 | esac |
| 10707 | ;; |
| 10708 | |
| 10709 | sysv4*MP*) |
| 10710 | if test -d /usr/nec ;then |
| 10711 | version_type=linux |
| 10712 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 10713 | soname_spec='$libname${shared_ext}.$major' |
| 10714 | shlibpath_var=LD_LIBRARY_PATH |
| 10715 | fi |
| 10716 | ;; |
| 10717 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10718 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 10719 | version_type=freebsd-elf |
| 10720 | need_lib_prefix=no |
| 10721 | need_version=no |
| 10722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 10723 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10724 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10725 | shlibpath_overrides_runpath=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10726 | hardcode_into_libs=yes |
| 10727 | if test "$with_gnu_ld" = yes; then |
| 10728 | 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] | 10729 | else |
| 10730 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10731 | case $host_os in |
| 10732 | sco3.2v5*) |
| 10733 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 10734 | ;; |
| 10735 | esac |
| 10736 | fi |
| 10737 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 10738 | ;; |
| 10739 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10740 | tpf*) |
| 10741 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 10742 | version_type=linux |
| 10743 | need_lib_prefix=no |
| 10744 | need_version=no |
| 10745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10746 | shlibpath_var=LD_LIBRARY_PATH |
| 10747 | shlibpath_overrides_runpath=no |
| 10748 | hardcode_into_libs=yes |
| 10749 | ;; |
| 10750 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10751 | uts4*) |
| 10752 | version_type=linux |
| 10753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 10754 | soname_spec='${libname}${release}${shared_ext}$major' |
| 10755 | shlibpath_var=LD_LIBRARY_PATH |
| 10756 | ;; |
| 10757 | |
| 10758 | *) |
| 10759 | dynamic_linker=no |
| 10760 | ;; |
| 10761 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 10763 | $as_echo "$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10764 | test "$dynamic_linker" = no && can_build_shared=no |
| 10765 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10766 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 10767 | if test "$GCC" = yes; then |
| 10768 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 10769 | fi |
| 10770 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10771 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 10772 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 10773 | fi |
| 10774 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 10775 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 10776 | fi |
| 10777 | |
| 10778 | |
| 10779 | |
| 10780 | |
| 10781 | |
| 10782 | |
| 10783 | |
| 10784 | |
| 10785 | |
| 10786 | |
| 10787 | |
| 10788 | |
| 10789 | |
| 10790 | |
| 10791 | |
| 10792 | |
| 10793 | |
| 10794 | |
| 10795 | |
| 10796 | |
| 10797 | |
| 10798 | |
| 10799 | |
| 10800 | |
| 10801 | |
| 10802 | |
| 10803 | |
| 10804 | |
| 10805 | |
| 10806 | |
| 10807 | |
| 10808 | |
| 10809 | |
| 10810 | |
| 10811 | |
| 10812 | |
| 10813 | |
| 10814 | |
| 10815 | |
| 10816 | |
| 10817 | |
| 10818 | |
| 10819 | |
| 10820 | |
| 10821 | |
| 10822 | |
| 10823 | |
| 10824 | |
| 10825 | |
| 10826 | |
| 10827 | |
| 10828 | |
| 10829 | |
| 10830 | |
| 10831 | |
| 10832 | |
| 10833 | |
| 10834 | |
| 10835 | |
| 10836 | |
| 10837 | |
| 10838 | |
| 10839 | |
| 10840 | |
| 10841 | |
| 10842 | |
| 10843 | |
| 10844 | |
| 10845 | |
| 10846 | |
| 10847 | |
| 10848 | |
| 10849 | |
| 10850 | |
| 10851 | |
| 10852 | |
| 10853 | |
| 10854 | |
| 10855 | |
| 10856 | |
| 10857 | |
| 10858 | |
| 10859 | |
| 10860 | |
| 10861 | |
| 10862 | |
| 10863 | |
| 10864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 10865 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10866 | hardcode_action= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10867 | if test -n "$hardcode_libdir_flag_spec" || |
| 10868 | test -n "$runpath_var" || |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10869 | test "X$hardcode_automatic" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10870 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10871 | # We can hardcode non-existent directories. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10872 | if test "$hardcode_direct" != no && |
| 10873 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 10874 | # have to relink, otherwise we might link with an installed library |
| 10875 | # when we should be linking with a yet-to-be-installed one |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10876 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10877 | test "$hardcode_minus_L" != no; then |
| 10878 | # Linking always hardcodes the temporary library directory. |
| 10879 | hardcode_action=relink |
| 10880 | else |
| 10881 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 10882 | hardcode_action=immediate |
| 10883 | fi |
| 10884 | else |
| 10885 | # We cannot hardcode anything, or else we can only hardcode existing |
| 10886 | # directories. |
| 10887 | hardcode_action=unsupported |
| 10888 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 10890 | $as_echo "$hardcode_action" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10891 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10892 | if test "$hardcode_action" = relink || |
| 10893 | test "$inherit_rpath" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10894 | # Fast installation is not supported |
| 10895 | enable_fast_install=no |
| 10896 | elif test "$shlibpath_overrides_runpath" = yes || |
| 10897 | test "$enable_shared" = no; then |
| 10898 | # Fast installation is not necessary |
| 10899 | enable_fast_install=needless |
| 10900 | fi |
| 10901 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10902 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10903 | |
| 10904 | |
| 10905 | |
| 10906 | |
| 10907 | if test "x$enable_dlopen" != xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10908 | enable_dlopen=unknown |
| 10909 | enable_dlopen_self=unknown |
| 10910 | enable_dlopen_self_static=unknown |
| 10911 | else |
| 10912 | lt_cv_dlopen=no |
| 10913 | lt_cv_dlopen_libs= |
| 10914 | |
| 10915 | case $host_os in |
| 10916 | beos*) |
| 10917 | lt_cv_dlopen="load_add_on" |
| 10918 | lt_cv_dlopen_libs= |
| 10919 | lt_cv_dlopen_self=yes |
| 10920 | ;; |
| 10921 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10922 | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10923 | lt_cv_dlopen="LoadLibrary" |
| 10924 | lt_cv_dlopen_libs= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10925 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10926 | |
| 10927 | cygwin*) |
| 10928 | lt_cv_dlopen="dlopen" |
| 10929 | lt_cv_dlopen_libs= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10930 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10931 | |
| 10932 | darwin*) |
| 10933 | # if libdl is installed we need to link against it |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 10935 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 10936 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 10937 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10938 | else |
| 10939 | ac_check_lib_save_LIBS=$LIBS |
| 10940 | LIBS="-ldl $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10941 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10942 | /* end confdefs.h. */ |
| 10943 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10944 | /* Override any GCC internal prototype to avoid an error. |
| 10945 | Use char because int might match the return type of a GCC |
| 10946 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10947 | #ifdef __cplusplus |
| 10948 | extern "C" |
| 10949 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10950 | char dlopen (); |
| 10951 | int |
| 10952 | main () |
| 10953 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10954 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10955 | ; |
| 10956 | return 0; |
| 10957 | } |
| 10958 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10959 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10960 | ac_cv_lib_dl_dlopen=yes |
| 10961 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10962 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10963 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10964 | rm -f core conftest.err conftest.$ac_objext \ |
| 10965 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10966 | LIBS=$ac_check_lib_save_LIBS |
| 10967 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 10969 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 10970 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10971 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 10972 | else |
| 10973 | |
| 10974 | lt_cv_dlopen="dyld" |
| 10975 | lt_cv_dlopen_libs= |
| 10976 | lt_cv_dlopen_self=yes |
| 10977 | |
| 10978 | fi |
| 10979 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10980 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10981 | |
| 10982 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10983 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 10984 | if test "x$ac_cv_func_shl_load" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10985 | lt_cv_dlopen="shl_load" |
| 10986 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 10988 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
| 10989 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : |
| 10990 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10991 | else |
| 10992 | ac_check_lib_save_LIBS=$LIBS |
| 10993 | LIBS="-ldld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 10994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 10995 | /* end confdefs.h. */ |
| 10996 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 10997 | /* Override any GCC internal prototype to avoid an error. |
| 10998 | Use char because int might match the return type of a GCC |
| 10999 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11000 | #ifdef __cplusplus |
| 11001 | extern "C" |
| 11002 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11003 | char shl_load (); |
| 11004 | int |
| 11005 | main () |
| 11006 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11007 | return shl_load (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11008 | ; |
| 11009 | return 0; |
| 11010 | } |
| 11011 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11012 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11013 | ac_cv_lib_dld_shl_load=yes |
| 11014 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11015 | ac_cv_lib_dld_shl_load=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11016 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11017 | rm -f core conftest.err conftest.$ac_objext \ |
| 11018 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11019 | LIBS=$ac_check_lib_save_LIBS |
| 11020 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 11022 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
| 11023 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11024 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11025 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11026 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 11027 | if test "x$ac_cv_func_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11028 | lt_cv_dlopen="dlopen" |
| 11029 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 11031 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 11032 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 11033 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11034 | else |
| 11035 | ac_check_lib_save_LIBS=$LIBS |
| 11036 | LIBS="-ldl $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11038 | /* end confdefs.h. */ |
| 11039 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11040 | /* Override any GCC internal prototype to avoid an error. |
| 11041 | Use char because int might match the return type of a GCC |
| 11042 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11043 | #ifdef __cplusplus |
| 11044 | extern "C" |
| 11045 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11046 | char dlopen (); |
| 11047 | int |
| 11048 | main () |
| 11049 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11050 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11051 | ; |
| 11052 | return 0; |
| 11053 | } |
| 11054 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11055 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11056 | ac_cv_lib_dl_dlopen=yes |
| 11057 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11058 | ac_cv_lib_dl_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11059 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11060 | rm -f core conftest.err conftest.$ac_objext \ |
| 11061 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11062 | LIBS=$ac_check_lib_save_LIBS |
| 11063 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 11065 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 11066 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11067 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
| 11068 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 11070 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
| 11071 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : |
| 11072 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11073 | else |
| 11074 | ac_check_lib_save_LIBS=$LIBS |
| 11075 | LIBS="-lsvld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11077 | /* end confdefs.h. */ |
| 11078 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11079 | /* Override any GCC internal prototype to avoid an error. |
| 11080 | Use char because int might match the return type of a GCC |
| 11081 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11082 | #ifdef __cplusplus |
| 11083 | extern "C" |
| 11084 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11085 | char dlopen (); |
| 11086 | int |
| 11087 | main () |
| 11088 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11089 | return dlopen (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11090 | ; |
| 11091 | return 0; |
| 11092 | } |
| 11093 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11094 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11095 | ac_cv_lib_svld_dlopen=yes |
| 11096 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11097 | ac_cv_lib_svld_dlopen=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11098 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11099 | rm -f core conftest.err conftest.$ac_objext \ |
| 11100 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11101 | LIBS=$ac_check_lib_save_LIBS |
| 11102 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 11104 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
| 11105 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11106 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
| 11107 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 11109 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
| 11110 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : |
| 11111 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11112 | else |
| 11113 | ac_check_lib_save_LIBS=$LIBS |
| 11114 | LIBS="-ldld $LIBS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11115 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11116 | /* end confdefs.h. */ |
| 11117 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11118 | /* Override any GCC internal prototype to avoid an error. |
| 11119 | Use char because int might match the return type of a GCC |
| 11120 | builtin and then its argument prototype would still apply. */ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11121 | #ifdef __cplusplus |
| 11122 | extern "C" |
| 11123 | #endif |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11124 | char dld_link (); |
| 11125 | int |
| 11126 | main () |
| 11127 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11128 | return dld_link (); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11129 | ; |
| 11130 | return 0; |
| 11131 | } |
| 11132 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11133 | if ac_fn_c_try_link "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11134 | ac_cv_lib_dld_dld_link=yes |
| 11135 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11136 | ac_cv_lib_dld_dld_link=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11137 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11138 | rm -f core conftest.err conftest.$ac_objext \ |
| 11139 | conftest$ac_exeext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11140 | LIBS=$ac_check_lib_save_LIBS |
| 11141 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 11143 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
| 11144 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11145 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11146 | fi |
| 11147 | |
| 11148 | |
| 11149 | fi |
| 11150 | |
| 11151 | |
| 11152 | fi |
| 11153 | |
| 11154 | |
| 11155 | fi |
| 11156 | |
| 11157 | |
| 11158 | fi |
| 11159 | |
| 11160 | |
| 11161 | fi |
| 11162 | |
| 11163 | ;; |
| 11164 | esac |
| 11165 | |
| 11166 | if test "x$lt_cv_dlopen" != xno; then |
| 11167 | enable_dlopen=yes |
| 11168 | else |
| 11169 | enable_dlopen=no |
| 11170 | fi |
| 11171 | |
| 11172 | case $lt_cv_dlopen in |
| 11173 | dlopen) |
| 11174 | save_CPPFLAGS="$CPPFLAGS" |
| 11175 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 11176 | |
| 11177 | save_LDFLAGS="$LDFLAGS" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11178 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11179 | |
| 11180 | save_LIBS="$LIBS" |
| 11181 | LIBS="$lt_cv_dlopen_libs $LIBS" |
| 11182 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 11184 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
| 11185 | if test "${lt_cv_dlopen_self+set}" = set; then : |
| 11186 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11187 | else |
| 11188 | if test "$cross_compiling" = yes; then : |
| 11189 | lt_cv_dlopen_self=cross |
| 11190 | else |
| 11191 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11192 | lt_status=$lt_dlunknown |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11193 | cat > conftest.$ac_ext <<_LT_EOF |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 11194 | #line 11194 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11195 | #include "confdefs.h" |
| 11196 | |
| 11197 | #if HAVE_DLFCN_H |
| 11198 | #include <dlfcn.h> |
| 11199 | #endif |
| 11200 | |
| 11201 | #include <stdio.h> |
| 11202 | |
| 11203 | #ifdef RTLD_GLOBAL |
| 11204 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11205 | #else |
| 11206 | # ifdef DL_GLOBAL |
| 11207 | # define LT_DLGLOBAL DL_GLOBAL |
| 11208 | # else |
| 11209 | # define LT_DLGLOBAL 0 |
| 11210 | # endif |
| 11211 | #endif |
| 11212 | |
| 11213 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11214 | find out it does not work in some platform. */ |
| 11215 | #ifndef LT_DLLAZY_OR_NOW |
| 11216 | # ifdef RTLD_LAZY |
| 11217 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11218 | # else |
| 11219 | # ifdef DL_LAZY |
| 11220 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11221 | # else |
| 11222 | # ifdef RTLD_NOW |
| 11223 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11224 | # else |
| 11225 | # ifdef DL_NOW |
| 11226 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11227 | # else |
| 11228 | # define LT_DLLAZY_OR_NOW 0 |
| 11229 | # endif |
| 11230 | # endif |
| 11231 | # endif |
| 11232 | # endif |
| 11233 | #endif |
| 11234 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11235 | void fnord() { int i=42;} |
| 11236 | int main () |
| 11237 | { |
| 11238 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11239 | int status = $lt_dlunknown; |
| 11240 | |
| 11241 | if (self) |
| 11242 | { |
| 11243 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11244 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11245 | /* dlclose (self); */ |
| 11246 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11247 | else |
| 11248 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11249 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11250 | return status; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11251 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11252 | _LT_EOF |
| 11253 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11254 | (eval $ac_link) 2>&5 |
| 11255 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11256 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11257 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11258 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11259 | lt_status=$? |
| 11260 | case x$lt_status in |
| 11261 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 11262 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11263 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11264 | esac |
| 11265 | else : |
| 11266 | # compilation failed |
| 11267 | lt_cv_dlopen_self=no |
| 11268 | fi |
| 11269 | fi |
| 11270 | rm -fr conftest* |
| 11271 | |
| 11272 | |
| 11273 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 11275 | $as_echo "$lt_cv_dlopen_self" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11276 | |
| 11277 | if test "x$lt_cv_dlopen_self" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11278 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 11280 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
| 11281 | if test "${lt_cv_dlopen_self_static+set}" = set; then : |
| 11282 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11283 | else |
| 11284 | if test "$cross_compiling" = yes; then : |
| 11285 | lt_cv_dlopen_self_static=cross |
| 11286 | else |
| 11287 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 11288 | lt_status=$lt_dlunknown |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11289 | cat > conftest.$ac_ext <<_LT_EOF |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 11290 | #line 11290 "configure" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11291 | #include "confdefs.h" |
| 11292 | |
| 11293 | #if HAVE_DLFCN_H |
| 11294 | #include <dlfcn.h> |
| 11295 | #endif |
| 11296 | |
| 11297 | #include <stdio.h> |
| 11298 | |
| 11299 | #ifdef RTLD_GLOBAL |
| 11300 | # define LT_DLGLOBAL RTLD_GLOBAL |
| 11301 | #else |
| 11302 | # ifdef DL_GLOBAL |
| 11303 | # define LT_DLGLOBAL DL_GLOBAL |
| 11304 | # else |
| 11305 | # define LT_DLGLOBAL 0 |
| 11306 | # endif |
| 11307 | #endif |
| 11308 | |
| 11309 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 11310 | find out it does not work in some platform. */ |
| 11311 | #ifndef LT_DLLAZY_OR_NOW |
| 11312 | # ifdef RTLD_LAZY |
| 11313 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 11314 | # else |
| 11315 | # ifdef DL_LAZY |
| 11316 | # define LT_DLLAZY_OR_NOW DL_LAZY |
| 11317 | # else |
| 11318 | # ifdef RTLD_NOW |
| 11319 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
| 11320 | # else |
| 11321 | # ifdef DL_NOW |
| 11322 | # define LT_DLLAZY_OR_NOW DL_NOW |
| 11323 | # else |
| 11324 | # define LT_DLLAZY_OR_NOW 0 |
| 11325 | # endif |
| 11326 | # endif |
| 11327 | # endif |
| 11328 | # endif |
| 11329 | #endif |
| 11330 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11331 | void fnord() { int i=42;} |
| 11332 | int main () |
| 11333 | { |
| 11334 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 11335 | int status = $lt_dlunknown; |
| 11336 | |
| 11337 | if (self) |
| 11338 | { |
| 11339 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 11340 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 11341 | /* dlclose (self); */ |
| 11342 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11343 | else |
| 11344 | puts (dlerror ()); |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11345 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11346 | return status; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11347 | } |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11348 | _LT_EOF |
| 11349 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11350 | (eval $ac_link) 2>&5 |
| 11351 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11352 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11353 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11354 | (./conftest; exit; ) >&5 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11355 | lt_status=$? |
| 11356 | case x$lt_status in |
| 11357 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 11358 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11359 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11360 | esac |
| 11361 | else : |
| 11362 | # compilation failed |
| 11363 | lt_cv_dlopen_self_static=no |
| 11364 | fi |
| 11365 | fi |
| 11366 | rm -fr conftest* |
| 11367 | |
| 11368 | |
| 11369 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11370 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 11371 | $as_echo "$lt_cv_dlopen_self_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11372 | fi |
| 11373 | |
| 11374 | CPPFLAGS="$save_CPPFLAGS" |
| 11375 | LDFLAGS="$save_LDFLAGS" |
| 11376 | LIBS="$save_LIBS" |
| 11377 | ;; |
| 11378 | esac |
| 11379 | |
| 11380 | case $lt_cv_dlopen_self in |
| 11381 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 11382 | *) enable_dlopen_self=unknown ;; |
| 11383 | esac |
| 11384 | |
| 11385 | case $lt_cv_dlopen_self_static in |
| 11386 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 11387 | *) enable_dlopen_self_static=unknown ;; |
| 11388 | esac |
| 11389 | fi |
| 11390 | |
| 11391 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11392 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11393 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11394 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11395 | |
| 11396 | |
| 11397 | |
| 11398 | |
| 11399 | |
| 11400 | |
| 11401 | |
| 11402 | |
| 11403 | |
| 11404 | |
| 11405 | |
| 11406 | |
| 11407 | striplib= |
| 11408 | old_striplib= |
| 11409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 11410 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } |
| 11411 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 11412 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
| 11413 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
| 11414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11415 | $as_echo "yes" >&6; } |
| 11416 | else |
| 11417 | # FIXME - insert some real tests, host_os isn't really good enough |
| 11418 | case $host_os in |
| 11419 | darwin*) |
| 11420 | if test -n "$STRIP" ; then |
| 11421 | striplib="$STRIP -x" |
| 11422 | old_striplib="$STRIP -S" |
| 11423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11424 | $as_echo "yes" >&6; } |
| 11425 | else |
| 11426 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11427 | $as_echo "no" >&6; } |
| 11428 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11429 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11430 | *) |
| 11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11432 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11433 | ;; |
| 11434 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11435 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11436 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11437 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11438 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11439 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11440 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11441 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11442 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11443 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11444 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11445 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11446 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11447 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11448 | # Report which library types will actually be built |
| 11449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 11450 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } |
| 11451 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 11452 | $as_echo "$can_build_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11453 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11454 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 11455 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
| 11456 | test "$can_build_shared" = "no" && enable_shared=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11457 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11458 | # On AIX, shared libraries and static libraries use the same namespace, and |
| 11459 | # are all built from PIC. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11460 | case $host_os in |
| 11461 | aix3*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11462 | test "$enable_shared" = yes && enable_static=no |
| 11463 | if test -n "$RANLIB"; then |
| 11464 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 11465 | postinstall_cmds='$RANLIB $lib' |
| 11466 | fi |
| 11467 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11468 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11469 | aix[4-9]*) |
| 11470 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
| 11471 | test "$enable_shared" = yes && enable_static=no |
| 11472 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11473 | ;; |
| 11474 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11475 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 11476 | $as_echo "$enable_shared" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11477 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11478 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 11479 | $as_echo_n "checking whether to build static libraries... " >&6; } |
| 11480 | # Make sure either enable_shared or enable_static is yes. |
| 11481 | test "$enable_shared" = yes || enable_static=yes |
| 11482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 11483 | $as_echo "$enable_static" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11484 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11485 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11486 | |
| 11487 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11488 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11489 | ac_ext=c |
| 11490 | ac_cpp='$CPP $CPPFLAGS' |
| 11491 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11492 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11493 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 11494 | |
| 11495 | CC="$lt_save_CC" |
| 11496 | |
| 11497 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11498 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11499 | ac_cpp='$CXXCPP $CPPFLAGS' |
| 11500 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 11501 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 11502 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 11503 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11504 | archive_cmds_need_lc_CXX=no |
| 11505 | allow_undefined_flag_CXX= |
| 11506 | always_export_symbols_CXX=no |
| 11507 | archive_expsym_cmds_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11508 | compiler_needs_object_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11509 | export_dynamic_flag_spec_CXX= |
| 11510 | hardcode_direct_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11511 | hardcode_direct_absolute_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11512 | hardcode_libdir_flag_spec_CXX= |
| 11513 | hardcode_libdir_flag_spec_ld_CXX= |
| 11514 | hardcode_libdir_separator_CXX= |
| 11515 | hardcode_minus_L_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11516 | hardcode_shlibpath_var_CXX=unsupported |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11517 | hardcode_automatic_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11518 | inherit_rpath_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11519 | module_cmds_CXX= |
| 11520 | module_expsym_cmds_CXX= |
| 11521 | link_all_deplibs_CXX=unknown |
| 11522 | old_archive_cmds_CXX=$old_archive_cmds |
| 11523 | no_undefined_flag_CXX= |
| 11524 | whole_archive_flag_spec_CXX= |
| 11525 | enable_shared_with_static_runtimes_CXX=no |
| 11526 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11527 | # Source file extension for C++ test sources. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11528 | ac_ext=cpp |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11529 | |
| 11530 | # Object file extension for compiled C++ test sources. |
| 11531 | objext=o |
| 11532 | objext_CXX=$objext |
| 11533 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11534 | # No sense in running all these tests if we already determined that |
| 11535 | # the CXX compiler isn't working. Some variables (like enable_shared) |
| 11536 | # are currently assumed to apply to all compilers on this platform, |
| 11537 | # and will be corrupted by setting them based on a non-working compiler. |
| 11538 | if test "$_lt_caught_CXX_error" != yes; then |
| 11539 | # Code to be used in simple compile tests |
| 11540 | lt_simple_compile_test_code="int some_variable = 0;" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11541 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11542 | # Code to be used in simple link tests |
| 11543 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11544 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11545 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 11546 | |
| 11547 | |
| 11548 | |
| 11549 | |
| 11550 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11551 | |
| 11552 | # If no C compiler was specified, use CC. |
| 11553 | LTCC=${LTCC-"$CC"} |
| 11554 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11555 | # If no C compiler flags were specified, use CFLAGS. |
| 11556 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11557 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11558 | # Allow CC to be a program name with arguments. |
| 11559 | compiler=$CC |
| 11560 | |
| 11561 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11562 | # save warnings/boilerplate of simple test code |
| 11563 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11564 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11565 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11566 | _lt_compiler_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11567 | $RM conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11568 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11569 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 11570 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11571 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 11572 | _lt_linker_boilerplate=`cat conftest.err` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11573 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11574 | |
| 11575 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11576 | # Allow CC to be a program name with arguments. |
| 11577 | lt_save_CC=$CC |
| 11578 | lt_save_LD=$LD |
| 11579 | lt_save_GCC=$GCC |
| 11580 | GCC=$GXX |
| 11581 | lt_save_with_gnu_ld=$with_gnu_ld |
| 11582 | lt_save_path_LD=$lt_cv_path_LD |
| 11583 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
| 11584 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
| 11585 | else |
| 11586 | $as_unset lt_cv_prog_gnu_ld |
| 11587 | fi |
| 11588 | if test -n "${lt_cv_path_LDCXX+set}"; then |
| 11589 | lt_cv_path_LD=$lt_cv_path_LDCXX |
| 11590 | else |
| 11591 | $as_unset lt_cv_path_LD |
| 11592 | fi |
| 11593 | test -z "${LDCXX+set}" || LD=$LDCXX |
| 11594 | CC=${CXX-"c++"} |
| 11595 | compiler=$CC |
| 11596 | compiler_CXX=$CC |
| 11597 | for cc_temp in $compiler""; do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11598 | case $cc_temp in |
| 11599 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 11600 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 11601 | \-*) ;; |
| 11602 | *) break;; |
| 11603 | esac |
| 11604 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11605 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11606 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11607 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11608 | if test -n "$compiler"; then |
| 11609 | # We don't want -fno-exception when compiling C++ code, so set the |
| 11610 | # no_builtin_flag separately |
| 11611 | if test "$GXX" = yes; then |
| 11612 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
| 11613 | else |
| 11614 | lt_prog_compiler_no_builtin_flag_CXX= |
| 11615 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11616 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11617 | if test "$GXX" = yes; then |
| 11618 | # Set up default GNU C++ configuration |
| 11619 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11620 | |
| 11621 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11622 | # Check whether --with-gnu-ld was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11623 | if test "${with_gnu_ld+set}" = set; then : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11624 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11625 | else |
| 11626 | with_gnu_ld=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11627 | fi |
| 11628 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11629 | ac_prog=ld |
| 11630 | if test "$GCC" = yes; then |
| 11631 | # Check if gcc -print-prog-name=ld gives a path. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 11633 | $as_echo_n "checking for ld used by $CC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11634 | case $host in |
| 11635 | *-*-mingw*) |
| 11636 | # gcc leaves a trailing carriage return which upsets mingw |
| 11637 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 11638 | *) |
| 11639 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 11640 | esac |
| 11641 | case $ac_prog in |
| 11642 | # Accept absolute paths. |
| 11643 | [\\/]* | ?:[\\/]*) |
| 11644 | re_direlt='/[^/][^/]*/\.\./' |
| 11645 | # Canonicalize the pathname of ld |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11646 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 11647 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 11648 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11649 | done |
| 11650 | test -z "$LD" && LD="$ac_prog" |
| 11651 | ;; |
| 11652 | "") |
| 11653 | # If it fails, then pretend we aren't using GCC. |
| 11654 | ac_prog=ld |
| 11655 | ;; |
| 11656 | *) |
| 11657 | # If it is relative, then search for the first ld in PATH. |
| 11658 | with_gnu_ld=unknown |
| 11659 | ;; |
| 11660 | esac |
| 11661 | elif test "$with_gnu_ld" = yes; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11662 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 11663 | $as_echo_n "checking for GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11664 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 11666 | $as_echo_n "checking for non-GNU ld... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11667 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11668 | if test "${lt_cv_path_LD+set}" = set; then : |
| 11669 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11670 | else |
| 11671 | if test -z "$LD"; then |
| 11672 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
| 11673 | for ac_dir in $PATH; do |
| 11674 | IFS="$lt_save_ifs" |
| 11675 | test -z "$ac_dir" && ac_dir=. |
| 11676 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 11677 | lt_cv_path_LD="$ac_dir/$ac_prog" |
| 11678 | # 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] | 11679 | # but apparently some variants of GNU ld only accept -v. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11680 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 11681 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 11682 | *GNU* | *'with BFD'*) |
| 11683 | test "$with_gnu_ld" != no && break |
| 11684 | ;; |
| 11685 | *) |
| 11686 | test "$with_gnu_ld" != yes && break |
| 11687 | ;; |
| 11688 | esac |
| 11689 | fi |
| 11690 | done |
| 11691 | IFS="$lt_save_ifs" |
| 11692 | else |
| 11693 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
| 11694 | fi |
| 11695 | fi |
| 11696 | |
| 11697 | LD="$lt_cv_path_LD" |
| 11698 | if test -n "$LD"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 11700 | $as_echo "$LD" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11701 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11703 | $as_echo "no" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11704 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11705 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 11706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 11707 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
| 11708 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : |
| 11709 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11710 | else |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11711 | # 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] | 11712 | case `$LD -v 2>&1 </dev/null` in |
| 11713 | *GNU* | *'with BFD'*) |
| 11714 | lt_cv_prog_gnu_ld=yes |
| 11715 | ;; |
| 11716 | *) |
| 11717 | lt_cv_prog_gnu_ld=no |
| 11718 | ;; |
| 11719 | esac |
| 11720 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 11722 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11723 | with_gnu_ld=$lt_cv_prog_gnu_ld |
| 11724 | |
| 11725 | |
| 11726 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11727 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11728 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11729 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11730 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11731 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
| 11732 | # archiving commands below assume that GNU ld is being used. |
| 11733 | if test "$with_gnu_ld" = yes; then |
| 11734 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11735 | 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] | 11736 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11737 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 11738 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11739 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11740 | # If archive_cmds runs LD, not CC, wlarc should be empty |
| 11741 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
| 11742 | # investigate it a little bit more. (MM) |
| 11743 | wlarc='${wl}' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11744 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11745 | # ancient GNU ld didn't support --whole-archive et. al. |
| 11746 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | |
| 11747 | $GREP 'no-whole-archive' > /dev/null; then |
| 11748 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
| 11749 | else |
| 11750 | whole_archive_flag_spec_CXX= |
| 11751 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11752 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11753 | with_gnu_ld=no |
| 11754 | wlarc= |
| 11755 | |
| 11756 | # A generic and very simple default shared library creation |
| 11757 | # command for GNU C++ for the case where it uses the native |
| 11758 | # linker, instead of GNU ld. If possible, this setting should |
| 11759 | # overridden to take advantage of the native linker features on |
| 11760 | # the platform it is being used on. |
| 11761 | 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] | 11762 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11763 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11764 | # Commands to make compiler produce verbose output that lists |
| 11765 | # what "hidden" libraries, object files and flags are used when |
| 11766 | # linking a shared library. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11767 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 11768 | |
| 11769 | else |
| 11770 | GXX=no |
| 11771 | with_gnu_ld=no |
| 11772 | wlarc= |
| 11773 | fi |
| 11774 | |
| 11775 | # PORTME: fill in a description of your system's C++ link characteristics |
| 11776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 11777 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 11778 | ld_shlibs_CXX=yes |
| 11779 | case $host_os in |
| 11780 | aix3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11781 | # FIXME: insert proper C++ library support |
| 11782 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11783 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11784 | aix[4-9]*) |
| 11785 | if test "$host_cpu" = ia64; then |
| 11786 | # On IA64, the linker does run time linking by default, so we don't |
| 11787 | # have to do anything special. |
| 11788 | aix_use_runtimelinking=no |
| 11789 | exp_sym_flag='-Bexport' |
| 11790 | no_entry_flag="" |
| 11791 | else |
| 11792 | aix_use_runtimelinking=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11793 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11794 | # Test if we are trying to use run time linking or normal |
| 11795 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 11796 | # need to do runtime linking. |
| 11797 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 11798 | for ld_flag in $LDFLAGS; do |
| 11799 | case $ld_flag in |
| 11800 | *-brtl*) |
| 11801 | aix_use_runtimelinking=yes |
| 11802 | break |
| 11803 | ;; |
| 11804 | esac |
| 11805 | done |
| 11806 | ;; |
| 11807 | esac |
| 11808 | |
| 11809 | exp_sym_flag='-bexport' |
| 11810 | no_entry_flag='-bnoentry' |
| 11811 | fi |
| 11812 | |
| 11813 | # When large executables or shared objects are built, AIX ld can |
| 11814 | # have problems creating the table of contents. If linking a library |
| 11815 | # or program results in "error TOC overflow" add -mminimal-toc to |
| 11816 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 11817 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 11818 | |
| 11819 | archive_cmds_CXX='' |
| 11820 | hardcode_direct_CXX=yes |
| 11821 | hardcode_direct_absolute_CXX=yes |
| 11822 | hardcode_libdir_separator_CXX=':' |
| 11823 | link_all_deplibs_CXX=yes |
| 11824 | file_list_spec_CXX='${wl}-f,' |
| 11825 | |
| 11826 | if test "$GXX" = yes; then |
| 11827 | case $host_os in aix4.[012]|aix4.[012].*) |
| 11828 | # We only want to do this on AIX 4.2 and lower, the check |
| 11829 | # below for broken collect2 doesn't work under 4.3+ |
| 11830 | collect2name=`${CC} -print-prog-name=collect2` |
| 11831 | if test -f "$collect2name" && |
| 11832 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 11833 | then |
| 11834 | # We have reworked collect2 |
| 11835 | : |
| 11836 | else |
| 11837 | # We have old collect2 |
| 11838 | hardcode_direct_CXX=unsupported |
| 11839 | # It fails to find uninstalled libraries when the uninstalled |
| 11840 | # path is not listed in the libpath. Setting hardcode_minus_L |
| 11841 | # to unsupported forces relinking |
| 11842 | hardcode_minus_L_CXX=yes |
| 11843 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11844 | hardcode_libdir_separator_CXX= |
| 11845 | fi |
| 11846 | esac |
| 11847 | shared_flag='-shared' |
| 11848 | if test "$aix_use_runtimelinking" = yes; then |
| 11849 | shared_flag="$shared_flag "'${wl}-G' |
| 11850 | fi |
| 11851 | else |
| 11852 | # not using gcc |
| 11853 | if test "$host_cpu" = ia64; then |
| 11854 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 11855 | # chokes on -Wl,-G. The following line is correct: |
| 11856 | shared_flag='-G' |
| 11857 | else |
| 11858 | if test "$aix_use_runtimelinking" = yes; then |
| 11859 | shared_flag='${wl}-G' |
| 11860 | else |
| 11861 | shared_flag='${wl}-bM:SRE' |
| 11862 | fi |
| 11863 | fi |
| 11864 | fi |
| 11865 | |
| 11866 | export_dynamic_flag_spec_CXX='${wl}-bexpall' |
| 11867 | # It seems that -bexpall does not export symbols beginning with |
| 11868 | # underscore (_), so it is better to generate a list of symbols to |
| 11869 | # export. |
| 11870 | always_export_symbols_CXX=yes |
| 11871 | if test "$aix_use_runtimelinking" = yes; then |
| 11872 | # Warning - without using the other runtime loading flags (-brtl), |
| 11873 | # -berok will link without error, but may produce a broken library. |
| 11874 | allow_undefined_flag_CXX='-berok' |
| 11875 | # Determine the default libpath from the value encoded in an empty |
| 11876 | # executable. |
| 11877 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11878 | /* end confdefs.h. */ |
| 11879 | |
| 11880 | int |
| 11881 | main () |
| 11882 | { |
| 11883 | |
| 11884 | ; |
| 11885 | return 0; |
| 11886 | } |
| 11887 | _ACEOF |
| 11888 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 11889 | |
| 11890 | lt_aix_libpath_sed=' |
| 11891 | /Import File Strings/,/^$/ { |
| 11892 | /^0/ { |
| 11893 | s/^0 *\(.*\)$/\1/ |
| 11894 | p |
| 11895 | } |
| 11896 | }' |
| 11897 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11898 | # Check for a 64-bit object if we didn't find anything. |
| 11899 | if test -z "$aix_libpath"; then |
| 11900 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11901 | fi |
| 11902 | fi |
| 11903 | rm -f core conftest.err conftest.$ac_objext \ |
| 11904 | conftest$ac_exeext conftest.$ac_ext |
| 11905 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11906 | |
| 11907 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11908 | |
| 11909 | 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" |
| 11910 | else |
| 11911 | if test "$host_cpu" = ia64; then |
| 11912 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
| 11913 | allow_undefined_flag_CXX="-z nodefs" |
| 11914 | 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" |
| 11915 | else |
| 11916 | # Determine the default libpath from the value encoded in an |
| 11917 | # empty executable. |
| 11918 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11919 | /* end confdefs.h. */ |
| 11920 | |
| 11921 | int |
| 11922 | main () |
| 11923 | { |
| 11924 | |
| 11925 | ; |
| 11926 | return 0; |
| 11927 | } |
| 11928 | _ACEOF |
| 11929 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 11930 | |
| 11931 | lt_aix_libpath_sed=' |
| 11932 | /Import File Strings/,/^$/ { |
| 11933 | /^0/ { |
| 11934 | s/^0 *\(.*\)$/\1/ |
| 11935 | p |
| 11936 | } |
| 11937 | }' |
| 11938 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11939 | # Check for a 64-bit object if we didn't find anything. |
| 11940 | if test -z "$aix_libpath"; then |
| 11941 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 11942 | fi |
| 11943 | fi |
| 11944 | rm -f core conftest.err conftest.$ac_objext \ |
| 11945 | conftest$ac_exeext conftest.$ac_ext |
| 11946 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
| 11947 | |
| 11948 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
| 11949 | # Warning - without using the other run time loading flags, |
| 11950 | # -berok will link without error, but may produce a broken library. |
| 11951 | no_undefined_flag_CXX=' ${wl}-bernotok' |
| 11952 | allow_undefined_flag_CXX=' ${wl}-berok' |
| 11953 | # Exported symbols can be pulled into shared objects from archives |
| 11954 | whole_archive_flag_spec_CXX='$convenience' |
| 11955 | archive_cmds_need_lc_CXX=yes |
| 11956 | # This is similar to how AIX traditionally builds its shared |
| 11957 | # libraries. |
| 11958 | 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' |
| 11959 | fi |
| 11960 | fi |
| 11961 | ;; |
| 11962 | |
| 11963 | beos*) |
| 11964 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 11965 | allow_undefined_flag_CXX=unsupported |
| 11966 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
| 11967 | # support --undefined. This deserves some investigation. FIXME |
| 11968 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 11969 | else |
| 11970 | ld_shlibs_CXX=no |
| 11971 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 11972 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11973 | |
| 11974 | chorus*) |
| 11975 | case $cc_basename in |
| 11976 | *) |
| 11977 | # FIXME: insert proper C++ library support |
| 11978 | ld_shlibs_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 11979 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 11980 | esac |
| 11981 | ;; |
| 11982 | |
| 11983 | cygwin* | mingw* | pw32* | cegcc*) |
| 11984 | # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
| 11985 | # as there is no search path for DLLs. |
| 11986 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
| 11987 | allow_undefined_flag_CXX=unsupported |
| 11988 | always_export_symbols_CXX=no |
| 11989 | enable_shared_with_static_runtimes_CXX=yes |
| 11990 | |
| 11991 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 11992 | 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' |
| 11993 | # If the export-symbols file already is a .def file (1st line |
| 11994 | # is EXPORTS), use it as is; otherwise, prepend... |
| 11995 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
| 11996 | cp $export_symbols $output_objdir/$soname.def; |
| 11997 | else |
| 11998 | echo EXPORTS > $output_objdir/$soname.def; |
| 11999 | cat $export_symbols >> $output_objdir/$soname.def; |
| 12000 | fi~ |
| 12001 | $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' |
| 12002 | else |
| 12003 | ld_shlibs_CXX=no |
| 12004 | fi |
| 12005 | ;; |
| 12006 | darwin* | rhapsody*) |
| 12007 | |
| 12008 | |
| 12009 | archive_cmds_need_lc_CXX=no |
| 12010 | hardcode_direct_CXX=no |
| 12011 | hardcode_automatic_CXX=yes |
| 12012 | hardcode_shlibpath_var_CXX=unsupported |
| 12013 | whole_archive_flag_spec_CXX='' |
| 12014 | link_all_deplibs_CXX=yes |
| 12015 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
| 12016 | case $cc_basename in |
| 12017 | ifort*) _lt_dar_can_shared=yes ;; |
| 12018 | *) _lt_dar_can_shared=$GCC ;; |
| 12019 | esac |
| 12020 | if test "$_lt_dar_can_shared" = "yes"; then |
| 12021 | output_verbose_link_cmd=echo |
| 12022 | 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}" |
| 12023 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
| 12024 | 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}" |
| 12025 | 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}" |
| 12026 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
| 12027 | 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}" |
| 12028 | 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}" |
| 12029 | fi |
| 12030 | |
| 12031 | else |
| 12032 | ld_shlibs_CXX=no |
| 12033 | fi |
| 12034 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12035 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12036 | |
| 12037 | dgux*) |
| 12038 | case $cc_basename in |
| 12039 | ec++*) |
| 12040 | # FIXME: insert proper C++ library support |
| 12041 | ld_shlibs_CXX=no |
| 12042 | ;; |
| 12043 | ghcx*) |
| 12044 | # Green Hills C++ Compiler |
| 12045 | # FIXME: insert proper C++ library support |
| 12046 | ld_shlibs_CXX=no |
| 12047 | ;; |
| 12048 | *) |
| 12049 | # FIXME: insert proper C++ library support |
| 12050 | ld_shlibs_CXX=no |
| 12051 | ;; |
| 12052 | esac |
| 12053 | ;; |
| 12054 | |
| 12055 | freebsd[12]*) |
| 12056 | # C++ shared libraries reported to be fairly broken before |
| 12057 | # switch to ELF |
| 12058 | ld_shlibs_CXX=no |
| 12059 | ;; |
| 12060 | |
| 12061 | freebsd-elf*) |
| 12062 | archive_cmds_need_lc_CXX=no |
| 12063 | ;; |
| 12064 | |
| 12065 | freebsd* | dragonfly*) |
| 12066 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
| 12067 | # conventions |
| 12068 | ld_shlibs_CXX=yes |
| 12069 | ;; |
| 12070 | |
| 12071 | gnu*) |
| 12072 | ;; |
| 12073 | |
| 12074 | hpux9*) |
| 12075 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12076 | hardcode_libdir_separator_CXX=: |
| 12077 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12078 | hardcode_direct_CXX=yes |
| 12079 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12080 | # but as the default |
| 12081 | # location of the library. |
| 12082 | |
| 12083 | case $cc_basename in |
| 12084 | CC*) |
| 12085 | # FIXME: insert proper C++ library support |
| 12086 | ld_shlibs_CXX=no |
| 12087 | ;; |
| 12088 | aCC*) |
| 12089 | 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' |
| 12090 | # Commands to make compiler produce verbose output that lists |
| 12091 | # what "hidden" libraries, object files and flags are used when |
| 12092 | # linking a shared library. |
| 12093 | # |
| 12094 | # There doesn't appear to be a way to prevent this compiler from |
| 12095 | # explicitly linking system object files so we need to strip them |
| 12096 | # from the output so that they don't get included in the library |
| 12097 | # dependencies. |
| 12098 | 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' |
| 12099 | ;; |
| 12100 | *) |
| 12101 | if test "$GXX" = yes; then |
| 12102 | 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' |
| 12103 | else |
| 12104 | # FIXME: insert proper C++ library support |
| 12105 | ld_shlibs_CXX=no |
| 12106 | fi |
| 12107 | ;; |
| 12108 | esac |
| 12109 | ;; |
| 12110 | |
| 12111 | hpux10*|hpux11*) |
| 12112 | if test $with_gnu_ld = no; then |
| 12113 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
| 12114 | hardcode_libdir_separator_CXX=: |
| 12115 | |
| 12116 | case $host_cpu in |
| 12117 | hppa*64*|ia64*) |
| 12118 | ;; |
| 12119 | *) |
| 12120 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12121 | ;; |
| 12122 | esac |
| 12123 | fi |
| 12124 | case $host_cpu in |
| 12125 | hppa*64*|ia64*) |
| 12126 | hardcode_direct_CXX=no |
| 12127 | hardcode_shlibpath_var_CXX=no |
| 12128 | ;; |
| 12129 | *) |
| 12130 | hardcode_direct_CXX=yes |
| 12131 | hardcode_direct_absolute_CXX=yes |
| 12132 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
| 12133 | # but as the default |
| 12134 | # location of the library. |
| 12135 | ;; |
| 12136 | esac |
| 12137 | |
| 12138 | case $cc_basename in |
| 12139 | CC*) |
| 12140 | # FIXME: insert proper C++ library support |
| 12141 | ld_shlibs_CXX=no |
| 12142 | ;; |
| 12143 | aCC*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12144 | case $host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12145 | hppa*64*) |
| 12146 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12147 | ;; |
| 12148 | ia64*) |
| 12149 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12150 | ;; |
| 12151 | *) |
| 12152 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12153 | ;; |
| 12154 | esac |
| 12155 | # Commands to make compiler produce verbose output that lists |
| 12156 | # what "hidden" libraries, object files and flags are used when |
| 12157 | # linking a shared library. |
| 12158 | # |
| 12159 | # There doesn't appear to be a way to prevent this compiler from |
| 12160 | # explicitly linking system object files so we need to strip them |
| 12161 | # from the output so that they don't get included in the library |
| 12162 | # dependencies. |
| 12163 | 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' |
| 12164 | ;; |
| 12165 | *) |
| 12166 | if test "$GXX" = yes; then |
| 12167 | if test $with_gnu_ld = no; then |
| 12168 | case $host_cpu in |
| 12169 | hppa*64*) |
| 12170 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12171 | ;; |
| 12172 | ia64*) |
| 12173 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12174 | ;; |
| 12175 | *) |
| 12176 | 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' |
| 12177 | ;; |
| 12178 | esac |
| 12179 | fi |
| 12180 | else |
| 12181 | # FIXME: insert proper C++ library support |
| 12182 | ld_shlibs_CXX=no |
| 12183 | fi |
| 12184 | ;; |
| 12185 | esac |
| 12186 | ;; |
| 12187 | |
| 12188 | interix[3-9]*) |
| 12189 | hardcode_direct_CXX=no |
| 12190 | hardcode_shlibpath_var_CXX=no |
| 12191 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12192 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12193 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 12194 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
| 12195 | # default) and relocated if they conflict, which is a slow very memory |
| 12196 | # consuming and fragmenting process. To avoid this, we pick a random, |
| 12197 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 12198 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 12199 | 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' |
| 12200 | 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' |
| 12201 | ;; |
| 12202 | irix5* | irix6*) |
| 12203 | case $cc_basename in |
| 12204 | CC*) |
| 12205 | # SGI C++ |
| 12206 | 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' |
| 12207 | |
| 12208 | # Archives containing C++ object files must be created using |
| 12209 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
| 12210 | # necessary to make sure instantiated templates are included |
| 12211 | # in the archive. |
| 12212 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
| 12213 | ;; |
| 12214 | *) |
| 12215 | if test "$GXX" = yes; then |
| 12216 | if test "$with_gnu_ld" = no; then |
| 12217 | 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' |
| 12218 | else |
| 12219 | 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' |
| 12220 | fi |
| 12221 | fi |
| 12222 | link_all_deplibs_CXX=yes |
| 12223 | ;; |
| 12224 | esac |
| 12225 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12226 | hardcode_libdir_separator_CXX=: |
| 12227 | inherit_rpath_CXX=yes |
| 12228 | ;; |
| 12229 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 12230 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12231 | case $cc_basename in |
| 12232 | KCC*) |
| 12233 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12234 | |
| 12235 | # KCC will only create a shared library if the output file |
| 12236 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12237 | # to its proper name (with version) after linking. |
| 12238 | 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' |
| 12239 | 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' |
| 12240 | # Commands to make compiler produce verbose output that lists |
| 12241 | # what "hidden" libraries, object files and flags are used when |
| 12242 | # linking a shared library. |
| 12243 | # |
| 12244 | # There doesn't appear to be a way to prevent this compiler from |
| 12245 | # explicitly linking system object files so we need to strip them |
| 12246 | # from the output so that they don't get included in the library |
| 12247 | # dependencies. |
| 12248 | 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' |
| 12249 | |
| 12250 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12251 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12252 | |
| 12253 | # Archives containing C++ object files must be created using |
| 12254 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
| 12255 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
| 12256 | ;; |
| 12257 | icpc* | ecpc* ) |
| 12258 | # Intel C++ |
| 12259 | with_gnu_ld=yes |
| 12260 | # version 8.0 and above of icpc choke on multiply defined symbols |
| 12261 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
| 12262 | # earlier do not add the objects themselves. |
| 12263 | case `$CC -V 2>&1` in |
| 12264 | *"Version 7."*) |
| 12265 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12266 | 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' |
| 12267 | ;; |
| 12268 | *) # Version 8.0 or newer |
| 12269 | tmp_idyn= |
| 12270 | case $host_cpu in |
| 12271 | ia64*) tmp_idyn=' -i_dynamic';; |
| 12272 | esac |
| 12273 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12274 | 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' |
| 12275 | ;; |
| 12276 | esac |
| 12277 | archive_cmds_need_lc_CXX=no |
| 12278 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12279 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12280 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
| 12281 | ;; |
| 12282 | pgCC* | pgcpp*) |
| 12283 | # Portland Group C++ compiler |
| 12284 | case `$CC -V` in |
| 12285 | *pgCC\ [1-5]* | *pgcpp\ [1-5]*) |
| 12286 | prelink_cmds_CXX='tpldir=Template.dir~ |
| 12287 | rm -rf $tpldir~ |
| 12288 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ |
| 12289 | compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"' |
| 12290 | old_archive_cmds_CXX='tpldir=Template.dir~ |
| 12291 | rm -rf $tpldir~ |
| 12292 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ |
| 12293 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~ |
| 12294 | $RANLIB $oldlib' |
| 12295 | archive_cmds_CXX='tpldir=Template.dir~ |
| 12296 | rm -rf $tpldir~ |
| 12297 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 12298 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12299 | archive_expsym_cmds_CXX='tpldir=Template.dir~ |
| 12300 | rm -rf $tpldir~ |
| 12301 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ |
| 12302 | $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] | 12303 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12304 | *) # Version 6 will use weak symbols |
| 12305 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
| 12306 | 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] | 12307 | ;; |
| 12308 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12309 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12310 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
| 12311 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12312 | 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' |
| 12313 | ;; |
| 12314 | cxx*) |
| 12315 | # Compaq C++ |
| 12316 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12317 | 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] | 12318 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12319 | runpath_var=LD_RUN_PATH |
| 12320 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12321 | hardcode_libdir_separator_CXX=: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12322 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12323 | # Commands to make compiler produce verbose output that lists |
| 12324 | # what "hidden" libraries, object files and flags are used when |
| 12325 | # linking a shared library. |
| 12326 | # |
| 12327 | # There doesn't appear to be a way to prevent this compiler from |
| 12328 | # explicitly linking system object files so we need to strip them |
| 12329 | # from the output so that they don't get included in the library |
| 12330 | # dependencies. |
| 12331 | 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' |
| 12332 | ;; |
| 12333 | xl*) |
| 12334 | # IBM XL 8.0 on PPC, with GNU ld |
| 12335 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12336 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
| 12337 | archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
| 12338 | if test "x$supports_anon_versioning" = xyes; then |
| 12339 | archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ |
| 12340 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 12341 | echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 12342 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
| 12343 | fi |
| 12344 | ;; |
| 12345 | *) |
| 12346 | case `$CC -V 2>&1 | sed 5q` in |
| 12347 | *Sun\ C*) |
| 12348 | # Sun C++ 5.9 |
| 12349 | no_undefined_flag_CXX=' -zdefs' |
| 12350 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12351 | 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' |
| 12352 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12353 | 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' |
| 12354 | compiler_needs_object_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12355 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12356 | # Not sure whether something based on |
| 12357 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
| 12358 | # would be better. |
| 12359 | output_verbose_link_cmd='echo' |
| 12360 | |
| 12361 | # Archives containing C++ object files must be created using |
| 12362 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12363 | # necessary to make sure instantiated templates are included |
| 12364 | # in the archive. |
| 12365 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12366 | ;; |
| 12367 | esac |
| 12368 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12369 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12370 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12371 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12372 | lynxos*) |
| 12373 | # FIXME: insert proper C++ library support |
| 12374 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12375 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12376 | |
| 12377 | m88k*) |
| 12378 | # FIXME: insert proper C++ library support |
| 12379 | ld_shlibs_CXX=no |
| 12380 | ;; |
| 12381 | |
| 12382 | mvs*) |
| 12383 | case $cc_basename in |
| 12384 | cxx*) |
| 12385 | # FIXME: insert proper C++ library support |
| 12386 | ld_shlibs_CXX=no |
| 12387 | ;; |
| 12388 | *) |
| 12389 | # FIXME: insert proper C++ library support |
| 12390 | ld_shlibs_CXX=no |
| 12391 | ;; |
| 12392 | esac |
| 12393 | ;; |
| 12394 | |
| 12395 | netbsd*) |
| 12396 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 12397 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
| 12398 | wlarc= |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12399 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12400 | hardcode_direct_CXX=yes |
| 12401 | hardcode_shlibpath_var_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12402 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12403 | # Workaround some broken pre-1.5 toolchains |
| 12404 | 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] | 12405 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12406 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12407 | *nto* | *qnx*) |
| 12408 | ld_shlibs_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12409 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12410 | |
| 12411 | openbsd2*) |
| 12412 | # C++ shared libraries are fairly broken |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12413 | ld_shlibs_CXX=no |
| 12414 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12415 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12416 | openbsd*) |
| 12417 | if test -f /usr/libexec/ld.so; then |
| 12418 | hardcode_direct_CXX=yes |
| 12419 | hardcode_shlibpath_var_CXX=no |
| 12420 | hardcode_direct_absolute_CXX=yes |
| 12421 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
| 12422 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12423 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
| 12424 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
| 12425 | export_dynamic_flag_spec_CXX='${wl}-E' |
| 12426 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12427 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12428 | output_verbose_link_cmd=echo |
| 12429 | else |
| 12430 | ld_shlibs_CXX=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12431 | fi |
| 12432 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12433 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12434 | osf3* | osf4* | osf5*) |
| 12435 | case $cc_basename in |
| 12436 | KCC*) |
| 12437 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
| 12438 | |
| 12439 | # KCC will only create a shared library if the output file |
| 12440 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
| 12441 | # to its proper name (with version) after linking. |
| 12442 | 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' |
| 12443 | |
| 12444 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
| 12445 | hardcode_libdir_separator_CXX=: |
| 12446 | |
| 12447 | # Archives containing C++ object files must be created using |
| 12448 | # the KAI C++ compiler. |
| 12449 | case $host in |
| 12450 | osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; |
| 12451 | *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; |
| 12452 | esac |
| 12453 | ;; |
| 12454 | RCC*) |
| 12455 | # Rational C++ 2.4.1 |
| 12456 | # FIXME: insert proper C++ library support |
| 12457 | ld_shlibs_CXX=no |
| 12458 | ;; |
| 12459 | cxx*) |
| 12460 | case $host in |
| 12461 | osf3*) |
| 12462 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12463 | 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' |
| 12464 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12465 | ;; |
| 12466 | *) |
| 12467 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
| 12468 | 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' |
| 12469 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
| 12470 | echo "-hidden">> $lib.exp~ |
| 12471 | $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~ |
| 12472 | $RM $lib.exp' |
| 12473 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
| 12474 | ;; |
| 12475 | esac |
| 12476 | |
| 12477 | hardcode_libdir_separator_CXX=: |
| 12478 | |
| 12479 | # Commands to make compiler produce verbose output that lists |
| 12480 | # what "hidden" libraries, object files and flags are used when |
| 12481 | # linking a shared library. |
| 12482 | # |
| 12483 | # There doesn't appear to be a way to prevent this compiler from |
| 12484 | # explicitly linking system object files so we need to strip them |
| 12485 | # from the output so that they don't get included in the library |
| 12486 | # dependencies. |
| 12487 | 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' |
| 12488 | ;; |
| 12489 | *) |
| 12490 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12491 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
| 12492 | case $host in |
| 12493 | osf3*) |
| 12494 | 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' |
| 12495 | ;; |
| 12496 | *) |
| 12497 | 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' |
| 12498 | ;; |
| 12499 | esac |
| 12500 | |
| 12501 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
| 12502 | hardcode_libdir_separator_CXX=: |
| 12503 | |
| 12504 | # Commands to make compiler produce verbose output that lists |
| 12505 | # what "hidden" libraries, object files and flags are used when |
| 12506 | # linking a shared library. |
| 12507 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12508 | |
| 12509 | else |
| 12510 | # FIXME: insert proper C++ library support |
| 12511 | ld_shlibs_CXX=no |
| 12512 | fi |
| 12513 | ;; |
| 12514 | esac |
| 12515 | ;; |
| 12516 | |
| 12517 | psos*) |
| 12518 | # FIXME: insert proper C++ library support |
| 12519 | ld_shlibs_CXX=no |
| 12520 | ;; |
| 12521 | |
| 12522 | sunos4*) |
| 12523 | case $cc_basename in |
| 12524 | CC*) |
| 12525 | # Sun C++ 4.x |
| 12526 | # FIXME: insert proper C++ library support |
| 12527 | ld_shlibs_CXX=no |
| 12528 | ;; |
| 12529 | lcc*) |
| 12530 | # Lucid |
| 12531 | # FIXME: insert proper C++ library support |
| 12532 | ld_shlibs_CXX=no |
| 12533 | ;; |
| 12534 | *) |
| 12535 | # FIXME: insert proper C++ library support |
| 12536 | ld_shlibs_CXX=no |
| 12537 | ;; |
| 12538 | esac |
| 12539 | ;; |
| 12540 | |
| 12541 | solaris*) |
| 12542 | case $cc_basename in |
| 12543 | CC*) |
| 12544 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 12545 | archive_cmds_need_lc_CXX=yes |
| 12546 | no_undefined_flag_CXX=' -zdefs' |
| 12547 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
| 12548 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12549 | $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' |
| 12550 | |
| 12551 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
| 12552 | hardcode_shlibpath_var_CXX=no |
| 12553 | case $host_os in |
| 12554 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12555 | *) |
| 12556 | # The compiler driver will combine and reorder linker options, |
| 12557 | # but understands `-z linker_flag'. |
| 12558 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
| 12559 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
| 12560 | ;; |
| 12561 | esac |
| 12562 | link_all_deplibs_CXX=yes |
| 12563 | |
| 12564 | output_verbose_link_cmd='echo' |
| 12565 | |
| 12566 | # Archives containing C++ object files must be created using |
| 12567 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
| 12568 | # necessary to make sure instantiated templates are included |
| 12569 | # in the archive. |
| 12570 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
| 12571 | ;; |
| 12572 | gcx*) |
| 12573 | # Green Hills C++ Compiler |
| 12574 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12575 | |
| 12576 | # The C++ compiler must be used to create the archive. |
| 12577 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
| 12578 | ;; |
| 12579 | *) |
| 12580 | # GNU C++ compiler with Solaris linker |
| 12581 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
| 12582 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
| 12583 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
| 12584 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12585 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12586 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12587 | |
| 12588 | # Commands to make compiler produce verbose output that lists |
| 12589 | # what "hidden" libraries, object files and flags are used when |
| 12590 | # linking a shared library. |
| 12591 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12592 | else |
| 12593 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
| 12594 | # platform. |
| 12595 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
| 12596 | archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 12597 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' |
| 12598 | |
| 12599 | # Commands to make compiler produce verbose output that lists |
| 12600 | # what "hidden" libraries, object files and flags are used when |
| 12601 | # linking a shared library. |
| 12602 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"' |
| 12603 | fi |
| 12604 | |
| 12605 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
| 12606 | case $host_os in |
| 12607 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 12608 | *) |
| 12609 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
| 12610 | ;; |
| 12611 | esac |
| 12612 | fi |
| 12613 | ;; |
| 12614 | esac |
| 12615 | ;; |
| 12616 | |
| 12617 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 12618 | no_undefined_flag_CXX='${wl}-z,text' |
| 12619 | archive_cmds_need_lc_CXX=no |
| 12620 | hardcode_shlibpath_var_CXX=no |
| 12621 | runpath_var='LD_RUN_PATH' |
| 12622 | |
| 12623 | case $cc_basename in |
| 12624 | CC*) |
| 12625 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12626 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12627 | ;; |
| 12628 | *) |
| 12629 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12630 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12631 | ;; |
| 12632 | esac |
| 12633 | ;; |
| 12634 | |
| 12635 | sysv5* | sco3.2v5* | sco5v6*) |
| 12636 | # Note: We can NOT use -z defs as we might desire, because we do not |
| 12637 | # link with -lc, and that would cause any symbols used from libc to |
| 12638 | # always be unresolved, which means just about no library would |
| 12639 | # ever link correctly. If we're not using GNU ld we use -z text |
| 12640 | # though, which does catch some bad symbols but isn't as heavy-handed |
| 12641 | # as -z defs. |
| 12642 | no_undefined_flag_CXX='${wl}-z,text' |
| 12643 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
| 12644 | archive_cmds_need_lc_CXX=no |
| 12645 | hardcode_shlibpath_var_CXX=no |
| 12646 | hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' |
| 12647 | hardcode_libdir_separator_CXX=':' |
| 12648 | link_all_deplibs_CXX=yes |
| 12649 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
| 12650 | runpath_var='LD_RUN_PATH' |
| 12651 | |
| 12652 | case $cc_basename in |
| 12653 | CC*) |
| 12654 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12655 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12656 | ;; |
| 12657 | *) |
| 12658 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12659 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 12660 | ;; |
| 12661 | esac |
| 12662 | ;; |
| 12663 | |
| 12664 | tandem*) |
| 12665 | case $cc_basename in |
| 12666 | NCC*) |
| 12667 | # NonStop-UX NCC 3.20 |
| 12668 | # FIXME: insert proper C++ library support |
| 12669 | ld_shlibs_CXX=no |
| 12670 | ;; |
| 12671 | *) |
| 12672 | # FIXME: insert proper C++ library support |
| 12673 | ld_shlibs_CXX=no |
| 12674 | ;; |
| 12675 | esac |
| 12676 | ;; |
| 12677 | |
| 12678 | vxworks*) |
| 12679 | # FIXME: insert proper C++ library support |
| 12680 | ld_shlibs_CXX=no |
| 12681 | ;; |
| 12682 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12683 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12684 | # FIXME: insert proper C++ library support |
| 12685 | ld_shlibs_CXX=no |
| 12686 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12687 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12688 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 12690 | $as_echo "$ld_shlibs_CXX" >&6; } |
| 12691 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12692 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12693 | GCC_CXX="$GXX" |
| 12694 | LD_CXX="$LD" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12695 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12696 | ## CAVEAT EMPTOR: |
| 12697 | ## There is no encapsulation within the following macros, do not change |
| 12698 | ## the running order or otherwise move them around unless you know exactly |
| 12699 | ## what you are doing... |
| 12700 | # Dependencies to place before and after the object being linked: |
| 12701 | predep_objects_CXX= |
| 12702 | postdep_objects_CXX= |
| 12703 | predeps_CXX= |
| 12704 | postdeps_CXX= |
| 12705 | compiler_lib_search_path_CXX= |
| 12706 | |
| 12707 | cat > conftest.$ac_ext <<_LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12708 | class Foo |
| 12709 | { |
| 12710 | public: |
| 12711 | Foo (void) { a = 0; } |
| 12712 | private: |
| 12713 | int a; |
| 12714 | }; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12715 | _LT_EOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12716 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12717 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12718 | (eval $ac_compile) 2>&5 |
| 12719 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12720 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12721 | test $ac_status = 0; }; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12722 | # Parse the compiler output and extract the necessary |
| 12723 | # objects, libraries and library flags. |
| 12724 | |
| 12725 | # Sentinel used to keep track of whether or not we are before |
| 12726 | # the conftest object file. |
| 12727 | pre_test_object_deps_done=no |
| 12728 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12729 | for p in `eval "$output_verbose_link_cmd"`; do |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12730 | case $p in |
| 12731 | |
| 12732 | -L* | -R* | -l*) |
| 12733 | # Some compilers place space between "-{L,R}" and the path. |
| 12734 | # Remove the space. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12735 | if test $p = "-L" || |
| 12736 | test $p = "-R"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12737 | prev=$p |
| 12738 | continue |
| 12739 | else |
| 12740 | prev= |
| 12741 | fi |
| 12742 | |
| 12743 | if test "$pre_test_object_deps_done" = no; then |
| 12744 | case $p in |
| 12745 | -L* | -R*) |
| 12746 | # Internal compiler library paths should come after those |
| 12747 | # provided the user. The postdeps already come after the |
| 12748 | # user supplied libs so there is no need to process them. |
| 12749 | if test -z "$compiler_lib_search_path_CXX"; then |
| 12750 | compiler_lib_search_path_CXX="${prev}${p}" |
| 12751 | else |
| 12752 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
| 12753 | fi |
| 12754 | ;; |
| 12755 | # The "-l" case would never come before the object being |
| 12756 | # linked, so don't bother handling this case. |
| 12757 | esac |
| 12758 | else |
| 12759 | if test -z "$postdeps_CXX"; then |
| 12760 | postdeps_CXX="${prev}${p}" |
| 12761 | else |
| 12762 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
| 12763 | fi |
| 12764 | fi |
| 12765 | ;; |
| 12766 | |
| 12767 | *.$objext) |
| 12768 | # This assumes that the test object file only shows up |
| 12769 | # once in the compiler output. |
| 12770 | if test "$p" = "conftest.$objext"; then |
| 12771 | pre_test_object_deps_done=yes |
| 12772 | continue |
| 12773 | fi |
| 12774 | |
| 12775 | if test "$pre_test_object_deps_done" = no; then |
| 12776 | if test -z "$predep_objects_CXX"; then |
| 12777 | predep_objects_CXX="$p" |
| 12778 | else |
| 12779 | predep_objects_CXX="$predep_objects_CXX $p" |
| 12780 | fi |
| 12781 | else |
| 12782 | if test -z "$postdep_objects_CXX"; then |
| 12783 | postdep_objects_CXX="$p" |
| 12784 | else |
| 12785 | postdep_objects_CXX="$postdep_objects_CXX $p" |
| 12786 | fi |
| 12787 | fi |
| 12788 | ;; |
| 12789 | |
| 12790 | *) ;; # Ignore the rest. |
| 12791 | |
| 12792 | esac |
| 12793 | done |
| 12794 | |
| 12795 | # Clean up. |
| 12796 | rm -f a.out a.exe |
| 12797 | else |
| 12798 | echo "libtool.m4: error: problem compiling CXX test program" |
| 12799 | fi |
| 12800 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12801 | $RM -f confest.$objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12802 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12803 | # PORTME: override above test on systems where it is broken |
| 12804 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12805 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12806 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
| 12807 | # hack all around it, let's just trust "g++" to DTRT. |
| 12808 | predep_objects_CXX= |
| 12809 | postdep_objects_CXX= |
| 12810 | postdeps_CXX= |
| 12811 | ;; |
| 12812 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12813 | linux*) |
| 12814 | case `$CC -V 2>&1 | sed 5q` in |
| 12815 | *Sun\ C*) |
| 12816 | # Sun C++ 5.9 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12817 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12818 | # The more standards-conforming stlport4 library is |
| 12819 | # incompatible with the Cstd library. Avoid specifying |
| 12820 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 12821 | # -library=stlport4 depends on it. |
| 12822 | case " $CXX $CXXFLAGS " in |
| 12823 | *" -library=stlport4 "*) |
| 12824 | solaris_use_stlport4=yes |
| 12825 | ;; |
| 12826 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12827 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12828 | if test "$solaris_use_stlport4" != yes; then |
| 12829 | postdeps_CXX='-library=Cstd -library=Crun' |
| 12830 | fi |
| 12831 | ;; |
| 12832 | esac |
| 12833 | ;; |
| 12834 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12835 | solaris*) |
| 12836 | case $cc_basename in |
| 12837 | CC*) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12838 | # The more standards-conforming stlport4 library is |
| 12839 | # incompatible with the Cstd library. Avoid specifying |
| 12840 | # it if it's in CXXFLAGS. Ignore libCrun as |
| 12841 | # -library=stlport4 depends on it. |
| 12842 | case " $CXX $CXXFLAGS " in |
| 12843 | *" -library=stlport4 "*) |
| 12844 | solaris_use_stlport4=yes |
| 12845 | ;; |
| 12846 | esac |
| 12847 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12848 | # Adding this requires a known-good setup of shared libraries for |
| 12849 | # Sun compiler versions before 5.6, else PIC objects from an old |
| 12850 | # archive will be linked into the output, leading to subtle bugs. |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12851 | if test "$solaris_use_stlport4" != yes; then |
| 12852 | postdeps_CXX='-library=Cstd -library=Crun' |
| 12853 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12854 | ;; |
| 12855 | esac |
| 12856 | ;; |
| 12857 | esac |
| 12858 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12859 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12860 | case " $postdeps_CXX " in |
| 12861 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
| 12862 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12863 | compiler_lib_search_dirs_CXX= |
| 12864 | if test -n "${compiler_lib_search_path_CXX}"; then |
| 12865 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
| 12866 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12867 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12868 | |
| 12869 | |
| 12870 | |
| 12871 | |
| 12872 | |
| 12873 | |
| 12874 | |
| 12875 | |
| 12876 | |
| 12877 | |
| 12878 | |
| 12879 | |
| 12880 | |
| 12881 | |
| 12882 | |
| 12883 | |
| 12884 | |
| 12885 | |
| 12886 | |
| 12887 | |
| 12888 | |
| 12889 | |
| 12890 | |
| 12891 | |
| 12892 | |
| 12893 | |
| 12894 | |
| 12895 | |
| 12896 | |
| 12897 | |
| 12898 | lt_prog_compiler_wl_CXX= |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12899 | lt_prog_compiler_pic_CXX= |
| 12900 | lt_prog_compiler_static_CXX= |
| 12901 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 12903 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12904 | |
| 12905 | # C++ specific cases for pic, static, wl, etc. |
| 12906 | if test "$GXX" = yes; then |
| 12907 | lt_prog_compiler_wl_CXX='-Wl,' |
| 12908 | lt_prog_compiler_static_CXX='-static' |
| 12909 | |
| 12910 | case $host_os in |
| 12911 | aix*) |
| 12912 | # All AIX code is PIC. |
| 12913 | if test "$host_cpu" = ia64; then |
| 12914 | # AIX 5 now supports IA64 processor |
| 12915 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12916 | fi |
| 12917 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12918 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12919 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12920 | case $host_cpu in |
| 12921 | powerpc) |
| 12922 | # see comment about AmigaOS4 .so support |
| 12923 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12924 | ;; |
| 12925 | m68k) |
| 12926 | # FIXME: we need at least 68020 code to build shared libraries, but |
| 12927 | # adding the `-m68020' flag to GCC prevents building anything better, |
| 12928 | # like `-m68040'. |
| 12929 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
| 12930 | ;; |
| 12931 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12932 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12933 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12934 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12935 | # PIC is the default for these OSes. |
| 12936 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12937 | mingw* | cygwin* | os2* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12938 | # This hack is so that the source file can tell whether it is being |
| 12939 | # built for inclusion in a dll (and should export symbols for example). |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12940 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 12941 | # (--disable-auto-import) libraries |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12942 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
| 12943 | ;; |
| 12944 | darwin* | rhapsody*) |
| 12945 | # PIC is the default on this platform |
| 12946 | # Common symbols not allowed in MH_DYLIB files |
| 12947 | lt_prog_compiler_pic_CXX='-fno-common' |
| 12948 | ;; |
| 12949 | *djgpp*) |
| 12950 | # DJGPP does not support shared libraries at all |
| 12951 | lt_prog_compiler_pic_CXX= |
| 12952 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12953 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12954 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 12955 | # Instead, we relocate shared libraries at runtime. |
| 12956 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12957 | sysv4*MP*) |
| 12958 | if test -d /usr/nec; then |
| 12959 | lt_prog_compiler_pic_CXX=-Kconform_pic |
| 12960 | fi |
| 12961 | ;; |
| 12962 | hpux*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12963 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 12964 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 12965 | # sets the default TLS model and affects inlining. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12966 | case $host_cpu in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12967 | hppa*64*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12968 | ;; |
| 12969 | *) |
| 12970 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12971 | ;; |
| 12972 | esac |
| 12973 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12974 | *qnx* | *nto*) |
| 12975 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 12976 | # it will coredump. |
| 12977 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 12978 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12979 | *) |
| 12980 | lt_prog_compiler_pic_CXX='-fPIC' |
| 12981 | ;; |
| 12982 | esac |
| 12983 | else |
| 12984 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 12985 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12986 | # All AIX code is PIC. |
| 12987 | if test "$host_cpu" = ia64; then |
| 12988 | # AIX 5 now supports IA64 processor |
| 12989 | lt_prog_compiler_static_CXX='-Bstatic' |
| 12990 | else |
| 12991 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
| 12992 | fi |
| 12993 | ;; |
| 12994 | chorus*) |
| 12995 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 12996 | cxch68*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 12997 | # Green Hills C++ Compiler |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 12998 | # _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] | 12999 | ;; |
| 13000 | esac |
| 13001 | ;; |
| 13002 | dgux*) |
| 13003 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13004 | ec++*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13005 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13006 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13007 | ghcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13008 | # Green Hills C++ Compiler |
| 13009 | lt_prog_compiler_pic_CXX='-pic' |
| 13010 | ;; |
| 13011 | *) |
| 13012 | ;; |
| 13013 | esac |
| 13014 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13015 | freebsd* | dragonfly*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13016 | # FreeBSD uses GNU C++ |
| 13017 | ;; |
| 13018 | hpux9* | hpux10* | hpux11*) |
| 13019 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13020 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13021 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13022 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13023 | if test "$host_cpu" != ia64; then |
| 13024 | lt_prog_compiler_pic_CXX='+Z' |
| 13025 | fi |
| 13026 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13027 | aCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13028 | lt_prog_compiler_wl_CXX='-Wl,' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13029 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
| 13030 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13031 | hppa*64*|ia64*) |
| 13032 | # +Z the default |
| 13033 | ;; |
| 13034 | *) |
| 13035 | lt_prog_compiler_pic_CXX='+Z' |
| 13036 | ;; |
| 13037 | esac |
| 13038 | ;; |
| 13039 | *) |
| 13040 | ;; |
| 13041 | esac |
| 13042 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13043 | interix*) |
| 13044 | # This is c89, which is MS Visual C++ (no shared libs) |
| 13045 | # Anyone wants to do a port? |
| 13046 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13047 | irix5* | irix6* | nonstopux*) |
| 13048 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13049 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13050 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13051 | lt_prog_compiler_static_CXX='-non_shared' |
| 13052 | # CC pic flag -KPIC is the default. |
| 13053 | ;; |
| 13054 | *) |
| 13055 | ;; |
| 13056 | esac |
| 13057 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13058 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13059 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13060 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13061 | # KAI C++ Compiler |
| 13062 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13063 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13064 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13065 | ecpc* ) |
| 13066 | # old Intel C++ for x86_64 which still supported -KPIC. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13067 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13068 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13069 | lt_prog_compiler_static_CXX='-static' |
| 13070 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13071 | icpc* ) |
| 13072 | # Intel C++, used to be incompatible with GCC. |
| 13073 | # ICC 10 doesn't accept -KPIC any more. |
| 13074 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13075 | lt_prog_compiler_pic_CXX='-fPIC' |
| 13076 | lt_prog_compiler_static_CXX='-static' |
| 13077 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13078 | pgCC* | pgcpp*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13079 | # Portland Group C++ compiler |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13080 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13081 | lt_prog_compiler_pic_CXX='-fpic' |
| 13082 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13083 | ;; |
| 13084 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13085 | # Compaq C++ |
| 13086 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13087 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13088 | lt_prog_compiler_pic_CXX= |
| 13089 | lt_prog_compiler_static_CXX='-non_shared' |
| 13090 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13091 | xlc* | xlC*) |
| 13092 | # IBM XL 8.0 on PPC |
| 13093 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13094 | lt_prog_compiler_pic_CXX='-qpic' |
| 13095 | lt_prog_compiler_static_CXX='-qstaticlink' |
| 13096 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13097 | *) |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13098 | case `$CC -V 2>&1 | sed 5q` in |
| 13099 | *Sun\ C*) |
| 13100 | # Sun C++ 5.9 |
| 13101 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13102 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13103 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13104 | ;; |
| 13105 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13106 | ;; |
| 13107 | esac |
| 13108 | ;; |
| 13109 | lynxos*) |
| 13110 | ;; |
| 13111 | m88k*) |
| 13112 | ;; |
| 13113 | mvs*) |
| 13114 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13115 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13116 | lt_prog_compiler_pic_CXX='-W c,exportall' |
| 13117 | ;; |
| 13118 | *) |
| 13119 | ;; |
| 13120 | esac |
| 13121 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13122 | netbsd* | netbsdelf*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13123 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13124 | *qnx* | *nto*) |
| 13125 | # QNX uses GNU C++, but need to define -shared option too, otherwise |
| 13126 | # it will coredump. |
| 13127 | lt_prog_compiler_pic_CXX='-fPIC -shared' |
| 13128 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13129 | osf3* | osf4* | osf5*) |
| 13130 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13131 | KCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13132 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
| 13133 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13134 | RCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13135 | # Rational C++ 2.4.1 |
| 13136 | lt_prog_compiler_pic_CXX='-pic' |
| 13137 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13138 | cxx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13139 | # Digital/Compaq C++ |
| 13140 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13141 | # Make sure the PIC flag is empty. It appears that all Alpha |
| 13142 | # Linux and Compaq Tru64 Unix objects are PIC. |
| 13143 | lt_prog_compiler_pic_CXX= |
| 13144 | lt_prog_compiler_static_CXX='-non_shared' |
| 13145 | ;; |
| 13146 | *) |
| 13147 | ;; |
| 13148 | esac |
| 13149 | ;; |
| 13150 | psos*) |
| 13151 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13152 | solaris*) |
| 13153 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13154 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13155 | # Sun C++ 4.2, 5.x and Centerline C++ |
| 13156 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13157 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13158 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
| 13159 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13160 | gcx*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13161 | # Green Hills C++ Compiler |
| 13162 | lt_prog_compiler_pic_CXX='-PIC' |
| 13163 | ;; |
| 13164 | *) |
| 13165 | ;; |
| 13166 | esac |
| 13167 | ;; |
| 13168 | sunos4*) |
| 13169 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13170 | CC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13171 | # Sun C++ 4.x |
| 13172 | lt_prog_compiler_pic_CXX='-pic' |
| 13173 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13174 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13175 | lcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13176 | # Lucid |
| 13177 | lt_prog_compiler_pic_CXX='-pic' |
| 13178 | ;; |
| 13179 | *) |
| 13180 | ;; |
| 13181 | esac |
| 13182 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13183 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 13184 | case $cc_basename in |
| 13185 | CC*) |
| 13186 | lt_prog_compiler_wl_CXX='-Wl,' |
| 13187 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13188 | lt_prog_compiler_static_CXX='-Bstatic' |
| 13189 | ;; |
| 13190 | esac |
| 13191 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13192 | tandem*) |
| 13193 | case $cc_basename in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13194 | NCC*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13195 | # NonStop-UX NCC 3.20 |
| 13196 | lt_prog_compiler_pic_CXX='-KPIC' |
| 13197 | ;; |
| 13198 | *) |
| 13199 | ;; |
| 13200 | esac |
| 13201 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13202 | vxworks*) |
| 13203 | ;; |
| 13204 | *) |
| 13205 | lt_prog_compiler_can_build_shared_CXX=no |
| 13206 | ;; |
| 13207 | esac |
| 13208 | fi |
| 13209 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13210 | case $host_os in |
| 13211 | # For platforms which do not support PIC, -DPIC is meaningless: |
| 13212 | *djgpp*) |
| 13213 | lt_prog_compiler_pic_CXX= |
| 13214 | ;; |
| 13215 | *) |
| 13216 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
| 13217 | ;; |
| 13218 | esac |
| 13219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5 |
| 13220 | $as_echo "$lt_prog_compiler_pic_CXX" >&6; } |
| 13221 | |
| 13222 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13223 | |
| 13224 | # |
| 13225 | # Check to make sure the PIC flag actually works. |
| 13226 | # |
| 13227 | if test -n "$lt_prog_compiler_pic_CXX"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
| 13229 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } |
| 13230 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : |
| 13231 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13232 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13233 | lt_cv_prog_compiler_pic_works_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13234 | ac_outfile=conftest.$ac_objext |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13235 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13236 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
| 13237 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13238 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13239 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13240 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13241 | # The option is referenced via a variable to avoid confusing sed. |
| 13242 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13243 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13244 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13245 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13246 | (eval echo "\"\$as_me:13246: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13247 | (eval "$lt_compile" 2>conftest.err) |
| 13248 | ac_status=$? |
| 13249 | cat conftest.err >&5 |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13250 | echo "$as_me:13250: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13251 | if (exit $ac_status) && test -s "$ac_outfile"; then |
| 13252 | # The compiler can only warn and ignore the option if not recognized |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13253 | # So say no if there are warnings other than the usual output. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13254 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13255 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13256 | 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] | 13257 | lt_cv_prog_compiler_pic_works_CXX=yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13258 | fi |
| 13259 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13260 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13261 | |
| 13262 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13263 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
| 13264 | $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13265 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13266 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13267 | case $lt_prog_compiler_pic_CXX in |
| 13268 | "" | " "*) ;; |
| 13269 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
| 13270 | esac |
| 13271 | else |
| 13272 | lt_prog_compiler_pic_CXX= |
| 13273 | lt_prog_compiler_can_build_shared_CXX=no |
| 13274 | fi |
| 13275 | |
| 13276 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13277 | |
| 13278 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13279 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13280 | # |
| 13281 | # Check to make sure the static flag actually works. |
| 13282 | # |
| 13283 | 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] | 13284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 13285 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 13286 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : |
| 13287 | $as_echo_n "(cached) " >&6 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13288 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13289 | lt_cv_prog_compiler_static_works_CXX=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13290 | save_LDFLAGS="$LDFLAGS" |
| 13291 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13292 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13293 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 13294 | # The linker can only warn and ignore the option if not recognized |
| 13295 | # So say no if there are warnings |
| 13296 | if test -s conftest.err; then |
| 13297 | # Append any errors to the config.log. |
| 13298 | cat conftest.err 1>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13299 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13300 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 13301 | if diff conftest.exp conftest.er2 >/dev/null; then |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13302 | lt_cv_prog_compiler_static_works_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13303 | fi |
| 13304 | else |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13305 | lt_cv_prog_compiler_static_works_CXX=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13306 | fi |
| 13307 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13308 | $RM -r conftest* |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13309 | LDFLAGS="$save_LDFLAGS" |
| 13310 | |
| 13311 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
| 13313 | $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13314 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13315 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13316 | : |
| 13317 | else |
| 13318 | lt_prog_compiler_static_CXX= |
| 13319 | fi |
| 13320 | |
| 13321 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13322 | |
| 13323 | |
| 13324 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13325 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13326 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13327 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13328 | else |
| 13329 | lt_cv_prog_compiler_c_o_CXX=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13330 | $RM -r conftest 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13331 | mkdir conftest |
| 13332 | cd conftest |
| 13333 | mkdir out |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13334 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13335 | |
| 13336 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13337 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13338 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13339 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13340 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13341 | lt_compile=`echo "$ac_compile" | $SED \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13342 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13343 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13344 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13345 | (eval echo "\"\$as_me:13345: $lt_compile\"" >&5) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13346 | (eval "$lt_compile" 2>out/conftest.err) |
| 13347 | ac_status=$? |
| 13348 | cat out/conftest.err >&5 |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13349 | echo "$as_me:13349: \$? = $ac_status" >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13350 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13351 | then |
| 13352 | # The compiler can only warn and ignore the option if not recognized |
| 13353 | # So say no if there are warnings |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13354 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13355 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13356 | 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] | 13357 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13358 | fi |
| 13359 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13360 | chmod u+w . 2>&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13361 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13362 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13363 | # template instantiation |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13364 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13365 | $RM out/* && rmdir out |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13366 | cd .. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13367 | $RM -r conftest |
| 13368 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13369 | |
| 13370 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13372 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13373 | |
| 13374 | |
| 13375 | |
| 13376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 13377 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 13378 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : |
| 13379 | $as_echo_n "(cached) " >&6 |
| 13380 | else |
| 13381 | lt_cv_prog_compiler_c_o_CXX=no |
| 13382 | $RM -r conftest 2>/dev/null |
| 13383 | mkdir conftest |
| 13384 | cd conftest |
| 13385 | mkdir out |
| 13386 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 13387 | |
| 13388 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 13389 | # Insert the option either (1) after the last *FLAGS variable, or |
| 13390 | # (2) before a word containing "conftest.", or (3) at the end. |
| 13391 | # Note that $ac_compile itself does not contain backslashes and begins |
| 13392 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
| 13393 | lt_compile=`echo "$ac_compile" | $SED \ |
| 13394 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 13395 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 13396 | -e 's:$: $lt_compiler_flag:'` |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13397 | (eval echo "\"\$as_me:13397: $lt_compile\"" >&5) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13398 | (eval "$lt_compile" 2>out/conftest.err) |
| 13399 | ac_status=$? |
| 13400 | cat out/conftest.err >&5 |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13401 | echo "$as_me:13401: \$? = $ac_status" >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13402 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 13403 | then |
| 13404 | # The compiler can only warn and ignore the option if not recognized |
| 13405 | # So say no if there are warnings |
| 13406 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
| 13407 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 13408 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 13409 | lt_cv_prog_compiler_c_o_CXX=yes |
| 13410 | fi |
| 13411 | fi |
| 13412 | chmod u+w . 2>&5 |
| 13413 | $RM conftest* |
| 13414 | # SGI C++ compiler will create directory out/ii_files/ for |
| 13415 | # template instantiation |
| 13416 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 13417 | $RM out/* && rmdir out |
| 13418 | cd .. |
| 13419 | $RM -r conftest |
| 13420 | $RM conftest* |
| 13421 | |
| 13422 | fi |
| 13423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
| 13424 | $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } |
| 13425 | |
| 13426 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13427 | |
| 13428 | |
| 13429 | hard_links="nottested" |
| 13430 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
| 13431 | # do not overwrite the value of need_locks provided by the user |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 13433 | $as_echo_n "checking if we can lock with hard links... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13434 | hard_links=yes |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13435 | $RM conftest* |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13436 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 13437 | touch conftest.a |
| 13438 | ln conftest.a conftest.b 2>&5 || hard_links=no |
| 13439 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 13441 | $as_echo "$hard_links" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13442 | if test "$hard_links" = no; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13443 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
| 13444 | $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] | 13445 | need_locks=warn |
| 13446 | fi |
| 13447 | else |
| 13448 | need_locks=no |
| 13449 | fi |
| 13450 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13451 | |
| 13452 | |
| 13453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 13454 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13455 | |
| 13456 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13457 | case $host_os in |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13458 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13459 | # If we're using GNU nm, then we don't want the "-C" option. |
| 13460 | # -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] | 13461 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 13462 | 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] | 13463 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13464 | 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] | 13465 | fi |
| 13466 | ;; |
| 13467 | pw32*) |
| 13468 | export_symbols_cmds_CXX="$ltdll_cmds" |
| 13469 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13470 | cygwin* | mingw* | cegcc*) |
| 13471 | 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' |
| 13472 | ;; |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13473 | linux* | k*bsd*-gnu) |
| 13474 | link_all_deplibs_CXX=no |
| 13475 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13476 | *) |
| 13477 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 13478 | ;; |
| 13479 | esac |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13480 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13481 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 |
| 13483 | $as_echo "$ld_shlibs_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13484 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
| 13485 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13486 | with_gnu_ld_CXX=$with_gnu_ld |
| 13487 | |
| 13488 | |
| 13489 | |
| 13490 | |
| 13491 | |
| 13492 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13493 | # |
| 13494 | # Do we need to explicitly link libc? |
| 13495 | # |
| 13496 | case "x$archive_cmds_need_lc_CXX" in |
| 13497 | x|xyes) |
| 13498 | # Assume -lc should be added |
| 13499 | archive_cmds_need_lc_CXX=yes |
| 13500 | |
| 13501 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
| 13502 | case $archive_cmds_CXX in |
| 13503 | *'~'*) |
| 13504 | # FIXME: we may have to deal with multi-command sequences. |
| 13505 | ;; |
| 13506 | '$CC '*) |
| 13507 | # Test whether the compiler implicitly links with -lc since on some |
| 13508 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 13509 | # to ld, don't add -lc before -lgcc. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 13511 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
| 13512 | $RM conftest* |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13513 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13514 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13515 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13516 | (eval $ac_compile) 2>&5 |
| 13517 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13518 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13519 | test $ac_status = 0; } 2>conftest.err; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13520 | soname=conftest |
| 13521 | lib=conftest |
| 13522 | libobjs=conftest.$ac_objext |
| 13523 | deplibs= |
| 13524 | wl=$lt_prog_compiler_wl_CXX |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13525 | pic_flag=$lt_prog_compiler_pic_CXX |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13526 | compiler_flags=-v |
| 13527 | linker_flags=-v |
| 13528 | verstring= |
| 13529 | output_objdir=. |
| 13530 | libname=conftest |
| 13531 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
| 13532 | allow_undefined_flag_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13533 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 13534 | (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] | 13535 | ac_status=$? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 13537 | test $ac_status = 0; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13538 | then |
| 13539 | archive_cmds_need_lc_CXX=no |
| 13540 | else |
| 13541 | archive_cmds_need_lc_CXX=yes |
| 13542 | fi |
| 13543 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
| 13544 | else |
| 13545 | cat conftest.err 1>&5 |
| 13546 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13547 | $RM conftest* |
| 13548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5 |
| 13549 | $as_echo "$archive_cmds_need_lc_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13550 | ;; |
| 13551 | esac |
| 13552 | fi |
| 13553 | ;; |
| 13554 | esac |
| 13555 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13556 | |
| 13557 | |
| 13558 | |
| 13559 | |
| 13560 | |
| 13561 | |
| 13562 | |
| 13563 | |
| 13564 | |
| 13565 | |
| 13566 | |
| 13567 | |
| 13568 | |
| 13569 | |
| 13570 | |
| 13571 | |
| 13572 | |
| 13573 | |
| 13574 | |
| 13575 | |
| 13576 | |
| 13577 | |
| 13578 | |
| 13579 | |
| 13580 | |
| 13581 | |
| 13582 | |
| 13583 | |
| 13584 | |
| 13585 | |
| 13586 | |
| 13587 | |
| 13588 | |
| 13589 | |
| 13590 | |
| 13591 | |
| 13592 | |
| 13593 | |
| 13594 | |
| 13595 | |
| 13596 | |
| 13597 | |
| 13598 | |
| 13599 | |
| 13600 | |
| 13601 | |
| 13602 | |
| 13603 | |
| 13604 | |
| 13605 | |
| 13606 | |
| 13607 | |
| 13608 | |
| 13609 | |
| 13610 | |
| 13611 | |
| 13612 | |
| 13613 | |
| 13614 | |
| 13615 | |
| 13616 | |
| 13617 | |
| 13618 | |
| 13619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 13620 | $as_echo_n "checking dynamic linker characteristics... " >&6; } |
| 13621 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13622 | library_names_spec= |
| 13623 | libname_spec='lib$name' |
| 13624 | soname_spec= |
| 13625 | shrext_cmds=".so" |
| 13626 | postinstall_cmds= |
| 13627 | postuninstall_cmds= |
| 13628 | finish_cmds= |
| 13629 | finish_eval= |
| 13630 | shlibpath_var= |
| 13631 | shlibpath_overrides_runpath=unknown |
| 13632 | version_type=none |
| 13633 | dynamic_linker="$host_os ld.so" |
| 13634 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13635 | need_lib_prefix=unknown |
| 13636 | hardcode_into_libs=no |
| 13637 | |
| 13638 | # when you set need_version to no, make sure it does not cause -set_version |
| 13639 | # flags to be left without arguments |
| 13640 | need_version=unknown |
| 13641 | |
| 13642 | case $host_os in |
| 13643 | aix3*) |
| 13644 | version_type=linux |
| 13645 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
| 13646 | shlibpath_var=LIBPATH |
| 13647 | |
| 13648 | # AIX 3 has no versioning support, so we append a major version to the name. |
| 13649 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13650 | ;; |
| 13651 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13652 | aix[4-9]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13653 | version_type=linux |
| 13654 | need_lib_prefix=no |
| 13655 | need_version=no |
| 13656 | hardcode_into_libs=yes |
| 13657 | if test "$host_cpu" = ia64; then |
| 13658 | # AIX 5 supports IA64 |
| 13659 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
| 13660 | shlibpath_var=LD_LIBRARY_PATH |
| 13661 | else |
| 13662 | # With GCC up to 2.95.x, collect2 would create an import file |
| 13663 | # for dependence libraries. The import file would start with |
| 13664 | # the line `#! .'. This would cause the generated library to |
| 13665 | # depend on `.', always an invalid library. This was fixed in |
| 13666 | # development snapshots of GCC prior to 3.0. |
| 13667 | case $host_os in |
| 13668 | aix4 | aix4.[01] | aix4.[01].*) |
| 13669 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 13670 | echo ' yes ' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13671 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13672 | : |
| 13673 | else |
| 13674 | can_build_shared=no |
| 13675 | fi |
| 13676 | ;; |
| 13677 | esac |
| 13678 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
| 13679 | # soname into executable. Probably we can add versioning support to |
| 13680 | # collect2, so additional links can be useful in future. |
| 13681 | if test "$aix_use_runtimelinking" = yes; then |
| 13682 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 13683 | # instead of lib<name>.a to let people know that these are not |
| 13684 | # typical AIX shared libraries. |
| 13685 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13686 | else |
| 13687 | # We preserve .a as extension for shared libraries through AIX4.2 |
| 13688 | # and later when we are not doing run time linking. |
| 13689 | library_names_spec='${libname}${release}.a $libname.a' |
| 13690 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13691 | fi |
| 13692 | shlibpath_var=LIBPATH |
| 13693 | fi |
| 13694 | ;; |
| 13695 | |
| 13696 | amigaos*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13697 | case $host_cpu in |
| 13698 | powerpc) |
| 13699 | # Since July 2007 AmigaOS4 officially supports .so libraries. |
| 13700 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 13701 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13702 | ;; |
| 13703 | m68k) |
| 13704 | library_names_spec='$libname.ixlibrary $libname.a' |
| 13705 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 13706 | 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' |
| 13707 | ;; |
| 13708 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13709 | ;; |
| 13710 | |
| 13711 | beos*) |
| 13712 | library_names_spec='${libname}${shared_ext}' |
| 13713 | dynamic_linker="$host_os ld.so" |
| 13714 | shlibpath_var=LIBRARY_PATH |
| 13715 | ;; |
| 13716 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13717 | bsdi[45]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13718 | version_type=linux |
| 13719 | need_version=no |
| 13720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13721 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13722 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 13723 | shlibpath_var=LD_LIBRARY_PATH |
| 13724 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 13725 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 13726 | # the default ld.so.conf also contains /usr/contrib/lib and |
| 13727 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 13728 | # libtool to hard-code these into programs |
| 13729 | ;; |
| 13730 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13731 | cygwin* | mingw* | pw32* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13732 | version_type=windows |
| 13733 | shrext_cmds=".dll" |
| 13734 | need_version=no |
| 13735 | need_lib_prefix=no |
| 13736 | |
| 13737 | case $GCC,$host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13738 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13739 | library_names_spec='$libname.dll.a' |
| 13740 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 13741 | postinstall_cmds='base_file=`basename \${file}`~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13742 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13743 | dldir=$destdir/`dirname \$dlpath`~ |
| 13744 | test -d \$dldir || mkdir -p \$dldir~ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13745 | $install_prog $dir/$dlname \$dldir/$dlname~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13746 | chmod a+x \$dldir/$dlname~ |
| 13747 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 13748 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 13749 | fi' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13750 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 13751 | dlpath=$dir/\$dldll~ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13752 | $RM \$dlpath' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13753 | shlibpath_overrides_runpath=yes |
| 13754 | |
| 13755 | case $host_os in |
| 13756 | cygwin*) |
| 13757 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 13758 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
| 13759 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
| 13760 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13761 | mingw* | cegcc*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13762 | # MinGW DLLs use traditional 'lib' prefix |
| 13763 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13764 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
| 13765 | 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] | 13766 | # It is most probably a Windows format PATH printed by |
| 13767 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
| 13768 | # path with ; separators, and with drive letters. We can handle the |
| 13769 | # drive letters (cygwin fileutils understands them), so leave them, |
| 13770 | # especially as we might pass files found there to a mingw objdump, |
| 13771 | # which wouldn't understand a cygwinified path. Ahh. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13772 | 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] | 13773 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13774 | 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] | 13775 | fi |
| 13776 | ;; |
| 13777 | pw32*) |
| 13778 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13779 | 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] | 13780 | ;; |
| 13781 | esac |
| 13782 | ;; |
| 13783 | |
| 13784 | *) |
| 13785 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
| 13786 | ;; |
| 13787 | esac |
| 13788 | dynamic_linker='Win32 ld.exe' |
| 13789 | # FIXME: first we should search . and the directory the executable is in |
| 13790 | shlibpath_var=PATH |
| 13791 | ;; |
| 13792 | |
| 13793 | darwin* | rhapsody*) |
| 13794 | dynamic_linker="$host_os dyld" |
| 13795 | version_type=darwin |
| 13796 | need_lib_prefix=no |
| 13797 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13798 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13799 | soname_spec='${libname}${release}${major}$shared_ext' |
| 13800 | shlibpath_overrides_runpath=yes |
| 13801 | shlibpath_var=DYLD_LIBRARY_PATH |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13802 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13803 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13804 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 13805 | ;; |
| 13806 | |
| 13807 | dgux*) |
| 13808 | version_type=linux |
| 13809 | need_lib_prefix=no |
| 13810 | need_version=no |
| 13811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
| 13812 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13813 | shlibpath_var=LD_LIBRARY_PATH |
| 13814 | ;; |
| 13815 | |
| 13816 | freebsd1*) |
| 13817 | dynamic_linker=no |
| 13818 | ;; |
| 13819 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13820 | freebsd* | dragonfly*) |
| 13821 | # DragonFly does not have aout. When/if they implement a new |
| 13822 | # versioning mechanism, adjust this. |
| 13823 | if test -x /usr/bin/objformat; then |
| 13824 | objformat=`/usr/bin/objformat` |
| 13825 | else |
| 13826 | case $host_os in |
| 13827 | freebsd[123]*) objformat=aout ;; |
| 13828 | *) objformat=elf ;; |
| 13829 | esac |
| 13830 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13831 | version_type=freebsd-$objformat |
| 13832 | case $version_type in |
| 13833 | freebsd-elf*) |
| 13834 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13835 | need_version=no |
| 13836 | need_lib_prefix=no |
| 13837 | ;; |
| 13838 | freebsd-*) |
| 13839 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
| 13840 | need_version=yes |
| 13841 | ;; |
| 13842 | esac |
| 13843 | shlibpath_var=LD_LIBRARY_PATH |
| 13844 | case $host_os in |
| 13845 | freebsd2*) |
| 13846 | shlibpath_overrides_runpath=yes |
| 13847 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13848 | freebsd3.[01]* | freebsdelf3.[01]*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13849 | shlibpath_overrides_runpath=yes |
| 13850 | hardcode_into_libs=yes |
| 13851 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13852 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 13853 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13854 | shlibpath_overrides_runpath=no |
| 13855 | hardcode_into_libs=yes |
| 13856 | ;; |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13857 | *) # from 4.6 on, and DragonFly |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13858 | shlibpath_overrides_runpath=yes |
| 13859 | hardcode_into_libs=yes |
| 13860 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13861 | esac |
| 13862 | ;; |
| 13863 | |
| 13864 | gnu*) |
| 13865 | version_type=linux |
| 13866 | need_lib_prefix=no |
| 13867 | need_version=no |
| 13868 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
| 13869 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13870 | shlibpath_var=LD_LIBRARY_PATH |
| 13871 | hardcode_into_libs=yes |
| 13872 | ;; |
| 13873 | |
| 13874 | hpux9* | hpux10* | hpux11*) |
| 13875 | # Give a soname corresponding to the major version so that dld.sl refuses to |
| 13876 | # link against other versions. |
| 13877 | version_type=sunos |
| 13878 | need_lib_prefix=no |
| 13879 | need_version=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13880 | case $host_cpu in |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13881 | ia64*) |
| 13882 | shrext_cmds='.so' |
| 13883 | hardcode_into_libs=yes |
| 13884 | dynamic_linker="$host_os dld.so" |
| 13885 | shlibpath_var=LD_LIBRARY_PATH |
| 13886 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13888 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13889 | if test "X$HPUX_IA64_MODE" = X32; then |
| 13890 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 13891 | else |
| 13892 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 13893 | fi |
| 13894 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13895 | ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13896 | hppa*64*) |
| 13897 | shrext_cmds='.sl' |
| 13898 | hardcode_into_libs=yes |
| 13899 | dynamic_linker="$host_os dld.sl" |
| 13900 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 13901 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 13902 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13903 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13904 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 13905 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 13906 | ;; |
| 13907 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13908 | shrext_cmds='.sl' |
| 13909 | dynamic_linker="$host_os dld.sl" |
| 13910 | shlibpath_var=SHLIB_PATH |
| 13911 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 13912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13913 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13914 | ;; |
| 13915 | esac |
| 13916 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
| 13917 | postinstall_cmds='chmod 555 $lib' |
| 13918 | ;; |
| 13919 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 13920 | interix[3-9]*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 13921 | version_type=linux |
| 13922 | need_lib_prefix=no |
| 13923 | need_version=no |
| 13924 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 13925 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13926 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 13927 | shlibpath_var=LD_LIBRARY_PATH |
| 13928 | shlibpath_overrides_runpath=no |
| 13929 | hardcode_into_libs=yes |
| 13930 | ;; |
| 13931 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13932 | irix5* | irix6* | nonstopux*) |
| 13933 | case $host_os in |
| 13934 | nonstopux*) version_type=nonstopux ;; |
| 13935 | *) |
| 13936 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 13937 | version_type=linux |
| 13938 | else |
| 13939 | version_type=irix |
| 13940 | fi ;; |
| 13941 | esac |
| 13942 | need_lib_prefix=no |
| 13943 | need_version=no |
| 13944 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13945 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 13946 | case $host_os in |
| 13947 | irix5* | nonstopux*) |
| 13948 | libsuff= shlibsuff= |
| 13949 | ;; |
| 13950 | *) |
| 13951 | case $LD in # libtool.m4 will add one of these switches to LD |
| 13952 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 13953 | libsuff= shlibsuff= libmagic=32-bit;; |
| 13954 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 13955 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 13956 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 13957 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 13958 | *) libsuff= shlibsuff= libmagic=never-match;; |
| 13959 | esac |
| 13960 | ;; |
| 13961 | esac |
| 13962 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 13963 | shlibpath_overrides_runpath=no |
| 13964 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
| 13965 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
| 13966 | hardcode_into_libs=yes |
| 13967 | ;; |
| 13968 | |
| 13969 | # No shared lib support for Linux oldld, aout, or coff. |
| 13970 | linux*oldld* | linux*aout* | linux*coff*) |
| 13971 | dynamic_linker=no |
| 13972 | ;; |
| 13973 | |
| 13974 | # This must be Linux ELF. |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 13975 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 13976 | version_type=linux |
| 13977 | need_lib_prefix=no |
| 13978 | need_version=no |
| 13979 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 13980 | soname_spec='${libname}${release}${shared_ext}$major' |
| 13981 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 13982 | shlibpath_var=LD_LIBRARY_PATH |
| 13983 | shlibpath_overrides_runpath=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 13984 | # Some binutils ld are patched to set DT_RUNPATH |
| 13985 | save_LDFLAGS=$LDFLAGS |
| 13986 | save_libdir=$libdir |
| 13987 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ |
| 13988 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" |
| 13989 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13990 | /* end confdefs.h. */ |
| 13991 | |
| 13992 | int |
| 13993 | main () |
| 13994 | { |
| 13995 | |
| 13996 | ; |
| 13997 | return 0; |
| 13998 | } |
| 13999 | _ACEOF |
| 14000 | if ac_fn_cxx_try_link "$LINENO"; then : |
| 14001 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : |
| 14002 | shlibpath_overrides_runpath=yes |
| 14003 | fi |
| 14004 | fi |
| 14005 | rm -f core conftest.err conftest.$ac_objext \ |
| 14006 | conftest$ac_exeext conftest.$ac_ext |
| 14007 | LDFLAGS=$save_LDFLAGS |
| 14008 | libdir=$save_libdir |
| 14009 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14010 | # This implies no fast_install, which is unacceptable. |
| 14011 | # Some rework will be needed to allow for fast_install |
| 14012 | # before this can be enabled. |
| 14013 | hardcode_into_libs=yes |
| 14014 | |
| 14015 | # Append ld.so.conf contents to the search path |
| 14016 | if test -f /etc/ld.so.conf; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14017 | 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] | 14018 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 14019 | fi |
| 14020 | |
| 14021 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
| 14022 | # powerpc, because MkLinux only supported shared libraries with the |
| 14023 | # GNU dynamic linker. Since this was broken with cross compilers, |
| 14024 | # most powerpc-linux boxes support dynamic linking these days and |
| 14025 | # people can always --disable-shared, the test was removed, and we |
| 14026 | # assume the GNU/Linux dynamic linker is in use. |
| 14027 | dynamic_linker='GNU/Linux ld.so' |
| 14028 | ;; |
| 14029 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 14030 | netbsdelf*-gnu) |
| 14031 | version_type=linux |
| 14032 | need_lib_prefix=no |
| 14033 | need_version=no |
| 14034 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14035 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14036 | shlibpath_var=LD_LIBRARY_PATH |
| 14037 | shlibpath_overrides_runpath=no |
| 14038 | hardcode_into_libs=yes |
| 14039 | dynamic_linker='NetBSD ld.elf_so' |
| 14040 | ;; |
| 14041 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14042 | netbsd*) |
| 14043 | version_type=sunos |
| 14044 | need_lib_prefix=no |
| 14045 | need_version=no |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14046 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14047 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14048 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14049 | dynamic_linker='NetBSD (a.out) ld.so' |
| 14050 | else |
| 14051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 14052 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14053 | dynamic_linker='NetBSD ld.elf_so' |
| 14054 | fi |
| 14055 | shlibpath_var=LD_LIBRARY_PATH |
| 14056 | shlibpath_overrides_runpath=yes |
| 14057 | hardcode_into_libs=yes |
| 14058 | ;; |
| 14059 | |
| 14060 | newsos6) |
| 14061 | version_type=linux |
| 14062 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14063 | shlibpath_var=LD_LIBRARY_PATH |
| 14064 | shlibpath_overrides_runpath=yes |
| 14065 | ;; |
| 14066 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14067 | *nto* | *qnx*) |
| 14068 | version_type=qnx |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14069 | need_lib_prefix=no |
| 14070 | need_version=no |
| 14071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14072 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14073 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14074 | shlibpath_overrides_runpath=no |
| 14075 | hardcode_into_libs=yes |
| 14076 | dynamic_linker='ldqnx.so' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14077 | ;; |
| 14078 | |
| 14079 | openbsd*) |
| 14080 | version_type=sunos |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14081 | sys_lib_dlsearch_path_spec="/usr/lib" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14082 | need_lib_prefix=no |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14083 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
| 14084 | case $host_os in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14085 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
| 14086 | *) need_version=no ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14087 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14089 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 14090 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14091 | 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] | 14092 | case $host_os in |
| 14093 | openbsd2.[89] | openbsd2.[89].*) |
| 14094 | shlibpath_overrides_runpath=no |
| 14095 | ;; |
| 14096 | *) |
| 14097 | shlibpath_overrides_runpath=yes |
| 14098 | ;; |
| 14099 | esac |
| 14100 | else |
| 14101 | shlibpath_overrides_runpath=yes |
| 14102 | fi |
| 14103 | ;; |
| 14104 | |
| 14105 | os2*) |
| 14106 | libname_spec='$name' |
| 14107 | shrext_cmds=".dll" |
| 14108 | need_lib_prefix=no |
| 14109 | library_names_spec='$libname${shared_ext} $libname.a' |
| 14110 | dynamic_linker='OS/2 ld.exe' |
| 14111 | shlibpath_var=LIBPATH |
| 14112 | ;; |
| 14113 | |
| 14114 | osf3* | osf4* | osf5*) |
| 14115 | version_type=osf |
| 14116 | need_lib_prefix=no |
| 14117 | need_version=no |
| 14118 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14119 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14120 | shlibpath_var=LD_LIBRARY_PATH |
| 14121 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 14122 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
| 14123 | ;; |
| 14124 | |
ted.mielczarek | 1adb184 | 2009-12-21 13:12:20 +0000 | [diff] [blame] | 14125 | rdos*) |
| 14126 | dynamic_linker=no |
| 14127 | ;; |
| 14128 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14129 | solaris*) |
| 14130 | version_type=linux |
| 14131 | need_lib_prefix=no |
| 14132 | need_version=no |
| 14133 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14134 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14135 | shlibpath_var=LD_LIBRARY_PATH |
| 14136 | shlibpath_overrides_runpath=yes |
| 14137 | hardcode_into_libs=yes |
| 14138 | # ldd complains unless libraries are executable |
| 14139 | postinstall_cmds='chmod +x $lib' |
| 14140 | ;; |
| 14141 | |
| 14142 | sunos4*) |
| 14143 | version_type=sunos |
| 14144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
| 14145 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 14146 | shlibpath_var=LD_LIBRARY_PATH |
| 14147 | shlibpath_overrides_runpath=yes |
| 14148 | if test "$with_gnu_ld" = yes; then |
| 14149 | need_lib_prefix=no |
| 14150 | fi |
| 14151 | need_version=yes |
| 14152 | ;; |
| 14153 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14154 | sysv4 | sysv4.3*) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14155 | version_type=linux |
| 14156 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14157 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14158 | shlibpath_var=LD_LIBRARY_PATH |
| 14159 | case $host_vendor in |
| 14160 | sni) |
| 14161 | shlibpath_overrides_runpath=no |
| 14162 | need_lib_prefix=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14163 | runpath_var=LD_RUN_PATH |
| 14164 | ;; |
| 14165 | siemens) |
| 14166 | need_lib_prefix=no |
| 14167 | ;; |
| 14168 | motorola) |
| 14169 | need_lib_prefix=no |
| 14170 | need_version=no |
| 14171 | shlibpath_overrides_runpath=no |
| 14172 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 14173 | ;; |
| 14174 | esac |
| 14175 | ;; |
| 14176 | |
| 14177 | sysv4*MP*) |
| 14178 | if test -d /usr/nec ;then |
| 14179 | version_type=linux |
| 14180 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
| 14181 | soname_spec='$libname${shared_ext}.$major' |
| 14182 | shlibpath_var=LD_LIBRARY_PATH |
| 14183 | fi |
| 14184 | ;; |
| 14185 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14186 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 14187 | version_type=freebsd-elf |
| 14188 | need_lib_prefix=no |
| 14189 | need_version=no |
| 14190 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
| 14191 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14192 | shlibpath_var=LD_LIBRARY_PATH |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14193 | shlibpath_overrides_runpath=yes |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14194 | hardcode_into_libs=yes |
| 14195 | if test "$with_gnu_ld" = yes; then |
| 14196 | 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] | 14197 | else |
| 14198 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14199 | case $host_os in |
| 14200 | sco3.2v5*) |
| 14201 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 14202 | ;; |
| 14203 | esac |
| 14204 | fi |
| 14205 | sys_lib_dlsearch_path_spec='/usr/lib' |
| 14206 | ;; |
| 14207 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14208 | tpf*) |
| 14209 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 14210 | version_type=linux |
| 14211 | need_lib_prefix=no |
| 14212 | need_version=no |
| 14213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14214 | shlibpath_var=LD_LIBRARY_PATH |
| 14215 | shlibpath_overrides_runpath=no |
| 14216 | hardcode_into_libs=yes |
| 14217 | ;; |
| 14218 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14219 | uts4*) |
| 14220 | version_type=linux |
| 14221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
| 14222 | soname_spec='${libname}${release}${shared_ext}$major' |
| 14223 | shlibpath_var=LD_LIBRARY_PATH |
| 14224 | ;; |
| 14225 | |
| 14226 | *) |
| 14227 | dynamic_linker=no |
| 14228 | ;; |
| 14229 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 14231 | $as_echo "$dynamic_linker" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14232 | test "$dynamic_linker" = no && can_build_shared=no |
| 14233 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14234 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 14235 | if test "$GCC" = yes; then |
| 14236 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 14237 | fi |
| 14238 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14239 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
| 14240 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
| 14241 | fi |
| 14242 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
| 14243 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
| 14244 | fi |
| 14245 | |
| 14246 | |
| 14247 | |
| 14248 | |
| 14249 | |
| 14250 | |
| 14251 | |
| 14252 | |
| 14253 | |
| 14254 | |
| 14255 | |
| 14256 | |
| 14257 | |
| 14258 | |
| 14259 | |
| 14260 | |
| 14261 | |
| 14262 | |
| 14263 | |
| 14264 | |
| 14265 | |
| 14266 | |
| 14267 | |
| 14268 | |
| 14269 | |
| 14270 | |
| 14271 | |
| 14272 | |
| 14273 | |
| 14274 | |
| 14275 | |
| 14276 | |
| 14277 | |
| 14278 | |
| 14279 | |
| 14280 | |
| 14281 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 14282 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14283 | hardcode_action_CXX= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14284 | if test -n "$hardcode_libdir_flag_spec_CXX" || |
| 14285 | test -n "$runpath_var_CXX" || |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14286 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14287 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14288 | # We can hardcode non-existent directories. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14289 | if test "$hardcode_direct_CXX" != no && |
| 14290 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 14291 | # have to relink, otherwise we might link with an installed library |
| 14292 | # when we should be linking with a yet-to-be-installed one |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14293 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14294 | test "$hardcode_minus_L_CXX" != no; then |
| 14295 | # Linking always hardcodes the temporary library directory. |
| 14296 | hardcode_action_CXX=relink |
| 14297 | else |
| 14298 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 14299 | hardcode_action_CXX=immediate |
| 14300 | fi |
| 14301 | else |
| 14302 | # We cannot hardcode anything, or else we can only hardcode existing |
| 14303 | # directories. |
| 14304 | hardcode_action_CXX=unsupported |
| 14305 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 |
| 14307 | $as_echo "$hardcode_action_CXX" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14308 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14309 | if test "$hardcode_action_CXX" = relink || |
| 14310 | test "$inherit_rpath_CXX" = yes; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14311 | # Fast installation is not supported |
| 14312 | enable_fast_install=no |
| 14313 | elif test "$shlibpath_overrides_runpath" = yes || |
| 14314 | test "$enable_shared" = no; then |
| 14315 | # Fast installation is not necessary |
| 14316 | enable_fast_install=needless |
| 14317 | fi |
| 14318 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14319 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14320 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14321 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14322 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14323 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14324 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14325 | fi # test -n "$compiler" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14326 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14327 | CC=$lt_save_CC |
| 14328 | LDCXX=$LD |
| 14329 | LD=$lt_save_LD |
| 14330 | GCC=$lt_save_GCC |
| 14331 | with_gnu_ld=$lt_save_with_gnu_ld |
| 14332 | lt_cv_path_LDCXX=$lt_cv_path_LD |
| 14333 | lt_cv_path_LD=$lt_save_path_LD |
| 14334 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
| 14335 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
| 14336 | fi # test "$_lt_caught_CXX_error" != yes |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14337 | |
| 14338 | ac_ext=c |
| 14339 | ac_cpp='$CPP $CPPFLAGS' |
| 14340 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14341 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14342 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14343 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14344 | |
| 14345 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14346 | |
| 14347 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14348 | |
| 14349 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14350 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14351 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14352 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14353 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14354 | |
bryner | d5e6638 | 2006-09-08 02:35:53 +0000 | [diff] [blame] | 14355 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14356 | ac_config_commands="$ac_config_commands libtool" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14357 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14358 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14359 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14360 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14361 | # Only expand once: |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14362 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14363 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14364 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14365 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14366 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 14367 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 14368 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 14369 | $as_echo_n "(cached) " >&6 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14370 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14371 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14372 | /* end confdefs.h. */ |
| 14373 | #include <stdlib.h> |
| 14374 | #include <stdarg.h> |
| 14375 | #include <string.h> |
| 14376 | #include <float.h> |
| 14377 | |
| 14378 | int |
| 14379 | main () |
| 14380 | { |
| 14381 | |
| 14382 | ; |
| 14383 | return 0; |
| 14384 | } |
| 14385 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14386 | if ac_fn_c_try_compile "$LINENO"; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14387 | ac_cv_header_stdc=yes |
| 14388 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14389 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14390 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14391 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14392 | |
| 14393 | if test $ac_cv_header_stdc = yes; then |
| 14394 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14396 | /* end confdefs.h. */ |
| 14397 | #include <string.h> |
| 14398 | |
| 14399 | _ACEOF |
| 14400 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14401 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 14402 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14403 | else |
| 14404 | ac_cv_header_stdc=no |
| 14405 | fi |
| 14406 | rm -f conftest* |
| 14407 | |
| 14408 | fi |
| 14409 | |
| 14410 | if test $ac_cv_header_stdc = yes; then |
| 14411 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14413 | /* end confdefs.h. */ |
| 14414 | #include <stdlib.h> |
| 14415 | |
| 14416 | _ACEOF |
| 14417 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14418 | $EGREP "free" >/dev/null 2>&1; then : |
| 14419 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14420 | else |
| 14421 | ac_cv_header_stdc=no |
| 14422 | fi |
| 14423 | rm -f conftest* |
| 14424 | |
| 14425 | fi |
| 14426 | |
| 14427 | if test $ac_cv_header_stdc = yes; then |
| 14428 | # /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] | 14429 | if test "$cross_compiling" = yes; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14430 | : |
| 14431 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14433 | /* end confdefs.h. */ |
| 14434 | #include <ctype.h> |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14435 | #include <stdlib.h> |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14436 | #if ((' ' & 0x0FF) == 0x020) |
| 14437 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 14438 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 14439 | #else |
| 14440 | # define ISLOWER(c) \ |
| 14441 | (('a' <= (c) && (c) <= 'i') \ |
| 14442 | || ('j' <= (c) && (c) <= 'r') \ |
| 14443 | || ('s' <= (c) && (c) <= 'z')) |
| 14444 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 14445 | #endif |
| 14446 | |
| 14447 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 14448 | int |
| 14449 | main () |
| 14450 | { |
| 14451 | int i; |
| 14452 | for (i = 0; i < 256; i++) |
| 14453 | if (XOR (islower (i), ISLOWER (i)) |
| 14454 | || toupper (i) != TOUPPER (i)) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14455 | return 2; |
| 14456 | return 0; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14457 | } |
| 14458 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14459 | if ac_fn_c_try_run "$LINENO"; then : |
| 14460 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14461 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14462 | ac_cv_header_stdc=no |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14463 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14464 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14465 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14466 | fi |
| 14467 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14468 | fi |
| 14469 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 14471 | $as_echo "$ac_cv_header_stdc" >&6; } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14472 | if test $ac_cv_header_stdc = yes; then |
| 14473 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14474 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14475 | |
| 14476 | fi |
| 14477 | |
nealsid | de545c0 | 2010-03-02 00:39:48 +0000 | [diff] [blame] | 14478 | # =========================================================================== |
| 14479 | # http://www.nongnu.org/autoconf-archive/ax_pthread.html |
| 14480 | # =========================================================================== |
| 14481 | # |
| 14482 | # SYNOPSIS |
| 14483 | # |
| 14484 | # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
| 14485 | # |
| 14486 | # DESCRIPTION |
| 14487 | # |
| 14488 | # This macro figures out how to build C programs using POSIX threads. It |
| 14489 | # sets the PTHREAD_LIBS output variable to the threads library and linker |
| 14490 | # flags, and the PTHREAD_CFLAGS output variable to any special C compiler |
| 14491 | # flags that are needed. (The user can also force certain compiler |
| 14492 | # flags/libs to be tested by setting these environment variables.) |
| 14493 | # |
| 14494 | # Also sets PTHREAD_CC to any special C compiler that is needed for |
| 14495 | # multi-threaded programs (defaults to the value of CC otherwise). (This |
| 14496 | # is necessary on AIX to use the special cc_r compiler alias.) |
| 14497 | # |
| 14498 | # NOTE: You are assumed to not only compile your program with these flags, |
| 14499 | # but also link it with them as well. e.g. you should link with |
| 14500 | # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS |
| 14501 | # |
| 14502 | # If you are only building threads programs, you may wish to use these |
| 14503 | # variables in your default LIBS, CFLAGS, and CC: |
| 14504 | # |
| 14505 | # LIBS="$PTHREAD_LIBS $LIBS" |
| 14506 | # CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14507 | # CC="$PTHREAD_CC" |
| 14508 | # |
| 14509 | # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant |
| 14510 | # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name |
| 14511 | # (e.g. PTHREAD_CREATE_UNDETACHED on AIX). |
| 14512 | # |
| 14513 | # ACTION-IF-FOUND is a list of shell commands to run if a threads library |
| 14514 | # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it |
| 14515 | # is not found. If ACTION-IF-FOUND is not specified, the default action |
| 14516 | # will define HAVE_PTHREAD. |
| 14517 | # |
| 14518 | # Please let the authors know if this macro fails on any platform, or if |
| 14519 | # you have any other suggestions or comments. This macro was based on work |
| 14520 | # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help |
| 14521 | # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by |
| 14522 | # Alejandro Forero Cuervo to the autoconf macro repository. We are also |
| 14523 | # grateful for the helpful feedback of numerous users. |
| 14524 | # |
| 14525 | # LICENSE |
| 14526 | # |
| 14527 | # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> |
| 14528 | # |
| 14529 | # This program is free software: you can redistribute it and/or modify it |
| 14530 | # under the terms of the GNU General Public License as published by the |
| 14531 | # Free Software Foundation, either version 3 of the License, or (at your |
| 14532 | # option) any later version. |
| 14533 | # |
| 14534 | # This program is distributed in the hope that it will be useful, but |
| 14535 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14536 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General |
| 14537 | # Public License for more details. |
| 14538 | # |
| 14539 | # You should have received a copy of the GNU General Public License along |
| 14540 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
| 14541 | # |
| 14542 | # As a special exception, the respective Autoconf Macro's copyright owner |
| 14543 | # gives unlimited permission to copy, distribute and modify the configure |
| 14544 | # scripts that are the output of Autoconf when processing the Macro. You |
| 14545 | # need not follow the terms of the GNU General Public License when using |
| 14546 | # or distributing such scripts, even though portions of the text of the |
| 14547 | # Macro appear in them. The GNU General Public License (GPL) does govern |
| 14548 | # all other use of the material that constitutes the Autoconf Macro. |
| 14549 | # |
| 14550 | # This special exception to the GPL applies to versions of the Autoconf |
| 14551 | # Macro released by the Autoconf Archive. When you make and distribute a |
| 14552 | # modified version of the Autoconf Macro, you may extend this special |
| 14553 | # exception to the GPL to apply to your modified version as well. |
| 14554 | |
| 14555 | #serial 6 |
| 14556 | |
| 14557 | # This is what autoupdate's m4 run will expand. It fires |
| 14558 | # the warning (with _au_warn_XXX), outputs it into the |
| 14559 | # updated configure.ac (with AC_DIAGNOSE), and then outputs |
| 14560 | # the replacement expansion. |
| 14561 | |
| 14562 | |
| 14563 | # This is an auxiliary macro that is also run when |
| 14564 | # autoupdate runs m4. It simply calls m4_warning, but |
| 14565 | # we need a wrapper so that each warning is emitted only |
| 14566 | # once. We break the quoting in m4_warning's argument in |
| 14567 | # order to expand this macro's arguments, not AU_DEFUN's. |
| 14568 | |
| 14569 | |
| 14570 | # Finally, this is the expansion that is picked up by |
| 14571 | # autoconf. It tells the user to run autoupdate, and |
| 14572 | # then outputs the replacement expansion. We do not care |
| 14573 | # about autoupdate's warning because that contains |
| 14574 | # information on what to do *after* running autoupdate. |
| 14575 | |
| 14576 | |
| 14577 | |
| 14578 | |
| 14579 | ac_ext=c |
| 14580 | ac_cpp='$CPP $CPPFLAGS' |
| 14581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14584 | |
| 14585 | ax_pthread_ok=no |
| 14586 | |
| 14587 | # We used to check for pthread.h first, but this fails if pthread.h |
| 14588 | # requires special compiler flags (e.g. on True64 or Sequent). |
| 14589 | # It gets checked for in the link test anyway. |
| 14590 | |
| 14591 | # First of all, check if the user has set any of the PTHREAD_LIBS, |
| 14592 | # etcetera environment variables, and if threads linking works using |
| 14593 | # them: |
| 14594 | if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then |
| 14595 | save_CFLAGS="$CFLAGS" |
| 14596 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14597 | save_LIBS="$LIBS" |
| 14598 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 |
| 14600 | $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } |
| 14601 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14602 | /* end confdefs.h. */ |
| 14603 | |
| 14604 | /* Override any GCC internal prototype to avoid an error. |
| 14605 | Use char because int might match the return type of a GCC |
| 14606 | builtin and then its argument prototype would still apply. */ |
| 14607 | #ifdef __cplusplus |
| 14608 | extern "C" |
| 14609 | #endif |
| 14610 | char pthread_join (); |
| 14611 | int |
| 14612 | main () |
| 14613 | { |
| 14614 | return pthread_join (); |
| 14615 | ; |
| 14616 | return 0; |
| 14617 | } |
| 14618 | _ACEOF |
| 14619 | if ac_fn_c_try_link "$LINENO"; then : |
| 14620 | ax_pthread_ok=yes |
| 14621 | fi |
| 14622 | rm -f core conftest.err conftest.$ac_objext \ |
| 14623 | conftest$ac_exeext conftest.$ac_ext |
| 14624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 14625 | $as_echo "$ax_pthread_ok" >&6; } |
| 14626 | if test x"$ax_pthread_ok" = xno; then |
| 14627 | PTHREAD_LIBS="" |
| 14628 | PTHREAD_CFLAGS="" |
| 14629 | fi |
| 14630 | LIBS="$save_LIBS" |
| 14631 | CFLAGS="$save_CFLAGS" |
| 14632 | fi |
| 14633 | |
| 14634 | # We must check for the threads library under a number of different |
| 14635 | # names; the ordering is very important because some systems |
| 14636 | # (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 14637 | # libraries is broken (non-POSIX). |
| 14638 | |
| 14639 | # Create a list of thread flags to try. Items starting with a "-" are |
| 14640 | # C compiler flags, and other items are library names, except for "none" |
| 14641 | # which indicates that we try without any flags at all, and "pthread-config" |
| 14642 | # which is a program returning the flags for the Pth emulation library. |
| 14643 | |
| 14644 | ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 14645 | |
| 14646 | # The ordering *is* (sometimes) important. Some notes on the |
| 14647 | # individual items follow: |
| 14648 | |
| 14649 | # pthreads: AIX (must check this before -lpthread) |
| 14650 | # none: in case threads are in libc; should be tried before -Kthread and |
| 14651 | # other compiler flags to prevent continual compiler warnings |
| 14652 | # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 14653 | # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 14654 | # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 14655 | # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) |
| 14656 | # -pthreads: Solaris/gcc |
| 14657 | # -mthreads: Mingw32/gcc, Lynx/gcc |
| 14658 | # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 14659 | # doesn't hurt to check since this sometimes defines pthreads too; |
| 14660 | # also defines -D_REENTRANT) |
| 14661 | # ... -mt is also the pthreads flag for HP/aCC |
| 14662 | # pthread: Linux, etcetera |
| 14663 | # --thread-safe: KAI C++ |
| 14664 | # pthread-config: use pthread-config program (for GNU Pth library) |
| 14665 | |
| 14666 | case "${host_cpu}-${host_os}" in |
| 14667 | *solaris*) |
| 14668 | |
| 14669 | # On Solaris (at least, for some versions), libc contains stubbed |
| 14670 | # (non-functional) versions of the pthreads routines, so link-based |
| 14671 | # tests will erroneously succeed. (We need to link with -pthreads/-mt/ |
| 14672 | # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather |
| 14673 | # a function called by this macro, so we could check for that, but |
| 14674 | # who knows whether they'll stub that too in a future libc.) So, |
| 14675 | # we'll just look for -pthreads and -lpthread first: |
| 14676 | |
| 14677 | ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" |
| 14678 | ;; |
| 14679 | |
| 14680 | *-darwin*) |
| 14681 | acx_pthread_flags="-pthread $acx_pthread_flags" |
| 14682 | ;; |
| 14683 | esac |
| 14684 | |
| 14685 | if test x"$ax_pthread_ok" = xno; then |
| 14686 | for flag in $ax_pthread_flags; do |
| 14687 | |
| 14688 | case $flag in |
| 14689 | none) |
| 14690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 14691 | $as_echo_n "checking whether pthreads work without any flags... " >&6; } |
| 14692 | ;; |
| 14693 | |
| 14694 | -*) |
| 14695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 |
| 14696 | $as_echo_n "checking whether pthreads work with $flag... " >&6; } |
| 14697 | PTHREAD_CFLAGS="$flag" |
| 14698 | ;; |
| 14699 | |
| 14700 | pthread-config) |
| 14701 | # Extract the first word of "pthread-config", so it can be a program name with args. |
| 14702 | set dummy pthread-config; ac_word=$2 |
| 14703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14704 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14705 | if test "${ac_cv_prog_ax_pthread_config+set}" = set; then : |
| 14706 | $as_echo_n "(cached) " >&6 |
| 14707 | else |
| 14708 | if test -n "$ax_pthread_config"; then |
| 14709 | ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 14710 | else |
| 14711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14712 | for as_dir in $PATH |
| 14713 | do |
| 14714 | IFS=$as_save_IFS |
| 14715 | test -z "$as_dir" && as_dir=. |
| 14716 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 14718 | ac_cv_prog_ax_pthread_config="yes" |
| 14719 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14720 | break 2 |
| 14721 | fi |
| 14722 | done |
| 14723 | done |
| 14724 | IFS=$as_save_IFS |
| 14725 | |
| 14726 | test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 14727 | fi |
| 14728 | fi |
| 14729 | ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 14730 | if test -n "$ax_pthread_config"; then |
| 14731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 14732 | $as_echo "$ax_pthread_config" >&6; } |
| 14733 | else |
| 14734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14735 | $as_echo "no" >&6; } |
| 14736 | fi |
| 14737 | |
| 14738 | |
| 14739 | if test x"$ax_pthread_config" = xno; then continue; fi |
| 14740 | PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 14741 | PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 14742 | ;; |
| 14743 | |
| 14744 | *) |
| 14745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 |
| 14746 | $as_echo_n "checking for the pthreads library -l$flag... " >&6; } |
| 14747 | PTHREAD_LIBS="-l$flag" |
| 14748 | ;; |
| 14749 | esac |
| 14750 | |
| 14751 | save_LIBS="$LIBS" |
| 14752 | save_CFLAGS="$CFLAGS" |
| 14753 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14754 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14755 | |
| 14756 | # Check for various functions. We must include pthread.h, |
| 14757 | # since some functions may be macros. (On the Sequent, we |
| 14758 | # need a special flag -Kthread to make this header compile.) |
| 14759 | # We check for pthread_join because it is in -lpthread on IRIX |
| 14760 | # while pthread_create is in libc. We check for pthread_attr_init |
| 14761 | # due to DEC craziness with -lpthreads. We check for |
| 14762 | # pthread_cleanup_push because it is one of the few pthread |
| 14763 | # functions on Solaris that doesn't have a non-functional libc stub. |
| 14764 | # We try pthread_create on general principles. |
| 14765 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14766 | /* end confdefs.h. */ |
| 14767 | #include <pthread.h> |
| 14768 | static void routine(void* a) {a=0;} |
| 14769 | static void* start_routine(void* a) {return a;} |
| 14770 | int |
| 14771 | main () |
| 14772 | { |
| 14773 | pthread_t th; pthread_attr_t attr; |
| 14774 | pthread_join(th, 0); |
| 14775 | pthread_attr_init(&attr); |
| 14776 | pthread_cleanup_push(routine, 0); |
| 14777 | pthread_create(&th,0,start_routine,0); |
| 14778 | pthread_cleanup_pop(0); |
| 14779 | ; |
| 14780 | return 0; |
| 14781 | } |
| 14782 | _ACEOF |
| 14783 | if ac_fn_c_try_link "$LINENO"; then : |
| 14784 | ax_pthread_ok=yes |
| 14785 | fi |
| 14786 | rm -f core conftest.err conftest.$ac_objext \ |
| 14787 | conftest$ac_exeext conftest.$ac_ext |
| 14788 | |
| 14789 | LIBS="$save_LIBS" |
| 14790 | CFLAGS="$save_CFLAGS" |
| 14791 | |
| 14792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 14793 | $as_echo "$ax_pthread_ok" >&6; } |
| 14794 | if test "x$ax_pthread_ok" = xyes; then |
| 14795 | break; |
| 14796 | fi |
| 14797 | |
| 14798 | PTHREAD_LIBS="" |
| 14799 | PTHREAD_CFLAGS="" |
| 14800 | done |
| 14801 | fi |
| 14802 | |
| 14803 | # Various other checks: |
| 14804 | if test "x$ax_pthread_ok" = xyes; then |
| 14805 | save_LIBS="$LIBS" |
| 14806 | LIBS="$PTHREAD_LIBS $LIBS" |
| 14807 | save_CFLAGS="$CFLAGS" |
| 14808 | CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 14809 | |
| 14810 | # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 14811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 14812 | $as_echo_n "checking for joinable pthread attribute... " >&6; } |
| 14813 | attr_name=unknown |
| 14814 | for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 14815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14816 | /* end confdefs.h. */ |
| 14817 | #include <pthread.h> |
| 14818 | int |
| 14819 | main () |
| 14820 | { |
| 14821 | int attr=$attr; return attr; |
| 14822 | ; |
| 14823 | return 0; |
| 14824 | } |
| 14825 | _ACEOF |
| 14826 | if ac_fn_c_try_link "$LINENO"; then : |
| 14827 | attr_name=$attr; break |
| 14828 | fi |
| 14829 | rm -f core conftest.err conftest.$ac_objext \ |
| 14830 | conftest$ac_exeext conftest.$ac_ext |
| 14831 | done |
| 14832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 |
| 14833 | $as_echo "$attr_name" >&6; } |
| 14834 | if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then |
| 14835 | |
| 14836 | cat >>confdefs.h <<_ACEOF |
| 14837 | #define PTHREAD_CREATE_JOINABLE $attr_name |
| 14838 | _ACEOF |
| 14839 | |
| 14840 | fi |
| 14841 | |
| 14842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 |
| 14843 | $as_echo_n "checking if more special flags are required for pthreads... " >&6; } |
| 14844 | flag=no |
| 14845 | case "${host_cpu}-${host_os}" in |
| 14846 | *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";; |
| 14847 | *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";; |
| 14848 | esac |
| 14849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 |
| 14850 | $as_echo "${flag}" >&6; } |
| 14851 | if test "x$flag" != xno; then |
| 14852 | PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" |
| 14853 | fi |
| 14854 | |
| 14855 | LIBS="$save_LIBS" |
| 14856 | CFLAGS="$save_CFLAGS" |
| 14857 | |
| 14858 | # More AIX lossage: must compile with xlc_r or cc_r |
| 14859 | if test x"$GCC" != xyes; then |
| 14860 | for ac_prog in xlc_r cc_r |
| 14861 | do |
| 14862 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 14863 | set dummy $ac_prog; ac_word=$2 |
| 14864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 14865 | $as_echo_n "checking for $ac_word... " >&6; } |
| 14866 | if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then : |
| 14867 | $as_echo_n "(cached) " >&6 |
| 14868 | else |
| 14869 | if test -n "$PTHREAD_CC"; then |
| 14870 | ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 14871 | else |
| 14872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 14873 | for as_dir in $PATH |
| 14874 | do |
| 14875 | IFS=$as_save_IFS |
| 14876 | test -z "$as_dir" && as_dir=. |
| 14877 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 14878 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 14879 | ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 14880 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 14881 | break 2 |
| 14882 | fi |
| 14883 | done |
| 14884 | done |
| 14885 | IFS=$as_save_IFS |
| 14886 | |
| 14887 | fi |
| 14888 | fi |
| 14889 | PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 14890 | if test -n "$PTHREAD_CC"; then |
| 14891 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 14892 | $as_echo "$PTHREAD_CC" >&6; } |
| 14893 | else |
| 14894 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14895 | $as_echo "no" >&6; } |
| 14896 | fi |
| 14897 | |
| 14898 | |
| 14899 | test -n "$PTHREAD_CC" && break |
| 14900 | done |
| 14901 | test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" |
| 14902 | |
| 14903 | else |
| 14904 | PTHREAD_CC=$CC |
| 14905 | fi |
| 14906 | else |
| 14907 | PTHREAD_CC="$CC" |
| 14908 | fi |
| 14909 | |
| 14910 | |
| 14911 | |
| 14912 | |
| 14913 | |
| 14914 | # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 14915 | if test x"$ax_pthread_ok" = xyes; then |
| 14916 | |
| 14917 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 14918 | |
| 14919 | : |
| 14920 | else |
| 14921 | ax_pthread_ok=no |
| 14922 | |
| 14923 | fi |
| 14924 | ac_ext=c |
| 14925 | ac_cpp='$CPP $CPPFLAGS' |
| 14926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14929 | |
| 14930 | |
| 14931 | |
| 14932 | # Check whether --enable-m32 was given. |
| 14933 | if test "${enable_m32+set}" = set; then : |
| 14934 | enableval=$enable_m32; case "${enableval}" in |
| 14935 | yes) |
| 14936 | CFLAGS=$(CFLAGS) -m32 |
| 14937 | usem32=true |
| 14938 | ;; |
| 14939 | no) |
| 14940 | usem32=false |
| 14941 | ;; |
| 14942 | *) |
| 14943 | as_fn_error "bad value ${enableval} for --enable-m32" "$LINENO" 5 |
| 14944 | ;; |
| 14945 | esac |
| 14946 | else |
| 14947 | usem32=false |
| 14948 | fi |
| 14949 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14950 | |
ted.mielczarek | b223627 | 2010-04-08 23:06:23 +0000 | [diff] [blame] | 14951 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> |
| 14952 | " |
| 14953 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
| 14954 | |
| 14955 | $as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_len)" >>confdefs.h |
| 14956 | |
| 14957 | else |
| 14958 | |
| 14959 | $as_echo "#define GET_SA_LEN(X) (((struct sockaddr*)&(X))->sa_family == AF_INET ? sizeof(struct sockaddr_in) : \\ |
| 14960 | ((struct sockaddr*)&(X))->sa_family == AF_INET6 ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr))" >>confdefs.h |
| 14961 | |
| 14962 | fi |
| 14963 | |
| 14964 | |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14965 | # Check whether --enable-selftest was given. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14966 | if test "${enable_selftest+set}" = set; then : |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14967 | enableval=$enable_selftest; case "${enableval}" in |
| 14968 | yes) |
| 14969 | selftest=true |
| 14970 | ;; |
| 14971 | no) |
| 14972 | selftest=false |
| 14973 | ;; |
| 14974 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 14975 | as_fn_error "bad value ${enableval} for --enable-selftest" "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14976 | ;; |
| 14977 | esac |
| 14978 | else |
| 14979 | selftest=false |
| 14980 | fi |
| 14981 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 14982 | if test x$selftest = xtrue; then |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 14983 | SELFTEST_TRUE= |
| 14984 | SELFTEST_FALSE='#' |
| 14985 | else |
| 14986 | SELFTEST_TRUE='#' |
| 14987 | SELFTEST_FALSE= |
| 14988 | fi |
| 14989 | |
| 14990 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 14991 | ac_config_files="$ac_config_files Makefile" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 14992 | |
| 14993 | cat >confcache <<\_ACEOF |
| 14994 | # This file is a shell script that caches the results of configure |
| 14995 | # tests run on this system so they can be shared between configure |
| 14996 | # scripts and configure runs, see configure's option --config-cache. |
| 14997 | # It is not useful on other systems. If it contains results you don't |
| 14998 | # want to keep, you may remove or edit it. |
| 14999 | # |
| 15000 | # config.status only pays attention to the cache file if you give it |
| 15001 | # the --recheck option to rerun configure. |
| 15002 | # |
| 15003 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 15004 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 15005 | # following values. |
| 15006 | |
| 15007 | _ACEOF |
| 15008 | |
| 15009 | # The following way of writing the cache mishandles newlines in values, |
| 15010 | # but we know of no workaround that is simple, portable, and efficient. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15011 | # So, we kill variables containing newlines. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15012 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 15013 | # 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] | 15014 | ( |
| 15015 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 15016 | eval ac_val=\$$ac_var |
| 15017 | case $ac_val in #( |
| 15018 | *${as_nl}*) |
| 15019 | case $ac_var in #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15020 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 15021 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15022 | esac |
| 15023 | case $ac_var in #( |
| 15024 | _ | IFS | as_nl) ;; #( |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15025 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 15026 | *) { eval $ac_var=; unset $ac_var;} ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15027 | esac ;; |
| 15028 | esac |
| 15029 | done |
| 15030 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15031 | (set) 2>&1 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15032 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 15033 | *${as_nl}ac_space=\ *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15034 | # `set' does not quote correctly, so add quotes: double-quote |
| 15035 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15036 | sed -n \ |
| 15037 | "s/'/'\\\\''/g; |
| 15038 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15039 | ;; #( |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15040 | *) |
| 15041 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15042 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15043 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15044 | esac | |
| 15045 | sort |
| 15046 | ) | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15047 | sed ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15048 | /^ac_cv_env_/b end |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15049 | t clear |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15050 | :clear |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15051 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 15052 | t end |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15053 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 15054 | :end' >>confcache |
| 15055 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 15056 | if test -w "$cache_file"; then |
| 15057 | test "x$cache_file" != "x/dev/null" && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15058 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 15059 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15060 | cat confcache >$cache_file |
| 15061 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15062 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 15063 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15064 | fi |
| 15065 | fi |
| 15066 | rm -f confcache |
| 15067 | |
| 15068 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 15069 | # Let make expand exec_prefix. |
| 15070 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 15071 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15072 | DEFS=-DHAVE_CONFIG_H |
| 15073 | |
| 15074 | ac_libobjs= |
| 15075 | ac_ltlibobjs= |
| 15076 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 15077 | # 1. Remove the extension, and $U if already installed. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15078 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15079 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15080 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 15081 | # will be set to the directory where LIBOBJS objects are built. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15082 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 15083 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15084 | done |
| 15085 | LIBOBJS=$ac_libobjs |
| 15086 | |
| 15087 | LTLIBOBJS=$ac_ltlibobjs |
| 15088 | |
| 15089 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15090 | if test -n "$EXEEXT"; then |
| 15091 | am__EXEEXT_TRUE= |
| 15092 | am__EXEEXT_FALSE='#' |
| 15093 | else |
| 15094 | am__EXEEXT_TRUE='#' |
| 15095 | am__EXEEXT_FALSE= |
| 15096 | fi |
| 15097 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15098 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15099 | as_fn_error "conditional \"AMDEP\" was never defined. |
| 15100 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15101 | fi |
| 15102 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15103 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 15104 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15105 | fi |
| 15106 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15107 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 15108 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 15109 | fi |
| 15110 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
| 15111 | as_fn_error "conditional \"am__fastdepCXX\" was never defined. |
| 15112 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15113 | fi |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15114 | if test -z "${SELFTEST_TRUE}" && test -z "${SELFTEST_FALSE}"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15115 | as_fn_error "conditional \"SELFTEST\" was never defined. |
| 15116 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
mmentovai | 0dbedc9 | 2006-09-25 21:16:15 +0000 | [diff] [blame] | 15117 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15118 | |
| 15119 | : ${CONFIG_STATUS=./config.status} |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15120 | ac_write_fail=0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15121 | ac_clean_files_save=$ac_clean_files |
| 15122 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15123 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 15124 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 15125 | as_write_fail=0 |
| 15126 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15127 | #! $SHELL |
| 15128 | # Generated by $as_me. |
| 15129 | # Run this file to recreate the current configuration. |
| 15130 | # Compiler output produced by configure, useful for debugging |
| 15131 | # configure, is in config.log if it exists. |
| 15132 | |
| 15133 | debug=false |
| 15134 | ac_cs_recheck=false |
| 15135 | ac_cs_silent=false |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15136 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15137 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 15138 | export SHELL |
| 15139 | _ASEOF |
| 15140 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 15141 | ## -------------------- ## |
| 15142 | ## M4sh Initialization. ## |
| 15143 | ## -------------------- ## |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15144 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15145 | # Be more Bourne compatible |
| 15146 | DUALCASE=1; export DUALCASE # for MKS sh |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15147 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15148 | emulate sh |
| 15149 | NULLCMD=: |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15150 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15151 | # is contrary to our usage. Disable this feature. |
| 15152 | alias -g '${1+"$@"}'='"$@"' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15153 | setopt NO_GLOB_SUBST |
| 15154 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15155 | case `(set -o) 2>/dev/null` in #( |
| 15156 | *posix*) : |
| 15157 | set -o posix ;; #( |
| 15158 | *) : |
| 15159 | ;; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15160 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15161 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15162 | |
| 15163 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15164 | as_nl=' |
| 15165 | ' |
| 15166 | export as_nl |
| 15167 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 15168 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 15169 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15170 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 15171 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 15172 | # but without wasting forks for bash or zsh. |
| 15173 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 15174 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15175 | as_echo='print -r --' |
| 15176 | as_echo_n='print -rn --' |
| 15177 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 15178 | as_echo='printf %s\n' |
| 15179 | as_echo_n='printf %s' |
| 15180 | else |
| 15181 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 15182 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 15183 | as_echo_n='/usr/ucb/echo -n' |
| 15184 | else |
| 15185 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 15186 | as_echo_n_body='eval |
| 15187 | arg=$1; |
| 15188 | case $arg in #( |
| 15189 | *"$as_nl"*) |
| 15190 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 15191 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 15192 | esac; |
| 15193 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 15194 | ' |
| 15195 | export as_echo_n_body |
| 15196 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 15197 | fi |
| 15198 | export as_echo_body |
| 15199 | as_echo='sh -c $as_echo_body as_echo' |
| 15200 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15201 | |
| 15202 | # The user is always right. |
| 15203 | if test "${PATH_SEPARATOR+set}" != set; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15204 | PATH_SEPARATOR=: |
| 15205 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 15206 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 15207 | PATH_SEPARATOR=';' |
| 15208 | } |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15209 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15210 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15211 | |
| 15212 | # IFS |
| 15213 | # We need space, tab and new line, in precisely that order. Quoting is |
| 15214 | # there to prevent editors from complaining about space-tab. |
| 15215 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 15216 | # splitting by setting IFS to empty value.) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15217 | IFS=" "" $as_nl" |
| 15218 | |
| 15219 | # 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] | 15220 | case $0 in #(( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15221 | *[\\/]* ) as_myself=$0 ;; |
| 15222 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15223 | for as_dir in $PATH |
| 15224 | do |
| 15225 | IFS=$as_save_IFS |
| 15226 | test -z "$as_dir" && as_dir=. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15227 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 15228 | done |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15229 | IFS=$as_save_IFS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15230 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15231 | ;; |
| 15232 | esac |
| 15233 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 15234 | # in which case we are not to be found in the path. |
| 15235 | if test "x$as_myself" = x; then |
| 15236 | as_myself=$0 |
| 15237 | fi |
| 15238 | if test ! -f "$as_myself"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15239 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 15240 | exit 1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15241 | fi |
| 15242 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15243 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 15244 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 15245 | # suppresses any "Segmentation fault" message there. '((' could |
| 15246 | # trigger a bug in pdksh 5.2.14. |
| 15247 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 15248 | do eval test x\${$as_var+set} = xset \ |
| 15249 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15250 | done |
| 15251 | PS1='$ ' |
| 15252 | PS2='> ' |
| 15253 | PS4='+ ' |
| 15254 | |
| 15255 | # NLS nuisances. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15256 | LC_ALL=C |
| 15257 | export LC_ALL |
| 15258 | LANGUAGE=C |
| 15259 | export LANGUAGE |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15260 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15261 | # CDPATH. |
| 15262 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15263 | |
| 15264 | |
| 15265 | # as_fn_error ERROR [LINENO LOG_FD] |
| 15266 | # --------------------------------- |
| 15267 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 15268 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 15269 | # script with status $?, using 1 if that was 0. |
| 15270 | as_fn_error () |
| 15271 | { |
| 15272 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 15273 | if test "$3"; then |
| 15274 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 15275 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 15276 | fi |
| 15277 | $as_echo "$as_me: error: $1" >&2 |
| 15278 | as_fn_exit $as_status |
| 15279 | } # as_fn_error |
| 15280 | |
| 15281 | |
| 15282 | # as_fn_set_status STATUS |
| 15283 | # ----------------------- |
| 15284 | # Set $? to STATUS, without forking. |
| 15285 | as_fn_set_status () |
| 15286 | { |
| 15287 | return $1 |
| 15288 | } # as_fn_set_status |
| 15289 | |
| 15290 | # as_fn_exit STATUS |
| 15291 | # ----------------- |
| 15292 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 15293 | as_fn_exit () |
| 15294 | { |
| 15295 | set +e |
| 15296 | as_fn_set_status $1 |
| 15297 | exit $1 |
| 15298 | } # as_fn_exit |
| 15299 | |
| 15300 | # as_fn_unset VAR |
| 15301 | # --------------- |
| 15302 | # Portably unset VAR. |
| 15303 | as_fn_unset () |
| 15304 | { |
| 15305 | { eval $1=; unset $1;} |
| 15306 | } |
| 15307 | as_unset=as_fn_unset |
| 15308 | # as_fn_append VAR VALUE |
| 15309 | # ---------------------- |
| 15310 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 15311 | # advantage of any shell optimizations that allow amortized linear growth over |
| 15312 | # repeated appends, instead of the typical quadratic growth present in naive |
| 15313 | # implementations. |
| 15314 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 15315 | eval 'as_fn_append () |
| 15316 | { |
| 15317 | eval $1+=\$2 |
| 15318 | }' |
| 15319 | else |
| 15320 | as_fn_append () |
| 15321 | { |
| 15322 | eval $1=\$$1\$2 |
| 15323 | } |
| 15324 | fi # as_fn_append |
| 15325 | |
| 15326 | # as_fn_arith ARG... |
| 15327 | # ------------------ |
| 15328 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 15329 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 15330 | # must be portable across $(()) and expr. |
| 15331 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 15332 | eval 'as_fn_arith () |
| 15333 | { |
| 15334 | as_val=$(( $* )) |
| 15335 | }' |
| 15336 | else |
| 15337 | as_fn_arith () |
| 15338 | { |
| 15339 | as_val=`expr "$@" || test $? -eq 1` |
| 15340 | } |
| 15341 | fi # as_fn_arith |
| 15342 | |
| 15343 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15344 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 15345 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 15346 | as_expr=expr |
| 15347 | else |
| 15348 | as_expr=false |
| 15349 | fi |
| 15350 | |
| 15351 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 15352 | as_basename=basename |
| 15353 | else |
| 15354 | as_basename=false |
| 15355 | fi |
| 15356 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15357 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 15358 | as_dirname=dirname |
| 15359 | else |
| 15360 | as_dirname=false |
| 15361 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15362 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15363 | as_me=`$as_basename -- "$0" || |
| 15364 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 15365 | X"$0" : 'X\(//\)$' \| \ |
| 15366 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15367 | $as_echo X/"$0" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15368 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 15369 | s//\1/ |
| 15370 | q |
| 15371 | } |
| 15372 | /^X\/\(\/\/\)$/{ |
| 15373 | s//\1/ |
| 15374 | q |
| 15375 | } |
| 15376 | /^X\/\(\/\).*/{ |
| 15377 | s//\1/ |
| 15378 | q |
| 15379 | } |
| 15380 | s/.*/./; q'` |
| 15381 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15382 | # Avoid depending upon Character Ranges. |
| 15383 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 15384 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 15385 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 15386 | as_cr_digits='0123456789' |
| 15387 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15388 | |
| 15389 | ECHO_C= ECHO_N= ECHO_T= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15390 | case `echo -n x` in #((((( |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15391 | -n*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15392 | case `echo 'xy\c'` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15393 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15394 | xy) ECHO_C='\c';; |
| 15395 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 15396 | ECHO_T=' ';; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15397 | esac;; |
| 15398 | *) |
| 15399 | ECHO_N='-n';; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15400 | esac |
| 15401 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15402 | rm -f conf$$ conf$$.exe conf$$.file |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15403 | if test -d conf$$.dir; then |
| 15404 | rm -f conf$$.dir/conf$$.file |
| 15405 | else |
| 15406 | rm -f conf$$.dir |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15407 | mkdir conf$$.dir 2>/dev/null |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15408 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15409 | if (echo >conf$$.file) 2>/dev/null; then |
| 15410 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 15411 | as_ln_s='ln -s' |
| 15412 | # ... but there are two gotchas: |
| 15413 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 15414 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 15415 | # In both cases, we have to default to `cp -p'. |
| 15416 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 15417 | as_ln_s='cp -p' |
| 15418 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 15419 | as_ln_s=ln |
| 15420 | else |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15421 | as_ln_s='cp -p' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15422 | fi |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15423 | else |
| 15424 | as_ln_s='cp -p' |
| 15425 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15426 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 15427 | rmdir conf$$.dir 2>/dev/null |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15428 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15429 | |
| 15430 | # as_fn_mkdir_p |
| 15431 | # ------------- |
| 15432 | # Create "$as_dir" as a directory, including parents if necessary. |
| 15433 | as_fn_mkdir_p () |
| 15434 | { |
| 15435 | |
| 15436 | case $as_dir in #( |
| 15437 | -*) as_dir=./$as_dir;; |
| 15438 | esac |
| 15439 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 15440 | as_dirs= |
| 15441 | while :; do |
| 15442 | case $as_dir in #( |
| 15443 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 15444 | *) as_qdir=$as_dir;; |
| 15445 | esac |
| 15446 | as_dirs="'$as_qdir' $as_dirs" |
| 15447 | as_dir=`$as_dirname -- "$as_dir" || |
| 15448 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 15449 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 15450 | X"$as_dir" : 'X\(//\)$' \| \ |
| 15451 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 15452 | $as_echo X"$as_dir" | |
| 15453 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 15454 | s//\1/ |
| 15455 | q |
| 15456 | } |
| 15457 | /^X\(\/\/\)[^/].*/{ |
| 15458 | s//\1/ |
| 15459 | q |
| 15460 | } |
| 15461 | /^X\(\/\/\)$/{ |
| 15462 | s//\1/ |
| 15463 | q |
| 15464 | } |
| 15465 | /^X\(\/\).*/{ |
| 15466 | s//\1/ |
| 15467 | q |
| 15468 | } |
| 15469 | s/.*/./; q'` |
| 15470 | test -d "$as_dir" && break |
| 15471 | done |
| 15472 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 15473 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 15474 | |
| 15475 | |
| 15476 | } # as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15477 | if mkdir -p . 2>/dev/null; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15478 | as_mkdir_p='mkdir -p "$as_dir"' |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15479 | else |
| 15480 | test -d ./-p && rmdir ./-p |
| 15481 | as_mkdir_p=false |
| 15482 | fi |
| 15483 | |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15484 | if test -x / >/dev/null 2>&1; then |
| 15485 | as_test_x='test -x' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15486 | else |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15487 | if ls -dL / >/dev/null 2>&1; then |
| 15488 | as_ls_L_option=L |
| 15489 | else |
| 15490 | as_ls_L_option= |
| 15491 | fi |
| 15492 | as_test_x=' |
| 15493 | eval sh -c '\'' |
| 15494 | if test -d "$1"; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15495 | test -d "$1/."; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15496 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15497 | case $1 in #( |
| 15498 | -*)set "./$1";; |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15499 | esac; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15500 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15501 | ???[sx]*):;;*)false;;esac;fi |
| 15502 | '\'' sh |
| 15503 | ' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15504 | fi |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15505 | as_executable_p=$as_test_x |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15506 | |
| 15507 | # Sed expression to map a string onto a valid CPP name. |
| 15508 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 15509 | |
| 15510 | # Sed expression to map a string onto a valid variable name. |
| 15511 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 15512 | |
| 15513 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15514 | exec 6>&1 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15515 | ## ----------------------------------- ## |
| 15516 | ## Main body of $CONFIG_STATUS script. ## |
| 15517 | ## ----------------------------------- ## |
| 15518 | _ASEOF |
| 15519 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15520 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15521 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15522 | # Save the log message, to keep $0 and so on meaningful, and to |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15523 | # report actual input values of CONFIG_FILES etc. instead of their |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15524 | # values after options handling. |
| 15525 | ac_log=" |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 15526 | This file was extended by breakpad $as_me 0.1, which was |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15527 | generated by GNU Autoconf 2.65. Invocation command line was |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15528 | |
| 15529 | CONFIG_FILES = $CONFIG_FILES |
| 15530 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 15531 | CONFIG_LINKS = $CONFIG_LINKS |
| 15532 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 15533 | $ $0 $@ |
| 15534 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15535 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 15536 | " |
| 15537 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15538 | _ACEOF |
| 15539 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15540 | case $ac_config_files in *" |
| 15541 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 15542 | esac |
| 15543 | |
| 15544 | case $ac_config_headers in *" |
| 15545 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 15546 | esac |
| 15547 | |
| 15548 | |
| 15549 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15550 | # Files that config.status was made for. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15551 | config_files="$ac_config_files" |
| 15552 | config_headers="$ac_config_headers" |
| 15553 | config_commands="$ac_config_commands" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15554 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15555 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15556 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15557 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15558 | ac_cs_usage="\ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15559 | \`$as_me' instantiates files and other configuration actions |
| 15560 | from templates according to the current configuration. Unless the files |
| 15561 | and actions are specified as TAGs, all are instantiated by default. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15562 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15563 | Usage: $0 [OPTION]... [TAG]... |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15564 | |
| 15565 | -h, --help print this help, then exit |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15566 | -V, --version print version number and configuration settings, then exit |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15567 | --config print configuration, then exit |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15568 | -q, --quiet, --silent |
| 15569 | do not print progress messages |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15570 | -d, --debug don't remove temporary files |
| 15571 | --recheck update $as_me by reconfiguring in the same conditions |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15572 | --file=FILE[:TEMPLATE] |
| 15573 | instantiate the configuration file FILE |
| 15574 | --header=FILE[:TEMPLATE] |
| 15575 | instantiate the configuration header FILE |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15576 | |
| 15577 | Configuration files: |
| 15578 | $config_files |
| 15579 | |
| 15580 | Configuration headers: |
| 15581 | $config_headers |
| 15582 | |
| 15583 | Configuration commands: |
| 15584 | $config_commands |
| 15585 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15586 | Report bugs to <opensource@google.com>." |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15587 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15588 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15589 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15590 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15591 | ac_cs_version="\\ |
mmentovai | e5dc608 | 2007-02-14 19:51:05 +0000 | [diff] [blame] | 15592 | breakpad config.status 0.1 |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15593 | configured by $0, generated by GNU Autoconf 2.65, |
| 15594 | with options \\"\$ac_cs_config\\" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15595 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15596 | Copyright (C) 2009 Free Software Foundation, Inc. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15597 | This config.status script is free software; the Free Software Foundation |
| 15598 | gives unlimited permission to copy, distribute and modify it." |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15599 | |
| 15600 | ac_pwd='$ac_pwd' |
| 15601 | srcdir='$srcdir' |
| 15602 | INSTALL='$INSTALL' |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 15603 | MKDIR_P='$MKDIR_P' |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15604 | AWK='$AWK' |
| 15605 | test -n "\$AWK" || AWK=awk |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15606 | _ACEOF |
| 15607 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15608 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 15609 | # The default lists apply if the user does not specify any file. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15610 | ac_need_defaults=: |
| 15611 | while test $# != 0 |
| 15612 | do |
| 15613 | case $1 in |
| 15614 | --*=*) |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15615 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 15616 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15617 | ac_shift=: |
| 15618 | ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15619 | *) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15620 | ac_option=$1 |
| 15621 | ac_optarg=$2 |
| 15622 | ac_shift=shift |
| 15623 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15624 | esac |
| 15625 | |
| 15626 | case $ac_option in |
| 15627 | # Handling of the options. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15628 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 15629 | ac_cs_recheck=: ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15630 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15631 | $as_echo "$ac_cs_version"; exit ;; |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 15632 | --config | --confi | --conf | --con | --co | --c ) |
| 15633 | $as_echo "$ac_cs_config"; exit ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15634 | --debug | --debu | --deb | --de | --d | -d ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15635 | debug=: ;; |
| 15636 | --file | --fil | --fi | --f ) |
| 15637 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15638 | case $ac_optarg in |
| 15639 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15640 | esac |
| 15641 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15642 | ac_need_defaults=false;; |
| 15643 | --header | --heade | --head | --hea ) |
| 15644 | $ac_shift |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15645 | case $ac_optarg in |
| 15646 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 15647 | esac |
| 15648 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15649 | ac_need_defaults=false;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15650 | --he | --h) |
| 15651 | # Conflict between --help and --header |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15652 | as_fn_error "ambiguous option: \`$1' |
| 15653 | Try \`$0 --help' for more information.";; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15654 | --help | --hel | -h ) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15655 | $as_echo "$ac_cs_usage"; exit ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15656 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 15657 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 15658 | ac_cs_silent=: ;; |
| 15659 | |
| 15660 | # This is an error. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15661 | -*) as_fn_error "unrecognized option: \`$1' |
| 15662 | Try \`$0 --help' for more information." ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15663 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15664 | *) as_fn_append ac_config_targets " $1" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15665 | ac_need_defaults=false ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15666 | |
| 15667 | esac |
| 15668 | shift |
| 15669 | done |
| 15670 | |
| 15671 | ac_configure_extra_args= |
| 15672 | |
| 15673 | if $ac_cs_silent; then |
| 15674 | exec 6>/dev/null |
| 15675 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 15676 | fi |
| 15677 | |
| 15678 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15679 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15680 | if \$ac_cs_recheck; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15681 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 15682 | shift |
| 15683 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 15684 | CONFIG_SHELL='$SHELL' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15685 | export CONFIG_SHELL |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15686 | exec "\$@" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15687 | fi |
| 15688 | |
| 15689 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15690 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15691 | exec 5>>config.log |
| 15692 | { |
| 15693 | echo |
| 15694 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 15695 | ## Running $as_me. ## |
| 15696 | _ASBOX |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15697 | $as_echo "$ac_log" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15698 | } >&5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15699 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15700 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15701 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15702 | # |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 15703 | # INIT-COMMANDS |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15704 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 15705 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 15706 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 15707 | |
| 15708 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
| 15709 | # if CDPATH is set. |
| 15710 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 15711 | |
| 15712 | sed_quote_subst='$sed_quote_subst' |
| 15713 | double_quote_subst='$double_quote_subst' |
| 15714 | delay_variable_subst='$delay_variable_subst' |
| 15715 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15716 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' |
| 15717 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' |
| 15718 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15719 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' |
| 15720 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' |
| 15721 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15722 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' |
| 15723 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15724 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' |
| 15725 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' |
| 15726 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' |
| 15727 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' |
| 15728 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' |
| 15729 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15730 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15731 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15732 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15733 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' |
| 15734 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' |
| 15735 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' |
| 15736 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15737 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15738 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' |
| 15739 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15740 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15741 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15742 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15743 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15744 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
| 15745 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' |
| 15746 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' |
| 15747 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15748 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' |
| 15749 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' |
| 15750 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15751 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15752 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15753 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15754 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' |
| 15755 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' |
| 15756 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' |
| 15757 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' |
| 15758 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15759 | 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"`' |
| 15760 | 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"`' |
| 15761 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
| 15762 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15763 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15764 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' |
| 15765 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15766 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' |
| 15767 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15768 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15769 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' |
| 15770 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' |
| 15771 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15772 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' |
| 15773 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' |
| 15774 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' |
| 15775 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' |
| 15776 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
| 15777 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15778 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15779 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' |
| 15780 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' |
| 15781 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15782 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15783 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' |
| 15784 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15785 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15786 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15787 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15788 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15789 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15790 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15791 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15792 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' |
| 15793 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15794 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' |
| 15795 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' |
| 15796 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' |
| 15797 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' |
| 15798 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' |
| 15799 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15800 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' |
| 15801 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15802 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15803 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15804 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' |
| 15805 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15806 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15807 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' |
| 15808 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15809 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15810 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' |
| 15811 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
| 15812 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' |
| 15813 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' |
| 15814 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15815 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' |
| 15816 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' |
| 15817 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15818 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15819 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15820 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15821 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15822 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' |
| 15823 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' |
| 15824 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15825 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15826 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' |
| 15827 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' |
| 15828 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' |
| 15829 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' |
| 15830 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' |
| 15831 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15832 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' |
| 15833 | compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`' |
| 15834 | predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 15835 | postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' |
| 15836 | predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 15837 | postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' |
| 15838 | compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' |
| 15839 | LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15840 | old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15841 | compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15842 | GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15843 | lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15844 | lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15845 | lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15846 | lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15847 | lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15848 | archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15849 | enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15850 | export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15851 | whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15852 | compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15853 | old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15854 | old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15855 | archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15856 | archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15857 | module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15858 | module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15859 | with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15860 | allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15861 | no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15862 | hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15863 | hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15864 | hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15865 | hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15866 | hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15867 | hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15868 | hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15869 | hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15870 | inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15871 | link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15872 | fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15873 | always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15874 | export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15875 | exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15876 | include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15877 | prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15878 | file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15879 | hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15880 | compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15881 | predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15882 | postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15883 | predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15884 | postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15885 | compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`' |
| 15886 | |
| 15887 | LTCC='$LTCC' |
| 15888 | LTCFLAGS='$LTCFLAGS' |
| 15889 | compiler='$compiler_DEFAULT' |
| 15890 | |
| 15891 | # Quote evaled strings. |
| 15892 | for var in SED \ |
| 15893 | GREP \ |
| 15894 | EGREP \ |
| 15895 | FGREP \ |
| 15896 | LD \ |
| 15897 | NM \ |
| 15898 | LN_S \ |
| 15899 | lt_SP2NL \ |
| 15900 | lt_NL2SP \ |
| 15901 | reload_flag \ |
| 15902 | OBJDUMP \ |
| 15903 | deplibs_check_method \ |
| 15904 | file_magic_cmd \ |
| 15905 | AR \ |
| 15906 | AR_FLAGS \ |
| 15907 | STRIP \ |
| 15908 | RANLIB \ |
| 15909 | CC \ |
| 15910 | CFLAGS \ |
| 15911 | compiler \ |
| 15912 | lt_cv_sys_global_symbol_pipe \ |
| 15913 | lt_cv_sys_global_symbol_to_cdecl \ |
| 15914 | lt_cv_sys_global_symbol_to_c_name_address \ |
| 15915 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 15916 | SHELL \ |
| 15917 | ECHO \ |
| 15918 | lt_prog_compiler_no_builtin_flag \ |
| 15919 | lt_prog_compiler_wl \ |
| 15920 | lt_prog_compiler_pic \ |
| 15921 | lt_prog_compiler_static \ |
| 15922 | lt_cv_prog_compiler_c_o \ |
| 15923 | need_locks \ |
| 15924 | DSYMUTIL \ |
| 15925 | NMEDIT \ |
| 15926 | LIPO \ |
| 15927 | OTOOL \ |
| 15928 | OTOOL64 \ |
| 15929 | shrext_cmds \ |
| 15930 | export_dynamic_flag_spec \ |
| 15931 | whole_archive_flag_spec \ |
| 15932 | compiler_needs_object \ |
| 15933 | with_gnu_ld \ |
| 15934 | allow_undefined_flag \ |
| 15935 | no_undefined_flag \ |
| 15936 | hardcode_libdir_flag_spec \ |
| 15937 | hardcode_libdir_flag_spec_ld \ |
| 15938 | hardcode_libdir_separator \ |
| 15939 | fix_srcfile_path \ |
| 15940 | exclude_expsyms \ |
| 15941 | include_expsyms \ |
| 15942 | file_list_spec \ |
| 15943 | variables_saved_for_relink \ |
| 15944 | libname_spec \ |
| 15945 | library_names_spec \ |
| 15946 | soname_spec \ |
| 15947 | finish_eval \ |
| 15948 | old_striplib \ |
| 15949 | striplib \ |
| 15950 | compiler_lib_search_dirs \ |
| 15951 | predep_objects \ |
| 15952 | postdep_objects \ |
| 15953 | predeps \ |
| 15954 | postdeps \ |
| 15955 | compiler_lib_search_path \ |
| 15956 | LD_CXX \ |
| 15957 | compiler_CXX \ |
| 15958 | lt_prog_compiler_no_builtin_flag_CXX \ |
| 15959 | lt_prog_compiler_wl_CXX \ |
| 15960 | lt_prog_compiler_pic_CXX \ |
| 15961 | lt_prog_compiler_static_CXX \ |
| 15962 | lt_cv_prog_compiler_c_o_CXX \ |
| 15963 | export_dynamic_flag_spec_CXX \ |
| 15964 | whole_archive_flag_spec_CXX \ |
| 15965 | compiler_needs_object_CXX \ |
| 15966 | with_gnu_ld_CXX \ |
| 15967 | allow_undefined_flag_CXX \ |
| 15968 | no_undefined_flag_CXX \ |
| 15969 | hardcode_libdir_flag_spec_CXX \ |
| 15970 | hardcode_libdir_flag_spec_ld_CXX \ |
| 15971 | hardcode_libdir_separator_CXX \ |
| 15972 | fix_srcfile_path_CXX \ |
| 15973 | exclude_expsyms_CXX \ |
| 15974 | include_expsyms_CXX \ |
| 15975 | file_list_spec_CXX \ |
| 15976 | compiler_lib_search_dirs_CXX \ |
| 15977 | predep_objects_CXX \ |
| 15978 | postdep_objects_CXX \ |
| 15979 | predeps_CXX \ |
| 15980 | postdeps_CXX \ |
| 15981 | compiler_lib_search_path_CXX; do |
| 15982 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 15983 | *[\\\\\\\`\\"\\\$]*) |
| 15984 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
| 15985 | ;; |
| 15986 | *) |
| 15987 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 15988 | ;; |
| 15989 | esac |
| 15990 | done |
| 15991 | |
| 15992 | # Double-quote double-evaled strings. |
| 15993 | for var in reload_cmds \ |
| 15994 | old_postinstall_cmds \ |
| 15995 | old_postuninstall_cmds \ |
| 15996 | old_archive_cmds \ |
| 15997 | extract_expsyms_cmds \ |
| 15998 | old_archive_from_new_cmds \ |
| 15999 | old_archive_from_expsyms_cmds \ |
| 16000 | archive_cmds \ |
| 16001 | archive_expsym_cmds \ |
| 16002 | module_cmds \ |
| 16003 | module_expsym_cmds \ |
| 16004 | export_symbols_cmds \ |
| 16005 | prelink_cmds \ |
| 16006 | postinstall_cmds \ |
| 16007 | postuninstall_cmds \ |
| 16008 | finish_cmds \ |
| 16009 | sys_lib_search_path_spec \ |
| 16010 | sys_lib_dlsearch_path_spec \ |
| 16011 | old_archive_cmds_CXX \ |
| 16012 | old_archive_from_new_cmds_CXX \ |
| 16013 | old_archive_from_expsyms_cmds_CXX \ |
| 16014 | archive_cmds_CXX \ |
| 16015 | archive_expsym_cmds_CXX \ |
| 16016 | module_cmds_CXX \ |
| 16017 | module_expsym_cmds_CXX \ |
| 16018 | export_symbols_cmds_CXX \ |
| 16019 | prelink_cmds_CXX; do |
| 16020 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in |
| 16021 | *[\\\\\\\`\\"\\\$]*) |
| 16022 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
| 16023 | ;; |
| 16024 | *) |
| 16025 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 16026 | ;; |
| 16027 | esac |
| 16028 | done |
| 16029 | |
| 16030 | # Fix-up fallback echo if it was mangled by the above quoting rules. |
| 16031 | case \$lt_ECHO in |
| 16032 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` |
| 16033 | ;; |
| 16034 | esac |
| 16035 | |
| 16036 | ac_aux_dir='$ac_aux_dir' |
| 16037 | xsi_shell='$xsi_shell' |
| 16038 | lt_shell_append='$lt_shell_append' |
| 16039 | |
| 16040 | # See if we are running on zsh, and set the options which allow our |
| 16041 | # commands through without removal of \ escapes INIT. |
| 16042 | if test -n "\${ZSH_VERSION+set}" ; then |
| 16043 | setopt NO_GLOB_SUBST |
| 16044 | fi |
| 16045 | |
| 16046 | |
| 16047 | PACKAGE='$PACKAGE' |
| 16048 | VERSION='$VERSION' |
| 16049 | TIMESTAMP='$TIMESTAMP' |
| 16050 | RM='$RM' |
| 16051 | ofile='$ofile' |
| 16052 | |
| 16053 | |
| 16054 | |
| 16055 | |
| 16056 | |
| 16057 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16058 | _ACEOF |
| 16059 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16060 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16061 | |
| 16062 | # Handling of arguments. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16063 | for ac_config_target in $ac_config_targets |
| 16064 | do |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16065 | case $ac_config_target in |
| 16066 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; |
| 16067 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16068 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16069 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 16070 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16071 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16072 | esac |
| 16073 | done |
| 16074 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16075 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16076 | # If the user did not use the arguments to specify the items to instantiate, |
| 16077 | # then the envvar interface is used. Set only those that are not. |
| 16078 | # We use the long form for the default assignment because of an extremely |
| 16079 | # bizarre bug on SunOS 4.1.3. |
| 16080 | if $ac_need_defaults; then |
| 16081 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 16082 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 16083 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 16084 | fi |
| 16085 | |
| 16086 | # Have a temporary directory for convenience. Make it in the build tree |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16087 | # simply because there is no reason against having it here, and in addition, |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16088 | # creating and moving files from /tmp can sometimes cause problems. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16089 | # Hook for its removal unless debugging. |
| 16090 | # Note that there is a small window in which the directory will not be cleaned: |
| 16091 | # after its creation but before its name has been assigned to `$tmp'. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16092 | $debug || |
| 16093 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16094 | tmp= |
| 16095 | trap 'exit_status=$? |
| 16096 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 16097 | ' 0 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16098 | trap 'as_fn_exit 1' 1 2 13 15 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16099 | } |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16100 | # Create a (secure) tmp directory for tmp files. |
| 16101 | |
| 16102 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16103 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16104 | test -n "$tmp" && test -d "$tmp" |
| 16105 | } || |
| 16106 | { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16107 | tmp=./conf$$-$RANDOM |
| 16108 | (umask 077 && mkdir "$tmp") |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16109 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16110 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16111 | # Set up the scripts for CONFIG_FILES section. |
| 16112 | # No need to generate them if there are no CONFIG_FILES. |
| 16113 | # This happens for instance with `./config.status config.h'. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16114 | if test -n "$CONFIG_FILES"; then |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16115 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16116 | |
| 16117 | ac_cr=`echo X | tr X '\015'` |
| 16118 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 16119 | # But we know of no other shell where ac_cr would be empty at this |
| 16120 | # point, so we can use a bashism as a fallback. |
| 16121 | if test "x$ac_cr" = x; then |
| 16122 | eval ac_cr=\$\'\\r\' |
| 16123 | fi |
| 16124 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 16125 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 16126 | ac_cs_awk_cr='\r' |
| 16127 | else |
| 16128 | ac_cs_awk_cr=$ac_cr |
| 16129 | fi |
| 16130 | |
| 16131 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16132 | _ACEOF |
| 16133 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16134 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16135 | { |
| 16136 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 16137 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 16138 | echo "_ACEOF" |
| 16139 | } >conf$$subs.sh || |
| 16140 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 16141 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16142 | ac_delim='%!_!# ' |
| 16143 | for ac_last_try in false false false false false :; do |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16144 | . ./conf$$subs.sh || |
| 16145 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16146 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16147 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 16148 | if test $ac_delim_n = $ac_delim_num; then |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16149 | break |
| 16150 | elif $ac_last_try; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16151 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16152 | else |
| 16153 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16154 | fi |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16155 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16156 | rm -f conf$$subs.sh |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16157 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16158 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16159 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16160 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16161 | sed -n ' |
| 16162 | h |
| 16163 | s/^/S["/; s/!.*/"]=/ |
| 16164 | p |
| 16165 | g |
| 16166 | s/^[^!]*!// |
| 16167 | :repl |
| 16168 | t repl |
| 16169 | s/'"$ac_delim"'$// |
| 16170 | t delim |
| 16171 | :nl |
| 16172 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 16173 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16174 | t more1 |
| 16175 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 16176 | p |
| 16177 | n |
| 16178 | b repl |
| 16179 | :more1 |
| 16180 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16181 | p |
| 16182 | g |
| 16183 | s/.\{148\}// |
| 16184 | t nl |
| 16185 | :delim |
| 16186 | h |
jimblandy | dc4029a | 2010-02-02 17:39:51 +0000 | [diff] [blame] | 16187 | s/\(.\{148\}\)..*/\1/ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16188 | t more2 |
| 16189 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 16190 | p |
| 16191 | b |
| 16192 | :more2 |
| 16193 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 16194 | p |
| 16195 | g |
| 16196 | s/.\{148\}// |
| 16197 | t delim |
| 16198 | ' <conf$$subs.awk | sed ' |
| 16199 | /^[^""]/{ |
| 16200 | N |
| 16201 | s/\n// |
| 16202 | } |
| 16203 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16204 | rm -f conf$$subs.awk |
| 16205 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16206 | _ACAWK |
| 16207 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 16208 | for (key in S) S_is_set[key] = 1 |
| 16209 | FS = "" |
| 16210 | |
| 16211 | } |
| 16212 | { |
| 16213 | line = $ 0 |
| 16214 | nfields = split(line, field, "@") |
| 16215 | substed = 0 |
| 16216 | len = length(field[1]) |
| 16217 | for (i = 2; i < nfields; i++) { |
| 16218 | key = field[i] |
| 16219 | keylen = length(key) |
| 16220 | if (S_is_set[key]) { |
| 16221 | value = S[key] |
| 16222 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 16223 | len += length(value) + length(field[++i]) |
| 16224 | substed = 1 |
| 16225 | } else |
| 16226 | len += 1 + keylen |
| 16227 | } |
| 16228 | |
| 16229 | print line |
| 16230 | } |
| 16231 | |
| 16232 | _ACAWK |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16233 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16234 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16235 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 16236 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 16237 | else |
| 16238 | cat |
| 16239 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 16240 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16241 | _ACEOF |
| 16242 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16243 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 16244 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 16245 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 16246 | # (actually we leave an empty line to preserve line numbers). |
| 16247 | if test "x$srcdir" = x.; then |
| 16248 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 16249 | s/:*\$(srcdir):*/:/ |
| 16250 | s/:*\${srcdir}:*/:/ |
| 16251 | s/:*@srcdir@:*/:/ |
| 16252 | s/^\([^=]*=[ ]*\):*/\1/ |
| 16253 | s/:*$// |
| 16254 | s/^[^=]*=[ ]*$// |
| 16255 | }' |
| 16256 | fi |
| 16257 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16258 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16259 | fi # test -n "$CONFIG_FILES" |
| 16260 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16261 | # Set up the scripts for CONFIG_HEADERS section. |
| 16262 | # No need to generate them if there are no CONFIG_HEADERS. |
| 16263 | # This happens for instance with `./config.status Makefile'. |
| 16264 | if test -n "$CONFIG_HEADERS"; then |
| 16265 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 16266 | BEGIN { |
| 16267 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16268 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16269 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 16270 | # here-document in config.status, that substitutes the proper values into |
| 16271 | # config.h.in to produce config.h. |
| 16272 | |
| 16273 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 16274 | # handling of long lines. |
| 16275 | ac_delim='%!_!# ' |
| 16276 | for ac_last_try in false false :; do |
| 16277 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 16278 | if test -z "$ac_t"; then |
| 16279 | break |
| 16280 | elif $ac_last_try; then |
| 16281 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 16282 | else |
| 16283 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 16284 | fi |
| 16285 | done |
| 16286 | |
| 16287 | # For the awk script, D is an array of macro values keyed by name, |
| 16288 | # likewise P contains macro parameters if any. Preserve backslash |
| 16289 | # newline sequences. |
| 16290 | |
| 16291 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 16292 | sed -n ' |
| 16293 | s/.\{148\}/&'"$ac_delim"'/g |
| 16294 | t rset |
| 16295 | :rset |
| 16296 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 16297 | t def |
| 16298 | d |
| 16299 | :def |
| 16300 | s/\\$// |
| 16301 | t bsnl |
| 16302 | s/["\\]/\\&/g |
| 16303 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16304 | D["\1"]=" \3"/p |
| 16305 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 16306 | d |
| 16307 | :bsnl |
| 16308 | s/["\\]/\\&/g |
| 16309 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 16310 | D["\1"]=" \3\\\\\\n"\\/p |
| 16311 | t cont |
| 16312 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 16313 | t cont |
| 16314 | d |
| 16315 | :cont |
| 16316 | n |
| 16317 | s/.\{148\}/&'"$ac_delim"'/g |
| 16318 | t clear |
| 16319 | :clear |
| 16320 | s/\\$// |
| 16321 | t bsnlc |
| 16322 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 16323 | d |
| 16324 | :bsnlc |
| 16325 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 16326 | b cont |
| 16327 | ' <confdefs.h | sed ' |
| 16328 | s/'"$ac_delim"'/"\\\ |
| 16329 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 16330 | |
| 16331 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16332 | for (key in D) D_is_set[key] = 1 |
| 16333 | FS = "" |
| 16334 | } |
| 16335 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 16336 | line = \$ 0 |
| 16337 | split(line, arg, " ") |
| 16338 | if (arg[1] == "#") { |
| 16339 | defundef = arg[2] |
| 16340 | mac1 = arg[3] |
| 16341 | } else { |
| 16342 | defundef = substr(arg[1], 2) |
| 16343 | mac1 = arg[2] |
| 16344 | } |
| 16345 | split(mac1, mac2, "(") #) |
| 16346 | macro = mac2[1] |
| 16347 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 16348 | if (D_is_set[macro]) { |
| 16349 | # Preserve the white space surrounding the "#". |
| 16350 | print prefix "define", macro P[macro] D[macro] |
| 16351 | next |
| 16352 | } else { |
| 16353 | # Replace #undef with comments. This is necessary, for example, |
| 16354 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 16355 | # on some systems where configure will not decide to define it. |
| 16356 | if (defundef == "undef") { |
| 16357 | print "/*", prefix defundef, macro, "*/" |
| 16358 | next |
| 16359 | } |
| 16360 | } |
| 16361 | } |
| 16362 | { print } |
| 16363 | _ACAWK |
| 16364 | _ACEOF |
| 16365 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 16366 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 16367 | fi # test -n "$CONFIG_HEADERS" |
| 16368 | |
| 16369 | |
| 16370 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 16371 | shift |
| 16372 | for ac_tag |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16373 | do |
| 16374 | case $ac_tag in |
| 16375 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 16376 | esac |
| 16377 | case $ac_mode$ac_tag in |
| 16378 | :[FHL]*:*);; |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16379 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16380 | :[FH]-) ac_tag=-:-;; |
| 16381 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 16382 | esac |
| 16383 | ac_save_IFS=$IFS |
| 16384 | IFS=: |
| 16385 | set x $ac_tag |
| 16386 | IFS=$ac_save_IFS |
| 16387 | shift |
| 16388 | ac_file=$1 |
| 16389 | shift |
| 16390 | |
| 16391 | case $ac_mode in |
| 16392 | :L) ac_source=$1;; |
| 16393 | :[FH]) |
| 16394 | ac_file_inputs= |
| 16395 | for ac_f |
| 16396 | do |
| 16397 | case $ac_f in |
| 16398 | -) ac_f="$tmp/stdin";; |
| 16399 | *) # Look for the file first in the build tree, then in the source tree |
| 16400 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 16401 | # because $ac_f cannot contain `:'. |
| 16402 | test -f "$ac_f" || |
| 16403 | case $ac_f in |
| 16404 | [\\/$]*) false;; |
| 16405 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 16406 | esac || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16407 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16408 | esac |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16409 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 16410 | as_fn_append ac_file_inputs " '$ac_f'" |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16411 | done |
| 16412 | |
| 16413 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 16414 | # use $as_me), people would be surprised to read: |
| 16415 | # /* config.h. Generated by config.status. */ |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16416 | configure_input='Generated from '` |
| 16417 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 16418 | `' by configure.' |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16419 | if test x"$ac_file" != x-; then |
| 16420 | configure_input="$ac_file. $configure_input" |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16421 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 16422 | $as_echo "$as_me: creating $ac_file" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16423 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16424 | # Neutralize special characters interpreted by sed in replacement strings. |
| 16425 | case $configure_input in #( |
| 16426 | *\&* | *\|* | *\\* ) |
| 16427 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 16428 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 16429 | *) ac_sed_conf_input=$configure_input;; |
| 16430 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16431 | |
| 16432 | case $ac_tag in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16433 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 16434 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16435 | esac |
| 16436 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16437 | esac |
| 16438 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16439 | ac_dir=`$as_dirname -- "$ac_file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16440 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16441 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 16442 | X"$ac_file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16443 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16444 | $as_echo X"$ac_file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16445 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16446 | s//\1/ |
| 16447 | q |
| 16448 | } |
| 16449 | /^X\(\/\/\)[^/].*/{ |
| 16450 | s//\1/ |
| 16451 | q |
| 16452 | } |
| 16453 | /^X\(\/\/\)$/{ |
| 16454 | s//\1/ |
| 16455 | q |
| 16456 | } |
| 16457 | /^X\(\/\).*/{ |
| 16458 | s//\1/ |
| 16459 | q |
| 16460 | } |
| 16461 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16462 | as_dir="$ac_dir"; as_fn_mkdir_p |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16463 | ac_builddir=. |
| 16464 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16465 | case "$ac_dir" in |
| 16466 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16467 | *) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16468 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16469 | # A ".." for each directory in $ac_dir_suffix. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16470 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16471 | case $ac_top_builddir_sub in |
| 16472 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 16473 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 16474 | esac ;; |
| 16475 | esac |
| 16476 | ac_abs_top_builddir=$ac_pwd |
| 16477 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 16478 | # for backward compatibility: |
| 16479 | ac_top_builddir=$ac_top_build_prefix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16480 | |
| 16481 | case $srcdir in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16482 | .) # We are building in place. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16483 | ac_srcdir=. |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16484 | ac_top_srcdir=$ac_top_builddir_sub |
| 16485 | ac_abs_top_srcdir=$ac_pwd ;; |
| 16486 | [\\/]* | ?:[\\/]* ) # Absolute name. |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16487 | ac_srcdir=$srcdir$ac_dir_suffix; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16488 | ac_top_srcdir=$srcdir |
| 16489 | ac_abs_top_srcdir=$srcdir ;; |
| 16490 | *) # Relative name. |
| 16491 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 16492 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 16493 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16494 | esac |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16495 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16496 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16497 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16498 | case $ac_mode in |
| 16499 | :F) |
| 16500 | # |
| 16501 | # CONFIG_FILE |
| 16502 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16503 | |
| 16504 | case $INSTALL in |
| 16505 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16506 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16507 | esac |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 16508 | ac_MKDIR_P=$MKDIR_P |
| 16509 | case $MKDIR_P in |
| 16510 | [\\/$]* | ?:[\\/]* ) ;; |
| 16511 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 16512 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16513 | _ACEOF |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16514 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16515 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16516 | # If the template does not know about datarootdir, expand it. |
| 16517 | # FIXME: This hack should be removed a few years after 2.60. |
| 16518 | ac_datarootdir_hack=; ac_datarootdir_seen= |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16519 | ac_sed_dataroot=' |
| 16520 | /datarootdir/ { |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16521 | p |
| 16522 | q |
| 16523 | } |
| 16524 | /@datadir@/p |
| 16525 | /@docdir@/p |
| 16526 | /@infodir@/p |
| 16527 | /@localedir@/p |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16528 | /@mandir@/p' |
| 16529 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16530 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 16531 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16532 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 16533 | $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] | 16534 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16535 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16536 | ac_datarootdir_hack=' |
| 16537 | s&@datadir@&$datadir&g |
| 16538 | s&@docdir@&$docdir&g |
| 16539 | s&@infodir@&$infodir&g |
| 16540 | s&@localedir@&$localedir&g |
| 16541 | s&@mandir@&$mandir&g |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16542 | s&\\\${datarootdir}&$datarootdir&g' ;; |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16543 | esac |
| 16544 | _ACEOF |
| 16545 | |
| 16546 | # Neutralize VPATH when `$srcdir' = `.'. |
| 16547 | # Shell code in configure.ac might set extrasub. |
| 16548 | # FIXME: do we really want to maintain this feature? |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16549 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 16550 | ac_sed_extra="$ac_vpsub |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16551 | $extrasub |
| 16552 | _ACEOF |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16553 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16554 | :t |
| 16555 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16556 | s|@configure_input@|$ac_sed_conf_input|;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16557 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16558 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16559 | s&@srcdir@&$ac_srcdir&;t t |
| 16560 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 16561 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 16562 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 16563 | s&@builddir@&$ac_builddir&;t t |
| 16564 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 16565 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 16566 | s&@INSTALL@&$ac_INSTALL&;t t |
mmentovai | af3c43f | 2007-05-17 18:34:37 +0000 | [diff] [blame] | 16567 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16568 | $ac_datarootdir_hack |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16569 | " |
| 16570 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ |
| 16571 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16572 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16573 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 16574 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 16575 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16576 | { $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] | 16577 | which seems to be undefined. Please make sure it is defined." >&5 |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16578 | $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] | 16579 | which seems to be undefined. Please make sure it is defined." >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16580 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16581 | rm -f "$tmp/stdin" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16582 | case $ac_file in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16583 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 16584 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 16585 | esac \ |
| 16586 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16587 | ;; |
| 16588 | :H) |
| 16589 | # |
| 16590 | # CONFIG_HEADER |
| 16591 | # |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16592 | if test x"$ac_file" != x-; then |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16593 | { |
| 16594 | $as_echo "/* $configure_input */" \ |
| 16595 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 16596 | } >"$tmp/config.h" \ |
| 16597 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 16598 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 16599 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 16600 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16601 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16602 | rm -f "$ac_file" |
| 16603 | mv "$tmp/config.h" "$ac_file" \ |
| 16604 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16605 | fi |
| 16606 | else |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16607 | $as_echo "/* $configure_input */" \ |
| 16608 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 16609 | || as_fn_error "could not create -" "$LINENO" 5 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16610 | fi |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16611 | # Compute "$ac_file"'s index in $config_headers. |
| 16612 | _am_arg="$ac_file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16613 | _am_stamp_count=1 |
| 16614 | for _am_header in $config_headers :; do |
| 16615 | case $_am_header in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16616 | $_am_arg | $_am_arg:* ) |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16617 | break ;; |
| 16618 | * ) |
| 16619 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 16620 | esac |
| 16621 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16622 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 16623 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16624 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 16625 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 16626 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 16627 | $as_echo X"$_am_arg" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16628 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16629 | s//\1/ |
| 16630 | q |
| 16631 | } |
| 16632 | /^X\(\/\/\)[^/].*/{ |
| 16633 | s//\1/ |
| 16634 | q |
| 16635 | } |
| 16636 | /^X\(\/\/\)$/{ |
| 16637 | s//\1/ |
| 16638 | q |
| 16639 | } |
| 16640 | /^X\(\/\).*/{ |
| 16641 | s//\1/ |
| 16642 | q |
| 16643 | } |
| 16644 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 16645 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16646 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16647 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 16648 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16649 | ;; |
| 16650 | esac |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16651 | |
| 16652 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16653 | case $ac_file$ac_mode in |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16654 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 16655 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 16656 | # are listed without --file. Let's play safe and only enable the eval |
| 16657 | # if we detect the quoting. |
| 16658 | case $CONFIG_FILES in |
| 16659 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 16660 | *) set x $CONFIG_FILES ;; |
| 16661 | esac |
| 16662 | shift |
| 16663 | for mf |
| 16664 | do |
| 16665 | # Strip MF so we end up with the name of the file. |
| 16666 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 16667 | # Check whether this is an Automake generated Makefile or not. |
| 16668 | # We used to match only the files named `Makefile.in', but |
| 16669 | # some people rename them; so instead we look at the file content. |
| 16670 | # Grep'ing the first line is not enough: some people post-process |
| 16671 | # each Makefile.in and add a new line on top of each file to say so. |
| 16672 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 16673 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 16674 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 16675 | dirpart=`$as_dirname -- "$mf" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16676 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16677 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 16678 | X"$mf" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16679 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16680 | $as_echo X"$mf" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16681 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16682 | s//\1/ |
| 16683 | q |
| 16684 | } |
| 16685 | /^X\(\/\/\)[^/].*/{ |
| 16686 | s//\1/ |
| 16687 | q |
| 16688 | } |
| 16689 | /^X\(\/\/\)$/{ |
| 16690 | s//\1/ |
| 16691 | q |
| 16692 | } |
| 16693 | /^X\(\/\).*/{ |
| 16694 | s//\1/ |
| 16695 | q |
| 16696 | } |
| 16697 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16698 | else |
| 16699 | continue |
| 16700 | fi |
| 16701 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 16702 | # from the Makefile without running `make'. |
| 16703 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 16704 | test -z "$DEPDIR" && continue |
| 16705 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 16706 | test -z "am__include" && continue |
| 16707 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 16708 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 16709 | U=`sed -n 's/^U = //p' < "$mf"` |
| 16710 | # Find all dependency output files, they are included files with |
| 16711 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 16712 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 16713 | # expansion. |
| 16714 | for file in `sed -n " |
| 16715 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 16716 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 16717 | # Make sure the directory exists. |
| 16718 | test -f "$dirpart/$file" && continue |
| 16719 | fdir=`$as_dirname -- "$file" || |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16720 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 16721 | X"$file" : 'X\(//\)[^/]' \| \ |
| 16722 | X"$file" : 'X\(//\)$' \| \ |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16723 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16724 | $as_echo X"$file" | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 16725 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 16726 | s//\1/ |
| 16727 | q |
| 16728 | } |
| 16729 | /^X\(\/\/\)[^/].*/{ |
| 16730 | s//\1/ |
| 16731 | q |
| 16732 | } |
| 16733 | /^X\(\/\/\)$/{ |
| 16734 | s//\1/ |
| 16735 | q |
| 16736 | } |
| 16737 | /^X\(\/\).*/{ |
| 16738 | s//\1/ |
| 16739 | q |
| 16740 | } |
| 16741 | s/.*/./; q'` |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16742 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 16743 | # echo "creating $dirpart/$file" |
| 16744 | echo '# dummy' > "$dirpart/$file" |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16745 | done |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 16746 | done |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 16747 | } |
| 16748 | ;; |
| 16749 | "libtool":C) |
| 16750 | |
| 16751 | # See if we are running on zsh, and set the options which allow our |
| 16752 | # commands through without removal of \ escapes. |
| 16753 | if test -n "${ZSH_VERSION+set}" ; then |
| 16754 | setopt NO_GLOB_SUBST |
| 16755 | fi |
| 16756 | |
| 16757 | cfgfile="${ofile}T" |
| 16758 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 16759 | $RM "$cfgfile" |
| 16760 | |
| 16761 | cat <<_LT_EOF >> "$cfgfile" |
| 16762 | #! $SHELL |
| 16763 | |
| 16764 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
| 16765 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
| 16766 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
| 16767 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 16768 | # |
| 16769 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
| 16770 | # 2006, 2007, 2008 Free Software Foundation, Inc. |
| 16771 | # Written by Gordon Matzigkeit, 1996 |
| 16772 | # |
| 16773 | # This file is part of GNU Libtool. |
| 16774 | # |
| 16775 | # GNU Libtool is free software; you can redistribute it and/or |
| 16776 | # modify it under the terms of the GNU General Public License as |
| 16777 | # published by the Free Software Foundation; either version 2 of |
| 16778 | # the License, or (at your option) any later version. |
| 16779 | # |
| 16780 | # As a special exception to the GNU General Public License, |
| 16781 | # if you distribute this file as part of a program or library that |
| 16782 | # is built using GNU Libtool, you may include this file under the |
| 16783 | # same distribution terms that you use for the rest of that program. |
| 16784 | # |
| 16785 | # GNU Libtool is distributed in the hope that it will be useful, |
| 16786 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16787 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16788 | # GNU General Public License for more details. |
| 16789 | # |
| 16790 | # You should have received a copy of the GNU General Public License |
| 16791 | # along with GNU Libtool; see the file COPYING. If not, a copy |
| 16792 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or |
| 16793 | # obtained by writing to the Free Software Foundation, Inc., |
| 16794 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16795 | |
| 16796 | |
| 16797 | # The names of the tagged configurations supported by this script. |
| 16798 | available_tags="CXX " |
| 16799 | |
| 16800 | # ### BEGIN LIBTOOL CONFIG |
| 16801 | |
| 16802 | # Which release of libtool.m4 was used? |
| 16803 | macro_version=$macro_version |
| 16804 | macro_revision=$macro_revision |
| 16805 | |
| 16806 | # Whether or not to build shared libraries. |
| 16807 | build_libtool_libs=$enable_shared |
| 16808 | |
| 16809 | # Whether or not to build static libraries. |
| 16810 | build_old_libs=$enable_static |
| 16811 | |
| 16812 | # What type of objects to build. |
| 16813 | pic_mode=$pic_mode |
| 16814 | |
| 16815 | # Whether or not to optimize for fast installation. |
| 16816 | fast_install=$enable_fast_install |
| 16817 | |
| 16818 | # The host system. |
| 16819 | host_alias=$host_alias |
| 16820 | host=$host |
| 16821 | host_os=$host_os |
| 16822 | |
| 16823 | # The build system. |
| 16824 | build_alias=$build_alias |
| 16825 | build=$build |
| 16826 | build_os=$build_os |
| 16827 | |
| 16828 | # A sed program that does not truncate output. |
| 16829 | SED=$lt_SED |
| 16830 | |
| 16831 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 16832 | Xsed="\$SED -e 1s/^X//" |
| 16833 | |
| 16834 | # A grep program that handles long lines. |
| 16835 | GREP=$lt_GREP |
| 16836 | |
| 16837 | # An ERE matcher. |
| 16838 | EGREP=$lt_EGREP |
| 16839 | |
| 16840 | # A literal string matcher. |
| 16841 | FGREP=$lt_FGREP |
| 16842 | |
| 16843 | # A BSD- or MS-compatible name lister. |
| 16844 | NM=$lt_NM |
| 16845 | |
| 16846 | # Whether we need soft or hard links. |
| 16847 | LN_S=$lt_LN_S |
| 16848 | |
| 16849 | # What is the maximum length of a command? |
| 16850 | max_cmd_len=$max_cmd_len |
| 16851 | |
| 16852 | # Object file suffix (normally "o"). |
| 16853 | objext=$ac_objext |
| 16854 | |
| 16855 | # Executable file suffix (normally ""). |
| 16856 | exeext=$exeext |
| 16857 | |
| 16858 | # whether the shell understands "unset". |
| 16859 | lt_unset=$lt_unset |
| 16860 | |
| 16861 | # turn spaces into newlines. |
| 16862 | SP2NL=$lt_lt_SP2NL |
| 16863 | |
| 16864 | # turn newlines into spaces. |
| 16865 | NL2SP=$lt_lt_NL2SP |
| 16866 | |
| 16867 | # How to create reloadable object files. |
| 16868 | reload_flag=$lt_reload_flag |
| 16869 | reload_cmds=$lt_reload_cmds |
| 16870 | |
| 16871 | # An object symbol dumper. |
| 16872 | OBJDUMP=$lt_OBJDUMP |
| 16873 | |
| 16874 | # Method to check whether dependent libraries are shared objects. |
| 16875 | deplibs_check_method=$lt_deplibs_check_method |
| 16876 | |
| 16877 | # Command to use when deplibs_check_method == "file_magic". |
| 16878 | file_magic_cmd=$lt_file_magic_cmd |
| 16879 | |
| 16880 | # The archiver. |
| 16881 | AR=$lt_AR |
| 16882 | AR_FLAGS=$lt_AR_FLAGS |
| 16883 | |
| 16884 | # A symbol stripping program. |
| 16885 | STRIP=$lt_STRIP |
| 16886 | |
| 16887 | # Commands used to install an old-style archive. |
| 16888 | RANLIB=$lt_RANLIB |
| 16889 | old_postinstall_cmds=$lt_old_postinstall_cmds |
| 16890 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 16891 | |
| 16892 | # A C compiler. |
| 16893 | LTCC=$lt_CC |
| 16894 | |
| 16895 | # LTCC compiler flags. |
| 16896 | LTCFLAGS=$lt_CFLAGS |
| 16897 | |
| 16898 | # Take the output of nm and produce a listing of raw symbols and C names. |
| 16899 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 16900 | |
| 16901 | # Transform the output of nm in a proper C declaration. |
| 16902 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 16903 | |
| 16904 | # Transform the output of nm in a C name address pair. |
| 16905 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 16906 | |
| 16907 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
| 16908 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 16909 | |
| 16910 | # The name of the directory that contains temporary libtool files. |
| 16911 | objdir=$objdir |
| 16912 | |
| 16913 | # Shell to use when invoking shell scripts. |
| 16914 | SHELL=$lt_SHELL |
| 16915 | |
| 16916 | # An echo program that does not interpret backslashes. |
| 16917 | ECHO=$lt_ECHO |
| 16918 | |
| 16919 | # Used to examine libraries when file_magic_cmd begins with "file". |
| 16920 | MAGIC_CMD=$MAGIC_CMD |
| 16921 | |
| 16922 | # Must we lock files when doing compilation? |
| 16923 | need_locks=$lt_need_locks |
| 16924 | |
| 16925 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 16926 | DSYMUTIL=$lt_DSYMUTIL |
| 16927 | |
| 16928 | # Tool to change global to local symbols on Mac OS X. |
| 16929 | NMEDIT=$lt_NMEDIT |
| 16930 | |
| 16931 | # Tool to manipulate fat objects and archives on Mac OS X. |
| 16932 | LIPO=$lt_LIPO |
| 16933 | |
| 16934 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 16935 | OTOOL=$lt_OTOOL |
| 16936 | |
| 16937 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 16938 | OTOOL64=$lt_OTOOL64 |
| 16939 | |
| 16940 | # Old archive suffix (normally "a"). |
| 16941 | libext=$libext |
| 16942 | |
| 16943 | # Shared library suffix (normally ".so"). |
| 16944 | shrext_cmds=$lt_shrext_cmds |
| 16945 | |
| 16946 | # The commands to extract the exported symbol list from a shared archive. |
| 16947 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 16948 | |
| 16949 | # Variables whose values should be saved in libtool wrapper scripts and |
| 16950 | # restored at link time. |
| 16951 | variables_saved_for_relink=$lt_variables_saved_for_relink |
| 16952 | |
| 16953 | # Do we need the "lib" prefix for modules? |
| 16954 | need_lib_prefix=$need_lib_prefix |
| 16955 | |
| 16956 | # Do we need a version for libraries? |
| 16957 | need_version=$need_version |
| 16958 | |
| 16959 | # Library versioning type. |
| 16960 | version_type=$version_type |
| 16961 | |
| 16962 | # Shared library runtime path variable. |
| 16963 | runpath_var=$runpath_var |
| 16964 | |
| 16965 | # Shared library path variable. |
| 16966 | shlibpath_var=$shlibpath_var |
| 16967 | |
| 16968 | # Is shlibpath searched before the hard-coded library search path? |
| 16969 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 16970 | |
| 16971 | # Format of library name prefix. |
| 16972 | libname_spec=$lt_libname_spec |
| 16973 | |
| 16974 | # List of archive names. First name is the real one, the rest are links. |
| 16975 | # The last name is the one that the linker finds with -lNAME |
| 16976 | library_names_spec=$lt_library_names_spec |
| 16977 | |
| 16978 | # The coded name of the library, if different from the real name. |
| 16979 | soname_spec=$lt_soname_spec |
| 16980 | |
| 16981 | # Command to use after installation of a shared archive. |
| 16982 | postinstall_cmds=$lt_postinstall_cmds |
| 16983 | |
| 16984 | # Command to use after uninstallation of a shared archive. |
| 16985 | postuninstall_cmds=$lt_postuninstall_cmds |
| 16986 | |
| 16987 | # Commands used to finish a libtool library installation in a directory. |
| 16988 | finish_cmds=$lt_finish_cmds |
| 16989 | |
| 16990 | # As "finish_cmds", except a single script fragment to be evaled but |
| 16991 | # not shown. |
| 16992 | finish_eval=$lt_finish_eval |
| 16993 | |
| 16994 | # Whether we should hardcode library paths into libraries. |
| 16995 | hardcode_into_libs=$hardcode_into_libs |
| 16996 | |
| 16997 | # Compile-time system search path for libraries. |
| 16998 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 16999 | |
| 17000 | # Run-time system search path for libraries. |
| 17001 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
| 17002 | |
| 17003 | # Whether dlopen is supported. |
| 17004 | dlopen_support=$enable_dlopen |
| 17005 | |
| 17006 | # Whether dlopen of programs is supported. |
| 17007 | dlopen_self=$enable_dlopen_self |
| 17008 | |
| 17009 | # Whether dlopen of statically linked programs is supported. |
| 17010 | dlopen_self_static=$enable_dlopen_self_static |
| 17011 | |
| 17012 | # Commands to strip libraries. |
| 17013 | old_striplib=$lt_old_striplib |
| 17014 | striplib=$lt_striplib |
| 17015 | |
| 17016 | |
| 17017 | # The linker used to build libraries. |
| 17018 | LD=$lt_LD |
| 17019 | |
| 17020 | # Commands used to build an old-style archive. |
| 17021 | old_archive_cmds=$lt_old_archive_cmds |
| 17022 | |
| 17023 | # A language specific compiler. |
| 17024 | CC=$lt_compiler |
| 17025 | |
| 17026 | # Is the compiler the GNU compiler? |
| 17027 | with_gcc=$GCC |
| 17028 | |
| 17029 | # Compiler flag to turn off builtin functions. |
| 17030 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 17031 | |
| 17032 | # How to pass a linker flag through the compiler. |
| 17033 | wl=$lt_lt_prog_compiler_wl |
| 17034 | |
| 17035 | # Additional compiler flags for building library objects. |
| 17036 | pic_flag=$lt_lt_prog_compiler_pic |
| 17037 | |
| 17038 | # Compiler flag to prevent dynamic linking. |
| 17039 | link_static_flag=$lt_lt_prog_compiler_static |
| 17040 | |
| 17041 | # Does compiler simultaneously support -c and -o options? |
| 17042 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 17043 | |
| 17044 | # Whether or not to add -lc for building shared libraries. |
| 17045 | build_libtool_need_lc=$archive_cmds_need_lc |
| 17046 | |
| 17047 | # Whether or not to disallow shared libs when runtime libs are static. |
| 17048 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 17049 | |
| 17050 | # Compiler flag to allow reflexive dlopens. |
| 17051 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 17052 | |
| 17053 | # Compiler flag to generate shared objects directly from archives. |
| 17054 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 17055 | |
| 17056 | # Whether the compiler copes with passing no objects directly. |
| 17057 | compiler_needs_object=$lt_compiler_needs_object |
| 17058 | |
| 17059 | # Create an old-style archive from a shared archive. |
| 17060 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 17061 | |
| 17062 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17063 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 17064 | |
| 17065 | # Commands used to build a shared archive. |
| 17066 | archive_cmds=$lt_archive_cmds |
| 17067 | archive_expsym_cmds=$lt_archive_expsym_cmds |
| 17068 | |
| 17069 | # Commands used to build a loadable module if different from building |
| 17070 | # a shared archive. |
| 17071 | module_cmds=$lt_module_cmds |
| 17072 | module_expsym_cmds=$lt_module_expsym_cmds |
| 17073 | |
| 17074 | # Whether we are building with GNU ld or not. |
| 17075 | with_gnu_ld=$lt_with_gnu_ld |
| 17076 | |
| 17077 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17078 | allow_undefined_flag=$lt_allow_undefined_flag |
| 17079 | |
| 17080 | # Flag that enforces no undefined symbols. |
| 17081 | no_undefined_flag=$lt_no_undefined_flag |
| 17082 | |
| 17083 | # Flag to hardcode \$libdir into a binary during linking. |
| 17084 | # This must work even if \$libdir does not exist |
| 17085 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 17086 | |
| 17087 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 17088 | # during linking. This must work even if \$libdir does not exist. |
| 17089 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
| 17090 | |
| 17091 | # Whether we need a single "-rpath" flag with a separated argument. |
| 17092 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 17093 | |
| 17094 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17095 | # DIR into the resulting binary. |
| 17096 | hardcode_direct=$hardcode_direct |
| 17097 | |
| 17098 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17099 | # DIR into the resulting binary and the resulting library dependency is |
| 17100 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 17101 | # library is relocated. |
| 17102 | hardcode_direct_absolute=$hardcode_direct_absolute |
| 17103 | |
| 17104 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 17105 | # into the resulting binary. |
| 17106 | hardcode_minus_L=$hardcode_minus_L |
| 17107 | |
| 17108 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 17109 | # into the resulting binary. |
| 17110 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 17111 | |
| 17112 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 17113 | # into the library and all subsequent libraries and executables linked |
| 17114 | # against it. |
| 17115 | hardcode_automatic=$hardcode_automatic |
| 17116 | |
| 17117 | # Set to yes if linker adds runtime paths of dependent libraries |
| 17118 | # to runtime path list. |
| 17119 | inherit_rpath=$inherit_rpath |
| 17120 | |
| 17121 | # Whether libtool must link a program against all its dependency libraries. |
| 17122 | link_all_deplibs=$link_all_deplibs |
| 17123 | |
| 17124 | # Fix the shell variable \$srcfile for the compiler. |
| 17125 | fix_srcfile_path=$lt_fix_srcfile_path |
| 17126 | |
| 17127 | # Set to "yes" if exported symbols are required. |
| 17128 | always_export_symbols=$always_export_symbols |
| 17129 | |
| 17130 | # The commands to list exported symbols. |
| 17131 | export_symbols_cmds=$lt_export_symbols_cmds |
| 17132 | |
| 17133 | # Symbols that should not be listed in the preloaded symbols. |
| 17134 | exclude_expsyms=$lt_exclude_expsyms |
| 17135 | |
| 17136 | # Symbols that must always be exported. |
| 17137 | include_expsyms=$lt_include_expsyms |
| 17138 | |
| 17139 | # Commands necessary for linking programs (against libraries) with templates. |
| 17140 | prelink_cmds=$lt_prelink_cmds |
| 17141 | |
| 17142 | # Specify filename containing input files. |
| 17143 | file_list_spec=$lt_file_list_spec |
| 17144 | |
| 17145 | # How to hardcode a shared library path into an executable. |
| 17146 | hardcode_action=$hardcode_action |
| 17147 | |
| 17148 | # The directories searched by this compiler when creating a shared library. |
| 17149 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
| 17150 | |
| 17151 | # Dependencies to place before and after the objects being linked to |
| 17152 | # create a shared library. |
| 17153 | predep_objects=$lt_predep_objects |
| 17154 | postdep_objects=$lt_postdep_objects |
| 17155 | predeps=$lt_predeps |
| 17156 | postdeps=$lt_postdeps |
| 17157 | |
| 17158 | # The library search path used internally by the compiler when linking |
| 17159 | # a shared library. |
| 17160 | compiler_lib_search_path=$lt_compiler_lib_search_path |
| 17161 | |
| 17162 | # ### END LIBTOOL CONFIG |
| 17163 | |
| 17164 | _LT_EOF |
| 17165 | |
| 17166 | case $host_os in |
| 17167 | aix3*) |
| 17168 | cat <<\_LT_EOF >> "$cfgfile" |
| 17169 | # AIX sometimes has problems with the GCC collect2 program. For some |
| 17170 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
| 17171 | # vanish in a puff of smoke. |
| 17172 | if test "X${COLLECT_NAMES+set}" != Xset; then |
| 17173 | COLLECT_NAMES= |
| 17174 | export COLLECT_NAMES |
| 17175 | fi |
| 17176 | _LT_EOF |
| 17177 | ;; |
| 17178 | esac |
| 17179 | |
| 17180 | |
| 17181 | ltmain="$ac_aux_dir/ltmain.sh" |
| 17182 | |
| 17183 | |
| 17184 | # We use sed instead of cat because bash on DJGPP gets confused if |
| 17185 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 17186 | # text mode, it properly converts lines to CR/LF. This bash problem |
| 17187 | # is reportedly fixed, but why not run on old versions too? |
| 17188 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ |
| 17189 | || (rm -f "$cfgfile"; exit 1) |
| 17190 | |
| 17191 | case $xsi_shell in |
| 17192 | yes) |
| 17193 | cat << \_LT_EOF >> "$cfgfile" |
| 17194 | |
| 17195 | # func_dirname file append nondir_replacement |
| 17196 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 17197 | # otherwise set result to NONDIR_REPLACEMENT. |
| 17198 | func_dirname () |
| 17199 | { |
| 17200 | case ${1} in |
| 17201 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 17202 | * ) func_dirname_result="${3}" ;; |
| 17203 | esac |
| 17204 | } |
| 17205 | |
| 17206 | # func_basename file |
| 17207 | func_basename () |
| 17208 | { |
| 17209 | func_basename_result="${1##*/}" |
| 17210 | } |
| 17211 | |
| 17212 | # func_dirname_and_basename file append nondir_replacement |
| 17213 | # perform func_basename and func_dirname in a single function |
| 17214 | # call: |
| 17215 | # dirname: Compute the dirname of FILE. If nonempty, |
| 17216 | # add APPEND to the result, otherwise set result |
| 17217 | # to NONDIR_REPLACEMENT. |
| 17218 | # value returned in "$func_dirname_result" |
| 17219 | # basename: Compute filename of FILE. |
| 17220 | # value retuned in "$func_basename_result" |
| 17221 | # Implementation must be kept synchronized with func_dirname |
| 17222 | # and func_basename. For efficiency, we do not delegate to |
| 17223 | # those functions but instead duplicate the functionality here. |
| 17224 | func_dirname_and_basename () |
| 17225 | { |
| 17226 | case ${1} in |
| 17227 | */*) func_dirname_result="${1%/*}${2}" ;; |
| 17228 | * ) func_dirname_result="${3}" ;; |
| 17229 | esac |
| 17230 | func_basename_result="${1##*/}" |
| 17231 | } |
| 17232 | |
| 17233 | # func_stripname prefix suffix name |
| 17234 | # strip PREFIX and SUFFIX off of NAME. |
| 17235 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 17236 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 17237 | # dot (in which case that matches only a dot). |
| 17238 | func_stripname () |
| 17239 | { |
| 17240 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are |
| 17241 | # positional parameters, so assign one to ordinary parameter first. |
| 17242 | func_stripname_result=${3} |
| 17243 | func_stripname_result=${func_stripname_result#"${1}"} |
| 17244 | func_stripname_result=${func_stripname_result%"${2}"} |
| 17245 | } |
| 17246 | |
| 17247 | # func_opt_split |
| 17248 | func_opt_split () |
| 17249 | { |
| 17250 | func_opt_split_opt=${1%%=*} |
| 17251 | func_opt_split_arg=${1#*=} |
| 17252 | } |
| 17253 | |
| 17254 | # func_lo2o object |
| 17255 | func_lo2o () |
| 17256 | { |
| 17257 | case ${1} in |
| 17258 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; |
| 17259 | *) func_lo2o_result=${1} ;; |
| 17260 | esac |
| 17261 | } |
| 17262 | |
| 17263 | # func_xform libobj-or-source |
| 17264 | func_xform () |
| 17265 | { |
| 17266 | func_xform_result=${1%.*}.lo |
| 17267 | } |
| 17268 | |
| 17269 | # func_arith arithmetic-term... |
| 17270 | func_arith () |
| 17271 | { |
| 17272 | func_arith_result=$(( $* )) |
| 17273 | } |
| 17274 | |
| 17275 | # func_len string |
| 17276 | # STRING may not start with a hyphen. |
| 17277 | func_len () |
| 17278 | { |
| 17279 | func_len_result=${#1} |
| 17280 | } |
| 17281 | |
| 17282 | _LT_EOF |
| 17283 | ;; |
| 17284 | *) # Bourne compatible functions. |
| 17285 | cat << \_LT_EOF >> "$cfgfile" |
| 17286 | |
| 17287 | # func_dirname file append nondir_replacement |
| 17288 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, |
| 17289 | # otherwise set result to NONDIR_REPLACEMENT. |
| 17290 | func_dirname () |
| 17291 | { |
| 17292 | # Extract subdirectory from the argument. |
| 17293 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` |
| 17294 | if test "X$func_dirname_result" = "X${1}"; then |
| 17295 | func_dirname_result="${3}" |
| 17296 | else |
| 17297 | func_dirname_result="$func_dirname_result${2}" |
| 17298 | fi |
| 17299 | } |
| 17300 | |
| 17301 | # func_basename file |
| 17302 | func_basename () |
| 17303 | { |
| 17304 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` |
| 17305 | } |
| 17306 | |
| 17307 | |
| 17308 | # func_stripname prefix suffix name |
| 17309 | # strip PREFIX and SUFFIX off of NAME. |
| 17310 | # PREFIX and SUFFIX must not contain globbing or regex special |
| 17311 | # characters, hashes, percent signs, but SUFFIX may contain a leading |
| 17312 | # dot (in which case that matches only a dot). |
| 17313 | # func_strip_suffix prefix name |
| 17314 | func_stripname () |
| 17315 | { |
| 17316 | case ${2} in |
| 17317 | .*) func_stripname_result=`$ECHO "X${3}" \ |
| 17318 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; |
| 17319 | *) func_stripname_result=`$ECHO "X${3}" \ |
| 17320 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; |
| 17321 | esac |
| 17322 | } |
| 17323 | |
| 17324 | # sed scripts: |
| 17325 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' |
| 17326 | my_sed_long_arg='1s/^-[^=]*=//' |
| 17327 | |
| 17328 | # func_opt_split |
| 17329 | func_opt_split () |
| 17330 | { |
| 17331 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` |
| 17332 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` |
| 17333 | } |
| 17334 | |
| 17335 | # func_lo2o object |
| 17336 | func_lo2o () |
| 17337 | { |
| 17338 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` |
| 17339 | } |
| 17340 | |
| 17341 | # func_xform libobj-or-source |
| 17342 | func_xform () |
| 17343 | { |
| 17344 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` |
| 17345 | } |
| 17346 | |
| 17347 | # func_arith arithmetic-term... |
| 17348 | func_arith () |
| 17349 | { |
| 17350 | func_arith_result=`expr "$@"` |
| 17351 | } |
| 17352 | |
| 17353 | # func_len string |
| 17354 | # STRING may not start with a hyphen. |
| 17355 | func_len () |
| 17356 | { |
| 17357 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` |
| 17358 | } |
| 17359 | |
| 17360 | _LT_EOF |
| 17361 | esac |
| 17362 | |
| 17363 | case $lt_shell_append in |
| 17364 | yes) |
| 17365 | cat << \_LT_EOF >> "$cfgfile" |
| 17366 | |
| 17367 | # func_append var value |
| 17368 | # Append VALUE to the end of shell variable VAR. |
| 17369 | func_append () |
| 17370 | { |
| 17371 | eval "$1+=\$2" |
| 17372 | } |
| 17373 | _LT_EOF |
| 17374 | ;; |
| 17375 | *) |
| 17376 | cat << \_LT_EOF >> "$cfgfile" |
| 17377 | |
| 17378 | # func_append var value |
| 17379 | # Append VALUE to the end of shell variable VAR. |
| 17380 | func_append () |
| 17381 | { |
| 17382 | eval "$1=\$$1\$2" |
| 17383 | } |
| 17384 | |
| 17385 | _LT_EOF |
| 17386 | ;; |
| 17387 | esac |
| 17388 | |
| 17389 | |
| 17390 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ |
| 17391 | || (rm -f "$cfgfile"; exit 1) |
| 17392 | |
| 17393 | mv -f "$cfgfile" "$ofile" || |
| 17394 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 17395 | chmod +x "$ofile" |
| 17396 | |
| 17397 | |
| 17398 | cat <<_LT_EOF >> "$ofile" |
| 17399 | |
| 17400 | # ### BEGIN LIBTOOL TAG CONFIG: CXX |
| 17401 | |
| 17402 | # The linker used to build libraries. |
| 17403 | LD=$lt_LD_CXX |
| 17404 | |
| 17405 | # Commands used to build an old-style archive. |
| 17406 | old_archive_cmds=$lt_old_archive_cmds_CXX |
| 17407 | |
| 17408 | # A language specific compiler. |
| 17409 | CC=$lt_compiler_CXX |
| 17410 | |
| 17411 | # Is the compiler the GNU compiler? |
| 17412 | with_gcc=$GCC_CXX |
| 17413 | |
| 17414 | # Compiler flag to turn off builtin functions. |
| 17415 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
| 17416 | |
| 17417 | # How to pass a linker flag through the compiler. |
| 17418 | wl=$lt_lt_prog_compiler_wl_CXX |
| 17419 | |
| 17420 | # Additional compiler flags for building library objects. |
| 17421 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
| 17422 | |
| 17423 | # Compiler flag to prevent dynamic linking. |
| 17424 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
| 17425 | |
| 17426 | # Does compiler simultaneously support -c and -o options? |
| 17427 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
| 17428 | |
| 17429 | # Whether or not to add -lc for building shared libraries. |
| 17430 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
| 17431 | |
| 17432 | # Whether or not to disallow shared libs when runtime libs are static. |
| 17433 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
| 17434 | |
| 17435 | # Compiler flag to allow reflexive dlopens. |
| 17436 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
| 17437 | |
| 17438 | # Compiler flag to generate shared objects directly from archives. |
| 17439 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
| 17440 | |
| 17441 | # Whether the compiler copes with passing no objects directly. |
| 17442 | compiler_needs_object=$lt_compiler_needs_object_CXX |
| 17443 | |
| 17444 | # Create an old-style archive from a shared archive. |
| 17445 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
| 17446 | |
| 17447 | # Create a temporary old-style archive to link instead of a shared archive. |
| 17448 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
| 17449 | |
| 17450 | # Commands used to build a shared archive. |
| 17451 | archive_cmds=$lt_archive_cmds_CXX |
| 17452 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
| 17453 | |
| 17454 | # Commands used to build a loadable module if different from building |
| 17455 | # a shared archive. |
| 17456 | module_cmds=$lt_module_cmds_CXX |
| 17457 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
| 17458 | |
| 17459 | # Whether we are building with GNU ld or not. |
| 17460 | with_gnu_ld=$lt_with_gnu_ld_CXX |
| 17461 | |
| 17462 | # Flag that allows shared libraries with undefined symbols to be built. |
| 17463 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
| 17464 | |
| 17465 | # Flag that enforces no undefined symbols. |
| 17466 | no_undefined_flag=$lt_no_undefined_flag_CXX |
| 17467 | |
| 17468 | # Flag to hardcode \$libdir into a binary during linking. |
| 17469 | # This must work even if \$libdir does not exist |
| 17470 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
| 17471 | |
| 17472 | # If ld is used when linking, flag to hardcode \$libdir into a binary |
| 17473 | # during linking. This must work even if \$libdir does not exist. |
| 17474 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
| 17475 | |
| 17476 | # Whether we need a single "-rpath" flag with a separated argument. |
| 17477 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
| 17478 | |
| 17479 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17480 | # DIR into the resulting binary. |
| 17481 | hardcode_direct=$hardcode_direct_CXX |
| 17482 | |
| 17483 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes |
| 17484 | # DIR into the resulting binary and the resulting library dependency is |
| 17485 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the |
| 17486 | # library is relocated. |
| 17487 | hardcode_direct_absolute=$hardcode_direct_absolute_CXX |
| 17488 | |
| 17489 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 17490 | # into the resulting binary. |
| 17491 | hardcode_minus_L=$hardcode_minus_L_CXX |
| 17492 | |
| 17493 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 17494 | # into the resulting binary. |
| 17495 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
| 17496 | |
| 17497 | # Set to "yes" if building a shared library automatically hardcodes DIR |
| 17498 | # into the library and all subsequent libraries and executables linked |
| 17499 | # against it. |
| 17500 | hardcode_automatic=$hardcode_automatic_CXX |
| 17501 | |
| 17502 | # Set to yes if linker adds runtime paths of dependent libraries |
| 17503 | # to runtime path list. |
| 17504 | inherit_rpath=$inherit_rpath_CXX |
| 17505 | |
| 17506 | # Whether libtool must link a program against all its dependency libraries. |
| 17507 | link_all_deplibs=$link_all_deplibs_CXX |
| 17508 | |
| 17509 | # Fix the shell variable \$srcfile for the compiler. |
| 17510 | fix_srcfile_path=$lt_fix_srcfile_path_CXX |
| 17511 | |
| 17512 | # Set to "yes" if exported symbols are required. |
| 17513 | always_export_symbols=$always_export_symbols_CXX |
| 17514 | |
| 17515 | # The commands to list exported symbols. |
| 17516 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
| 17517 | |
| 17518 | # Symbols that should not be listed in the preloaded symbols. |
| 17519 | exclude_expsyms=$lt_exclude_expsyms_CXX |
| 17520 | |
| 17521 | # Symbols that must always be exported. |
| 17522 | include_expsyms=$lt_include_expsyms_CXX |
| 17523 | |
| 17524 | # Commands necessary for linking programs (against libraries) with templates. |
| 17525 | prelink_cmds=$lt_prelink_cmds_CXX |
| 17526 | |
| 17527 | # Specify filename containing input files. |
| 17528 | file_list_spec=$lt_file_list_spec_CXX |
| 17529 | |
| 17530 | # How to hardcode a shared library path into an executable. |
| 17531 | hardcode_action=$hardcode_action_CXX |
| 17532 | |
| 17533 | # The directories searched by this compiler when creating a shared library. |
| 17534 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
| 17535 | |
| 17536 | # Dependencies to place before and after the objects being linked to |
| 17537 | # create a shared library. |
| 17538 | predep_objects=$lt_predep_objects_CXX |
| 17539 | postdep_objects=$lt_postdep_objects_CXX |
| 17540 | predeps=$lt_predeps_CXX |
| 17541 | postdeps=$lt_postdeps_CXX |
| 17542 | |
| 17543 | # The library search path used internally by the compiler when linking |
| 17544 | # a shared library. |
| 17545 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
| 17546 | |
| 17547 | # ### END LIBTOOL TAG CONFIG: CXX |
| 17548 | _LT_EOF |
| 17549 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17550 | ;; |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17551 | |
mmentovai | 8c2a4de | 2006-09-20 16:20:15 +0000 | [diff] [blame] | 17552 | esac |
| 17553 | done # for ac_tag |
| 17554 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17555 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17556 | as_fn_exit 0 |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17557 | _ACEOF |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17558 | ac_clean_files=$ac_clean_files_save |
| 17559 | |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17560 | test $ac_write_fail = 0 || |
| 17561 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 17562 | |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17563 | |
| 17564 | # configure is writing to config.log, and then calls config.status. |
| 17565 | # config.status does its own redirection, appending to config.log. |
| 17566 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 17567 | # by configure, so config.status won't be able to write to it; its |
| 17568 | # output is simply discarded. So we exec the FD to /dev/null, |
| 17569 | # effectively closing config.log, so it can be properly (re)opened and |
| 17570 | # appended to by config.status. When coming back to configure, we |
| 17571 | # need to make the FD available again. |
| 17572 | if test "$no_create" != yes; then |
| 17573 | ac_cs_success=: |
| 17574 | ac_config_status_args= |
| 17575 | test "$silent" = yes && |
| 17576 | ac_config_status_args="$ac_config_status_args --quiet" |
| 17577 | exec 5>/dev/null |
| 17578 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 17579 | exec 5>>config.log |
| 17580 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 17581 | # would make configure fail if this is the last instruction. |
jimblandy | 92b1f83 | 2009-12-23 22:23:49 +0000 | [diff] [blame] | 17582 | $ac_cs_success || as_fn_exit $? |
| 17583 | fi |
| 17584 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 17585 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 17586 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
bryner | cb91a2f | 2006-08-25 21:14:45 +0000 | [diff] [blame] | 17587 | fi |
| 17588 | |