Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | #! /bin/sh |
michael@0 | 2 | # Guess values for system-dependent variables and create Makefiles. |
michael@0 | 3 | # Generated by GNU Autoconf 2.69. |
michael@0 | 4 | # |
michael@0 | 5 | # |
michael@0 | 6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
michael@0 | 7 | # |
michael@0 | 8 | # |
michael@0 | 9 | # This configure script is free software; the Free Software Foundation |
michael@0 | 10 | # gives unlimited permission to copy, distribute and modify it. |
michael@0 | 11 | ## -------------------- ## |
michael@0 | 12 | ## M4sh Initialization. ## |
michael@0 | 13 | ## -------------------- ## |
michael@0 | 14 | |
michael@0 | 15 | # Be more Bourne compatible |
michael@0 | 16 | DUALCASE=1; export DUALCASE # for MKS sh |
michael@0 | 17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
michael@0 | 18 | emulate sh |
michael@0 | 19 | NULLCMD=: |
michael@0 | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
michael@0 | 21 | # is contrary to our usage. Disable this feature. |
michael@0 | 22 | alias -g '${1+"$@"}'='"$@"' |
michael@0 | 23 | setopt NO_GLOB_SUBST |
michael@0 | 24 | else |
michael@0 | 25 | case `(set -o) 2>/dev/null` in #( |
michael@0 | 26 | *posix*) : |
michael@0 | 27 | set -o posix ;; #( |
michael@0 | 28 | *) : |
michael@0 | 29 | ;; |
michael@0 | 30 | esac |
michael@0 | 31 | fi |
michael@0 | 32 | |
michael@0 | 33 | |
michael@0 | 34 | as_nl=' |
michael@0 | 35 | ' |
michael@0 | 36 | export as_nl |
michael@0 | 37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
michael@0 | 38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
michael@0 | 39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 41 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
michael@0 | 42 | # but without wasting forks for bash or zsh. |
michael@0 | 43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
michael@0 | 44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 45 | as_echo='print -r --' |
michael@0 | 46 | as_echo_n='print -rn --' |
michael@0 | 47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 48 | as_echo='printf %s\n' |
michael@0 | 49 | as_echo_n='printf %s' |
michael@0 | 50 | else |
michael@0 | 51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
michael@0 | 52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
michael@0 | 53 | as_echo_n='/usr/ucb/echo -n' |
michael@0 | 54 | else |
michael@0 | 55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
michael@0 | 56 | as_echo_n_body='eval |
michael@0 | 57 | arg=$1; |
michael@0 | 58 | case $arg in #( |
michael@0 | 59 | *"$as_nl"*) |
michael@0 | 60 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
michael@0 | 61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
michael@0 | 62 | esac; |
michael@0 | 63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
michael@0 | 64 | ' |
michael@0 | 65 | export as_echo_n_body |
michael@0 | 66 | as_echo_n='sh -c $as_echo_n_body as_echo' |
michael@0 | 67 | fi |
michael@0 | 68 | export as_echo_body |
michael@0 | 69 | as_echo='sh -c $as_echo_body as_echo' |
michael@0 | 70 | fi |
michael@0 | 71 | |
michael@0 | 72 | # The user is always right. |
michael@0 | 73 | if test "${PATH_SEPARATOR+set}" != set; then |
michael@0 | 74 | PATH_SEPARATOR=: |
michael@0 | 75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
michael@0 | 76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
michael@0 | 77 | PATH_SEPARATOR=';' |
michael@0 | 78 | } |
michael@0 | 79 | fi |
michael@0 | 80 | |
michael@0 | 81 | |
michael@0 | 82 | # IFS |
michael@0 | 83 | # We need space, tab and new line, in precisely that order. Quoting is |
michael@0 | 84 | # there to prevent editors from complaining about space-tab. |
michael@0 | 85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
michael@0 | 86 | # splitting by setting IFS to empty value.) |
michael@0 | 87 | IFS=" "" $as_nl" |
michael@0 | 88 | |
michael@0 | 89 | # Find who we are. Look in the path if we contain no directory separator. |
michael@0 | 90 | as_myself= |
michael@0 | 91 | case $0 in #(( |
michael@0 | 92 | *[\\/]* ) as_myself=$0 ;; |
michael@0 | 93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 94 | for as_dir in $PATH |
michael@0 | 95 | do |
michael@0 | 96 | IFS=$as_save_IFS |
michael@0 | 97 | test -z "$as_dir" && as_dir=. |
michael@0 | 98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
michael@0 | 99 | done |
michael@0 | 100 | IFS=$as_save_IFS |
michael@0 | 101 | |
michael@0 | 102 | ;; |
michael@0 | 103 | esac |
michael@0 | 104 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
michael@0 | 105 | # in which case we are not to be found in the path. |
michael@0 | 106 | if test "x$as_myself" = x; then |
michael@0 | 107 | as_myself=$0 |
michael@0 | 108 | fi |
michael@0 | 109 | if test ! -f "$as_myself"; then |
michael@0 | 110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
michael@0 | 111 | exit 1 |
michael@0 | 112 | fi |
michael@0 | 113 | |
michael@0 | 114 | # Unset variables that we do not need and which cause bugs (e.g. in |
michael@0 | 115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
michael@0 | 116 | # suppresses any "Segmentation fault" message there. '((' could |
michael@0 | 117 | # trigger a bug in pdksh 5.2.14. |
michael@0 | 118 | for as_var in BASH_ENV ENV MAIL MAILPATH |
michael@0 | 119 | do eval test x\${$as_var+set} = xset \ |
michael@0 | 120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
michael@0 | 121 | done |
michael@0 | 122 | PS1='$ ' |
michael@0 | 123 | PS2='> ' |
michael@0 | 124 | PS4='+ ' |
michael@0 | 125 | |
michael@0 | 126 | # NLS nuisances. |
michael@0 | 127 | LC_ALL=C |
michael@0 | 128 | export LC_ALL |
michael@0 | 129 | LANGUAGE=C |
michael@0 | 130 | export LANGUAGE |
michael@0 | 131 | |
michael@0 | 132 | # CDPATH. |
michael@0 | 133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
michael@0 | 134 | |
michael@0 | 135 | # Use a proper internal environment variable to ensure we don't fall |
michael@0 | 136 | # into an infinite loop, continuously re-executing ourselves. |
michael@0 | 137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
michael@0 | 138 | _as_can_reexec=no; export _as_can_reexec; |
michael@0 | 139 | # We cannot yet assume a decent shell, so we have to provide a |
michael@0 | 140 | # neutralization value for shells without unset; and this also |
michael@0 | 141 | # works around shells that cannot unset nonexistent variables. |
michael@0 | 142 | # Preserve -v and -x to the replacement shell. |
michael@0 | 143 | BASH_ENV=/dev/null |
michael@0 | 144 | ENV=/dev/null |
michael@0 | 145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
michael@0 | 146 | case $- in # (((( |
michael@0 | 147 | *v*x* | *x*v* ) as_opts=-vx ;; |
michael@0 | 148 | *v* ) as_opts=-v ;; |
michael@0 | 149 | *x* ) as_opts=-x ;; |
michael@0 | 150 | * ) as_opts= ;; |
michael@0 | 151 | esac |
michael@0 | 152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
michael@0 | 153 | # Admittedly, this is quite paranoid, since all the known shells bail |
michael@0 | 154 | # out after a failed `exec'. |
michael@0 | 155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
michael@0 | 156 | as_fn_exit 255 |
michael@0 | 157 | fi |
michael@0 | 158 | # We don't want this to propagate to other subprocesses. |
michael@0 | 159 | { _as_can_reexec=; unset _as_can_reexec;} |
michael@0 | 160 | if test "x$CONFIG_SHELL" = x; then |
michael@0 | 161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
michael@0 | 162 | emulate sh |
michael@0 | 163 | NULLCMD=: |
michael@0 | 164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
michael@0 | 165 | # is contrary to our usage. Disable this feature. |
michael@0 | 166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
michael@0 | 167 | setopt NO_GLOB_SUBST |
michael@0 | 168 | else |
michael@0 | 169 | case \`(set -o) 2>/dev/null\` in #( |
michael@0 | 170 | *posix*) : |
michael@0 | 171 | set -o posix ;; #( |
michael@0 | 172 | *) : |
michael@0 | 173 | ;; |
michael@0 | 174 | esac |
michael@0 | 175 | fi |
michael@0 | 176 | " |
michael@0 | 177 | as_required="as_fn_return () { (exit \$1); } |
michael@0 | 178 | as_fn_success () { as_fn_return 0; } |
michael@0 | 179 | as_fn_failure () { as_fn_return 1; } |
michael@0 | 180 | as_fn_ret_success () { return 0; } |
michael@0 | 181 | as_fn_ret_failure () { return 1; } |
michael@0 | 182 | |
michael@0 | 183 | exitcode=0 |
michael@0 | 184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
michael@0 | 185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
michael@0 | 186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
michael@0 | 187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
michael@0 | 188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
michael@0 | 189 | |
michael@0 | 190 | else |
michael@0 | 191 | exitcode=1; echo positional parameters were not saved. |
michael@0 | 192 | fi |
michael@0 | 193 | test x\$exitcode = x0 || exit 1 |
michael@0 | 194 | test -x / || exit 1" |
michael@0 | 195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
michael@0 | 196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
michael@0 | 197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
michael@0 | 198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
michael@0 | 199 | test \$(( 1 + 1 )) = 2 || exit 1" |
michael@0 | 200 | if (eval "$as_required") 2>/dev/null; then : |
michael@0 | 201 | as_have_required=yes |
michael@0 | 202 | else |
michael@0 | 203 | as_have_required=no |
michael@0 | 204 | fi |
michael@0 | 205 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
michael@0 | 206 | |
michael@0 | 207 | else |
michael@0 | 208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 209 | as_found=false |
michael@0 | 210 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
michael@0 | 211 | do |
michael@0 | 212 | IFS=$as_save_IFS |
michael@0 | 213 | test -z "$as_dir" && as_dir=. |
michael@0 | 214 | as_found=: |
michael@0 | 215 | case $as_dir in #( |
michael@0 | 216 | /*) |
michael@0 | 217 | for as_base in sh bash ksh sh5; do |
michael@0 | 218 | # Try only shells that exist, to save several forks. |
michael@0 | 219 | as_shell=$as_dir/$as_base |
michael@0 | 220 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
michael@0 | 221 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
michael@0 | 222 | CONFIG_SHELL=$as_shell as_have_required=yes |
michael@0 | 223 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
michael@0 | 224 | break 2 |
michael@0 | 225 | fi |
michael@0 | 226 | fi |
michael@0 | 227 | done;; |
michael@0 | 228 | esac |
michael@0 | 229 | as_found=false |
michael@0 | 230 | done |
michael@0 | 231 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
michael@0 | 232 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
michael@0 | 233 | CONFIG_SHELL=$SHELL as_have_required=yes |
michael@0 | 234 | fi; } |
michael@0 | 235 | IFS=$as_save_IFS |
michael@0 | 236 | |
michael@0 | 237 | |
michael@0 | 238 | if test "x$CONFIG_SHELL" != x; then : |
michael@0 | 239 | export CONFIG_SHELL |
michael@0 | 240 | # We cannot yet assume a decent shell, so we have to provide a |
michael@0 | 241 | # neutralization value for shells without unset; and this also |
michael@0 | 242 | # works around shells that cannot unset nonexistent variables. |
michael@0 | 243 | # Preserve -v and -x to the replacement shell. |
michael@0 | 244 | BASH_ENV=/dev/null |
michael@0 | 245 | ENV=/dev/null |
michael@0 | 246 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
michael@0 | 247 | case $- in # (((( |
michael@0 | 248 | *v*x* | *x*v* ) as_opts=-vx ;; |
michael@0 | 249 | *v* ) as_opts=-v ;; |
michael@0 | 250 | *x* ) as_opts=-x ;; |
michael@0 | 251 | * ) as_opts= ;; |
michael@0 | 252 | esac |
michael@0 | 253 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
michael@0 | 254 | # Admittedly, this is quite paranoid, since all the known shells bail |
michael@0 | 255 | # out after a failed `exec'. |
michael@0 | 256 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
michael@0 | 257 | exit 255 |
michael@0 | 258 | fi |
michael@0 | 259 | |
michael@0 | 260 | if test x$as_have_required = xno; then : |
michael@0 | 261 | $as_echo "$0: This script requires a shell more modern than all" |
michael@0 | 262 | $as_echo "$0: the shells that I found on your system." |
michael@0 | 263 | if test x${ZSH_VERSION+set} = xset ; then |
michael@0 | 264 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
michael@0 | 265 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
michael@0 | 266 | else |
michael@0 | 267 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
michael@0 | 268 | $0: including any error possibly output before this |
michael@0 | 269 | $0: message. Then install a modern shell, or manually run |
michael@0 | 270 | $0: the script under such a shell if you do have one." |
michael@0 | 271 | fi |
michael@0 | 272 | exit 1 |
michael@0 | 273 | fi |
michael@0 | 274 | fi |
michael@0 | 275 | fi |
michael@0 | 276 | SHELL=${CONFIG_SHELL-/bin/sh} |
michael@0 | 277 | export SHELL |
michael@0 | 278 | # Unset more variables known to interfere with behavior of common tools. |
michael@0 | 279 | CLICOLOR_FORCE= GREP_OPTIONS= |
michael@0 | 280 | unset CLICOLOR_FORCE GREP_OPTIONS |
michael@0 | 281 | |
michael@0 | 282 | ## --------------------- ## |
michael@0 | 283 | ## M4sh Shell Functions. ## |
michael@0 | 284 | ## --------------------- ## |
michael@0 | 285 | # as_fn_unset VAR |
michael@0 | 286 | # --------------- |
michael@0 | 287 | # Portably unset VAR. |
michael@0 | 288 | as_fn_unset () |
michael@0 | 289 | { |
michael@0 | 290 | { eval $1=; unset $1;} |
michael@0 | 291 | } |
michael@0 | 292 | as_unset=as_fn_unset |
michael@0 | 293 | |
michael@0 | 294 | # as_fn_set_status STATUS |
michael@0 | 295 | # ----------------------- |
michael@0 | 296 | # Set $? to STATUS, without forking. |
michael@0 | 297 | as_fn_set_status () |
michael@0 | 298 | { |
michael@0 | 299 | return $1 |
michael@0 | 300 | } # as_fn_set_status |
michael@0 | 301 | |
michael@0 | 302 | # as_fn_exit STATUS |
michael@0 | 303 | # ----------------- |
michael@0 | 304 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
michael@0 | 305 | as_fn_exit () |
michael@0 | 306 | { |
michael@0 | 307 | set +e |
michael@0 | 308 | as_fn_set_status $1 |
michael@0 | 309 | exit $1 |
michael@0 | 310 | } # as_fn_exit |
michael@0 | 311 | |
michael@0 | 312 | # as_fn_mkdir_p |
michael@0 | 313 | # ------------- |
michael@0 | 314 | # Create "$as_dir" as a directory, including parents if necessary. |
michael@0 | 315 | as_fn_mkdir_p () |
michael@0 | 316 | { |
michael@0 | 317 | |
michael@0 | 318 | case $as_dir in #( |
michael@0 | 319 | -*) as_dir=./$as_dir;; |
michael@0 | 320 | esac |
michael@0 | 321 | test -d "$as_dir" || eval $as_mkdir_p || { |
michael@0 | 322 | as_dirs= |
michael@0 | 323 | while :; do |
michael@0 | 324 | case $as_dir in #( |
michael@0 | 325 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
michael@0 | 326 | *) as_qdir=$as_dir;; |
michael@0 | 327 | esac |
michael@0 | 328 | as_dirs="'$as_qdir' $as_dirs" |
michael@0 | 329 | as_dir=`$as_dirname -- "$as_dir" || |
michael@0 | 330 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 331 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
michael@0 | 332 | X"$as_dir" : 'X\(//\)$' \| \ |
michael@0 | 333 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 334 | $as_echo X"$as_dir" | |
michael@0 | 335 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 336 | s//\1/ |
michael@0 | 337 | q |
michael@0 | 338 | } |
michael@0 | 339 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 340 | s//\1/ |
michael@0 | 341 | q |
michael@0 | 342 | } |
michael@0 | 343 | /^X\(\/\/\)$/{ |
michael@0 | 344 | s//\1/ |
michael@0 | 345 | q |
michael@0 | 346 | } |
michael@0 | 347 | /^X\(\/\).*/{ |
michael@0 | 348 | s//\1/ |
michael@0 | 349 | q |
michael@0 | 350 | } |
michael@0 | 351 | s/.*/./; q'` |
michael@0 | 352 | test -d "$as_dir" && break |
michael@0 | 353 | done |
michael@0 | 354 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
michael@0 | 355 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
michael@0 | 356 | |
michael@0 | 357 | |
michael@0 | 358 | } # as_fn_mkdir_p |
michael@0 | 359 | |
michael@0 | 360 | # as_fn_executable_p FILE |
michael@0 | 361 | # ----------------------- |
michael@0 | 362 | # Test if FILE is an executable regular file. |
michael@0 | 363 | as_fn_executable_p () |
michael@0 | 364 | { |
michael@0 | 365 | test -f "$1" && test -x "$1" |
michael@0 | 366 | } # as_fn_executable_p |
michael@0 | 367 | # as_fn_append VAR VALUE |
michael@0 | 368 | # ---------------------- |
michael@0 | 369 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
michael@0 | 370 | # advantage of any shell optimizations that allow amortized linear growth over |
michael@0 | 371 | # repeated appends, instead of the typical quadratic growth present in naive |
michael@0 | 372 | # implementations. |
michael@0 | 373 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
michael@0 | 374 | eval 'as_fn_append () |
michael@0 | 375 | { |
michael@0 | 376 | eval $1+=\$2 |
michael@0 | 377 | }' |
michael@0 | 378 | else |
michael@0 | 379 | as_fn_append () |
michael@0 | 380 | { |
michael@0 | 381 | eval $1=\$$1\$2 |
michael@0 | 382 | } |
michael@0 | 383 | fi # as_fn_append |
michael@0 | 384 | |
michael@0 | 385 | # as_fn_arith ARG... |
michael@0 | 386 | # ------------------ |
michael@0 | 387 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
michael@0 | 388 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
michael@0 | 389 | # must be portable across $(()) and expr. |
michael@0 | 390 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
michael@0 | 391 | eval 'as_fn_arith () |
michael@0 | 392 | { |
michael@0 | 393 | as_val=$(( $* )) |
michael@0 | 394 | }' |
michael@0 | 395 | else |
michael@0 | 396 | as_fn_arith () |
michael@0 | 397 | { |
michael@0 | 398 | as_val=`expr "$@" || test $? -eq 1` |
michael@0 | 399 | } |
michael@0 | 400 | fi # as_fn_arith |
michael@0 | 401 | |
michael@0 | 402 | |
michael@0 | 403 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
michael@0 | 404 | # ---------------------------------------- |
michael@0 | 405 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
michael@0 | 406 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
michael@0 | 407 | # script with STATUS, using 1 if that was 0. |
michael@0 | 408 | as_fn_error () |
michael@0 | 409 | { |
michael@0 | 410 | as_status=$1; test $as_status -eq 0 && as_status=1 |
michael@0 | 411 | if test "$4"; then |
michael@0 | 412 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 413 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
michael@0 | 414 | fi |
michael@0 | 415 | $as_echo "$as_me: error: $2" >&2 |
michael@0 | 416 | as_fn_exit $as_status |
michael@0 | 417 | } # as_fn_error |
michael@0 | 418 | |
michael@0 | 419 | if expr a : '\(a\)' >/dev/null 2>&1 && |
michael@0 | 420 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
michael@0 | 421 | as_expr=expr |
michael@0 | 422 | else |
michael@0 | 423 | as_expr=false |
michael@0 | 424 | fi |
michael@0 | 425 | |
michael@0 | 426 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
michael@0 | 427 | as_basename=basename |
michael@0 | 428 | else |
michael@0 | 429 | as_basename=false |
michael@0 | 430 | fi |
michael@0 | 431 | |
michael@0 | 432 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
michael@0 | 433 | as_dirname=dirname |
michael@0 | 434 | else |
michael@0 | 435 | as_dirname=false |
michael@0 | 436 | fi |
michael@0 | 437 | |
michael@0 | 438 | as_me=`$as_basename -- "$0" || |
michael@0 | 439 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
michael@0 | 440 | X"$0" : 'X\(//\)$' \| \ |
michael@0 | 441 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 442 | $as_echo X/"$0" | |
michael@0 | 443 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
michael@0 | 444 | s//\1/ |
michael@0 | 445 | q |
michael@0 | 446 | } |
michael@0 | 447 | /^X\/\(\/\/\)$/{ |
michael@0 | 448 | s//\1/ |
michael@0 | 449 | q |
michael@0 | 450 | } |
michael@0 | 451 | /^X\/\(\/\).*/{ |
michael@0 | 452 | s//\1/ |
michael@0 | 453 | q |
michael@0 | 454 | } |
michael@0 | 455 | s/.*/./; q'` |
michael@0 | 456 | |
michael@0 | 457 | # Avoid depending upon Character Ranges. |
michael@0 | 458 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
michael@0 | 459 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
michael@0 | 460 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
michael@0 | 461 | as_cr_digits='0123456789' |
michael@0 | 462 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
michael@0 | 463 | |
michael@0 | 464 | |
michael@0 | 465 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
michael@0 | 466 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
michael@0 | 467 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
michael@0 | 468 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
michael@0 | 469 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
michael@0 | 470 | sed -n ' |
michael@0 | 471 | p |
michael@0 | 472 | /[$]LINENO/= |
michael@0 | 473 | ' <$as_myself | |
michael@0 | 474 | sed ' |
michael@0 | 475 | s/[$]LINENO.*/&-/ |
michael@0 | 476 | t lineno |
michael@0 | 477 | b |
michael@0 | 478 | :lineno |
michael@0 | 479 | N |
michael@0 | 480 | :loop |
michael@0 | 481 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
michael@0 | 482 | t loop |
michael@0 | 483 | s/-\n.*// |
michael@0 | 484 | ' >$as_me.lineno && |
michael@0 | 485 | chmod +x "$as_me.lineno" || |
michael@0 | 486 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
michael@0 | 487 | |
michael@0 | 488 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
michael@0 | 489 | # already done that, so ensure we don't try to do so again and fall |
michael@0 | 490 | # in an infinite loop. This has already happened in practice. |
michael@0 | 491 | _as_can_reexec=no; export _as_can_reexec |
michael@0 | 492 | # Don't try to exec as it changes $[0], causing all sort of problems |
michael@0 | 493 | # (the dirname of $[0] is not the place where we might find the |
michael@0 | 494 | # original and so on. Autoconf is especially sensitive to this). |
michael@0 | 495 | . "./$as_me.lineno" |
michael@0 | 496 | # Exit status is that of the last command. |
michael@0 | 497 | exit |
michael@0 | 498 | } |
michael@0 | 499 | |
michael@0 | 500 | ECHO_C= ECHO_N= ECHO_T= |
michael@0 | 501 | case `echo -n x` in #((((( |
michael@0 | 502 | -n*) |
michael@0 | 503 | case `echo 'xy\c'` in |
michael@0 | 504 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
michael@0 | 505 | xy) ECHO_C='\c';; |
michael@0 | 506 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
michael@0 | 507 | ECHO_T=' ';; |
michael@0 | 508 | esac;; |
michael@0 | 509 | *) |
michael@0 | 510 | ECHO_N='-n';; |
michael@0 | 511 | esac |
michael@0 | 512 | |
michael@0 | 513 | rm -f conf$$ conf$$.exe conf$$.file |
michael@0 | 514 | if test -d conf$$.dir; then |
michael@0 | 515 | rm -f conf$$.dir/conf$$.file |
michael@0 | 516 | else |
michael@0 | 517 | rm -f conf$$.dir |
michael@0 | 518 | mkdir conf$$.dir 2>/dev/null |
michael@0 | 519 | fi |
michael@0 | 520 | if (echo >conf$$.file) 2>/dev/null; then |
michael@0 | 521 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 522 | as_ln_s='ln -s' |
michael@0 | 523 | # ... but there are two gotchas: |
michael@0 | 524 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
michael@0 | 525 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
michael@0 | 526 | # In both cases, we have to default to `cp -pR'. |
michael@0 | 527 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
michael@0 | 528 | as_ln_s='cp -pR' |
michael@0 | 529 | elif ln conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 530 | as_ln_s=ln |
michael@0 | 531 | else |
michael@0 | 532 | as_ln_s='cp -pR' |
michael@0 | 533 | fi |
michael@0 | 534 | else |
michael@0 | 535 | as_ln_s='cp -pR' |
michael@0 | 536 | fi |
michael@0 | 537 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
michael@0 | 538 | rmdir conf$$.dir 2>/dev/null |
michael@0 | 539 | |
michael@0 | 540 | if mkdir -p . 2>/dev/null; then |
michael@0 | 541 | as_mkdir_p='mkdir -p "$as_dir"' |
michael@0 | 542 | else |
michael@0 | 543 | test -d ./-p && rmdir ./-p |
michael@0 | 544 | as_mkdir_p=false |
michael@0 | 545 | fi |
michael@0 | 546 | |
michael@0 | 547 | as_test_x='test -x' |
michael@0 | 548 | as_executable_p=as_fn_executable_p |
michael@0 | 549 | |
michael@0 | 550 | # Sed expression to map a string onto a valid CPP name. |
michael@0 | 551 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 552 | |
michael@0 | 553 | # Sed expression to map a string onto a valid variable name. |
michael@0 | 554 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 555 | |
michael@0 | 556 | |
michael@0 | 557 | test -n "$DJDIR" || exec 7<&0 </dev/null |
michael@0 | 558 | exec 6>&1 |
michael@0 | 559 | |
michael@0 | 560 | # Name of the host. |
michael@0 | 561 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
michael@0 | 562 | # so uname gets run too. |
michael@0 | 563 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
michael@0 | 564 | |
michael@0 | 565 | # |
michael@0 | 566 | # Initializations. |
michael@0 | 567 | # |
michael@0 | 568 | ac_default_prefix=/usr/local |
michael@0 | 569 | ac_clean_files= |
michael@0 | 570 | ac_config_libobj_dir=. |
michael@0 | 571 | LIBOBJS= |
michael@0 | 572 | cross_compiling=no |
michael@0 | 573 | subdirs= |
michael@0 | 574 | MFLAGS= |
michael@0 | 575 | MAKEFLAGS= |
michael@0 | 576 | |
michael@0 | 577 | # Identity of this package. |
michael@0 | 578 | PACKAGE_NAME= |
michael@0 | 579 | PACKAGE_TARNAME= |
michael@0 | 580 | PACKAGE_VERSION= |
michael@0 | 581 | PACKAGE_STRING= |
michael@0 | 582 | PACKAGE_BUGREPORT= |
michael@0 | 583 | PACKAGE_URL= |
michael@0 | 584 | |
michael@0 | 585 | ac_unique_file="pr/include/nspr.h" |
michael@0 | 586 | # Factoring default headers for most tests. |
michael@0 | 587 | ac_includes_default="\ |
michael@0 | 588 | #include <stdio.h> |
michael@0 | 589 | #ifdef HAVE_SYS_TYPES_H |
michael@0 | 590 | # include <sys/types.h> |
michael@0 | 591 | #endif |
michael@0 | 592 | #ifdef HAVE_SYS_STAT_H |
michael@0 | 593 | # include <sys/stat.h> |
michael@0 | 594 | #endif |
michael@0 | 595 | #ifdef STDC_HEADERS |
michael@0 | 596 | # include <stdlib.h> |
michael@0 | 597 | # include <stddef.h> |
michael@0 | 598 | #else |
michael@0 | 599 | # ifdef HAVE_STDLIB_H |
michael@0 | 600 | # include <stdlib.h> |
michael@0 | 601 | # endif |
michael@0 | 602 | #endif |
michael@0 | 603 | #ifdef HAVE_STRING_H |
michael@0 | 604 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
michael@0 | 605 | # include <memory.h> |
michael@0 | 606 | # endif |
michael@0 | 607 | # include <string.h> |
michael@0 | 608 | #endif |
michael@0 | 609 | #ifdef HAVE_STRINGS_H |
michael@0 | 610 | # include <strings.h> |
michael@0 | 611 | #endif |
michael@0 | 612 | #ifdef HAVE_INTTYPES_H |
michael@0 | 613 | # include <inttypes.h> |
michael@0 | 614 | #endif |
michael@0 | 615 | #ifdef HAVE_STDINT_H |
michael@0 | 616 | # include <stdint.h> |
michael@0 | 617 | #endif |
michael@0 | 618 | #ifdef HAVE_UNISTD_H |
michael@0 | 619 | # include <unistd.h> |
michael@0 | 620 | #endif" |
michael@0 | 621 | |
michael@0 | 622 | ac_subst_vars='LTLIBOBJS |
michael@0 | 623 | LIBOBJS |
michael@0 | 624 | MT |
michael@0 | 625 | NEXT_ROOT |
michael@0 | 626 | SYMBIAN_SDK_DIR |
michael@0 | 627 | MACOS_SDK_DIR |
michael@0 | 628 | WRAP_SYSTEM_INCLUDES |
michael@0 | 629 | VISIBILITY_FLAGS |
michael@0 | 630 | CYGWIN_WRAPPER |
michael@0 | 631 | OS_DLLFLAGS |
michael@0 | 632 | EXEFLAGS |
michael@0 | 633 | DLLFLAGS |
michael@0 | 634 | RCFLAGS |
michael@0 | 635 | RC |
michael@0 | 636 | OPTIMIZER |
michael@0 | 637 | NSINSTALL |
michael@0 | 638 | RELEASE_OBJDIR_NAME |
michael@0 | 639 | OBJDIR_NAME |
michael@0 | 640 | OBJDIR |
michael@0 | 641 | ULTRASPARC_LIBRARY |
michael@0 | 642 | MOZ_OBJFORMAT |
michael@0 | 643 | NOSUCHFILE |
michael@0 | 644 | AIX_LINK_OPTS |
michael@0 | 645 | RESOLVE_LINK_SYMBOLS |
michael@0 | 646 | OS_LIBS |
michael@0 | 647 | PROFILE_USE_LDFLAGS |
michael@0 | 648 | PROFILE_USE_CFLAGS |
michael@0 | 649 | PROFILE_GEN_LDFLAGS |
michael@0 | 650 | PROFILE_GEN_CFLAGS |
michael@0 | 651 | IMPLIB |
michael@0 | 652 | FILTER |
michael@0 | 653 | ASFLAGS |
michael@0 | 654 | AR_FLAGS |
michael@0 | 655 | DEFINES |
michael@0 | 656 | MACOSX_DEPLOYMENT_TARGET |
michael@0 | 657 | OS_TEST |
michael@0 | 658 | OS_RELEASE |
michael@0 | 659 | OS_ARCH |
michael@0 | 660 | OS_TARGET |
michael@0 | 661 | DSO_LDOPTS |
michael@0 | 662 | DSO_CFLAGS |
michael@0 | 663 | MKSHLIB |
michael@0 | 664 | WRAP_LDFLAGS |
michael@0 | 665 | ASM_SUFFIX |
michael@0 | 666 | DLL_SUFFIX |
michael@0 | 667 | LIB_SUFFIX |
michael@0 | 668 | OBJ_SUFFIX |
michael@0 | 669 | CPU_ARCH |
michael@0 | 670 | PR_MD_ARCH_DIR |
michael@0 | 671 | PR_MD_ASFILES |
michael@0 | 672 | PR_MD_CSRCS |
michael@0 | 673 | MDCPUCFG_H |
michael@0 | 674 | NSPR_MODNAME |
michael@0 | 675 | MOD_PATCH_VERSION |
michael@0 | 676 | MOD_MINOR_VERSION |
michael@0 | 677 | MOD_MAJOR_VERSION |
michael@0 | 678 | LIBPLC |
michael@0 | 679 | LIBNSPR |
michael@0 | 680 | USE_NSPR_THREADS |
michael@0 | 681 | USE_USER_PTHREADS |
michael@0 | 682 | USE_BTHREADS |
michael@0 | 683 | USE_PTHREADS |
michael@0 | 684 | ENABLE_STRIP |
michael@0 | 685 | OBJECT_MODE |
michael@0 | 686 | USE_64 |
michael@0 | 687 | USE_X32 |
michael@0 | 688 | USE_N32 |
michael@0 | 689 | USE_IPV6 |
michael@0 | 690 | USE_CPLUS |
michael@0 | 691 | MOZ_DEBUG_SYMBOLS |
michael@0 | 692 | MOZ_DEBUG |
michael@0 | 693 | MOZ_OPTIMIZE |
michael@0 | 694 | CROSS_COMPILE |
michael@0 | 695 | MSC_VER |
michael@0 | 696 | GCC_USE_GNU_LD |
michael@0 | 697 | GNU_CC |
michael@0 | 698 | HOST_LDFLAGS |
michael@0 | 699 | HOST_CFLAGS |
michael@0 | 700 | MOZILLA_CLIENT |
michael@0 | 701 | SHELL_OVERRIDE |
michael@0 | 702 | CCACHE |
michael@0 | 703 | EGREP |
michael@0 | 704 | GREP |
michael@0 | 705 | PERL |
michael@0 | 706 | CPP |
michael@0 | 707 | HOST_CC |
michael@0 | 708 | WINDRES |
michael@0 | 709 | STRIP |
michael@0 | 710 | LD |
michael@0 | 711 | AS |
michael@0 | 712 | AR |
michael@0 | 713 | RANLIB |
michael@0 | 714 | ac_ct_CXX |
michael@0 | 715 | CXXFLAGS |
michael@0 | 716 | CXX |
michael@0 | 717 | OBJEXT |
michael@0 | 718 | EXEEXT |
michael@0 | 719 | ac_ct_CC |
michael@0 | 720 | CPPFLAGS |
michael@0 | 721 | LDFLAGS |
michael@0 | 722 | CFLAGS |
michael@0 | 723 | WHOAMI |
michael@0 | 724 | dist_libdir |
michael@0 | 725 | dist_includedir |
michael@0 | 726 | dist_bindir |
michael@0 | 727 | dist_prefix |
michael@0 | 728 | CC |
michael@0 | 729 | target_os |
michael@0 | 730 | target_vendor |
michael@0 | 731 | target_cpu |
michael@0 | 732 | target |
michael@0 | 733 | host_os |
michael@0 | 734 | host_vendor |
michael@0 | 735 | host_cpu |
michael@0 | 736 | host |
michael@0 | 737 | build_os |
michael@0 | 738 | build_vendor |
michael@0 | 739 | build_cpu |
michael@0 | 740 | build |
michael@0 | 741 | target_alias |
michael@0 | 742 | host_alias |
michael@0 | 743 | build_alias |
michael@0 | 744 | LIBS |
michael@0 | 745 | ECHO_T |
michael@0 | 746 | ECHO_N |
michael@0 | 747 | ECHO_C |
michael@0 | 748 | DEFS |
michael@0 | 749 | mandir |
michael@0 | 750 | localedir |
michael@0 | 751 | libdir |
michael@0 | 752 | psdir |
michael@0 | 753 | pdfdir |
michael@0 | 754 | dvidir |
michael@0 | 755 | htmldir |
michael@0 | 756 | infodir |
michael@0 | 757 | docdir |
michael@0 | 758 | oldincludedir |
michael@0 | 759 | includedir |
michael@0 | 760 | localstatedir |
michael@0 | 761 | sharedstatedir |
michael@0 | 762 | sysconfdir |
michael@0 | 763 | datadir |
michael@0 | 764 | datarootdir |
michael@0 | 765 | libexecdir |
michael@0 | 766 | sbindir |
michael@0 | 767 | bindir |
michael@0 | 768 | program_transform_name |
michael@0 | 769 | prefix |
michael@0 | 770 | exec_prefix |
michael@0 | 771 | PACKAGE_URL |
michael@0 | 772 | PACKAGE_BUGREPORT |
michael@0 | 773 | PACKAGE_STRING |
michael@0 | 774 | PACKAGE_VERSION |
michael@0 | 775 | PACKAGE_TARNAME |
michael@0 | 776 | PACKAGE_NAME |
michael@0 | 777 | PATH_SEPARATOR |
michael@0 | 778 | SHELL' |
michael@0 | 779 | ac_subst_files='' |
michael@0 | 780 | ac_user_opts=' |
michael@0 | 781 | enable_option_checking |
michael@0 | 782 | with_android_ndk |
michael@0 | 783 | with_android_toolchain |
michael@0 | 784 | with_android_version |
michael@0 | 785 | with_android_platform |
michael@0 | 786 | with_gonk |
michael@0 | 787 | with_dist_prefix |
michael@0 | 788 | with_dist_bindir |
michael@0 | 789 | with_dist_includedir |
michael@0 | 790 | with_dist_libdir |
michael@0 | 791 | with_mozilla |
michael@0 | 792 | enable_optimize |
michael@0 | 793 | enable_debug |
michael@0 | 794 | enable_debug_symbols |
michael@0 | 795 | enable_win32_target |
michael@0 | 796 | enable_symbian_target |
michael@0 | 797 | enable_debug_rtl |
michael@0 | 798 | enable_n32 |
michael@0 | 799 | enable_x32 |
michael@0 | 800 | enable_64bit |
michael@0 | 801 | enable_mdupdate |
michael@0 | 802 | enable_cplus |
michael@0 | 803 | with_arm_kuser |
michael@0 | 804 | with_macos_sdk |
michael@0 | 805 | enable_macos_target |
michael@0 | 806 | enable_os2_high_mem |
michael@0 | 807 | enable_thumb2 |
michael@0 | 808 | with_thumb |
michael@0 | 809 | with_thumb_interwork |
michael@0 | 810 | with_arch |
michael@0 | 811 | with_fpu |
michael@0 | 812 | with_float_abi |
michael@0 | 813 | with_soft_float |
michael@0 | 814 | with_symbian_sdk |
michael@0 | 815 | with_ccache |
michael@0 | 816 | enable_strip |
michael@0 | 817 | with_pthreads |
michael@0 | 818 | enable_user_pthreads |
michael@0 | 819 | enable_nspr_threads |
michael@0 | 820 | with_bthreads |
michael@0 | 821 | enable_ipv6 |
michael@0 | 822 | enable_wrap_malloc |
michael@0 | 823 | with_wrap_malloc |
michael@0 | 824 | ' |
michael@0 | 825 | ac_precious_vars='build_alias |
michael@0 | 826 | host_alias |
michael@0 | 827 | target_alias |
michael@0 | 828 | CC |
michael@0 | 829 | CFLAGS |
michael@0 | 830 | LDFLAGS |
michael@0 | 831 | LIBS |
michael@0 | 832 | CPPFLAGS |
michael@0 | 833 | CXX |
michael@0 | 834 | CXXFLAGS |
michael@0 | 835 | CCC |
michael@0 | 836 | CPP' |
michael@0 | 837 | |
michael@0 | 838 | |
michael@0 | 839 | # Initialize some variables set by options. |
michael@0 | 840 | ac_init_help= |
michael@0 | 841 | ac_init_version=false |
michael@0 | 842 | ac_unrecognized_opts= |
michael@0 | 843 | ac_unrecognized_sep= |
michael@0 | 844 | # The variables have the same names as the options, with |
michael@0 | 845 | # dashes changed to underlines. |
michael@0 | 846 | cache_file=/dev/null |
michael@0 | 847 | exec_prefix=NONE |
michael@0 | 848 | no_create= |
michael@0 | 849 | no_recursion= |
michael@0 | 850 | prefix=NONE |
michael@0 | 851 | program_prefix=NONE |
michael@0 | 852 | program_suffix=NONE |
michael@0 | 853 | program_transform_name=s,x,x, |
michael@0 | 854 | silent= |
michael@0 | 855 | site= |
michael@0 | 856 | srcdir= |
michael@0 | 857 | verbose= |
michael@0 | 858 | x_includes=NONE |
michael@0 | 859 | x_libraries=NONE |
michael@0 | 860 | |
michael@0 | 861 | # Installation directory options. |
michael@0 | 862 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
michael@0 | 863 | # and all the variables that are supposed to be based on exec_prefix |
michael@0 | 864 | # by default will actually change. |
michael@0 | 865 | # Use braces instead of parens because sh, perl, etc. also accept them. |
michael@0 | 866 | # (The list follows the same order as the GNU Coding Standards.) |
michael@0 | 867 | bindir='${exec_prefix}/bin' |
michael@0 | 868 | sbindir='${exec_prefix}/sbin' |
michael@0 | 869 | libexecdir='${exec_prefix}/libexec' |
michael@0 | 870 | datarootdir='${prefix}/share' |
michael@0 | 871 | datadir='${datarootdir}' |
michael@0 | 872 | sysconfdir='${prefix}/etc' |
michael@0 | 873 | sharedstatedir='${prefix}/com' |
michael@0 | 874 | localstatedir='${prefix}/var' |
michael@0 | 875 | includedir='${prefix}/include' |
michael@0 | 876 | oldincludedir='/usr/include' |
michael@0 | 877 | docdir='${datarootdir}/doc/${PACKAGE}' |
michael@0 | 878 | infodir='${datarootdir}/info' |
michael@0 | 879 | htmldir='${docdir}' |
michael@0 | 880 | dvidir='${docdir}' |
michael@0 | 881 | pdfdir='${docdir}' |
michael@0 | 882 | psdir='${docdir}' |
michael@0 | 883 | libdir='${exec_prefix}/lib' |
michael@0 | 884 | localedir='${datarootdir}/locale' |
michael@0 | 885 | mandir='${datarootdir}/man' |
michael@0 | 886 | |
michael@0 | 887 | ac_prev= |
michael@0 | 888 | ac_dashdash= |
michael@0 | 889 | for ac_option |
michael@0 | 890 | do |
michael@0 | 891 | # If the previous option needs an argument, assign it. |
michael@0 | 892 | if test -n "$ac_prev"; then |
michael@0 | 893 | eval $ac_prev=\$ac_option |
michael@0 | 894 | ac_prev= |
michael@0 | 895 | continue |
michael@0 | 896 | fi |
michael@0 | 897 | |
michael@0 | 898 | case $ac_option in |
michael@0 | 899 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
michael@0 | 900 | *=) ac_optarg= ;; |
michael@0 | 901 | *) ac_optarg=yes ;; |
michael@0 | 902 | esac |
michael@0 | 903 | |
michael@0 | 904 | # Accept the important Cygnus configure options, so we can diagnose typos. |
michael@0 | 905 | |
michael@0 | 906 | case $ac_dashdash$ac_option in |
michael@0 | 907 | --) |
michael@0 | 908 | ac_dashdash=yes ;; |
michael@0 | 909 | |
michael@0 | 910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
michael@0 | 911 | ac_prev=bindir ;; |
michael@0 | 912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
michael@0 | 913 | bindir=$ac_optarg ;; |
michael@0 | 914 | |
michael@0 | 915 | -build | --build | --buil | --bui | --bu) |
michael@0 | 916 | ac_prev=build_alias ;; |
michael@0 | 917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
michael@0 | 918 | build_alias=$ac_optarg ;; |
michael@0 | 919 | |
michael@0 | 920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
michael@0 | 921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
michael@0 | 922 | ac_prev=cache_file ;; |
michael@0 | 923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
michael@0 | 924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
michael@0 | 925 | cache_file=$ac_optarg ;; |
michael@0 | 926 | |
michael@0 | 927 | --config-cache | -C) |
michael@0 | 928 | cache_file=config.cache ;; |
michael@0 | 929 | |
michael@0 | 930 | -datadir | --datadir | --datadi | --datad) |
michael@0 | 931 | ac_prev=datadir ;; |
michael@0 | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
michael@0 | 933 | datadir=$ac_optarg ;; |
michael@0 | 934 | |
michael@0 | 935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
michael@0 | 936 | | --dataroo | --dataro | --datar) |
michael@0 | 937 | ac_prev=datarootdir ;; |
michael@0 | 938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
michael@0 | 939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
michael@0 | 940 | datarootdir=$ac_optarg ;; |
michael@0 | 941 | |
michael@0 | 942 | -disable-* | --disable-*) |
michael@0 | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
michael@0 | 944 | # Reject names that are not valid shell variable names. |
michael@0 | 945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 946 | as_fn_error $? "invalid feature name: $ac_useropt" |
michael@0 | 947 | ac_useropt_orig=$ac_useropt |
michael@0 | 948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 949 | case $ac_user_opts in |
michael@0 | 950 | *" |
michael@0 | 951 | "enable_$ac_useropt" |
michael@0 | 952 | "*) ;; |
michael@0 | 953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
michael@0 | 954 | ac_unrecognized_sep=', ';; |
michael@0 | 955 | esac |
michael@0 | 956 | eval enable_$ac_useropt=no ;; |
michael@0 | 957 | |
michael@0 | 958 | -docdir | --docdir | --docdi | --doc | --do) |
michael@0 | 959 | ac_prev=docdir ;; |
michael@0 | 960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
michael@0 | 961 | docdir=$ac_optarg ;; |
michael@0 | 962 | |
michael@0 | 963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
michael@0 | 964 | ac_prev=dvidir ;; |
michael@0 | 965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
michael@0 | 966 | dvidir=$ac_optarg ;; |
michael@0 | 967 | |
michael@0 | 968 | -enable-* | --enable-*) |
michael@0 | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
michael@0 | 970 | # Reject names that are not valid shell variable names. |
michael@0 | 971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 972 | as_fn_error $? "invalid feature name: $ac_useropt" |
michael@0 | 973 | ac_useropt_orig=$ac_useropt |
michael@0 | 974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 975 | case $ac_user_opts in |
michael@0 | 976 | *" |
michael@0 | 977 | "enable_$ac_useropt" |
michael@0 | 978 | "*) ;; |
michael@0 | 979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
michael@0 | 980 | ac_unrecognized_sep=', ';; |
michael@0 | 981 | esac |
michael@0 | 982 | eval enable_$ac_useropt=\$ac_optarg ;; |
michael@0 | 983 | |
michael@0 | 984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
michael@0 | 985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
michael@0 | 986 | | --exec | --exe | --ex) |
michael@0 | 987 | ac_prev=exec_prefix ;; |
michael@0 | 988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
michael@0 | 989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
michael@0 | 990 | | --exec=* | --exe=* | --ex=*) |
michael@0 | 991 | exec_prefix=$ac_optarg ;; |
michael@0 | 992 | |
michael@0 | 993 | -gas | --gas | --ga | --g) |
michael@0 | 994 | # Obsolete; use --with-gas. |
michael@0 | 995 | with_gas=yes ;; |
michael@0 | 996 | |
michael@0 | 997 | -help | --help | --hel | --he | -h) |
michael@0 | 998 | ac_init_help=long ;; |
michael@0 | 999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
michael@0 | 1000 | ac_init_help=recursive ;; |
michael@0 | 1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
michael@0 | 1002 | ac_init_help=short ;; |
michael@0 | 1003 | |
michael@0 | 1004 | -host | --host | --hos | --ho) |
michael@0 | 1005 | ac_prev=host_alias ;; |
michael@0 | 1006 | -host=* | --host=* | --hos=* | --ho=*) |
michael@0 | 1007 | host_alias=$ac_optarg ;; |
michael@0 | 1008 | |
michael@0 | 1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
michael@0 | 1010 | ac_prev=htmldir ;; |
michael@0 | 1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
michael@0 | 1012 | | --ht=*) |
michael@0 | 1013 | htmldir=$ac_optarg ;; |
michael@0 | 1014 | |
michael@0 | 1015 | -includedir | --includedir | --includedi | --included | --include \ |
michael@0 | 1016 | | --includ | --inclu | --incl | --inc) |
michael@0 | 1017 | ac_prev=includedir ;; |
michael@0 | 1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
michael@0 | 1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
michael@0 | 1020 | includedir=$ac_optarg ;; |
michael@0 | 1021 | |
michael@0 | 1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
michael@0 | 1023 | ac_prev=infodir ;; |
michael@0 | 1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
michael@0 | 1025 | infodir=$ac_optarg ;; |
michael@0 | 1026 | |
michael@0 | 1027 | -libdir | --libdir | --libdi | --libd) |
michael@0 | 1028 | ac_prev=libdir ;; |
michael@0 | 1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
michael@0 | 1030 | libdir=$ac_optarg ;; |
michael@0 | 1031 | |
michael@0 | 1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
michael@0 | 1033 | | --libexe | --libex | --libe) |
michael@0 | 1034 | ac_prev=libexecdir ;; |
michael@0 | 1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
michael@0 | 1036 | | --libexe=* | --libex=* | --libe=*) |
michael@0 | 1037 | libexecdir=$ac_optarg ;; |
michael@0 | 1038 | |
michael@0 | 1039 | -localedir | --localedir | --localedi | --localed | --locale) |
michael@0 | 1040 | ac_prev=localedir ;; |
michael@0 | 1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
michael@0 | 1042 | localedir=$ac_optarg ;; |
michael@0 | 1043 | |
michael@0 | 1044 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
michael@0 | 1045 | | --localstate | --localstat | --localsta | --localst | --locals) |
michael@0 | 1046 | ac_prev=localstatedir ;; |
michael@0 | 1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
michael@0 | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
michael@0 | 1049 | localstatedir=$ac_optarg ;; |
michael@0 | 1050 | |
michael@0 | 1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
michael@0 | 1052 | ac_prev=mandir ;; |
michael@0 | 1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
michael@0 | 1054 | mandir=$ac_optarg ;; |
michael@0 | 1055 | |
michael@0 | 1056 | -nfp | --nfp | --nf) |
michael@0 | 1057 | # Obsolete; use --without-fp. |
michael@0 | 1058 | with_fp=no ;; |
michael@0 | 1059 | |
michael@0 | 1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
michael@0 | 1061 | | --no-cr | --no-c | -n) |
michael@0 | 1062 | no_create=yes ;; |
michael@0 | 1063 | |
michael@0 | 1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
michael@0 | 1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
michael@0 | 1066 | no_recursion=yes ;; |
michael@0 | 1067 | |
michael@0 | 1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
michael@0 | 1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
michael@0 | 1070 | | --oldin | --oldi | --old | --ol | --o) |
michael@0 | 1071 | ac_prev=oldincludedir ;; |
michael@0 | 1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
michael@0 | 1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
michael@0 | 1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
michael@0 | 1075 | oldincludedir=$ac_optarg ;; |
michael@0 | 1076 | |
michael@0 | 1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
michael@0 | 1078 | ac_prev=prefix ;; |
michael@0 | 1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
michael@0 | 1080 | prefix=$ac_optarg ;; |
michael@0 | 1081 | |
michael@0 | 1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
michael@0 | 1083 | | --program-pre | --program-pr | --program-p) |
michael@0 | 1084 | ac_prev=program_prefix ;; |
michael@0 | 1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
michael@0 | 1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
michael@0 | 1087 | program_prefix=$ac_optarg ;; |
michael@0 | 1088 | |
michael@0 | 1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
michael@0 | 1090 | | --program-suf | --program-su | --program-s) |
michael@0 | 1091 | ac_prev=program_suffix ;; |
michael@0 | 1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
michael@0 | 1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
michael@0 | 1094 | program_suffix=$ac_optarg ;; |
michael@0 | 1095 | |
michael@0 | 1096 | -program-transform-name | --program-transform-name \ |
michael@0 | 1097 | | --program-transform-nam | --program-transform-na \ |
michael@0 | 1098 | | --program-transform-n | --program-transform- \ |
michael@0 | 1099 | | --program-transform | --program-transfor \ |
michael@0 | 1100 | | --program-transfo | --program-transf \ |
michael@0 | 1101 | | --program-trans | --program-tran \ |
michael@0 | 1102 | | --progr-tra | --program-tr | --program-t) |
michael@0 | 1103 | ac_prev=program_transform_name ;; |
michael@0 | 1104 | -program-transform-name=* | --program-transform-name=* \ |
michael@0 | 1105 | | --program-transform-nam=* | --program-transform-na=* \ |
michael@0 | 1106 | | --program-transform-n=* | --program-transform-=* \ |
michael@0 | 1107 | | --program-transform=* | --program-transfor=* \ |
michael@0 | 1108 | | --program-transfo=* | --program-transf=* \ |
michael@0 | 1109 | | --program-trans=* | --program-tran=* \ |
michael@0 | 1110 | | --progr-tra=* | --program-tr=* | --program-t=*) |
michael@0 | 1111 | program_transform_name=$ac_optarg ;; |
michael@0 | 1112 | |
michael@0 | 1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
michael@0 | 1114 | ac_prev=pdfdir ;; |
michael@0 | 1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
michael@0 | 1116 | pdfdir=$ac_optarg ;; |
michael@0 | 1117 | |
michael@0 | 1118 | -psdir | --psdir | --psdi | --psd | --ps) |
michael@0 | 1119 | ac_prev=psdir ;; |
michael@0 | 1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
michael@0 | 1121 | psdir=$ac_optarg ;; |
michael@0 | 1122 | |
michael@0 | 1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
michael@0 | 1124 | | -silent | --silent | --silen | --sile | --sil) |
michael@0 | 1125 | silent=yes ;; |
michael@0 | 1126 | |
michael@0 | 1127 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
michael@0 | 1128 | ac_prev=sbindir ;; |
michael@0 | 1129 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
michael@0 | 1130 | | --sbi=* | --sb=*) |
michael@0 | 1131 | sbindir=$ac_optarg ;; |
michael@0 | 1132 | |
michael@0 | 1133 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
michael@0 | 1134 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
michael@0 | 1135 | | --sharedst | --shareds | --shared | --share | --shar \ |
michael@0 | 1136 | | --sha | --sh) |
michael@0 | 1137 | ac_prev=sharedstatedir ;; |
michael@0 | 1138 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
michael@0 | 1139 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
michael@0 | 1140 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
michael@0 | 1141 | | --sha=* | --sh=*) |
michael@0 | 1142 | sharedstatedir=$ac_optarg ;; |
michael@0 | 1143 | |
michael@0 | 1144 | -site | --site | --sit) |
michael@0 | 1145 | ac_prev=site ;; |
michael@0 | 1146 | -site=* | --site=* | --sit=*) |
michael@0 | 1147 | site=$ac_optarg ;; |
michael@0 | 1148 | |
michael@0 | 1149 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
michael@0 | 1150 | ac_prev=srcdir ;; |
michael@0 | 1151 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
michael@0 | 1152 | srcdir=$ac_optarg ;; |
michael@0 | 1153 | |
michael@0 | 1154 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
michael@0 | 1155 | | --syscon | --sysco | --sysc | --sys | --sy) |
michael@0 | 1156 | ac_prev=sysconfdir ;; |
michael@0 | 1157 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
michael@0 | 1158 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
michael@0 | 1159 | sysconfdir=$ac_optarg ;; |
michael@0 | 1160 | |
michael@0 | 1161 | -target | --target | --targe | --targ | --tar | --ta | --t) |
michael@0 | 1162 | ac_prev=target_alias ;; |
michael@0 | 1163 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
michael@0 | 1164 | target_alias=$ac_optarg ;; |
michael@0 | 1165 | |
michael@0 | 1166 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
michael@0 | 1167 | verbose=yes ;; |
michael@0 | 1168 | |
michael@0 | 1169 | -version | --version | --versio | --versi | --vers | -V) |
michael@0 | 1170 | ac_init_version=: ;; |
michael@0 | 1171 | |
michael@0 | 1172 | -with-* | --with-*) |
michael@0 | 1173 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
michael@0 | 1174 | # Reject names that are not valid shell variable names. |
michael@0 | 1175 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 1176 | as_fn_error $? "invalid package name: $ac_useropt" |
michael@0 | 1177 | ac_useropt_orig=$ac_useropt |
michael@0 | 1178 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 1179 | case $ac_user_opts in |
michael@0 | 1180 | *" |
michael@0 | 1181 | "with_$ac_useropt" |
michael@0 | 1182 | "*) ;; |
michael@0 | 1183 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
michael@0 | 1184 | ac_unrecognized_sep=', ';; |
michael@0 | 1185 | esac |
michael@0 | 1186 | eval with_$ac_useropt=\$ac_optarg ;; |
michael@0 | 1187 | |
michael@0 | 1188 | -without-* | --without-*) |
michael@0 | 1189 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
michael@0 | 1190 | # Reject names that are not valid shell variable names. |
michael@0 | 1191 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 1192 | as_fn_error $? "invalid package name: $ac_useropt" |
michael@0 | 1193 | ac_useropt_orig=$ac_useropt |
michael@0 | 1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 1195 | case $ac_user_opts in |
michael@0 | 1196 | *" |
michael@0 | 1197 | "with_$ac_useropt" |
michael@0 | 1198 | "*) ;; |
michael@0 | 1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
michael@0 | 1200 | ac_unrecognized_sep=', ';; |
michael@0 | 1201 | esac |
michael@0 | 1202 | eval with_$ac_useropt=no ;; |
michael@0 | 1203 | |
michael@0 | 1204 | --x) |
michael@0 | 1205 | # Obsolete; use --with-x. |
michael@0 | 1206 | with_x=yes ;; |
michael@0 | 1207 | |
michael@0 | 1208 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
michael@0 | 1209 | | --x-incl | --x-inc | --x-in | --x-i) |
michael@0 | 1210 | ac_prev=x_includes ;; |
michael@0 | 1211 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
michael@0 | 1212 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
michael@0 | 1213 | x_includes=$ac_optarg ;; |
michael@0 | 1214 | |
michael@0 | 1215 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
michael@0 | 1216 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
michael@0 | 1217 | ac_prev=x_libraries ;; |
michael@0 | 1218 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
michael@0 | 1219 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
michael@0 | 1220 | x_libraries=$ac_optarg ;; |
michael@0 | 1221 | |
michael@0 | 1222 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
michael@0 | 1223 | Try \`$0 --help' for more information" |
michael@0 | 1224 | ;; |
michael@0 | 1225 | |
michael@0 | 1226 | *=*) |
michael@0 | 1227 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
michael@0 | 1228 | # Reject names that are not valid shell variable names. |
michael@0 | 1229 | case $ac_envvar in #( |
michael@0 | 1230 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
michael@0 | 1231 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
michael@0 | 1232 | esac |
michael@0 | 1233 | eval $ac_envvar=\$ac_optarg |
michael@0 | 1234 | export $ac_envvar ;; |
michael@0 | 1235 | |
michael@0 | 1236 | *) |
michael@0 | 1237 | # FIXME: should be removed in autoconf 3.0. |
michael@0 | 1238 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
michael@0 | 1239 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
michael@0 | 1240 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
michael@0 | 1241 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
michael@0 | 1242 | ;; |
michael@0 | 1243 | |
michael@0 | 1244 | esac |
michael@0 | 1245 | done |
michael@0 | 1246 | |
michael@0 | 1247 | if test -n "$ac_prev"; then |
michael@0 | 1248 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
michael@0 | 1249 | as_fn_error $? "missing argument to $ac_option" |
michael@0 | 1250 | fi |
michael@0 | 1251 | |
michael@0 | 1252 | if test -n "$ac_unrecognized_opts"; then |
michael@0 | 1253 | case $enable_option_checking in |
michael@0 | 1254 | no) ;; |
michael@0 | 1255 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
michael@0 | 1256 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
michael@0 | 1257 | esac |
michael@0 | 1258 | fi |
michael@0 | 1259 | |
michael@0 | 1260 | # Check all directory arguments for consistency. |
michael@0 | 1261 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
michael@0 | 1262 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
michael@0 | 1263 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
michael@0 | 1264 | libdir localedir mandir |
michael@0 | 1265 | do |
michael@0 | 1266 | eval ac_val=\$$ac_var |
michael@0 | 1267 | # Remove trailing slashes. |
michael@0 | 1268 | case $ac_val in |
michael@0 | 1269 | */ ) |
michael@0 | 1270 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
michael@0 | 1271 | eval $ac_var=\$ac_val;; |
michael@0 | 1272 | esac |
michael@0 | 1273 | # Be sure to have absolute directory names. |
michael@0 | 1274 | case $ac_val in |
michael@0 | 1275 | [\\/$]* | ?:[\\/]* ) continue;; |
michael@0 | 1276 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
michael@0 | 1277 | esac |
michael@0 | 1278 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
michael@0 | 1279 | done |
michael@0 | 1280 | |
michael@0 | 1281 | # There might be people who depend on the old broken behavior: `$host' |
michael@0 | 1282 | # used to hold the argument of --host etc. |
michael@0 | 1283 | # FIXME: To remove some day. |
michael@0 | 1284 | build=$build_alias |
michael@0 | 1285 | host=$host_alias |
michael@0 | 1286 | target=$target_alias |
michael@0 | 1287 | |
michael@0 | 1288 | # FIXME: To remove some day. |
michael@0 | 1289 | if test "x$host_alias" != x; then |
michael@0 | 1290 | if test "x$build_alias" = x; then |
michael@0 | 1291 | cross_compiling=maybe |
michael@0 | 1292 | elif test "x$build_alias" != "x$host_alias"; then |
michael@0 | 1293 | cross_compiling=yes |
michael@0 | 1294 | fi |
michael@0 | 1295 | fi |
michael@0 | 1296 | |
michael@0 | 1297 | ac_tool_prefix= |
michael@0 | 1298 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
michael@0 | 1299 | |
michael@0 | 1300 | test "$silent" = yes && exec 6>/dev/null |
michael@0 | 1301 | |
michael@0 | 1302 | |
michael@0 | 1303 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
michael@0 | 1304 | ac_ls_di=`ls -di .` && |
michael@0 | 1305 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
michael@0 | 1306 | as_fn_error $? "working directory cannot be determined" |
michael@0 | 1307 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
michael@0 | 1308 | as_fn_error $? "pwd does not report name of working directory" |
michael@0 | 1309 | |
michael@0 | 1310 | |
michael@0 | 1311 | # Find the source files, if location was not specified. |
michael@0 | 1312 | if test -z "$srcdir"; then |
michael@0 | 1313 | ac_srcdir_defaulted=yes |
michael@0 | 1314 | # Try the directory containing this script, then the parent directory. |
michael@0 | 1315 | ac_confdir=`$as_dirname -- "$as_myself" || |
michael@0 | 1316 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 1317 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
michael@0 | 1318 | X"$as_myself" : 'X\(//\)$' \| \ |
michael@0 | 1319 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 1320 | $as_echo X"$as_myself" | |
michael@0 | 1321 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 1322 | s//\1/ |
michael@0 | 1323 | q |
michael@0 | 1324 | } |
michael@0 | 1325 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 1326 | s//\1/ |
michael@0 | 1327 | q |
michael@0 | 1328 | } |
michael@0 | 1329 | /^X\(\/\/\)$/{ |
michael@0 | 1330 | s//\1/ |
michael@0 | 1331 | q |
michael@0 | 1332 | } |
michael@0 | 1333 | /^X\(\/\).*/{ |
michael@0 | 1334 | s//\1/ |
michael@0 | 1335 | q |
michael@0 | 1336 | } |
michael@0 | 1337 | s/.*/./; q'` |
michael@0 | 1338 | srcdir=$ac_confdir |
michael@0 | 1339 | if test ! -r "$srcdir/$ac_unique_file"; then |
michael@0 | 1340 | srcdir=.. |
michael@0 | 1341 | fi |
michael@0 | 1342 | else |
michael@0 | 1343 | ac_srcdir_defaulted=no |
michael@0 | 1344 | fi |
michael@0 | 1345 | if test ! -r "$srcdir/$ac_unique_file"; then |
michael@0 | 1346 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
michael@0 | 1347 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
michael@0 | 1348 | fi |
michael@0 | 1349 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
michael@0 | 1350 | ac_abs_confdir=`( |
michael@0 | 1351 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
michael@0 | 1352 | pwd)` |
michael@0 | 1353 | # When building in place, set srcdir=. |
michael@0 | 1354 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
michael@0 | 1355 | srcdir=. |
michael@0 | 1356 | fi |
michael@0 | 1357 | # Remove unnecessary trailing slashes from srcdir. |
michael@0 | 1358 | # Double slashes in file names in object file debugging info |
michael@0 | 1359 | # mess up M-x gdb in Emacs. |
michael@0 | 1360 | case $srcdir in |
michael@0 | 1361 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
michael@0 | 1362 | esac |
michael@0 | 1363 | for ac_var in $ac_precious_vars; do |
michael@0 | 1364 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
michael@0 | 1365 | eval ac_env_${ac_var}_value=\$${ac_var} |
michael@0 | 1366 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
michael@0 | 1367 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
michael@0 | 1368 | done |
michael@0 | 1369 | |
michael@0 | 1370 | # |
michael@0 | 1371 | # Report the --help message. |
michael@0 | 1372 | # |
michael@0 | 1373 | if test "$ac_init_help" = "long"; then |
michael@0 | 1374 | # Omit some internal or obsolete options to make the list less imposing. |
michael@0 | 1375 | # This message is too long to be a string in the A/UX 3.1 sh. |
michael@0 | 1376 | cat <<_ACEOF |
michael@0 | 1377 | \`configure' configures this package to adapt to many kinds of systems. |
michael@0 | 1378 | |
michael@0 | 1379 | Usage: $0 [OPTION]... [VAR=VALUE]... |
michael@0 | 1380 | |
michael@0 | 1381 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
michael@0 | 1382 | VAR=VALUE. See below for descriptions of some of the useful variables. |
michael@0 | 1383 | |
michael@0 | 1384 | Defaults for the options are specified in brackets. |
michael@0 | 1385 | |
michael@0 | 1386 | Configuration: |
michael@0 | 1387 | -h, --help display this help and exit |
michael@0 | 1388 | --help=short display options specific to this package |
michael@0 | 1389 | --help=recursive display the short help of all the included packages |
michael@0 | 1390 | -V, --version display version information and exit |
michael@0 | 1391 | -q, --quiet, --silent do not print \`checking ...' messages |
michael@0 | 1392 | --cache-file=FILE cache test results in FILE [disabled] |
michael@0 | 1393 | -C, --config-cache alias for \`--cache-file=config.cache' |
michael@0 | 1394 | -n, --no-create do not create output files |
michael@0 | 1395 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
michael@0 | 1396 | |
michael@0 | 1397 | Installation directories: |
michael@0 | 1398 | --prefix=PREFIX install architecture-independent files in PREFIX |
michael@0 | 1399 | [$ac_default_prefix] |
michael@0 | 1400 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
michael@0 | 1401 | [PREFIX] |
michael@0 | 1402 | |
michael@0 | 1403 | By default, \`make install' will install all the files in |
michael@0 | 1404 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
michael@0 | 1405 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
michael@0 | 1406 | for instance \`--prefix=\$HOME'. |
michael@0 | 1407 | |
michael@0 | 1408 | For better control, use the options below. |
michael@0 | 1409 | |
michael@0 | 1410 | Fine tuning of the installation directories: |
michael@0 | 1411 | --bindir=DIR user executables [EPREFIX/bin] |
michael@0 | 1412 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
michael@0 | 1413 | --libexecdir=DIR program executables [EPREFIX/libexec] |
michael@0 | 1414 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
michael@0 | 1415 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
michael@0 | 1416 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
michael@0 | 1417 | --libdir=DIR object code libraries [EPREFIX/lib] |
michael@0 | 1418 | --includedir=DIR C header files [PREFIX/include] |
michael@0 | 1419 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
michael@0 | 1420 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
michael@0 | 1421 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
michael@0 | 1422 | --infodir=DIR info documentation [DATAROOTDIR/info] |
michael@0 | 1423 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
michael@0 | 1424 | --mandir=DIR man documentation [DATAROOTDIR/man] |
michael@0 | 1425 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
michael@0 | 1426 | --htmldir=DIR html documentation [DOCDIR] |
michael@0 | 1427 | --dvidir=DIR dvi documentation [DOCDIR] |
michael@0 | 1428 | --pdfdir=DIR pdf documentation [DOCDIR] |
michael@0 | 1429 | --psdir=DIR ps documentation [DOCDIR] |
michael@0 | 1430 | _ACEOF |
michael@0 | 1431 | |
michael@0 | 1432 | cat <<\_ACEOF |
michael@0 | 1433 | |
michael@0 | 1434 | System types: |
michael@0 | 1435 | --build=BUILD configure for building on BUILD [guessed] |
michael@0 | 1436 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
michael@0 | 1437 | --target=TARGET configure for building compilers for TARGET [HOST] |
michael@0 | 1438 | _ACEOF |
michael@0 | 1439 | fi |
michael@0 | 1440 | |
michael@0 | 1441 | if test -n "$ac_init_help"; then |
michael@0 | 1442 | |
michael@0 | 1443 | cat <<\_ACEOF |
michael@0 | 1444 | |
michael@0 | 1445 | Optional Features: |
michael@0 | 1446 | --disable-option-checking ignore unrecognized --enable/--with options |
michael@0 | 1447 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
michael@0 | 1448 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
michael@0 | 1449 | --enable-optimize=OPT Enable code optimizations (ie. -O2) |
michael@0 | 1450 | --enable-debug=DBG Enable debugging (using compiler flags DBG) |
michael@0 | 1451 | --enable-debug-symbols=DBG Enable debugging symbols |
michael@0 | 1452 | (using compiler flags DBG) |
michael@0 | 1453 | --enable-win32-target=\$t |
michael@0 | 1454 | Specify win32 flavor. (WIN95 or WINNT) |
michael@0 | 1455 | --enable-symbian-target=\$t |
michael@0 | 1456 | Specify symbian flavor. (WINSCW or GCCE) |
michael@0 | 1457 | --enable-debug-rtl Use the MSVC debug runtime library |
michael@0 | 1458 | --enable-n32 Enable n32 ABI support (IRIX only) |
michael@0 | 1459 | --enable-x32 Enable x32 ABI support (x86_64 only) |
michael@0 | 1460 | --enable-64bit Enable 64-bit support (on certain platforms) |
michael@0 | 1461 | --enable-mdupdate Enable use of certain compilers' mdupdate feature |
michael@0 | 1462 | --enable-cplus Enable some c++ api routines |
michael@0 | 1463 | --enable-macos-target=VER |
michael@0 | 1464 | Set the minimum MacOS version needed at runtime |
michael@0 | 1465 | 10.2 for ppc, 10.4 for x86 |
michael@0 | 1466 | --disable-os2-high-mem Disable high-memory support on OS/2 |
michael@0 | 1467 | |
michael@0 | 1468 | --enable-strip Enable stripping of shared libs and programs |
michael@0 | 1469 | --enable-user-pthreads Build using userland pthreads |
michael@0 | 1470 | --enable-nspr-threads Build using classic nspr threads |
michael@0 | 1471 | --enable-ipv6 Compile ipv6 support |
michael@0 | 1472 | --enable-wrap-malloc Wrap malloc calls (gnu linker only) |
michael@0 | 1473 | |
michael@0 | 1474 | Optional Packages: |
michael@0 | 1475 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
michael@0 | 1476 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
michael@0 | 1477 | --with-android-ndk=DIR |
michael@0 | 1478 | location where the Android NDK can be found |
michael@0 | 1479 | --with-android-toolchain=DIR |
michael@0 | 1480 | location of the Android toolchain |
michael@0 | 1481 | --with-android-version=VER |
michael@0 | 1482 | Android platform version, default 5 for arm, 9 for x86/mips |
michael@0 | 1483 | --with-android-platform=DIR |
michael@0 | 1484 | location of platform dir |
michael@0 | 1485 | --with-gonk=DIR location of gonk dir |
michael@0 | 1486 | --with-dist-prefix=DIST_PREFIX |
michael@0 | 1487 | place build files in DIST_PREFIX dist |
michael@0 | 1488 | --with-dist-bindir=DIR build execuatables in DIR DIST_PREFIX/bin |
michael@0 | 1489 | --with-dist-includedir=DIR |
michael@0 | 1490 | build include files in DIR DIST_PREFIX/include/nspr |
michael@0 | 1491 | --with-dist-libdir=DIR build library files in DIR DIST_PREFIX/lib |
michael@0 | 1492 | --with-mozilla Compile NSPR with Mozilla support |
michael@0 | 1493 | --with-arm-kuser Use kuser helpers (Linux/ARM only) |
michael@0 | 1494 | (Requires kernel 2.6.13 or later) |
michael@0 | 1495 | --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only) |
michael@0 | 1496 | --with-thumb[=yes|no|toolchain-default] |
michael@0 | 1497 | Use Thumb instruction set (-mthumb) |
michael@0 | 1498 | --with-thumb-interwork[=yes|no|toolchain-default] |
michael@0 | 1499 | Use Thumb/ARM instuctions interwork (-mthumb-interwork) |
michael@0 | 1500 | --with-arch=[type|toolchain-default] |
michael@0 | 1501 | Use specific CPU features (-march=type) |
michael@0 | 1502 | --with-fpu=[type|toolchain-default] |
michael@0 | 1503 | Use specific FPU type (-mfpu=type) |
michael@0 | 1504 | --with-float-abi=[type|toolchain-default] |
michael@0 | 1505 | Use specific arm float ABI (-mfloat-abi=type) |
michael@0 | 1506 | --with-soft-float[=yes|no|toolchain-default] |
michael@0 | 1507 | Use soft float library (-msoft-float) |
michael@0 | 1508 | --with-symbian-sdk=SYMBIAN_SDK_DIR |
michael@0 | 1509 | The path to the Symbian SDK |
michael@0 | 1510 | --with-ccache=path/to/ccache |
michael@0 | 1511 | Enable compiling with ccache |
michael@0 | 1512 | --with-pthreads Use system pthreads library as thread subsystem |
michael@0 | 1513 | --with-bthreads Use system bthreads library as thread subsystem |
michael@0 | 1514 | (BeOS only) |
michael@0 | 1515 | --with-wrap-malloc=SHAREDLIB Location of malloc wrapper library |
michael@0 | 1516 | |
michael@0 | 1517 | Some influential environment variables: |
michael@0 | 1518 | CC C compiler command |
michael@0 | 1519 | CFLAGS C compiler flags |
michael@0 | 1520 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
michael@0 | 1521 | nonstandard directory <lib dir> |
michael@0 | 1522 | LIBS libraries to pass to the linker, e.g. -l<library> |
michael@0 | 1523 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
michael@0 | 1524 | you have headers in a nonstandard directory <include dir> |
michael@0 | 1525 | CXX C++ compiler command |
michael@0 | 1526 | CXXFLAGS C++ compiler flags |
michael@0 | 1527 | CPP C preprocessor |
michael@0 | 1528 | |
michael@0 | 1529 | Use these variables to override the choices made by `configure' or to help |
michael@0 | 1530 | it to find libraries and programs with nonstandard names/locations. |
michael@0 | 1531 | |
michael@0 | 1532 | Report bugs to the package provider. |
michael@0 | 1533 | _ACEOF |
michael@0 | 1534 | ac_status=$? |
michael@0 | 1535 | fi |
michael@0 | 1536 | |
michael@0 | 1537 | if test "$ac_init_help" = "recursive"; then |
michael@0 | 1538 | # If there are subdirs, report their specific --help. |
michael@0 | 1539 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
michael@0 | 1540 | test -d "$ac_dir" || |
michael@0 | 1541 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
michael@0 | 1542 | continue |
michael@0 | 1543 | ac_builddir=. |
michael@0 | 1544 | |
michael@0 | 1545 | case "$ac_dir" in |
michael@0 | 1546 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 1547 | *) |
michael@0 | 1548 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
michael@0 | 1549 | # A ".." for each directory in $ac_dir_suffix. |
michael@0 | 1550 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
michael@0 | 1551 | case $ac_top_builddir_sub in |
michael@0 | 1552 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 1553 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
michael@0 | 1554 | esac ;; |
michael@0 | 1555 | esac |
michael@0 | 1556 | ac_abs_top_builddir=$ac_pwd |
michael@0 | 1557 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
michael@0 | 1558 | # for backward compatibility: |
michael@0 | 1559 | ac_top_builddir=$ac_top_build_prefix |
michael@0 | 1560 | |
michael@0 | 1561 | case $srcdir in |
michael@0 | 1562 | .) # We are building in place. |
michael@0 | 1563 | ac_srcdir=. |
michael@0 | 1564 | ac_top_srcdir=$ac_top_builddir_sub |
michael@0 | 1565 | ac_abs_top_srcdir=$ac_pwd ;; |
michael@0 | 1566 | [\\/]* | ?:[\\/]* ) # Absolute name. |
michael@0 | 1567 | ac_srcdir=$srcdir$ac_dir_suffix; |
michael@0 | 1568 | ac_top_srcdir=$srcdir |
michael@0 | 1569 | ac_abs_top_srcdir=$srcdir ;; |
michael@0 | 1570 | *) # Relative name. |
michael@0 | 1571 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
michael@0 | 1572 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
michael@0 | 1573 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
michael@0 | 1574 | esac |
michael@0 | 1575 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
michael@0 | 1576 | |
michael@0 | 1577 | cd "$ac_dir" || { ac_status=$?; continue; } |
michael@0 | 1578 | # Check for guested configure. |
michael@0 | 1579 | if test -f "$ac_srcdir/configure.gnu"; then |
michael@0 | 1580 | echo && |
michael@0 | 1581 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
michael@0 | 1582 | elif test -f "$ac_srcdir/configure"; then |
michael@0 | 1583 | echo && |
michael@0 | 1584 | $SHELL "$ac_srcdir/configure" --help=recursive |
michael@0 | 1585 | else |
michael@0 | 1586 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
michael@0 | 1587 | fi || ac_status=$? |
michael@0 | 1588 | cd "$ac_pwd" || { ac_status=$?; break; } |
michael@0 | 1589 | done |
michael@0 | 1590 | fi |
michael@0 | 1591 | |
michael@0 | 1592 | test -n "$ac_init_help" && exit $ac_status |
michael@0 | 1593 | if $ac_init_version; then |
michael@0 | 1594 | cat <<\_ACEOF |
michael@0 | 1595 | configure |
michael@0 | 1596 | generated by GNU Autoconf 2.69 |
michael@0 | 1597 | |
michael@0 | 1598 | Copyright (C) 2012 Free Software Foundation, Inc. |
michael@0 | 1599 | This configure script is free software; the Free Software Foundation |
michael@0 | 1600 | gives unlimited permission to copy, distribute and modify it. |
michael@0 | 1601 | _ACEOF |
michael@0 | 1602 | exit |
michael@0 | 1603 | fi |
michael@0 | 1604 | |
michael@0 | 1605 | ## ------------------------ ## |
michael@0 | 1606 | ## Autoconf initialization. ## |
michael@0 | 1607 | ## ------------------------ ## |
michael@0 | 1608 | |
michael@0 | 1609 | # ac_fn_c_try_compile LINENO |
michael@0 | 1610 | # -------------------------- |
michael@0 | 1611 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1612 | ac_fn_c_try_compile () |
michael@0 | 1613 | { |
michael@0 | 1614 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1615 | rm -f conftest.$ac_objext |
michael@0 | 1616 | if { { ac_try="$ac_compile" |
michael@0 | 1617 | case "(($ac_try" in |
michael@0 | 1618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1619 | *) ac_try_echo=$ac_try;; |
michael@0 | 1620 | esac |
michael@0 | 1621 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1622 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1623 | (eval "$ac_compile") 2>conftest.err |
michael@0 | 1624 | ac_status=$? |
michael@0 | 1625 | if test -s conftest.err; then |
michael@0 | 1626 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1627 | cat conftest.er1 >&5 |
michael@0 | 1628 | mv -f conftest.er1 conftest.err |
michael@0 | 1629 | fi |
michael@0 | 1630 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1631 | test $ac_status = 0; } && { |
michael@0 | 1632 | test -z "$ac_c_werror_flag" || |
michael@0 | 1633 | test ! -s conftest.err |
michael@0 | 1634 | } && test -s conftest.$ac_objext; then : |
michael@0 | 1635 | ac_retval=0 |
michael@0 | 1636 | else |
michael@0 | 1637 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1638 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1639 | |
michael@0 | 1640 | ac_retval=1 |
michael@0 | 1641 | fi |
michael@0 | 1642 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1643 | as_fn_set_status $ac_retval |
michael@0 | 1644 | |
michael@0 | 1645 | } # ac_fn_c_try_compile |
michael@0 | 1646 | |
michael@0 | 1647 | # ac_fn_cxx_try_compile LINENO |
michael@0 | 1648 | # ---------------------------- |
michael@0 | 1649 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1650 | ac_fn_cxx_try_compile () |
michael@0 | 1651 | { |
michael@0 | 1652 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1653 | rm -f conftest.$ac_objext |
michael@0 | 1654 | if { { ac_try="$ac_compile" |
michael@0 | 1655 | case "(($ac_try" in |
michael@0 | 1656 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1657 | *) ac_try_echo=$ac_try;; |
michael@0 | 1658 | esac |
michael@0 | 1659 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1660 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1661 | (eval "$ac_compile") 2>conftest.err |
michael@0 | 1662 | ac_status=$? |
michael@0 | 1663 | if test -s conftest.err; then |
michael@0 | 1664 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1665 | cat conftest.er1 >&5 |
michael@0 | 1666 | mv -f conftest.er1 conftest.err |
michael@0 | 1667 | fi |
michael@0 | 1668 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1669 | test $ac_status = 0; } && { |
michael@0 | 1670 | test -z "$ac_cxx_werror_flag" || |
michael@0 | 1671 | test ! -s conftest.err |
michael@0 | 1672 | } && test -s conftest.$ac_objext; then : |
michael@0 | 1673 | ac_retval=0 |
michael@0 | 1674 | else |
michael@0 | 1675 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1676 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1677 | |
michael@0 | 1678 | ac_retval=1 |
michael@0 | 1679 | fi |
michael@0 | 1680 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1681 | as_fn_set_status $ac_retval |
michael@0 | 1682 | |
michael@0 | 1683 | } # ac_fn_cxx_try_compile |
michael@0 | 1684 | |
michael@0 | 1685 | # ac_fn_c_try_cpp LINENO |
michael@0 | 1686 | # ---------------------- |
michael@0 | 1687 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1688 | ac_fn_c_try_cpp () |
michael@0 | 1689 | { |
michael@0 | 1690 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1691 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
michael@0 | 1692 | case "(($ac_try" in |
michael@0 | 1693 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1694 | *) ac_try_echo=$ac_try;; |
michael@0 | 1695 | esac |
michael@0 | 1696 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1697 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1698 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
michael@0 | 1699 | ac_status=$? |
michael@0 | 1700 | if test -s conftest.err; then |
michael@0 | 1701 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1702 | cat conftest.er1 >&5 |
michael@0 | 1703 | mv -f conftest.er1 conftest.err |
michael@0 | 1704 | fi |
michael@0 | 1705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1706 | test $ac_status = 0; } > conftest.i && { |
michael@0 | 1707 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
michael@0 | 1708 | test ! -s conftest.err |
michael@0 | 1709 | }; then : |
michael@0 | 1710 | ac_retval=0 |
michael@0 | 1711 | else |
michael@0 | 1712 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1713 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1714 | |
michael@0 | 1715 | ac_retval=1 |
michael@0 | 1716 | fi |
michael@0 | 1717 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1718 | as_fn_set_status $ac_retval |
michael@0 | 1719 | |
michael@0 | 1720 | } # ac_fn_c_try_cpp |
michael@0 | 1721 | |
michael@0 | 1722 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
michael@0 | 1723 | # ------------------------------------------------------- |
michael@0 | 1724 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
michael@0 | 1725 | # the include files in INCLUDES and setting the cache variable VAR |
michael@0 | 1726 | # accordingly. |
michael@0 | 1727 | ac_fn_c_check_header_mongrel () |
michael@0 | 1728 | { |
michael@0 | 1729 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1730 | if eval \${$3+:} false; then : |
michael@0 | 1731 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 1732 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 1733 | if eval \${$3+:} false; then : |
michael@0 | 1734 | $as_echo_n "(cached) " >&6 |
michael@0 | 1735 | fi |
michael@0 | 1736 | eval ac_res=\$$3 |
michael@0 | 1737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 1738 | $as_echo "$ac_res" >&6; } |
michael@0 | 1739 | else |
michael@0 | 1740 | # Is the header compilable? |
michael@0 | 1741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
michael@0 | 1742 | $as_echo_n "checking $2 usability... " >&6; } |
michael@0 | 1743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1744 | /* end confdefs.h. */ |
michael@0 | 1745 | $4 |
michael@0 | 1746 | #include <$2> |
michael@0 | 1747 | _ACEOF |
michael@0 | 1748 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1749 | ac_header_compiler=yes |
michael@0 | 1750 | else |
michael@0 | 1751 | ac_header_compiler=no |
michael@0 | 1752 | fi |
michael@0 | 1753 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
michael@0 | 1755 | $as_echo "$ac_header_compiler" >&6; } |
michael@0 | 1756 | |
michael@0 | 1757 | # Is the header present? |
michael@0 | 1758 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
michael@0 | 1759 | $as_echo_n "checking $2 presence... " >&6; } |
michael@0 | 1760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1761 | /* end confdefs.h. */ |
michael@0 | 1762 | #include <$2> |
michael@0 | 1763 | _ACEOF |
michael@0 | 1764 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 1765 | ac_header_preproc=yes |
michael@0 | 1766 | else |
michael@0 | 1767 | ac_header_preproc=no |
michael@0 | 1768 | fi |
michael@0 | 1769 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 1770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
michael@0 | 1771 | $as_echo "$ac_header_preproc" >&6; } |
michael@0 | 1772 | |
michael@0 | 1773 | # So? What about this header? |
michael@0 | 1774 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
michael@0 | 1775 | yes:no: ) |
michael@0 | 1776 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
michael@0 | 1777 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
michael@0 | 1778 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
michael@0 | 1779 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
michael@0 | 1780 | ;; |
michael@0 | 1781 | no:yes:* ) |
michael@0 | 1782 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
michael@0 | 1783 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
michael@0 | 1784 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
michael@0 | 1785 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
michael@0 | 1786 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
michael@0 | 1787 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
michael@0 | 1788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
michael@0 | 1789 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
michael@0 | 1790 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
michael@0 | 1791 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
michael@0 | 1792 | ;; |
michael@0 | 1793 | esac |
michael@0 | 1794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 1795 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 1796 | if eval \${$3+:} false; then : |
michael@0 | 1797 | $as_echo_n "(cached) " >&6 |
michael@0 | 1798 | else |
michael@0 | 1799 | eval "$3=\$ac_header_compiler" |
michael@0 | 1800 | fi |
michael@0 | 1801 | eval ac_res=\$$3 |
michael@0 | 1802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 1803 | $as_echo "$ac_res" >&6; } |
michael@0 | 1804 | fi |
michael@0 | 1805 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1806 | |
michael@0 | 1807 | } # ac_fn_c_check_header_mongrel |
michael@0 | 1808 | |
michael@0 | 1809 | # ac_fn_c_try_run LINENO |
michael@0 | 1810 | # ---------------------- |
michael@0 | 1811 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
michael@0 | 1812 | # that executables *can* be run. |
michael@0 | 1813 | ac_fn_c_try_run () |
michael@0 | 1814 | { |
michael@0 | 1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1816 | if { { ac_try="$ac_link" |
michael@0 | 1817 | case "(($ac_try" in |
michael@0 | 1818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1819 | *) ac_try_echo=$ac_try;; |
michael@0 | 1820 | esac |
michael@0 | 1821 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1822 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1823 | (eval "$ac_link") 2>&5 |
michael@0 | 1824 | ac_status=$? |
michael@0 | 1825 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1826 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
michael@0 | 1827 | { { case "(($ac_try" in |
michael@0 | 1828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1829 | *) ac_try_echo=$ac_try;; |
michael@0 | 1830 | esac |
michael@0 | 1831 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1832 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1833 | (eval "$ac_try") 2>&5 |
michael@0 | 1834 | ac_status=$? |
michael@0 | 1835 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1836 | test $ac_status = 0; }; }; then : |
michael@0 | 1837 | ac_retval=0 |
michael@0 | 1838 | else |
michael@0 | 1839 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
michael@0 | 1840 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1841 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1842 | |
michael@0 | 1843 | ac_retval=$ac_status |
michael@0 | 1844 | fi |
michael@0 | 1845 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
michael@0 | 1846 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1847 | as_fn_set_status $ac_retval |
michael@0 | 1848 | |
michael@0 | 1849 | } # ac_fn_c_try_run |
michael@0 | 1850 | |
michael@0 | 1851 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
michael@0 | 1852 | # ------------------------------------------------------- |
michael@0 | 1853 | # Tests whether HEADER exists and can be compiled using the include files in |
michael@0 | 1854 | # INCLUDES, setting the cache variable VAR accordingly. |
michael@0 | 1855 | ac_fn_c_check_header_compile () |
michael@0 | 1856 | { |
michael@0 | 1857 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 1859 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 1860 | if eval \${$3+:} false; then : |
michael@0 | 1861 | $as_echo_n "(cached) " >&6 |
michael@0 | 1862 | else |
michael@0 | 1863 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1864 | /* end confdefs.h. */ |
michael@0 | 1865 | $4 |
michael@0 | 1866 | #include <$2> |
michael@0 | 1867 | _ACEOF |
michael@0 | 1868 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1869 | eval "$3=yes" |
michael@0 | 1870 | else |
michael@0 | 1871 | eval "$3=no" |
michael@0 | 1872 | fi |
michael@0 | 1873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1874 | fi |
michael@0 | 1875 | eval ac_res=\$$3 |
michael@0 | 1876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 1877 | $as_echo "$ac_res" >&6; } |
michael@0 | 1878 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1879 | |
michael@0 | 1880 | } # ac_fn_c_check_header_compile |
michael@0 | 1881 | |
michael@0 | 1882 | # ac_fn_c_try_link LINENO |
michael@0 | 1883 | # ----------------------- |
michael@0 | 1884 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1885 | ac_fn_c_try_link () |
michael@0 | 1886 | { |
michael@0 | 1887 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1888 | rm -f conftest.$ac_objext conftest$ac_exeext |
michael@0 | 1889 | if { { ac_try="$ac_link" |
michael@0 | 1890 | case "(($ac_try" in |
michael@0 | 1891 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1892 | *) ac_try_echo=$ac_try;; |
michael@0 | 1893 | esac |
michael@0 | 1894 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1895 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1896 | (eval "$ac_link") 2>conftest.err |
michael@0 | 1897 | ac_status=$? |
michael@0 | 1898 | if test -s conftest.err; then |
michael@0 | 1899 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1900 | cat conftest.er1 >&5 |
michael@0 | 1901 | mv -f conftest.er1 conftest.err |
michael@0 | 1902 | fi |
michael@0 | 1903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1904 | test $ac_status = 0; } && { |
michael@0 | 1905 | test -z "$ac_c_werror_flag" || |
michael@0 | 1906 | test ! -s conftest.err |
michael@0 | 1907 | } && test -s conftest$ac_exeext && { |
michael@0 | 1908 | test "$cross_compiling" = yes || |
michael@0 | 1909 | test -x conftest$ac_exeext |
michael@0 | 1910 | }; then : |
michael@0 | 1911 | ac_retval=0 |
michael@0 | 1912 | else |
michael@0 | 1913 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1914 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1915 | |
michael@0 | 1916 | ac_retval=1 |
michael@0 | 1917 | fi |
michael@0 | 1918 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
michael@0 | 1919 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
michael@0 | 1920 | # interfere with the next link command; also delete a directory that is |
michael@0 | 1921 | # left behind by Apple's compiler. We do this before executing the actions. |
michael@0 | 1922 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
michael@0 | 1923 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1924 | as_fn_set_status $ac_retval |
michael@0 | 1925 | |
michael@0 | 1926 | } # ac_fn_c_try_link |
michael@0 | 1927 | |
michael@0 | 1928 | # ac_fn_c_check_func LINENO FUNC VAR |
michael@0 | 1929 | # ---------------------------------- |
michael@0 | 1930 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
michael@0 | 1931 | ac_fn_c_check_func () |
michael@0 | 1932 | { |
michael@0 | 1933 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 1935 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 1936 | if eval \${$3+:} false; then : |
michael@0 | 1937 | $as_echo_n "(cached) " >&6 |
michael@0 | 1938 | else |
michael@0 | 1939 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1940 | /* end confdefs.h. */ |
michael@0 | 1941 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
michael@0 | 1942 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
michael@0 | 1943 | #define $2 innocuous_$2 |
michael@0 | 1944 | |
michael@0 | 1945 | /* System header to define __stub macros and hopefully few prototypes, |
michael@0 | 1946 | which can conflict with char $2 (); below. |
michael@0 | 1947 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
michael@0 | 1948 | <limits.h> exists even on freestanding compilers. */ |
michael@0 | 1949 | |
michael@0 | 1950 | #ifdef __STDC__ |
michael@0 | 1951 | # include <limits.h> |
michael@0 | 1952 | #else |
michael@0 | 1953 | # include <assert.h> |
michael@0 | 1954 | #endif |
michael@0 | 1955 | |
michael@0 | 1956 | #undef $2 |
michael@0 | 1957 | |
michael@0 | 1958 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 1959 | Use char because int might match the return type of a GCC |
michael@0 | 1960 | builtin and then its argument prototype would still apply. */ |
michael@0 | 1961 | #ifdef __cplusplus |
michael@0 | 1962 | extern "C" |
michael@0 | 1963 | #endif |
michael@0 | 1964 | char $2 (); |
michael@0 | 1965 | /* The GNU C library defines this for functions which it implements |
michael@0 | 1966 | to always fail with ENOSYS. Some functions are actually named |
michael@0 | 1967 | something starting with __ and the normal name is an alias. */ |
michael@0 | 1968 | #if defined __stub_$2 || defined __stub___$2 |
michael@0 | 1969 | choke me |
michael@0 | 1970 | #endif |
michael@0 | 1971 | |
michael@0 | 1972 | int |
michael@0 | 1973 | main () |
michael@0 | 1974 | { |
michael@0 | 1975 | return $2 (); |
michael@0 | 1976 | ; |
michael@0 | 1977 | return 0; |
michael@0 | 1978 | } |
michael@0 | 1979 | _ACEOF |
michael@0 | 1980 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 1981 | eval "$3=yes" |
michael@0 | 1982 | else |
michael@0 | 1983 | eval "$3=no" |
michael@0 | 1984 | fi |
michael@0 | 1985 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 1986 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 1987 | fi |
michael@0 | 1988 | eval ac_res=\$$3 |
michael@0 | 1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 1990 | $as_echo "$ac_res" >&6; } |
michael@0 | 1991 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1992 | |
michael@0 | 1993 | } # ac_fn_c_check_func |
michael@0 | 1994 | cat >config.log <<_ACEOF |
michael@0 | 1995 | This file contains any messages produced by compilers while |
michael@0 | 1996 | running configure, to aid debugging if configure makes a mistake. |
michael@0 | 1997 | |
michael@0 | 1998 | It was created by $as_me, which was |
michael@0 | 1999 | generated by GNU Autoconf 2.69. Invocation command line was |
michael@0 | 2000 | |
michael@0 | 2001 | $ $0 $@ |
michael@0 | 2002 | |
michael@0 | 2003 | _ACEOF |
michael@0 | 2004 | exec 5>>config.log |
michael@0 | 2005 | { |
michael@0 | 2006 | cat <<_ASUNAME |
michael@0 | 2007 | ## --------- ## |
michael@0 | 2008 | ## Platform. ## |
michael@0 | 2009 | ## --------- ## |
michael@0 | 2010 | |
michael@0 | 2011 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
michael@0 | 2012 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
michael@0 | 2013 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
michael@0 | 2014 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
michael@0 | 2015 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
michael@0 | 2016 | |
michael@0 | 2017 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
michael@0 | 2018 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
michael@0 | 2019 | |
michael@0 | 2020 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
michael@0 | 2021 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
michael@0 | 2022 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
michael@0 | 2023 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
michael@0 | 2024 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
michael@0 | 2025 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
michael@0 | 2026 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
michael@0 | 2027 | |
michael@0 | 2028 | _ASUNAME |
michael@0 | 2029 | |
michael@0 | 2030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2031 | for as_dir in $PATH |
michael@0 | 2032 | do |
michael@0 | 2033 | IFS=$as_save_IFS |
michael@0 | 2034 | test -z "$as_dir" && as_dir=. |
michael@0 | 2035 | $as_echo "PATH: $as_dir" |
michael@0 | 2036 | done |
michael@0 | 2037 | IFS=$as_save_IFS |
michael@0 | 2038 | |
michael@0 | 2039 | } >&5 |
michael@0 | 2040 | |
michael@0 | 2041 | cat >&5 <<_ACEOF |
michael@0 | 2042 | |
michael@0 | 2043 | |
michael@0 | 2044 | ## ----------- ## |
michael@0 | 2045 | ## Core tests. ## |
michael@0 | 2046 | ## ----------- ## |
michael@0 | 2047 | |
michael@0 | 2048 | _ACEOF |
michael@0 | 2049 | |
michael@0 | 2050 | |
michael@0 | 2051 | # Keep a trace of the command line. |
michael@0 | 2052 | # Strip out --no-create and --no-recursion so they do not pile up. |
michael@0 | 2053 | # Strip out --silent because we don't want to record it for future runs. |
michael@0 | 2054 | # Also quote any args containing shell meta-characters. |
michael@0 | 2055 | # Make two passes to allow for proper duplicate-argument suppression. |
michael@0 | 2056 | ac_configure_args= |
michael@0 | 2057 | ac_configure_args0= |
michael@0 | 2058 | ac_configure_args1= |
michael@0 | 2059 | ac_must_keep_next=false |
michael@0 | 2060 | for ac_pass in 1 2 |
michael@0 | 2061 | do |
michael@0 | 2062 | for ac_arg |
michael@0 | 2063 | do |
michael@0 | 2064 | case $ac_arg in |
michael@0 | 2065 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
michael@0 | 2066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
michael@0 | 2067 | | -silent | --silent | --silen | --sile | --sil) |
michael@0 | 2068 | continue ;; |
michael@0 | 2069 | *\'*) |
michael@0 | 2070 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
michael@0 | 2071 | esac |
michael@0 | 2072 | case $ac_pass in |
michael@0 | 2073 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
michael@0 | 2074 | 2) |
michael@0 | 2075 | as_fn_append ac_configure_args1 " '$ac_arg'" |
michael@0 | 2076 | if test $ac_must_keep_next = true; then |
michael@0 | 2077 | ac_must_keep_next=false # Got value, back to normal. |
michael@0 | 2078 | else |
michael@0 | 2079 | case $ac_arg in |
michael@0 | 2080 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
michael@0 | 2081 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
michael@0 | 2082 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
michael@0 | 2083 | | -with-* | --with-* | -without-* | --without-* | --x) |
michael@0 | 2084 | case "$ac_configure_args0 " in |
michael@0 | 2085 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
michael@0 | 2086 | esac |
michael@0 | 2087 | ;; |
michael@0 | 2088 | -* ) ac_must_keep_next=true ;; |
michael@0 | 2089 | esac |
michael@0 | 2090 | fi |
michael@0 | 2091 | as_fn_append ac_configure_args " '$ac_arg'" |
michael@0 | 2092 | ;; |
michael@0 | 2093 | esac |
michael@0 | 2094 | done |
michael@0 | 2095 | done |
michael@0 | 2096 | { ac_configure_args0=; unset ac_configure_args0;} |
michael@0 | 2097 | { ac_configure_args1=; unset ac_configure_args1;} |
michael@0 | 2098 | |
michael@0 | 2099 | # When interrupted or exit'd, cleanup temporary files, and complete |
michael@0 | 2100 | # config.log. We remove comments because anyway the quotes in there |
michael@0 | 2101 | # would cause problems or look ugly. |
michael@0 | 2102 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
michael@0 | 2103 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
michael@0 | 2104 | trap 'exit_status=$? |
michael@0 | 2105 | # Save into config.log some information that might help in debugging. |
michael@0 | 2106 | { |
michael@0 | 2107 | echo |
michael@0 | 2108 | |
michael@0 | 2109 | $as_echo "## ---------------- ## |
michael@0 | 2110 | ## Cache variables. ## |
michael@0 | 2111 | ## ---------------- ##" |
michael@0 | 2112 | echo |
michael@0 | 2113 | # The following way of writing the cache mishandles newlines in values, |
michael@0 | 2114 | ( |
michael@0 | 2115 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
michael@0 | 2116 | eval ac_val=\$$ac_var |
michael@0 | 2117 | case $ac_val in #( |
michael@0 | 2118 | *${as_nl}*) |
michael@0 | 2119 | case $ac_var in #( |
michael@0 | 2120 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
michael@0 | 2121 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
michael@0 | 2122 | esac |
michael@0 | 2123 | case $ac_var in #( |
michael@0 | 2124 | _ | IFS | as_nl) ;; #( |
michael@0 | 2125 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
michael@0 | 2126 | *) { eval $ac_var=; unset $ac_var;} ;; |
michael@0 | 2127 | esac ;; |
michael@0 | 2128 | esac |
michael@0 | 2129 | done |
michael@0 | 2130 | (set) 2>&1 | |
michael@0 | 2131 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
michael@0 | 2132 | *${as_nl}ac_space=\ *) |
michael@0 | 2133 | sed -n \ |
michael@0 | 2134 | "s/'\''/'\''\\\\'\'''\''/g; |
michael@0 | 2135 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
michael@0 | 2136 | ;; #( |
michael@0 | 2137 | *) |
michael@0 | 2138 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
michael@0 | 2139 | ;; |
michael@0 | 2140 | esac | |
michael@0 | 2141 | sort |
michael@0 | 2142 | ) |
michael@0 | 2143 | echo |
michael@0 | 2144 | |
michael@0 | 2145 | $as_echo "## ----------------- ## |
michael@0 | 2146 | ## Output variables. ## |
michael@0 | 2147 | ## ----------------- ##" |
michael@0 | 2148 | echo |
michael@0 | 2149 | for ac_var in $ac_subst_vars |
michael@0 | 2150 | do |
michael@0 | 2151 | eval ac_val=\$$ac_var |
michael@0 | 2152 | case $ac_val in |
michael@0 | 2153 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
michael@0 | 2154 | esac |
michael@0 | 2155 | $as_echo "$ac_var='\''$ac_val'\''" |
michael@0 | 2156 | done | sort |
michael@0 | 2157 | echo |
michael@0 | 2158 | |
michael@0 | 2159 | if test -n "$ac_subst_files"; then |
michael@0 | 2160 | $as_echo "## ------------------- ## |
michael@0 | 2161 | ## File substitutions. ## |
michael@0 | 2162 | ## ------------------- ##" |
michael@0 | 2163 | echo |
michael@0 | 2164 | for ac_var in $ac_subst_files |
michael@0 | 2165 | do |
michael@0 | 2166 | eval ac_val=\$$ac_var |
michael@0 | 2167 | case $ac_val in |
michael@0 | 2168 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
michael@0 | 2169 | esac |
michael@0 | 2170 | $as_echo "$ac_var='\''$ac_val'\''" |
michael@0 | 2171 | done | sort |
michael@0 | 2172 | echo |
michael@0 | 2173 | fi |
michael@0 | 2174 | |
michael@0 | 2175 | if test -s confdefs.h; then |
michael@0 | 2176 | $as_echo "## ----------- ## |
michael@0 | 2177 | ## confdefs.h. ## |
michael@0 | 2178 | ## ----------- ##" |
michael@0 | 2179 | echo |
michael@0 | 2180 | cat confdefs.h |
michael@0 | 2181 | echo |
michael@0 | 2182 | fi |
michael@0 | 2183 | test "$ac_signal" != 0 && |
michael@0 | 2184 | $as_echo "$as_me: caught signal $ac_signal" |
michael@0 | 2185 | $as_echo "$as_me: exit $exit_status" |
michael@0 | 2186 | } >&5 |
michael@0 | 2187 | rm -f core *.core core.conftest.* && |
michael@0 | 2188 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
michael@0 | 2189 | exit $exit_status |
michael@0 | 2190 | ' 0 |
michael@0 | 2191 | for ac_signal in 1 2 13 15; do |
michael@0 | 2192 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
michael@0 | 2193 | done |
michael@0 | 2194 | ac_signal=0 |
michael@0 | 2195 | |
michael@0 | 2196 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
michael@0 | 2197 | rm -f -r conftest* confdefs.h |
michael@0 | 2198 | |
michael@0 | 2199 | $as_echo "/* confdefs.h */" > confdefs.h |
michael@0 | 2200 | |
michael@0 | 2201 | # Predefined preprocessor variables. |
michael@0 | 2202 | |
michael@0 | 2203 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2204 | #define PACKAGE_NAME "$PACKAGE_NAME" |
michael@0 | 2205 | _ACEOF |
michael@0 | 2206 | |
michael@0 | 2207 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2208 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
michael@0 | 2209 | _ACEOF |
michael@0 | 2210 | |
michael@0 | 2211 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2212 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
michael@0 | 2213 | _ACEOF |
michael@0 | 2214 | |
michael@0 | 2215 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2216 | #define PACKAGE_STRING "$PACKAGE_STRING" |
michael@0 | 2217 | _ACEOF |
michael@0 | 2218 | |
michael@0 | 2219 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2220 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
michael@0 | 2221 | _ACEOF |
michael@0 | 2222 | |
michael@0 | 2223 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2224 | #define PACKAGE_URL "$PACKAGE_URL" |
michael@0 | 2225 | _ACEOF |
michael@0 | 2226 | |
michael@0 | 2227 | |
michael@0 | 2228 | # Let the site file select an alternate cache file if it wants to. |
michael@0 | 2229 | # Prefer an explicitly selected file to automatically selected ones. |
michael@0 | 2230 | ac_site_file1=NONE |
michael@0 | 2231 | ac_site_file2=NONE |
michael@0 | 2232 | if test -n "$CONFIG_SITE"; then |
michael@0 | 2233 | # We do not want a PATH search for config.site. |
michael@0 | 2234 | case $CONFIG_SITE in #(( |
michael@0 | 2235 | -*) ac_site_file1=./$CONFIG_SITE;; |
michael@0 | 2236 | */*) ac_site_file1=$CONFIG_SITE;; |
michael@0 | 2237 | *) ac_site_file1=./$CONFIG_SITE;; |
michael@0 | 2238 | esac |
michael@0 | 2239 | elif test "x$prefix" != xNONE; then |
michael@0 | 2240 | ac_site_file1=$prefix/share/config.site |
michael@0 | 2241 | ac_site_file2=$prefix/etc/config.site |
michael@0 | 2242 | else |
michael@0 | 2243 | ac_site_file1=$ac_default_prefix/share/config.site |
michael@0 | 2244 | ac_site_file2=$ac_default_prefix/etc/config.site |
michael@0 | 2245 | fi |
michael@0 | 2246 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
michael@0 | 2247 | do |
michael@0 | 2248 | test "x$ac_site_file" = xNONE && continue |
michael@0 | 2249 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
michael@0 | 2250 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
michael@0 | 2251 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
michael@0 | 2252 | sed 's/^/| /' "$ac_site_file" >&5 |
michael@0 | 2253 | . "$ac_site_file" \ |
michael@0 | 2254 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 2255 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 2256 | as_fn_error $? "failed to load site script $ac_site_file |
michael@0 | 2257 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 2258 | fi |
michael@0 | 2259 | done |
michael@0 | 2260 | |
michael@0 | 2261 | if test -r "$cache_file"; then |
michael@0 | 2262 | # Some versions of bash will fail to source /dev/null (special files |
michael@0 | 2263 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
michael@0 | 2264 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
michael@0 | 2265 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
michael@0 | 2266 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
michael@0 | 2267 | case $cache_file in |
michael@0 | 2268 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
michael@0 | 2269 | *) . "./$cache_file";; |
michael@0 | 2270 | esac |
michael@0 | 2271 | fi |
michael@0 | 2272 | else |
michael@0 | 2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
michael@0 | 2274 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
michael@0 | 2275 | >$cache_file |
michael@0 | 2276 | fi |
michael@0 | 2277 | |
michael@0 | 2278 | # Check that the precious variables saved in the cache have kept the same |
michael@0 | 2279 | # value. |
michael@0 | 2280 | ac_cache_corrupted=false |
michael@0 | 2281 | for ac_var in $ac_precious_vars; do |
michael@0 | 2282 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
michael@0 | 2283 | eval ac_new_set=\$ac_env_${ac_var}_set |
michael@0 | 2284 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
michael@0 | 2285 | eval ac_new_val=\$ac_env_${ac_var}_value |
michael@0 | 2286 | case $ac_old_set,$ac_new_set in |
michael@0 | 2287 | set,) |
michael@0 | 2288 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
michael@0 | 2289 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
michael@0 | 2290 | ac_cache_corrupted=: ;; |
michael@0 | 2291 | ,set) |
michael@0 | 2292 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
michael@0 | 2293 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
michael@0 | 2294 | ac_cache_corrupted=: ;; |
michael@0 | 2295 | ,);; |
michael@0 | 2296 | *) |
michael@0 | 2297 | if test "x$ac_old_val" != "x$ac_new_val"; then |
michael@0 | 2298 | # differences in whitespace do not lead to failure. |
michael@0 | 2299 | ac_old_val_w=`echo x $ac_old_val` |
michael@0 | 2300 | ac_new_val_w=`echo x $ac_new_val` |
michael@0 | 2301 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
michael@0 | 2302 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
michael@0 | 2303 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
michael@0 | 2304 | ac_cache_corrupted=: |
michael@0 | 2305 | else |
michael@0 | 2306 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
michael@0 | 2307 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
michael@0 | 2308 | eval $ac_var=\$ac_old_val |
michael@0 | 2309 | fi |
michael@0 | 2310 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
michael@0 | 2311 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
michael@0 | 2312 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
michael@0 | 2313 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
michael@0 | 2314 | fi;; |
michael@0 | 2315 | esac |
michael@0 | 2316 | # Pass precious variables to config.status. |
michael@0 | 2317 | if test "$ac_new_set" = set; then |
michael@0 | 2318 | case $ac_new_val in |
michael@0 | 2319 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
michael@0 | 2320 | *) ac_arg=$ac_var=$ac_new_val ;; |
michael@0 | 2321 | esac |
michael@0 | 2322 | case " $ac_configure_args " in |
michael@0 | 2323 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
michael@0 | 2324 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
michael@0 | 2325 | esac |
michael@0 | 2326 | fi |
michael@0 | 2327 | done |
michael@0 | 2328 | if $ac_cache_corrupted; then |
michael@0 | 2329 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 2330 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 2331 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
michael@0 | 2332 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
michael@0 | 2333 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
michael@0 | 2334 | fi |
michael@0 | 2335 | ## -------------------- ## |
michael@0 | 2336 | ## Main body of script. ## |
michael@0 | 2337 | ## -------------------- ## |
michael@0 | 2338 | |
michael@0 | 2339 | ac_ext=c |
michael@0 | 2340 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 2341 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 2342 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 2343 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 2344 | |
michael@0 | 2345 | |
michael@0 | 2346 | |
michael@0 | 2347 | |
michael@0 | 2348 | ac_aux_dir= |
michael@0 | 2349 | for ac_dir in ${srcdir}/build/autoconf "$srcdir"/${srcdir}/build/autoconf; do |
michael@0 | 2350 | if test -f "$ac_dir/install-sh"; then |
michael@0 | 2351 | ac_aux_dir=$ac_dir |
michael@0 | 2352 | ac_install_sh="$ac_aux_dir/install-sh -c" |
michael@0 | 2353 | break |
michael@0 | 2354 | elif test -f "$ac_dir/install.sh"; then |
michael@0 | 2355 | ac_aux_dir=$ac_dir |
michael@0 | 2356 | ac_install_sh="$ac_aux_dir/install.sh -c" |
michael@0 | 2357 | break |
michael@0 | 2358 | elif test -f "$ac_dir/shtool"; then |
michael@0 | 2359 | ac_aux_dir=$ac_dir |
michael@0 | 2360 | ac_install_sh="$ac_aux_dir/shtool install -c" |
michael@0 | 2361 | break |
michael@0 | 2362 | fi |
michael@0 | 2363 | done |
michael@0 | 2364 | if test -z "$ac_aux_dir"; then |
michael@0 | 2365 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${srcdir}/build/autoconf \"$srcdir\"/${srcdir}/build/autoconf" "$LINENO" 5 |
michael@0 | 2366 | fi |
michael@0 | 2367 | |
michael@0 | 2368 | # These three variables are undocumented and unsupported, |
michael@0 | 2369 | # and are intended to be withdrawn in a future Autoconf release. |
michael@0 | 2370 | # They can cause serious problems if a builder's source tree is in a directory |
michael@0 | 2371 | # whose full name contains unusual characters. |
michael@0 | 2372 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
michael@0 | 2373 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
michael@0 | 2374 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
michael@0 | 2375 | |
michael@0 | 2376 | |
michael@0 | 2377 | # Make sure we can run config.sub. |
michael@0 | 2378 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
michael@0 | 2379 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
michael@0 | 2380 | |
michael@0 | 2381 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
michael@0 | 2382 | $as_echo_n "checking build system type... " >&6; } |
michael@0 | 2383 | if ${ac_cv_build+:} false; then : |
michael@0 | 2384 | $as_echo_n "(cached) " >&6 |
michael@0 | 2385 | else |
michael@0 | 2386 | ac_build_alias=$build_alias |
michael@0 | 2387 | test "x$ac_build_alias" = x && |
michael@0 | 2388 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
michael@0 | 2389 | test "x$ac_build_alias" = x && |
michael@0 | 2390 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
michael@0 | 2391 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
michael@0 | 2392 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
michael@0 | 2393 | |
michael@0 | 2394 | fi |
michael@0 | 2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
michael@0 | 2396 | $as_echo "$ac_cv_build" >&6; } |
michael@0 | 2397 | case $ac_cv_build in |
michael@0 | 2398 | *-*-*) ;; |
michael@0 | 2399 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
michael@0 | 2400 | esac |
michael@0 | 2401 | build=$ac_cv_build |
michael@0 | 2402 | ac_save_IFS=$IFS; IFS='-' |
michael@0 | 2403 | set x $ac_cv_build |
michael@0 | 2404 | shift |
michael@0 | 2405 | build_cpu=$1 |
michael@0 | 2406 | build_vendor=$2 |
michael@0 | 2407 | shift; shift |
michael@0 | 2408 | # Remember, the first character of IFS is used to create $*, |
michael@0 | 2409 | # except with old shells: |
michael@0 | 2410 | build_os=$* |
michael@0 | 2411 | IFS=$ac_save_IFS |
michael@0 | 2412 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
michael@0 | 2413 | |
michael@0 | 2414 | |
michael@0 | 2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
michael@0 | 2416 | $as_echo_n "checking host system type... " >&6; } |
michael@0 | 2417 | if ${ac_cv_host+:} false; then : |
michael@0 | 2418 | $as_echo_n "(cached) " >&6 |
michael@0 | 2419 | else |
michael@0 | 2420 | if test "x$host_alias" = x; then |
michael@0 | 2421 | ac_cv_host=$ac_cv_build |
michael@0 | 2422 | else |
michael@0 | 2423 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
michael@0 | 2424 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
michael@0 | 2425 | fi |
michael@0 | 2426 | |
michael@0 | 2427 | fi |
michael@0 | 2428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
michael@0 | 2429 | $as_echo "$ac_cv_host" >&6; } |
michael@0 | 2430 | case $ac_cv_host in |
michael@0 | 2431 | *-*-*) ;; |
michael@0 | 2432 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
michael@0 | 2433 | esac |
michael@0 | 2434 | host=$ac_cv_host |
michael@0 | 2435 | ac_save_IFS=$IFS; IFS='-' |
michael@0 | 2436 | set x $ac_cv_host |
michael@0 | 2437 | shift |
michael@0 | 2438 | host_cpu=$1 |
michael@0 | 2439 | host_vendor=$2 |
michael@0 | 2440 | shift; shift |
michael@0 | 2441 | # Remember, the first character of IFS is used to create $*, |
michael@0 | 2442 | # except with old shells: |
michael@0 | 2443 | host_os=$* |
michael@0 | 2444 | IFS=$ac_save_IFS |
michael@0 | 2445 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
michael@0 | 2446 | |
michael@0 | 2447 | |
michael@0 | 2448 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
michael@0 | 2449 | $as_echo_n "checking target system type... " >&6; } |
michael@0 | 2450 | if ${ac_cv_target+:} false; then : |
michael@0 | 2451 | $as_echo_n "(cached) " >&6 |
michael@0 | 2452 | else |
michael@0 | 2453 | if test "x$target_alias" = x; then |
michael@0 | 2454 | ac_cv_target=$ac_cv_host |
michael@0 | 2455 | else |
michael@0 | 2456 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
michael@0 | 2457 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
michael@0 | 2458 | fi |
michael@0 | 2459 | |
michael@0 | 2460 | fi |
michael@0 | 2461 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
michael@0 | 2462 | $as_echo "$ac_cv_target" >&6; } |
michael@0 | 2463 | case $ac_cv_target in |
michael@0 | 2464 | *-*-*) ;; |
michael@0 | 2465 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
michael@0 | 2466 | esac |
michael@0 | 2467 | target=$ac_cv_target |
michael@0 | 2468 | ac_save_IFS=$IFS; IFS='-' |
michael@0 | 2469 | set x $ac_cv_target |
michael@0 | 2470 | shift |
michael@0 | 2471 | target_cpu=$1 |
michael@0 | 2472 | target_vendor=$2 |
michael@0 | 2473 | shift; shift |
michael@0 | 2474 | # Remember, the first character of IFS is used to create $*, |
michael@0 | 2475 | # except with old shells: |
michael@0 | 2476 | target_os=$* |
michael@0 | 2477 | IFS=$ac_save_IFS |
michael@0 | 2478 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
michael@0 | 2479 | |
michael@0 | 2480 | |
michael@0 | 2481 | # The aliases save the names the user supplied, while $host etc. |
michael@0 | 2482 | # will get canonicalized. |
michael@0 | 2483 | test -n "$target_alias" && |
michael@0 | 2484 | test "$program_prefix$program_suffix$program_transform_name" = \ |
michael@0 | 2485 | NONENONEs,x,x, && |
michael@0 | 2486 | program_prefix=${target_alias}- |
michael@0 | 2487 | |
michael@0 | 2488 | MOD_MAJOR_VERSION=4 |
michael@0 | 2489 | MOD_MINOR_VERSION=10 |
michael@0 | 2490 | MOD_PATCH_VERSION=6 |
michael@0 | 2491 | NSPR_MODNAME=nspr20 |
michael@0 | 2492 | _HAVE_PTHREADS= |
michael@0 | 2493 | USE_PTHREADS= |
michael@0 | 2494 | USE_USER_PTHREADS= |
michael@0 | 2495 | USE_NSPR_THREADS= |
michael@0 | 2496 | USE_N32= |
michael@0 | 2497 | USE_X32= |
michael@0 | 2498 | USE_64= |
michael@0 | 2499 | USE_CPLUS= |
michael@0 | 2500 | USE_IPV6= |
michael@0 | 2501 | USE_MDUPDATE= |
michael@0 | 2502 | _MACOSX_DEPLOYMENT_TARGET= |
michael@0 | 2503 | _OPTIMIZE_FLAGS=-O |
michael@0 | 2504 | _DEBUG_FLAGS=-g |
michael@0 | 2505 | MOZ_DEBUG=1 |
michael@0 | 2506 | MOZ_OPTIMIZE= |
michael@0 | 2507 | OBJDIR='$(OBJDIR_NAME)' |
michael@0 | 2508 | OBJDIR_NAME=. |
michael@0 | 2509 | OBJDIR_SUFFIX=OBJ |
michael@0 | 2510 | NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall' |
michael@0 | 2511 | NOSUCHFILE=/no-such-file |
michael@0 | 2512 | LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)' |
michael@0 | 2513 | LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)' |
michael@0 | 2514 | CYGWIN_WRAPPER= |
michael@0 | 2515 | MACOS_SDK_DIR= |
michael@0 | 2516 | NEXT_ROOT= |
michael@0 | 2517 | MT= |
michael@0 | 2518 | MOZ_OS2_HIGH_MEMORY=1 |
michael@0 | 2519 | PROFILE_GEN_CFLAGS= |
michael@0 | 2520 | PROFILE_GEN_LDFLAGS= |
michael@0 | 2521 | PROFILE_USE_CFLAGS= |
michael@0 | 2522 | PROFILE_USE_LDFLAGS= |
michael@0 | 2523 | |
michael@0 | 2524 | RESOLVE_LINK_SYMBOLS= |
michael@0 | 2525 | |
michael@0 | 2526 | CFLAGS="${CFLAGS=}" |
michael@0 | 2527 | CXXFLAGS="${CXXFLAGS=}" |
michael@0 | 2528 | LDFLAGS="${LDFLAGS=}" |
michael@0 | 2529 | DLLFLAGS="${DLLFLAGS=}" |
michael@0 | 2530 | HOST_CFLAGS="${HOST_CFLAGS=}" |
michael@0 | 2531 | HOST_LDFLAGS="${HOST_LDFLAGS=}" |
michael@0 | 2532 | |
michael@0 | 2533 | case "$target" in |
michael@0 | 2534 | *-cygwin*|*-mingw*|*-msys*) |
michael@0 | 2535 | # Check to see if we are really running in a msvc environemnt |
michael@0 | 2536 | _WIN32_MSVC= |
michael@0 | 2537 | for ac_prog in cl |
michael@0 | 2538 | do |
michael@0 | 2539 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 2540 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 2541 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 2542 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 2543 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 2544 | $as_echo_n "(cached) " >&6 |
michael@0 | 2545 | else |
michael@0 | 2546 | if test -n "$CC"; then |
michael@0 | 2547 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 2548 | else |
michael@0 | 2549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2550 | for as_dir in $PATH |
michael@0 | 2551 | do |
michael@0 | 2552 | IFS=$as_save_IFS |
michael@0 | 2553 | test -z "$as_dir" && as_dir=. |
michael@0 | 2554 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 2555 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 2556 | ac_cv_prog_CC="$ac_prog" |
michael@0 | 2557 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 2558 | break 2 |
michael@0 | 2559 | fi |
michael@0 | 2560 | done |
michael@0 | 2561 | done |
michael@0 | 2562 | IFS=$as_save_IFS |
michael@0 | 2563 | |
michael@0 | 2564 | fi |
michael@0 | 2565 | fi |
michael@0 | 2566 | CC=$ac_cv_prog_CC |
michael@0 | 2567 | if test -n "$CC"; then |
michael@0 | 2568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 2569 | $as_echo "$CC" >&6; } |
michael@0 | 2570 | else |
michael@0 | 2571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2572 | $as_echo "no" >&6; } |
michael@0 | 2573 | fi |
michael@0 | 2574 | |
michael@0 | 2575 | |
michael@0 | 2576 | test -n "$CC" && break |
michael@0 | 2577 | done |
michael@0 | 2578 | |
michael@0 | 2579 | if test "$CC" = "cl"; then |
michael@0 | 2580 | echo 'main() { return 0; }' > dummy.c |
michael@0 | 2581 | ${CC} -o dummy dummy.c >/dev/null 2>&1 |
michael@0 | 2582 | if test $? = 0; then |
michael@0 | 2583 | _WIN32_MSVC=1 |
michael@0 | 2584 | CXX=$CC |
michael@0 | 2585 | else |
michael@0 | 2586 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $(CC) test failed. Using normal feature tests" >&5 |
michael@0 | 2587 | $as_echo "$as_me: WARNING: $(CC) test failed. Using normal feature tests" >&2;} |
michael@0 | 2588 | fi |
michael@0 | 2589 | rm -f dummy dummy.o dummy.obj dummy.exe dummy.c |
michael@0 | 2590 | fi |
michael@0 | 2591 | ;; |
michael@0 | 2592 | *-mks*) |
michael@0 | 2593 | _WIN32_MSVC=1 |
michael@0 | 2594 | ;; |
michael@0 | 2595 | esac |
michael@0 | 2596 | |
michael@0 | 2597 | if test -n "$_WIN32_MSVC"; then |
michael@0 | 2598 | SKIP_PATH_CHECKS=1 |
michael@0 | 2599 | SKIP_COMPILER_CHECKS=1 |
michael@0 | 2600 | SKIP_LIBRARY_CHECKS=1 |
michael@0 | 2601 | fi |
michael@0 | 2602 | |
michael@0 | 2603 | |
michael@0 | 2604 | |
michael@0 | 2605 | # Check whether --with-android-ndk was given. |
michael@0 | 2606 | if test "${with_android_ndk+set}" = set; then : |
michael@0 | 2607 | withval=$with_android_ndk; android_ndk=$withval |
michael@0 | 2608 | fi |
michael@0 | 2609 | |
michael@0 | 2610 | |
michael@0 | 2611 | |
michael@0 | 2612 | # Check whether --with-android-toolchain was given. |
michael@0 | 2613 | if test "${with_android_toolchain+set}" = set; then : |
michael@0 | 2614 | withval=$with_android_toolchain; android_toolchain=$withval |
michael@0 | 2615 | fi |
michael@0 | 2616 | |
michael@0 | 2617 | |
michael@0 | 2618 | case "$target_cpu" in |
michael@0 | 2619 | arm) |
michael@0 | 2620 | android_version=5 |
michael@0 | 2621 | ;; |
michael@0 | 2622 | i?86|mipsel) |
michael@0 | 2623 | android_version=9 |
michael@0 | 2624 | ;; |
michael@0 | 2625 | esac |
michael@0 | 2626 | |
michael@0 | 2627 | |
michael@0 | 2628 | # Check whether --with-android-version was given. |
michael@0 | 2629 | if test "${with_android_version+set}" = set; then : |
michael@0 | 2630 | withval=$with_android_version; android_version=$withval |
michael@0 | 2631 | fi |
michael@0 | 2632 | |
michael@0 | 2633 | |
michael@0 | 2634 | |
michael@0 | 2635 | # Check whether --with-android-platform was given. |
michael@0 | 2636 | if test "${with_android_platform+set}" = set; then : |
michael@0 | 2637 | withval=$with_android_platform; android_platform=$withval |
michael@0 | 2638 | fi |
michael@0 | 2639 | |
michael@0 | 2640 | |
michael@0 | 2641 | case "$target" in |
michael@0 | 2642 | arm-linux*-android*|*-linuxandroid*) |
michael@0 | 2643 | android_tool_prefix="arm-linux-androideabi" |
michael@0 | 2644 | ;; |
michael@0 | 2645 | i?86-*android*) |
michael@0 | 2646 | android_tool_prefix="i686-linux-android" |
michael@0 | 2647 | ;; |
michael@0 | 2648 | mipsel-*android*) |
michael@0 | 2649 | android_tool_prefix="mipsel-linux-android" |
michael@0 | 2650 | ;; |
michael@0 | 2651 | *) |
michael@0 | 2652 | android_tool_prefix="$target_os" |
michael@0 | 2653 | ;; |
michael@0 | 2654 | esac |
michael@0 | 2655 | |
michael@0 | 2656 | |
michael@0 | 2657 | |
michael@0 | 2658 | # Check whether --with-gonk was given. |
michael@0 | 2659 | if test "${with_gonk+set}" = set; then : |
michael@0 | 2660 | withval=$with_gonk; gonkdir=$withval |
michael@0 | 2661 | fi |
michael@0 | 2662 | |
michael@0 | 2663 | |
michael@0 | 2664 | if test -n "$gonkdir" ; then |
michael@0 | 2665 | |
michael@0 | 2666 | if test -z "$HOST_CPPFLAGS" ; then |
michael@0 | 2667 | HOST_CPPFLAGS=" " |
michael@0 | 2668 | fi |
michael@0 | 2669 | if test -z "$HOST_CFLAGS" ; then |
michael@0 | 2670 | HOST_CFLAGS=" " |
michael@0 | 2671 | fi |
michael@0 | 2672 | if test -z "$HOST_CXXFLAGS" ; then |
michael@0 | 2673 | HOST_CXXFLAGS=" " |
michael@0 | 2674 | fi |
michael@0 | 2675 | if test -z "$HOST_LDFLAGS" ; then |
michael@0 | 2676 | HOST_LDFLAGS=" " |
michael@0 | 2677 | fi |
michael@0 | 2678 | |
michael@0 | 2679 | $as_echo "#define ANDROID 1" >>confdefs.h |
michael@0 | 2680 | |
michael@0 | 2681 | else |
michael@0 | 2682 | case "$target" in |
michael@0 | 2683 | *-android*|*-linuxandroid*) |
michael@0 | 2684 | if test -z "$android_ndk" ; then |
michael@0 | 2685 | as_fn_error $? "You must specify --with-android-ndk=/path/to/ndk when targeting Android." "$LINENO" 5 |
michael@0 | 2686 | fi |
michael@0 | 2687 | |
michael@0 | 2688 | if test -z "$android_toolchain" ; then |
michael@0 | 2689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android toolchain directory" >&5 |
michael@0 | 2690 | $as_echo_n "checking for android toolchain directory... " >&6; } |
michael@0 | 2691 | |
michael@0 | 2692 | kernel_name=`uname -s | tr "[:upper:]" "[:lower:]"` |
michael@0 | 2693 | |
michael@0 | 2694 | case "$target_cpu" in |
michael@0 | 2695 | arm) |
michael@0 | 2696 | target_name=arm-linux-androideabi-4.4.3 |
michael@0 | 2697 | ;; |
michael@0 | 2698 | i?86) |
michael@0 | 2699 | target_name=x86-4.4.3 |
michael@0 | 2700 | ;; |
michael@0 | 2701 | mipsel) |
michael@0 | 2702 | target_name=mipsel-linux-android-4.4.3 |
michael@0 | 2703 | ;; |
michael@0 | 2704 | esac |
michael@0 | 2705 | android_toolchain="$android_ndk"/toolchains/$target_name/prebuilt/$kernel_name-x86 |
michael@0 | 2706 | |
michael@0 | 2707 | if test -d "$android_toolchain" ; then |
michael@0 | 2708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_toolchain" >&5 |
michael@0 | 2709 | $as_echo "$android_toolchain" >&6; } |
michael@0 | 2710 | else |
michael@0 | 2711 | as_fn_error $? "not found. You have to specify --with-android-toolchain=/path/to/ndk/toolchain." "$LINENO" 5 |
michael@0 | 2712 | fi |
michael@0 | 2713 | fi |
michael@0 | 2714 | |
michael@0 | 2715 | if test -z "$android_platform" ; then |
michael@0 | 2716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for android platform directory" >&5 |
michael@0 | 2717 | $as_echo_n "checking for android platform directory... " >&6; } |
michael@0 | 2718 | |
michael@0 | 2719 | case "$target_cpu" in |
michael@0 | 2720 | arm) |
michael@0 | 2721 | target_name=arm |
michael@0 | 2722 | ;; |
michael@0 | 2723 | i?86) |
michael@0 | 2724 | target_name=x86 |
michael@0 | 2725 | ;; |
michael@0 | 2726 | mipsel) |
michael@0 | 2727 | target_name=mips |
michael@0 | 2728 | ;; |
michael@0 | 2729 | esac |
michael@0 | 2730 | |
michael@0 | 2731 | android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name" |
michael@0 | 2732 | |
michael@0 | 2733 | if test -d "$android_platform" ; then |
michael@0 | 2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_platform" >&5 |
michael@0 | 2735 | $as_echo "$android_platform" >&6; } |
michael@0 | 2736 | else |
michael@0 | 2737 | as_fn_error $? "not found. You have to specify --with-android-platform=/path/to/ndk/platform." "$LINENO" 5 |
michael@0 | 2738 | fi |
michael@0 | 2739 | fi |
michael@0 | 2740 | |
michael@0 | 2741 | case "$target_cpu" in |
michael@0 | 2742 | i?86) |
michael@0 | 2743 | if ! test -e "$android_toolchain"/bin/"$android_tool_prefix"-gcc; then |
michael@0 | 2744 | android_tool_prefix="i686-android-linux" |
michael@0 | 2745 | fi |
michael@0 | 2746 | ;; |
michael@0 | 2747 | esac |
michael@0 | 2748 | |
michael@0 | 2749 | AS="$android_toolchain"/bin/"$android_tool_prefix"-as |
michael@0 | 2750 | CC="$android_toolchain"/bin/"$android_tool_prefix"-gcc |
michael@0 | 2751 | CXX="$android_toolchain"/bin/"$android_tool_prefix"-g++ |
michael@0 | 2752 | CPP="$android_toolchain"/bin/"$android_tool_prefix"-cpp |
michael@0 | 2753 | LD="$android_toolchain"/bin/"$android_tool_prefix"-ld |
michael@0 | 2754 | AR="$android_toolchain"/bin/"$android_tool_prefix"-ar |
michael@0 | 2755 | RANLIB="$android_toolchain"/bin/"$android_tool_prefix"-ranlib |
michael@0 | 2756 | STRIP="$android_toolchain"/bin/"$android_tool_prefix"-strip |
michael@0 | 2757 | |
michael@0 | 2758 | CPPFLAGS="-I$android_platform/usr/include $CPPFLAGS" |
michael@0 | 2759 | CFLAGS="-mandroid -I$android_platform/usr/include -fno-short-enums -fno-exceptions $CFLAGS" |
michael@0 | 2760 | CXXFLAGS="-mandroid -I$android_platform/usr/include -fpic -fno-short-enums -fno-exceptions $CXXFLAGS" |
michael@0 | 2761 | LDFLAGS="-mandroid -L$android_platform/usr/lib -Wl,-rpath-link=$android_platform/usr/lib --sysroot=$android_platform $LDFLAGS" |
michael@0 | 2762 | |
michael@0 | 2763 | if test -z "$HOST_CPPFLAGS" ; then |
michael@0 | 2764 | HOST_CPPFLAGS=" " |
michael@0 | 2765 | fi |
michael@0 | 2766 | if test -z "$HOST_CFLAGS" ; then |
michael@0 | 2767 | HOST_CFLAGS=" " |
michael@0 | 2768 | fi |
michael@0 | 2769 | if test -z "$HOST_CXXFLAGS" ; then |
michael@0 | 2770 | HOST_CXXFLAGS=" " |
michael@0 | 2771 | fi |
michael@0 | 2772 | if test -z "$HOST_LDFLAGS" ; then |
michael@0 | 2773 | HOST_LDFLAGS=" " |
michael@0 | 2774 | fi |
michael@0 | 2775 | |
michael@0 | 2776 | $as_echo "#define ANDROID 1" >>confdefs.h |
michael@0 | 2777 | |
michael@0 | 2778 | ;; |
michael@0 | 2779 | esac |
michael@0 | 2780 | fi |
michael@0 | 2781 | |
michael@0 | 2782 | dist_prefix='${MOD_DEPTH}/dist' |
michael@0 | 2783 | dist_bindir='${dist_prefix}/bin' |
michael@0 | 2784 | dist_includedir='${dist_prefix}/include/nspr' |
michael@0 | 2785 | dist_libdir='${dist_prefix}/lib' |
michael@0 | 2786 | if test "${includedir}" = '${prefix}/include'; then |
michael@0 | 2787 | includedir='${prefix}/include/nspr' |
michael@0 | 2788 | fi |
michael@0 | 2789 | |
michael@0 | 2790 | |
michael@0 | 2791 | # Check whether --with-dist-prefix was given. |
michael@0 | 2792 | if test "${with_dist_prefix+set}" = set; then : |
michael@0 | 2793 | withval=$with_dist_prefix; dist_prefix=$withval |
michael@0 | 2794 | fi |
michael@0 | 2795 | |
michael@0 | 2796 | |
michael@0 | 2797 | |
michael@0 | 2798 | # Check whether --with-dist-bindir was given. |
michael@0 | 2799 | if test "${with_dist_bindir+set}" = set; then : |
michael@0 | 2800 | withval=$with_dist_bindir; dist_bindir=$withval |
michael@0 | 2801 | fi |
michael@0 | 2802 | |
michael@0 | 2803 | |
michael@0 | 2804 | |
michael@0 | 2805 | # Check whether --with-dist-includedir was given. |
michael@0 | 2806 | if test "${with_dist_includedir+set}" = set; then : |
michael@0 | 2807 | withval=$with_dist_includedir; dist_includedir=$withval |
michael@0 | 2808 | fi |
michael@0 | 2809 | |
michael@0 | 2810 | |
michael@0 | 2811 | |
michael@0 | 2812 | # Check whether --with-dist-libdir was given. |
michael@0 | 2813 | if test "${with_dist_libdir+set}" = set; then : |
michael@0 | 2814 | withval=$with_dist_libdir; dist_libdir=$withval |
michael@0 | 2815 | fi |
michael@0 | 2816 | |
michael@0 | 2817 | |
michael@0 | 2818 | |
michael@0 | 2819 | |
michael@0 | 2820 | |
michael@0 | 2821 | |
michael@0 | 2822 | |
michael@0 | 2823 | |
michael@0 | 2824 | # Check whether --with-mozilla was given. |
michael@0 | 2825 | if test "${with_mozilla+set}" = set; then : |
michael@0 | 2826 | withval=$with_mozilla; if test "$withval" = "yes"; then |
michael@0 | 2827 | $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h |
michael@0 | 2828 | |
michael@0 | 2829 | MOZILLA_CLIENT=1 |
michael@0 | 2830 | else |
michael@0 | 2831 | MOZILLA_CLIENT= |
michael@0 | 2832 | fi |
michael@0 | 2833 | else |
michael@0 | 2834 | if test -n "$MOZILLA_CLIENT"; then |
michael@0 | 2835 | $as_echo "#define MOZILLA_CLIENT 1" >>confdefs.h |
michael@0 | 2836 | |
michael@0 | 2837 | fi |
michael@0 | 2838 | fi |
michael@0 | 2839 | |
michael@0 | 2840 | |
michael@0 | 2841 | # Check whether --enable-optimize was given. |
michael@0 | 2842 | if test "${enable_optimize+set}" = set; then : |
michael@0 | 2843 | enableval=$enable_optimize; if test "$enableval" != "no"; then |
michael@0 | 2844 | MOZ_OPTIMIZE=1 |
michael@0 | 2845 | if test -n "$enableval" -a "$enableval" != "yes"; then |
michael@0 | 2846 | _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` |
michael@0 | 2847 | _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS |
michael@0 | 2848 | fi |
michael@0 | 2849 | else |
michael@0 | 2850 | MOZ_OPTIMIZE= |
michael@0 | 2851 | fi |
michael@0 | 2852 | fi |
michael@0 | 2853 | |
michael@0 | 2854 | |
michael@0 | 2855 | # Check whether --enable-debug was given. |
michael@0 | 2856 | if test "${enable_debug+set}" = set; then : |
michael@0 | 2857 | enableval=$enable_debug; if test "$enableval" != "no"; then |
michael@0 | 2858 | MOZ_DEBUG=1 |
michael@0 | 2859 | MOZ_DEBUG_SYMBOLS=1 |
michael@0 | 2860 | if test -n "$enableval" -a "$enableval" != "yes"; then |
michael@0 | 2861 | _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` |
michael@0 | 2862 | _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS |
michael@0 | 2863 | fi |
michael@0 | 2864 | else |
michael@0 | 2865 | MOZ_DEBUG= |
michael@0 | 2866 | fi |
michael@0 | 2867 | else |
michael@0 | 2868 | MOZ_DEBUG_SYMBOLS=1 |
michael@0 | 2869 | fi |
michael@0 | 2870 | |
michael@0 | 2871 | |
michael@0 | 2872 | # Check whether --enable-debug-symbols was given. |
michael@0 | 2873 | if test "${enable_debug_symbols+set}" = set; then : |
michael@0 | 2874 | enableval=$enable_debug_symbols; if test "$enableval" != "no"; then |
michael@0 | 2875 | MOZ_DEBUG_SYMBOLS=1 |
michael@0 | 2876 | if test -n "$enableval" -a "$enableval" != "yes"; then |
michael@0 | 2877 | if test -z "$_SAVE_DEBUG_FLAGS"; then |
michael@0 | 2878 | _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` |
michael@0 | 2879 | _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS |
michael@0 | 2880 | else |
michael@0 | 2881 | as_fn_error $? "--enable-debug-symbols flags cannot be used with --enable-debug flags" "$LINENO" 5 |
michael@0 | 2882 | fi |
michael@0 | 2883 | fi |
michael@0 | 2884 | else |
michael@0 | 2885 | MOZ_DEBUG_SYMBOLS= |
michael@0 | 2886 | fi |
michael@0 | 2887 | fi |
michael@0 | 2888 | |
michael@0 | 2889 | |
michael@0 | 2890 | # Check whether --enable-win32-target was given. |
michael@0 | 2891 | if test "${enable_win32_target+set}" = set; then : |
michael@0 | 2892 | enableval=$enable_win32_target; OS_TARGET=`echo $enableval | tr a-z A-Z` |
michael@0 | 2893 | fi |
michael@0 | 2894 | |
michael@0 | 2895 | |
michael@0 | 2896 | # Check whether --enable-symbian-target was given. |
michael@0 | 2897 | if test "${enable_symbian_target+set}" = set; then : |
michael@0 | 2898 | enableval=$enable_symbian_target; OS_TARGET=`echo $enableval | tr a-z A-Z` |
michael@0 | 2899 | fi |
michael@0 | 2900 | |
michael@0 | 2901 | |
michael@0 | 2902 | # Check whether --enable-debug-rtl was given. |
michael@0 | 2903 | if test "${enable_debug_rtl+set}" = set; then : |
michael@0 | 2904 | enableval=$enable_debug_rtl; if test "$enableval" = "yes"; then |
michael@0 | 2905 | USE_DEBUG_RTL=1 |
michael@0 | 2906 | else |
michael@0 | 2907 | USE_DEBUG_RTL=0 |
michael@0 | 2908 | fi |
michael@0 | 2909 | fi |
michael@0 | 2910 | |
michael@0 | 2911 | |
michael@0 | 2912 | # Check whether --enable-n32 was given. |
michael@0 | 2913 | if test "${enable_n32+set}" = set; then : |
michael@0 | 2914 | enableval=$enable_n32; if test "$enableval" = "yes"; then |
michael@0 | 2915 | USE_N32=1 |
michael@0 | 2916 | else if test "$enableval" = "no"; then |
michael@0 | 2917 | USE_N32= |
michael@0 | 2918 | fi |
michael@0 | 2919 | fi |
michael@0 | 2920 | fi |
michael@0 | 2921 | |
michael@0 | 2922 | |
michael@0 | 2923 | # Check whether --enable-x32 was given. |
michael@0 | 2924 | if test "${enable_x32+set}" = set; then : |
michael@0 | 2925 | enableval=$enable_x32; if test "$enableval" = "yes"; then |
michael@0 | 2926 | USE_X32=1 |
michael@0 | 2927 | else if test "$enableval" = "no"; then |
michael@0 | 2928 | USE_X32= |
michael@0 | 2929 | fi |
michael@0 | 2930 | fi |
michael@0 | 2931 | fi |
michael@0 | 2932 | |
michael@0 | 2933 | |
michael@0 | 2934 | # Check whether --enable-64bit was given. |
michael@0 | 2935 | if test "${enable_64bit+set}" = set; then : |
michael@0 | 2936 | enableval=$enable_64bit; if test "$enableval" = "yes"; then |
michael@0 | 2937 | USE_64=1 |
michael@0 | 2938 | fi |
michael@0 | 2939 | fi |
michael@0 | 2940 | |
michael@0 | 2941 | |
michael@0 | 2942 | # Check whether --enable-mdupdate was given. |
michael@0 | 2943 | if test "${enable_mdupdate+set}" = set; then : |
michael@0 | 2944 | enableval=$enable_mdupdate; if test "$enableval" = "yes"; then |
michael@0 | 2945 | USE_MDUPDATE=1 |
michael@0 | 2946 | fi |
michael@0 | 2947 | fi |
michael@0 | 2948 | |
michael@0 | 2949 | |
michael@0 | 2950 | # Check whether --enable-cplus was given. |
michael@0 | 2951 | if test "${enable_cplus+set}" = set; then : |
michael@0 | 2952 | enableval=$enable_cplus; if test "$enableval" = "yes"; then |
michael@0 | 2953 | USE_CPLUS=1 |
michael@0 | 2954 | fi |
michael@0 | 2955 | fi |
michael@0 | 2956 | |
michael@0 | 2957 | |
michael@0 | 2958 | |
michael@0 | 2959 | # Check whether --with-arm-kuser was given. |
michael@0 | 2960 | if test "${with_arm_kuser+set}" = set; then : |
michael@0 | 2961 | withval=$with_arm_kuser; if test "$withval" = "yes"; then |
michael@0 | 2962 | $as_echo "#define _PR_ARM_KUSER 1" >>confdefs.h |
michael@0 | 2963 | |
michael@0 | 2964 | fi |
michael@0 | 2965 | fi |
michael@0 | 2966 | |
michael@0 | 2967 | |
michael@0 | 2968 | |
michael@0 | 2969 | # Check whether --with-macos-sdk was given. |
michael@0 | 2970 | if test "${with_macos_sdk+set}" = set; then : |
michael@0 | 2971 | withval=$with_macos_sdk; MACOS_SDK_DIR=$withval |
michael@0 | 2972 | fi |
michael@0 | 2973 | |
michael@0 | 2974 | |
michael@0 | 2975 | # Check whether --enable-macos-target was given. |
michael@0 | 2976 | if test "${enable_macos_target+set}" = set; then : |
michael@0 | 2977 | enableval=$enable_macos_target; _MACOSX_DEPLOYMENT_TARGET=$enableval |
michael@0 | 2978 | fi |
michael@0 | 2979 | |
michael@0 | 2980 | |
michael@0 | 2981 | case "$target" in |
michael@0 | 2982 | |
michael@0 | 2983 | *-aix*) |
michael@0 | 2984 | case "${target_os}" in |
michael@0 | 2985 | aix3.2*) |
michael@0 | 2986 | USE_NSPR_THREADS=1 |
michael@0 | 2987 | ;; |
michael@0 | 2988 | *) |
michael@0 | 2989 | USE_PTHREADS=1 |
michael@0 | 2990 | ;; |
michael@0 | 2991 | esac |
michael@0 | 2992 | ;; |
michael@0 | 2993 | |
michael@0 | 2994 | esac |
michael@0 | 2995 | |
michael@0 | 2996 | if test -z "$CC"; then |
michael@0 | 2997 | case "$target" in |
michael@0 | 2998 | |
michael@0 | 2999 | *-aix*) |
michael@0 | 3000 | if test -z "$USE_NSPR_THREADS"; then |
michael@0 | 3001 | CC=xlc_r |
michael@0 | 3002 | else |
michael@0 | 3003 | CC=xlc |
michael@0 | 3004 | fi |
michael@0 | 3005 | ;; |
michael@0 | 3006 | |
michael@0 | 3007 | *-hpux*) |
michael@0 | 3008 | CC=cc |
michael@0 | 3009 | ;; |
michael@0 | 3010 | |
michael@0 | 3011 | *-irix*) |
michael@0 | 3012 | CC=cc |
michael@0 | 3013 | ;; |
michael@0 | 3014 | |
michael@0 | 3015 | *-osf*) |
michael@0 | 3016 | CC=cc |
michael@0 | 3017 | ;; |
michael@0 | 3018 | |
michael@0 | 3019 | *-solaris*) |
michael@0 | 3020 | CC=cc |
michael@0 | 3021 | ;; |
michael@0 | 3022 | |
michael@0 | 3023 | esac |
michael@0 | 3024 | fi |
michael@0 | 3025 | |
michael@0 | 3026 | if test -z "$CXX"; then |
michael@0 | 3027 | case "$target" in |
michael@0 | 3028 | |
michael@0 | 3029 | *-aix*) |
michael@0 | 3030 | if test -z "$USE_NSPR_THREADS"; then |
michael@0 | 3031 | CXX=xlC_r |
michael@0 | 3032 | else |
michael@0 | 3033 | CXX=xlC |
michael@0 | 3034 | fi |
michael@0 | 3035 | ;; |
michael@0 | 3036 | |
michael@0 | 3037 | *-hpux*) |
michael@0 | 3038 | case "${target_os}" in |
michael@0 | 3039 | hpux10.30) |
michael@0 | 3040 | CXX=aCC |
michael@0 | 3041 | ;; |
michael@0 | 3042 | hpux11.*) |
michael@0 | 3043 | CXX=aCC |
michael@0 | 3044 | ;; |
michael@0 | 3045 | *) |
michael@0 | 3046 | CXX=CC |
michael@0 | 3047 | ;; |
michael@0 | 3048 | esac |
michael@0 | 3049 | ;; |
michael@0 | 3050 | |
michael@0 | 3051 | *-irix*) |
michael@0 | 3052 | CXX=CC |
michael@0 | 3053 | ;; |
michael@0 | 3054 | |
michael@0 | 3055 | *-osf*) |
michael@0 | 3056 | CXX=cxx |
michael@0 | 3057 | ;; |
michael@0 | 3058 | |
michael@0 | 3059 | *-solaris*) |
michael@0 | 3060 | CXX=CC |
michael@0 | 3061 | ;; |
michael@0 | 3062 | |
michael@0 | 3063 | esac |
michael@0 | 3064 | fi |
michael@0 | 3065 | |
michael@0 | 3066 | if test -z "$SKIP_PATH_CHECKS"; then |
michael@0 | 3067 | # Extract the first word of "$WHOAMI whoami", so it can be a program name with args. |
michael@0 | 3068 | set dummy $WHOAMI whoami; ac_word=$2 |
michael@0 | 3069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3070 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3071 | if ${ac_cv_path_WHOAMI+:} false; then : |
michael@0 | 3072 | $as_echo_n "(cached) " >&6 |
michael@0 | 3073 | else |
michael@0 | 3074 | case $WHOAMI in |
michael@0 | 3075 | [\\/]* | ?:[\\/]*) |
michael@0 | 3076 | ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path. |
michael@0 | 3077 | ;; |
michael@0 | 3078 | *) |
michael@0 | 3079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3080 | for as_dir in $PATH |
michael@0 | 3081 | do |
michael@0 | 3082 | IFS=$as_save_IFS |
michael@0 | 3083 | test -z "$as_dir" && as_dir=. |
michael@0 | 3084 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3085 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 3086 | ac_cv_path_WHOAMI="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 3087 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3088 | break 2 |
michael@0 | 3089 | fi |
michael@0 | 3090 | done |
michael@0 | 3091 | done |
michael@0 | 3092 | IFS=$as_save_IFS |
michael@0 | 3093 | |
michael@0 | 3094 | test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami" |
michael@0 | 3095 | ;; |
michael@0 | 3096 | esac |
michael@0 | 3097 | fi |
michael@0 | 3098 | WHOAMI=$ac_cv_path_WHOAMI |
michael@0 | 3099 | if test -n "$WHOAMI"; then |
michael@0 | 3100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHOAMI" >&5 |
michael@0 | 3101 | $as_echo "$WHOAMI" >&6; } |
michael@0 | 3102 | else |
michael@0 | 3103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3104 | $as_echo "no" >&6; } |
michael@0 | 3105 | fi |
michael@0 | 3106 | |
michael@0 | 3107 | |
michael@0 | 3108 | fi |
michael@0 | 3109 | |
michael@0 | 3110 | if test -n "$MOZ_DEBUG"; then |
michael@0 | 3111 | $as_echo "#define DEBUG 1" >>confdefs.h |
michael@0 | 3112 | |
michael@0 | 3113 | DEFINES="$DEFINES -UNDEBUG" |
michael@0 | 3114 | |
michael@0 | 3115 | case "${target_os}" in |
michael@0 | 3116 | beos*) |
michael@0 | 3117 | DEFINES="$DEFINES -DDEBUG_${USER}" |
michael@0 | 3118 | ;; |
michael@0 | 3119 | mks*|cygwin*|mingw*|msys*|os2*) |
michael@0 | 3120 | DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`" |
michael@0 | 3121 | ;; |
michael@0 | 3122 | *) |
michael@0 | 3123 | DEFINES="$DEFINES -DDEBUG_`$WHOAMI`" |
michael@0 | 3124 | ;; |
michael@0 | 3125 | esac |
michael@0 | 3126 | else |
michael@0 | 3127 | $as_echo "#define NDEBUG 1" >>confdefs.h |
michael@0 | 3128 | |
michael@0 | 3129 | DEFINES="$DEFINES -UDEBUG" |
michael@0 | 3130 | fi |
michael@0 | 3131 | |
michael@0 | 3132 | if test -z "$SKIP_COMPILER_CHECKS"; then |
michael@0 | 3133 | if test "$target" != "$host"; then |
michael@0 | 3134 | echo "cross compiling from $host to $target" |
michael@0 | 3135 | cross_compiling=yes |
michael@0 | 3136 | |
michael@0 | 3137 | case "$build:$target" in |
michael@0 | 3138 | powerpc-apple-darwin8*:i?86-apple-darwin*) |
michael@0 | 3139 | _SAVE_CFLAGS=$CFLAGS |
michael@0 | 3140 | _SAVE_CXXFLAGS=$CXXFLAGS |
michael@0 | 3141 | CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS" |
michael@0 | 3142 | CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS" |
michael@0 | 3143 | ;; |
michael@0 | 3144 | *:arm*-apple-darwin*) |
michael@0 | 3145 | _SAVE_CFLAGS=$CFLAGS |
michael@0 | 3146 | _SAVE_CXXFLAGS=$CXXFLAGS |
michael@0 | 3147 | CFLAGS="-isysroot $MACOS_SDK_DIR $CFLAGS" |
michael@0 | 3148 | CXXFLAGS="-isysroot $MACOS_SDK_DIR $CXXFLAGS" |
michael@0 | 3149 | ;; |
michael@0 | 3150 | esac |
michael@0 | 3151 | |
michael@0 | 3152 | for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc" |
michael@0 | 3153 | do |
michael@0 | 3154 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 3155 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3157 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3158 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 3159 | $as_echo_n "(cached) " >&6 |
michael@0 | 3160 | else |
michael@0 | 3161 | if test -n "$CC"; then |
michael@0 | 3162 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 3163 | else |
michael@0 | 3164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3165 | for as_dir in $PATH |
michael@0 | 3166 | do |
michael@0 | 3167 | IFS=$as_save_IFS |
michael@0 | 3168 | test -z "$as_dir" && as_dir=. |
michael@0 | 3169 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3170 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 3171 | ac_cv_prog_CC="$ac_prog" |
michael@0 | 3172 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3173 | break 2 |
michael@0 | 3174 | fi |
michael@0 | 3175 | done |
michael@0 | 3176 | done |
michael@0 | 3177 | IFS=$as_save_IFS |
michael@0 | 3178 | |
michael@0 | 3179 | fi |
michael@0 | 3180 | fi |
michael@0 | 3181 | CC=$ac_cv_prog_CC |
michael@0 | 3182 | if test -n "$CC"; then |
michael@0 | 3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 3184 | $as_echo "$CC" >&6; } |
michael@0 | 3185 | else |
michael@0 | 3186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3187 | $as_echo "no" >&6; } |
michael@0 | 3188 | fi |
michael@0 | 3189 | |
michael@0 | 3190 | |
michael@0 | 3191 | test -n "$CC" && break |
michael@0 | 3192 | done |
michael@0 | 3193 | test -n "$CC" || CC="echo" |
michael@0 | 3194 | |
michael@0 | 3195 | unset ac_cv_prog_CC |
michael@0 | 3196 | fi |
michael@0 | 3197 | |
michael@0 | 3198 | ac_ext=c |
michael@0 | 3199 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 3200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 3203 | if test -n "$ac_tool_prefix"; then |
michael@0 | 3204 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
michael@0 | 3205 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
michael@0 | 3206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3207 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3208 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 3209 | $as_echo_n "(cached) " >&6 |
michael@0 | 3210 | else |
michael@0 | 3211 | if test -n "$CC"; then |
michael@0 | 3212 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 3213 | else |
michael@0 | 3214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3215 | for as_dir in $PATH |
michael@0 | 3216 | do |
michael@0 | 3217 | IFS=$as_save_IFS |
michael@0 | 3218 | test -z "$as_dir" && as_dir=. |
michael@0 | 3219 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3220 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 3221 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
michael@0 | 3222 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3223 | break 2 |
michael@0 | 3224 | fi |
michael@0 | 3225 | done |
michael@0 | 3226 | done |
michael@0 | 3227 | IFS=$as_save_IFS |
michael@0 | 3228 | |
michael@0 | 3229 | fi |
michael@0 | 3230 | fi |
michael@0 | 3231 | CC=$ac_cv_prog_CC |
michael@0 | 3232 | if test -n "$CC"; then |
michael@0 | 3233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 3234 | $as_echo "$CC" >&6; } |
michael@0 | 3235 | else |
michael@0 | 3236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3237 | $as_echo "no" >&6; } |
michael@0 | 3238 | fi |
michael@0 | 3239 | |
michael@0 | 3240 | |
michael@0 | 3241 | fi |
michael@0 | 3242 | if test -z "$ac_cv_prog_CC"; then |
michael@0 | 3243 | ac_ct_CC=$CC |
michael@0 | 3244 | # Extract the first word of "gcc", so it can be a program name with args. |
michael@0 | 3245 | set dummy gcc; ac_word=$2 |
michael@0 | 3246 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3247 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3248 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
michael@0 | 3249 | $as_echo_n "(cached) " >&6 |
michael@0 | 3250 | else |
michael@0 | 3251 | if test -n "$ac_ct_CC"; then |
michael@0 | 3252 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
michael@0 | 3253 | else |
michael@0 | 3254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3255 | for as_dir in $PATH |
michael@0 | 3256 | do |
michael@0 | 3257 | IFS=$as_save_IFS |
michael@0 | 3258 | test -z "$as_dir" && as_dir=. |
michael@0 | 3259 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3260 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 3261 | ac_cv_prog_ac_ct_CC="gcc" |
michael@0 | 3262 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3263 | break 2 |
michael@0 | 3264 | fi |
michael@0 | 3265 | done |
michael@0 | 3266 | done |
michael@0 | 3267 | IFS=$as_save_IFS |
michael@0 | 3268 | |
michael@0 | 3269 | fi |
michael@0 | 3270 | fi |
michael@0 | 3271 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
michael@0 | 3272 | if test -n "$ac_ct_CC"; then |
michael@0 | 3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
michael@0 | 3274 | $as_echo "$ac_ct_CC" >&6; } |
michael@0 | 3275 | else |
michael@0 | 3276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3277 | $as_echo "no" >&6; } |
michael@0 | 3278 | fi |
michael@0 | 3279 | |
michael@0 | 3280 | if test "x$ac_ct_CC" = x; then |
michael@0 | 3281 | CC="" |
michael@0 | 3282 | else |
michael@0 | 3283 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 3284 | yes:) |
michael@0 | 3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 3286 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 3287 | ac_tool_warned=yes ;; |
michael@0 | 3288 | esac |
michael@0 | 3289 | CC=$ac_ct_CC |
michael@0 | 3290 | fi |
michael@0 | 3291 | else |
michael@0 | 3292 | CC="$ac_cv_prog_CC" |
michael@0 | 3293 | fi |
michael@0 | 3294 | |
michael@0 | 3295 | if test -z "$CC"; then |
michael@0 | 3296 | if test -n "$ac_tool_prefix"; then |
michael@0 | 3297 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
michael@0 | 3298 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
michael@0 | 3299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3300 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3301 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 3302 | $as_echo_n "(cached) " >&6 |
michael@0 | 3303 | else |
michael@0 | 3304 | if test -n "$CC"; then |
michael@0 | 3305 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 3306 | else |
michael@0 | 3307 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3308 | for as_dir in $PATH |
michael@0 | 3309 | do |
michael@0 | 3310 | IFS=$as_save_IFS |
michael@0 | 3311 | test -z "$as_dir" && as_dir=. |
michael@0 | 3312 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3313 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 3314 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
michael@0 | 3315 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3316 | break 2 |
michael@0 | 3317 | fi |
michael@0 | 3318 | done |
michael@0 | 3319 | done |
michael@0 | 3320 | IFS=$as_save_IFS |
michael@0 | 3321 | |
michael@0 | 3322 | fi |
michael@0 | 3323 | fi |
michael@0 | 3324 | CC=$ac_cv_prog_CC |
michael@0 | 3325 | if test -n "$CC"; then |
michael@0 | 3326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 3327 | $as_echo "$CC" >&6; } |
michael@0 | 3328 | else |
michael@0 | 3329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3330 | $as_echo "no" >&6; } |
michael@0 | 3331 | fi |
michael@0 | 3332 | |
michael@0 | 3333 | |
michael@0 | 3334 | fi |
michael@0 | 3335 | fi |
michael@0 | 3336 | if test -z "$CC"; then |
michael@0 | 3337 | # Extract the first word of "cc", so it can be a program name with args. |
michael@0 | 3338 | set dummy cc; ac_word=$2 |
michael@0 | 3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3340 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3341 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 3342 | $as_echo_n "(cached) " >&6 |
michael@0 | 3343 | else |
michael@0 | 3344 | if test -n "$CC"; then |
michael@0 | 3345 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 3346 | else |
michael@0 | 3347 | ac_prog_rejected=no |
michael@0 | 3348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3349 | for as_dir in $PATH |
michael@0 | 3350 | do |
michael@0 | 3351 | IFS=$as_save_IFS |
michael@0 | 3352 | test -z "$as_dir" && as_dir=. |
michael@0 | 3353 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3354 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 3355 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
michael@0 | 3356 | ac_prog_rejected=yes |
michael@0 | 3357 | continue |
michael@0 | 3358 | fi |
michael@0 | 3359 | ac_cv_prog_CC="cc" |
michael@0 | 3360 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3361 | break 2 |
michael@0 | 3362 | fi |
michael@0 | 3363 | done |
michael@0 | 3364 | done |
michael@0 | 3365 | IFS=$as_save_IFS |
michael@0 | 3366 | |
michael@0 | 3367 | if test $ac_prog_rejected = yes; then |
michael@0 | 3368 | # We found a bogon in the path, so make sure we never use it. |
michael@0 | 3369 | set dummy $ac_cv_prog_CC |
michael@0 | 3370 | shift |
michael@0 | 3371 | if test $# != 0; then |
michael@0 | 3372 | # We chose a different compiler from the bogus one. |
michael@0 | 3373 | # However, it has the same basename, so the bogon will be chosen |
michael@0 | 3374 | # first if we set CC to just the basename; use the full file name. |
michael@0 | 3375 | shift |
michael@0 | 3376 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
michael@0 | 3377 | fi |
michael@0 | 3378 | fi |
michael@0 | 3379 | fi |
michael@0 | 3380 | fi |
michael@0 | 3381 | CC=$ac_cv_prog_CC |
michael@0 | 3382 | if test -n "$CC"; then |
michael@0 | 3383 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 3384 | $as_echo "$CC" >&6; } |
michael@0 | 3385 | else |
michael@0 | 3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3387 | $as_echo "no" >&6; } |
michael@0 | 3388 | fi |
michael@0 | 3389 | |
michael@0 | 3390 | |
michael@0 | 3391 | fi |
michael@0 | 3392 | if test -z "$CC"; then |
michael@0 | 3393 | if test -n "$ac_tool_prefix"; then |
michael@0 | 3394 | for ac_prog in cl.exe |
michael@0 | 3395 | do |
michael@0 | 3396 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
michael@0 | 3397 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
michael@0 | 3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3399 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3400 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 3401 | $as_echo_n "(cached) " >&6 |
michael@0 | 3402 | else |
michael@0 | 3403 | if test -n "$CC"; then |
michael@0 | 3404 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 3405 | else |
michael@0 | 3406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3407 | for as_dir in $PATH |
michael@0 | 3408 | do |
michael@0 | 3409 | IFS=$as_save_IFS |
michael@0 | 3410 | test -z "$as_dir" && as_dir=. |
michael@0 | 3411 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3412 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 3413 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
michael@0 | 3414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3415 | break 2 |
michael@0 | 3416 | fi |
michael@0 | 3417 | done |
michael@0 | 3418 | done |
michael@0 | 3419 | IFS=$as_save_IFS |
michael@0 | 3420 | |
michael@0 | 3421 | fi |
michael@0 | 3422 | fi |
michael@0 | 3423 | CC=$ac_cv_prog_CC |
michael@0 | 3424 | if test -n "$CC"; then |
michael@0 | 3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 3426 | $as_echo "$CC" >&6; } |
michael@0 | 3427 | else |
michael@0 | 3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3429 | $as_echo "no" >&6; } |
michael@0 | 3430 | fi |
michael@0 | 3431 | |
michael@0 | 3432 | |
michael@0 | 3433 | test -n "$CC" && break |
michael@0 | 3434 | done |
michael@0 | 3435 | fi |
michael@0 | 3436 | if test -z "$CC"; then |
michael@0 | 3437 | ac_ct_CC=$CC |
michael@0 | 3438 | for ac_prog in cl.exe |
michael@0 | 3439 | do |
michael@0 | 3440 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 3441 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 3442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3443 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3444 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
michael@0 | 3445 | $as_echo_n "(cached) " >&6 |
michael@0 | 3446 | else |
michael@0 | 3447 | if test -n "$ac_ct_CC"; then |
michael@0 | 3448 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
michael@0 | 3449 | else |
michael@0 | 3450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3451 | for as_dir in $PATH |
michael@0 | 3452 | do |
michael@0 | 3453 | IFS=$as_save_IFS |
michael@0 | 3454 | test -z "$as_dir" && as_dir=. |
michael@0 | 3455 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3456 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 3457 | ac_cv_prog_ac_ct_CC="$ac_prog" |
michael@0 | 3458 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3459 | break 2 |
michael@0 | 3460 | fi |
michael@0 | 3461 | done |
michael@0 | 3462 | done |
michael@0 | 3463 | IFS=$as_save_IFS |
michael@0 | 3464 | |
michael@0 | 3465 | fi |
michael@0 | 3466 | fi |
michael@0 | 3467 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
michael@0 | 3468 | if test -n "$ac_ct_CC"; then |
michael@0 | 3469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
michael@0 | 3470 | $as_echo "$ac_ct_CC" >&6; } |
michael@0 | 3471 | else |
michael@0 | 3472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3473 | $as_echo "no" >&6; } |
michael@0 | 3474 | fi |
michael@0 | 3475 | |
michael@0 | 3476 | |
michael@0 | 3477 | test -n "$ac_ct_CC" && break |
michael@0 | 3478 | done |
michael@0 | 3479 | |
michael@0 | 3480 | if test "x$ac_ct_CC" = x; then |
michael@0 | 3481 | CC="" |
michael@0 | 3482 | else |
michael@0 | 3483 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 3484 | yes:) |
michael@0 | 3485 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 3486 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 3487 | ac_tool_warned=yes ;; |
michael@0 | 3488 | esac |
michael@0 | 3489 | CC=$ac_ct_CC |
michael@0 | 3490 | fi |
michael@0 | 3491 | fi |
michael@0 | 3492 | |
michael@0 | 3493 | fi |
michael@0 | 3494 | |
michael@0 | 3495 | |
michael@0 | 3496 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3497 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3498 | as_fn_error $? "no acceptable C compiler found in \$PATH |
michael@0 | 3499 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3500 | |
michael@0 | 3501 | # Provide some information about the compiler. |
michael@0 | 3502 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
michael@0 | 3503 | set X $ac_compile |
michael@0 | 3504 | ac_compiler=$2 |
michael@0 | 3505 | for ac_option in --version -v -V -qversion; do |
michael@0 | 3506 | { { ac_try="$ac_compiler $ac_option >&5" |
michael@0 | 3507 | case "(($ac_try" in |
michael@0 | 3508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3509 | *) ac_try_echo=$ac_try;; |
michael@0 | 3510 | esac |
michael@0 | 3511 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3512 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3513 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
michael@0 | 3514 | ac_status=$? |
michael@0 | 3515 | if test -s conftest.err; then |
michael@0 | 3516 | sed '10a\ |
michael@0 | 3517 | ... rest of stderr output deleted ... |
michael@0 | 3518 | 10q' conftest.err >conftest.er1 |
michael@0 | 3519 | cat conftest.er1 >&5 |
michael@0 | 3520 | fi |
michael@0 | 3521 | rm -f conftest.er1 conftest.err |
michael@0 | 3522 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3523 | test $ac_status = 0; } |
michael@0 | 3524 | done |
michael@0 | 3525 | |
michael@0 | 3526 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3527 | /* end confdefs.h. */ |
michael@0 | 3528 | |
michael@0 | 3529 | int |
michael@0 | 3530 | main () |
michael@0 | 3531 | { |
michael@0 | 3532 | |
michael@0 | 3533 | ; |
michael@0 | 3534 | return 0; |
michael@0 | 3535 | } |
michael@0 | 3536 | _ACEOF |
michael@0 | 3537 | ac_clean_files_save=$ac_clean_files |
michael@0 | 3538 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
michael@0 | 3539 | # Try to create an executable without -o first, disregard a.out. |
michael@0 | 3540 | # It will help us diagnose broken compilers, and finding out an intuition |
michael@0 | 3541 | # of exeext. |
michael@0 | 3542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
michael@0 | 3543 | $as_echo_n "checking whether the C compiler works... " >&6; } |
michael@0 | 3544 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
michael@0 | 3545 | |
michael@0 | 3546 | # The possible output files: |
michael@0 | 3547 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
michael@0 | 3548 | |
michael@0 | 3549 | ac_rmfiles= |
michael@0 | 3550 | for ac_file in $ac_files |
michael@0 | 3551 | do |
michael@0 | 3552 | case $ac_file in |
michael@0 | 3553 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
michael@0 | 3554 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
michael@0 | 3555 | esac |
michael@0 | 3556 | done |
michael@0 | 3557 | rm -f $ac_rmfiles |
michael@0 | 3558 | |
michael@0 | 3559 | if { { ac_try="$ac_link_default" |
michael@0 | 3560 | case "(($ac_try" in |
michael@0 | 3561 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3562 | *) ac_try_echo=$ac_try;; |
michael@0 | 3563 | esac |
michael@0 | 3564 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3565 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3566 | (eval "$ac_link_default") 2>&5 |
michael@0 | 3567 | ac_status=$? |
michael@0 | 3568 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3569 | test $ac_status = 0; }; then : |
michael@0 | 3570 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
michael@0 | 3571 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
michael@0 | 3572 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
michael@0 | 3573 | # so that the user can short-circuit this test for compilers unknown to |
michael@0 | 3574 | # Autoconf. |
michael@0 | 3575 | for ac_file in $ac_files '' |
michael@0 | 3576 | do |
michael@0 | 3577 | test -f "$ac_file" || continue |
michael@0 | 3578 | case $ac_file in |
michael@0 | 3579 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
michael@0 | 3580 | ;; |
michael@0 | 3581 | [ab].out ) |
michael@0 | 3582 | # We found the default executable, but exeext='' is most |
michael@0 | 3583 | # certainly right. |
michael@0 | 3584 | break;; |
michael@0 | 3585 | *.* ) |
michael@0 | 3586 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
michael@0 | 3587 | then :; else |
michael@0 | 3588 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
michael@0 | 3589 | fi |
michael@0 | 3590 | # We set ac_cv_exeext here because the later test for it is not |
michael@0 | 3591 | # safe: cross compilers may not add the suffix if given an `-o' |
michael@0 | 3592 | # argument, so we may need to know it at that point already. |
michael@0 | 3593 | # Even if this section looks crufty: it has the advantage of |
michael@0 | 3594 | # actually working. |
michael@0 | 3595 | break;; |
michael@0 | 3596 | * ) |
michael@0 | 3597 | break;; |
michael@0 | 3598 | esac |
michael@0 | 3599 | done |
michael@0 | 3600 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
michael@0 | 3601 | |
michael@0 | 3602 | else |
michael@0 | 3603 | ac_file='' |
michael@0 | 3604 | fi |
michael@0 | 3605 | if test -z "$ac_file"; then : |
michael@0 | 3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3607 | $as_echo "no" >&6; } |
michael@0 | 3608 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 3609 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 3610 | |
michael@0 | 3611 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3612 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3613 | as_fn_error 77 "C compiler cannot create executables |
michael@0 | 3614 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3615 | else |
michael@0 | 3616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 3617 | $as_echo "yes" >&6; } |
michael@0 | 3618 | fi |
michael@0 | 3619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
michael@0 | 3620 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
michael@0 | 3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
michael@0 | 3622 | $as_echo "$ac_file" >&6; } |
michael@0 | 3623 | ac_exeext=$ac_cv_exeext |
michael@0 | 3624 | |
michael@0 | 3625 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
michael@0 | 3626 | ac_clean_files=$ac_clean_files_save |
michael@0 | 3627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
michael@0 | 3628 | $as_echo_n "checking for suffix of executables... " >&6; } |
michael@0 | 3629 | if { { ac_try="$ac_link" |
michael@0 | 3630 | case "(($ac_try" in |
michael@0 | 3631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3632 | *) ac_try_echo=$ac_try;; |
michael@0 | 3633 | esac |
michael@0 | 3634 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3635 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3636 | (eval "$ac_link") 2>&5 |
michael@0 | 3637 | ac_status=$? |
michael@0 | 3638 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3639 | test $ac_status = 0; }; then : |
michael@0 | 3640 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
michael@0 | 3641 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
michael@0 | 3642 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
michael@0 | 3643 | # `rm'. |
michael@0 | 3644 | for ac_file in conftest.exe conftest conftest.*; do |
michael@0 | 3645 | test -f "$ac_file" || continue |
michael@0 | 3646 | case $ac_file in |
michael@0 | 3647 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
michael@0 | 3648 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
michael@0 | 3649 | break;; |
michael@0 | 3650 | * ) break;; |
michael@0 | 3651 | esac |
michael@0 | 3652 | done |
michael@0 | 3653 | else |
michael@0 | 3654 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3655 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3656 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
michael@0 | 3657 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3658 | fi |
michael@0 | 3659 | rm -f conftest conftest$ac_cv_exeext |
michael@0 | 3660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
michael@0 | 3661 | $as_echo "$ac_cv_exeext" >&6; } |
michael@0 | 3662 | |
michael@0 | 3663 | rm -f conftest.$ac_ext |
michael@0 | 3664 | EXEEXT=$ac_cv_exeext |
michael@0 | 3665 | ac_exeext=$EXEEXT |
michael@0 | 3666 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3667 | /* end confdefs.h. */ |
michael@0 | 3668 | #include <stdio.h> |
michael@0 | 3669 | int |
michael@0 | 3670 | main () |
michael@0 | 3671 | { |
michael@0 | 3672 | FILE *f = fopen ("conftest.out", "w"); |
michael@0 | 3673 | return ferror (f) || fclose (f) != 0; |
michael@0 | 3674 | |
michael@0 | 3675 | ; |
michael@0 | 3676 | return 0; |
michael@0 | 3677 | } |
michael@0 | 3678 | _ACEOF |
michael@0 | 3679 | ac_clean_files="$ac_clean_files conftest.out" |
michael@0 | 3680 | # Check that the compiler produces executables we can run. If not, either |
michael@0 | 3681 | # the compiler is broken, or we cross compile. |
michael@0 | 3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
michael@0 | 3683 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
michael@0 | 3684 | if test "$cross_compiling" != yes; then |
michael@0 | 3685 | { { ac_try="$ac_link" |
michael@0 | 3686 | case "(($ac_try" in |
michael@0 | 3687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3688 | *) ac_try_echo=$ac_try;; |
michael@0 | 3689 | esac |
michael@0 | 3690 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3691 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3692 | (eval "$ac_link") 2>&5 |
michael@0 | 3693 | ac_status=$? |
michael@0 | 3694 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3695 | test $ac_status = 0; } |
michael@0 | 3696 | if { ac_try='./conftest$ac_cv_exeext' |
michael@0 | 3697 | { { case "(($ac_try" in |
michael@0 | 3698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3699 | *) ac_try_echo=$ac_try;; |
michael@0 | 3700 | esac |
michael@0 | 3701 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3702 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3703 | (eval "$ac_try") 2>&5 |
michael@0 | 3704 | ac_status=$? |
michael@0 | 3705 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3706 | test $ac_status = 0; }; }; then |
michael@0 | 3707 | cross_compiling=no |
michael@0 | 3708 | else |
michael@0 | 3709 | if test "$cross_compiling" = maybe; then |
michael@0 | 3710 | cross_compiling=yes |
michael@0 | 3711 | else |
michael@0 | 3712 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3713 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3714 | as_fn_error $? "cannot run C compiled programs. |
michael@0 | 3715 | If you meant to cross compile, use \`--host'. |
michael@0 | 3716 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3717 | fi |
michael@0 | 3718 | fi |
michael@0 | 3719 | fi |
michael@0 | 3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
michael@0 | 3721 | $as_echo "$cross_compiling" >&6; } |
michael@0 | 3722 | |
michael@0 | 3723 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
michael@0 | 3724 | ac_clean_files=$ac_clean_files_save |
michael@0 | 3725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
michael@0 | 3726 | $as_echo_n "checking for suffix of object files... " >&6; } |
michael@0 | 3727 | if ${ac_cv_objext+:} false; then : |
michael@0 | 3728 | $as_echo_n "(cached) " >&6 |
michael@0 | 3729 | else |
michael@0 | 3730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3731 | /* end confdefs.h. */ |
michael@0 | 3732 | |
michael@0 | 3733 | int |
michael@0 | 3734 | main () |
michael@0 | 3735 | { |
michael@0 | 3736 | |
michael@0 | 3737 | ; |
michael@0 | 3738 | return 0; |
michael@0 | 3739 | } |
michael@0 | 3740 | _ACEOF |
michael@0 | 3741 | rm -f conftest.o conftest.obj |
michael@0 | 3742 | if { { ac_try="$ac_compile" |
michael@0 | 3743 | case "(($ac_try" in |
michael@0 | 3744 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3745 | *) ac_try_echo=$ac_try;; |
michael@0 | 3746 | esac |
michael@0 | 3747 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3748 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3749 | (eval "$ac_compile") 2>&5 |
michael@0 | 3750 | ac_status=$? |
michael@0 | 3751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3752 | test $ac_status = 0; }; then : |
michael@0 | 3753 | for ac_file in conftest.o conftest.obj conftest.*; do |
michael@0 | 3754 | test -f "$ac_file" || continue; |
michael@0 | 3755 | case $ac_file in |
michael@0 | 3756 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
michael@0 | 3757 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
michael@0 | 3758 | break;; |
michael@0 | 3759 | esac |
michael@0 | 3760 | done |
michael@0 | 3761 | else |
michael@0 | 3762 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 3763 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 3764 | |
michael@0 | 3765 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3766 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3767 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
michael@0 | 3768 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3769 | fi |
michael@0 | 3770 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
michael@0 | 3771 | fi |
michael@0 | 3772 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
michael@0 | 3773 | $as_echo "$ac_cv_objext" >&6; } |
michael@0 | 3774 | OBJEXT=$ac_cv_objext |
michael@0 | 3775 | ac_objext=$OBJEXT |
michael@0 | 3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
michael@0 | 3777 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
michael@0 | 3778 | if ${ac_cv_c_compiler_gnu+:} false; then : |
michael@0 | 3779 | $as_echo_n "(cached) " >&6 |
michael@0 | 3780 | else |
michael@0 | 3781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3782 | /* end confdefs.h. */ |
michael@0 | 3783 | |
michael@0 | 3784 | int |
michael@0 | 3785 | main () |
michael@0 | 3786 | { |
michael@0 | 3787 | #ifndef __GNUC__ |
michael@0 | 3788 | choke me |
michael@0 | 3789 | #endif |
michael@0 | 3790 | |
michael@0 | 3791 | ; |
michael@0 | 3792 | return 0; |
michael@0 | 3793 | } |
michael@0 | 3794 | _ACEOF |
michael@0 | 3795 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3796 | ac_compiler_gnu=yes |
michael@0 | 3797 | else |
michael@0 | 3798 | ac_compiler_gnu=no |
michael@0 | 3799 | fi |
michael@0 | 3800 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3801 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
michael@0 | 3802 | |
michael@0 | 3803 | fi |
michael@0 | 3804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
michael@0 | 3805 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
michael@0 | 3806 | if test $ac_compiler_gnu = yes; then |
michael@0 | 3807 | GCC=yes |
michael@0 | 3808 | else |
michael@0 | 3809 | GCC= |
michael@0 | 3810 | fi |
michael@0 | 3811 | ac_test_CFLAGS=${CFLAGS+set} |
michael@0 | 3812 | ac_save_CFLAGS=$CFLAGS |
michael@0 | 3813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
michael@0 | 3814 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
michael@0 | 3815 | if ${ac_cv_prog_cc_g+:} false; then : |
michael@0 | 3816 | $as_echo_n "(cached) " >&6 |
michael@0 | 3817 | else |
michael@0 | 3818 | ac_save_c_werror_flag=$ac_c_werror_flag |
michael@0 | 3819 | ac_c_werror_flag=yes |
michael@0 | 3820 | ac_cv_prog_cc_g=no |
michael@0 | 3821 | CFLAGS="-g" |
michael@0 | 3822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3823 | /* end confdefs.h. */ |
michael@0 | 3824 | |
michael@0 | 3825 | int |
michael@0 | 3826 | main () |
michael@0 | 3827 | { |
michael@0 | 3828 | |
michael@0 | 3829 | ; |
michael@0 | 3830 | return 0; |
michael@0 | 3831 | } |
michael@0 | 3832 | _ACEOF |
michael@0 | 3833 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3834 | ac_cv_prog_cc_g=yes |
michael@0 | 3835 | else |
michael@0 | 3836 | CFLAGS="" |
michael@0 | 3837 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3838 | /* end confdefs.h. */ |
michael@0 | 3839 | |
michael@0 | 3840 | int |
michael@0 | 3841 | main () |
michael@0 | 3842 | { |
michael@0 | 3843 | |
michael@0 | 3844 | ; |
michael@0 | 3845 | return 0; |
michael@0 | 3846 | } |
michael@0 | 3847 | _ACEOF |
michael@0 | 3848 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3849 | |
michael@0 | 3850 | else |
michael@0 | 3851 | ac_c_werror_flag=$ac_save_c_werror_flag |
michael@0 | 3852 | CFLAGS="-g" |
michael@0 | 3853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3854 | /* end confdefs.h. */ |
michael@0 | 3855 | |
michael@0 | 3856 | int |
michael@0 | 3857 | main () |
michael@0 | 3858 | { |
michael@0 | 3859 | |
michael@0 | 3860 | ; |
michael@0 | 3861 | return 0; |
michael@0 | 3862 | } |
michael@0 | 3863 | _ACEOF |
michael@0 | 3864 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3865 | ac_cv_prog_cc_g=yes |
michael@0 | 3866 | fi |
michael@0 | 3867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3868 | fi |
michael@0 | 3869 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3870 | fi |
michael@0 | 3871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3872 | ac_c_werror_flag=$ac_save_c_werror_flag |
michael@0 | 3873 | fi |
michael@0 | 3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
michael@0 | 3875 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
michael@0 | 3876 | if test "$ac_test_CFLAGS" = set; then |
michael@0 | 3877 | CFLAGS=$ac_save_CFLAGS |
michael@0 | 3878 | elif test $ac_cv_prog_cc_g = yes; then |
michael@0 | 3879 | if test "$GCC" = yes; then |
michael@0 | 3880 | CFLAGS="-g -O2" |
michael@0 | 3881 | else |
michael@0 | 3882 | CFLAGS="-g" |
michael@0 | 3883 | fi |
michael@0 | 3884 | else |
michael@0 | 3885 | if test "$GCC" = yes; then |
michael@0 | 3886 | CFLAGS="-O2" |
michael@0 | 3887 | else |
michael@0 | 3888 | CFLAGS= |
michael@0 | 3889 | fi |
michael@0 | 3890 | fi |
michael@0 | 3891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
michael@0 | 3892 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
michael@0 | 3893 | if ${ac_cv_prog_cc_c89+:} false; then : |
michael@0 | 3894 | $as_echo_n "(cached) " >&6 |
michael@0 | 3895 | else |
michael@0 | 3896 | ac_cv_prog_cc_c89=no |
michael@0 | 3897 | ac_save_CC=$CC |
michael@0 | 3898 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3899 | /* end confdefs.h. */ |
michael@0 | 3900 | #include <stdarg.h> |
michael@0 | 3901 | #include <stdio.h> |
michael@0 | 3902 | struct stat; |
michael@0 | 3903 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
michael@0 | 3904 | struct buf { int x; }; |
michael@0 | 3905 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
michael@0 | 3906 | static char *e (p, i) |
michael@0 | 3907 | char **p; |
michael@0 | 3908 | int i; |
michael@0 | 3909 | { |
michael@0 | 3910 | return p[i]; |
michael@0 | 3911 | } |
michael@0 | 3912 | static char *f (char * (*g) (char **, int), char **p, ...) |
michael@0 | 3913 | { |
michael@0 | 3914 | char *s; |
michael@0 | 3915 | va_list v; |
michael@0 | 3916 | va_start (v,p); |
michael@0 | 3917 | s = g (p, va_arg (v,int)); |
michael@0 | 3918 | va_end (v); |
michael@0 | 3919 | return s; |
michael@0 | 3920 | } |
michael@0 | 3921 | |
michael@0 | 3922 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
michael@0 | 3923 | function prototypes and stuff, but not '\xHH' hex character constants. |
michael@0 | 3924 | These don't provoke an error unfortunately, instead are silently treated |
michael@0 | 3925 | as 'x'. The following induces an error, until -std is added to get |
michael@0 | 3926 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
michael@0 | 3927 | array size at least. It's necessary to write '\x00'==0 to get something |
michael@0 | 3928 | that's true only with -std. */ |
michael@0 | 3929 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
michael@0 | 3930 | |
michael@0 | 3931 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
michael@0 | 3932 | inside strings and character constants. */ |
michael@0 | 3933 | #define FOO(x) 'x' |
michael@0 | 3934 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
michael@0 | 3935 | |
michael@0 | 3936 | int test (int i, double x); |
michael@0 | 3937 | struct s1 {int (*f) (int a);}; |
michael@0 | 3938 | struct s2 {int (*f) (double a);}; |
michael@0 | 3939 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
michael@0 | 3940 | int argc; |
michael@0 | 3941 | char **argv; |
michael@0 | 3942 | int |
michael@0 | 3943 | main () |
michael@0 | 3944 | { |
michael@0 | 3945 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
michael@0 | 3946 | ; |
michael@0 | 3947 | return 0; |
michael@0 | 3948 | } |
michael@0 | 3949 | _ACEOF |
michael@0 | 3950 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
michael@0 | 3951 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
michael@0 | 3952 | do |
michael@0 | 3953 | CC="$ac_save_CC $ac_arg" |
michael@0 | 3954 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3955 | ac_cv_prog_cc_c89=$ac_arg |
michael@0 | 3956 | fi |
michael@0 | 3957 | rm -f core conftest.err conftest.$ac_objext |
michael@0 | 3958 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
michael@0 | 3959 | done |
michael@0 | 3960 | rm -f conftest.$ac_ext |
michael@0 | 3961 | CC=$ac_save_CC |
michael@0 | 3962 | |
michael@0 | 3963 | fi |
michael@0 | 3964 | # AC_CACHE_VAL |
michael@0 | 3965 | case "x$ac_cv_prog_cc_c89" in |
michael@0 | 3966 | x) |
michael@0 | 3967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
michael@0 | 3968 | $as_echo "none needed" >&6; } ;; |
michael@0 | 3969 | xno) |
michael@0 | 3970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
michael@0 | 3971 | $as_echo "unsupported" >&6; } ;; |
michael@0 | 3972 | *) |
michael@0 | 3973 | CC="$CC $ac_cv_prog_cc_c89" |
michael@0 | 3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
michael@0 | 3975 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
michael@0 | 3976 | esac |
michael@0 | 3977 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
michael@0 | 3978 | |
michael@0 | 3979 | fi |
michael@0 | 3980 | |
michael@0 | 3981 | ac_ext=c |
michael@0 | 3982 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 3983 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3984 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3985 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 3986 | |
michael@0 | 3987 | |
michael@0 | 3988 | if test "$target" != "$host"; then |
michael@0 | 3989 | if test -n "$USE_CPLUS"; then |
michael@0 | 3990 | for ac_prog in $CXX "${target_alias}-g++" "${target}-g++" |
michael@0 | 3991 | do |
michael@0 | 3992 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 3993 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 3994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3995 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3996 | if ${ac_cv_prog_CXX+:} false; then : |
michael@0 | 3997 | $as_echo_n "(cached) " >&6 |
michael@0 | 3998 | else |
michael@0 | 3999 | if test -n "$CXX"; then |
michael@0 | 4000 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
michael@0 | 4001 | else |
michael@0 | 4002 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4003 | for as_dir in $PATH |
michael@0 | 4004 | do |
michael@0 | 4005 | IFS=$as_save_IFS |
michael@0 | 4006 | test -z "$as_dir" && as_dir=. |
michael@0 | 4007 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4008 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4009 | ac_cv_prog_CXX="$ac_prog" |
michael@0 | 4010 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4011 | break 2 |
michael@0 | 4012 | fi |
michael@0 | 4013 | done |
michael@0 | 4014 | done |
michael@0 | 4015 | IFS=$as_save_IFS |
michael@0 | 4016 | |
michael@0 | 4017 | fi |
michael@0 | 4018 | fi |
michael@0 | 4019 | CXX=$ac_cv_prog_CXX |
michael@0 | 4020 | if test -n "$CXX"; then |
michael@0 | 4021 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
michael@0 | 4022 | $as_echo "$CXX" >&6; } |
michael@0 | 4023 | else |
michael@0 | 4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4025 | $as_echo "no" >&6; } |
michael@0 | 4026 | fi |
michael@0 | 4027 | |
michael@0 | 4028 | |
michael@0 | 4029 | test -n "$CXX" && break |
michael@0 | 4030 | done |
michael@0 | 4031 | test -n "$CXX" || CXX="echo" |
michael@0 | 4032 | |
michael@0 | 4033 | unset ac_cv_prog_CXX |
michael@0 | 4034 | ac_ext=cpp |
michael@0 | 4035 | ac_cpp='$CXXCPP $CPPFLAGS' |
michael@0 | 4036 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 4037 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 4038 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
michael@0 | 4039 | if test -z "$CXX"; then |
michael@0 | 4040 | if test -n "$CCC"; then |
michael@0 | 4041 | CXX=$CCC |
michael@0 | 4042 | else |
michael@0 | 4043 | if test -n "$ac_tool_prefix"; then |
michael@0 | 4044 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
michael@0 | 4045 | do |
michael@0 | 4046 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
michael@0 | 4047 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
michael@0 | 4048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4049 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4050 | if ${ac_cv_prog_CXX+:} false; then : |
michael@0 | 4051 | $as_echo_n "(cached) " >&6 |
michael@0 | 4052 | else |
michael@0 | 4053 | if test -n "$CXX"; then |
michael@0 | 4054 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
michael@0 | 4055 | else |
michael@0 | 4056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4057 | for as_dir in $PATH |
michael@0 | 4058 | do |
michael@0 | 4059 | IFS=$as_save_IFS |
michael@0 | 4060 | test -z "$as_dir" && as_dir=. |
michael@0 | 4061 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4062 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4063 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
michael@0 | 4064 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4065 | break 2 |
michael@0 | 4066 | fi |
michael@0 | 4067 | done |
michael@0 | 4068 | done |
michael@0 | 4069 | IFS=$as_save_IFS |
michael@0 | 4070 | |
michael@0 | 4071 | fi |
michael@0 | 4072 | fi |
michael@0 | 4073 | CXX=$ac_cv_prog_CXX |
michael@0 | 4074 | if test -n "$CXX"; then |
michael@0 | 4075 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
michael@0 | 4076 | $as_echo "$CXX" >&6; } |
michael@0 | 4077 | else |
michael@0 | 4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4079 | $as_echo "no" >&6; } |
michael@0 | 4080 | fi |
michael@0 | 4081 | |
michael@0 | 4082 | |
michael@0 | 4083 | test -n "$CXX" && break |
michael@0 | 4084 | done |
michael@0 | 4085 | fi |
michael@0 | 4086 | if test -z "$CXX"; then |
michael@0 | 4087 | ac_ct_CXX=$CXX |
michael@0 | 4088 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
michael@0 | 4089 | do |
michael@0 | 4090 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 4091 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4093 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4094 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
michael@0 | 4095 | $as_echo_n "(cached) " >&6 |
michael@0 | 4096 | else |
michael@0 | 4097 | if test -n "$ac_ct_CXX"; then |
michael@0 | 4098 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
michael@0 | 4099 | else |
michael@0 | 4100 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4101 | for as_dir in $PATH |
michael@0 | 4102 | do |
michael@0 | 4103 | IFS=$as_save_IFS |
michael@0 | 4104 | test -z "$as_dir" && as_dir=. |
michael@0 | 4105 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4106 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4107 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
michael@0 | 4108 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4109 | break 2 |
michael@0 | 4110 | fi |
michael@0 | 4111 | done |
michael@0 | 4112 | done |
michael@0 | 4113 | IFS=$as_save_IFS |
michael@0 | 4114 | |
michael@0 | 4115 | fi |
michael@0 | 4116 | fi |
michael@0 | 4117 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
michael@0 | 4118 | if test -n "$ac_ct_CXX"; then |
michael@0 | 4119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
michael@0 | 4120 | $as_echo "$ac_ct_CXX" >&6; } |
michael@0 | 4121 | else |
michael@0 | 4122 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4123 | $as_echo "no" >&6; } |
michael@0 | 4124 | fi |
michael@0 | 4125 | |
michael@0 | 4126 | |
michael@0 | 4127 | test -n "$ac_ct_CXX" && break |
michael@0 | 4128 | done |
michael@0 | 4129 | |
michael@0 | 4130 | if test "x$ac_ct_CXX" = x; then |
michael@0 | 4131 | CXX="g++" |
michael@0 | 4132 | else |
michael@0 | 4133 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 4134 | yes:) |
michael@0 | 4135 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 4136 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 4137 | ac_tool_warned=yes ;; |
michael@0 | 4138 | esac |
michael@0 | 4139 | CXX=$ac_ct_CXX |
michael@0 | 4140 | fi |
michael@0 | 4141 | fi |
michael@0 | 4142 | |
michael@0 | 4143 | fi |
michael@0 | 4144 | fi |
michael@0 | 4145 | # Provide some information about the compiler. |
michael@0 | 4146 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
michael@0 | 4147 | set X $ac_compile |
michael@0 | 4148 | ac_compiler=$2 |
michael@0 | 4149 | for ac_option in --version -v -V -qversion; do |
michael@0 | 4150 | { { ac_try="$ac_compiler $ac_option >&5" |
michael@0 | 4151 | case "(($ac_try" in |
michael@0 | 4152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 4153 | *) ac_try_echo=$ac_try;; |
michael@0 | 4154 | esac |
michael@0 | 4155 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 4156 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 4157 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
michael@0 | 4158 | ac_status=$? |
michael@0 | 4159 | if test -s conftest.err; then |
michael@0 | 4160 | sed '10a\ |
michael@0 | 4161 | ... rest of stderr output deleted ... |
michael@0 | 4162 | 10q' conftest.err >conftest.er1 |
michael@0 | 4163 | cat conftest.er1 >&5 |
michael@0 | 4164 | fi |
michael@0 | 4165 | rm -f conftest.er1 conftest.err |
michael@0 | 4166 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 4167 | test $ac_status = 0; } |
michael@0 | 4168 | done |
michael@0 | 4169 | |
michael@0 | 4170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
michael@0 | 4171 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
michael@0 | 4172 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
michael@0 | 4173 | $as_echo_n "(cached) " >&6 |
michael@0 | 4174 | else |
michael@0 | 4175 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4176 | /* end confdefs.h. */ |
michael@0 | 4177 | |
michael@0 | 4178 | int |
michael@0 | 4179 | main () |
michael@0 | 4180 | { |
michael@0 | 4181 | #ifndef __GNUC__ |
michael@0 | 4182 | choke me |
michael@0 | 4183 | #endif |
michael@0 | 4184 | |
michael@0 | 4185 | ; |
michael@0 | 4186 | return 0; |
michael@0 | 4187 | } |
michael@0 | 4188 | _ACEOF |
michael@0 | 4189 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 4190 | ac_compiler_gnu=yes |
michael@0 | 4191 | else |
michael@0 | 4192 | ac_compiler_gnu=no |
michael@0 | 4193 | fi |
michael@0 | 4194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4195 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
michael@0 | 4196 | |
michael@0 | 4197 | fi |
michael@0 | 4198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
michael@0 | 4199 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
michael@0 | 4200 | if test $ac_compiler_gnu = yes; then |
michael@0 | 4201 | GXX=yes |
michael@0 | 4202 | else |
michael@0 | 4203 | GXX= |
michael@0 | 4204 | fi |
michael@0 | 4205 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
michael@0 | 4206 | ac_save_CXXFLAGS=$CXXFLAGS |
michael@0 | 4207 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
michael@0 | 4208 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
michael@0 | 4209 | if ${ac_cv_prog_cxx_g+:} false; then : |
michael@0 | 4210 | $as_echo_n "(cached) " >&6 |
michael@0 | 4211 | else |
michael@0 | 4212 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
michael@0 | 4213 | ac_cxx_werror_flag=yes |
michael@0 | 4214 | ac_cv_prog_cxx_g=no |
michael@0 | 4215 | CXXFLAGS="-g" |
michael@0 | 4216 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4217 | /* end confdefs.h. */ |
michael@0 | 4218 | |
michael@0 | 4219 | int |
michael@0 | 4220 | main () |
michael@0 | 4221 | { |
michael@0 | 4222 | |
michael@0 | 4223 | ; |
michael@0 | 4224 | return 0; |
michael@0 | 4225 | } |
michael@0 | 4226 | _ACEOF |
michael@0 | 4227 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 4228 | ac_cv_prog_cxx_g=yes |
michael@0 | 4229 | else |
michael@0 | 4230 | CXXFLAGS="" |
michael@0 | 4231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4232 | /* end confdefs.h. */ |
michael@0 | 4233 | |
michael@0 | 4234 | int |
michael@0 | 4235 | main () |
michael@0 | 4236 | { |
michael@0 | 4237 | |
michael@0 | 4238 | ; |
michael@0 | 4239 | return 0; |
michael@0 | 4240 | } |
michael@0 | 4241 | _ACEOF |
michael@0 | 4242 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 4243 | |
michael@0 | 4244 | else |
michael@0 | 4245 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
michael@0 | 4246 | CXXFLAGS="-g" |
michael@0 | 4247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4248 | /* end confdefs.h. */ |
michael@0 | 4249 | |
michael@0 | 4250 | int |
michael@0 | 4251 | main () |
michael@0 | 4252 | { |
michael@0 | 4253 | |
michael@0 | 4254 | ; |
michael@0 | 4255 | return 0; |
michael@0 | 4256 | } |
michael@0 | 4257 | _ACEOF |
michael@0 | 4258 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 4259 | ac_cv_prog_cxx_g=yes |
michael@0 | 4260 | fi |
michael@0 | 4261 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4262 | fi |
michael@0 | 4263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4264 | fi |
michael@0 | 4265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4266 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
michael@0 | 4267 | fi |
michael@0 | 4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
michael@0 | 4269 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
michael@0 | 4270 | if test "$ac_test_CXXFLAGS" = set; then |
michael@0 | 4271 | CXXFLAGS=$ac_save_CXXFLAGS |
michael@0 | 4272 | elif test $ac_cv_prog_cxx_g = yes; then |
michael@0 | 4273 | if test "$GXX" = yes; then |
michael@0 | 4274 | CXXFLAGS="-g -O2" |
michael@0 | 4275 | else |
michael@0 | 4276 | CXXFLAGS="-g" |
michael@0 | 4277 | fi |
michael@0 | 4278 | else |
michael@0 | 4279 | if test "$GXX" = yes; then |
michael@0 | 4280 | CXXFLAGS="-O2" |
michael@0 | 4281 | else |
michael@0 | 4282 | CXXFLAGS= |
michael@0 | 4283 | fi |
michael@0 | 4284 | fi |
michael@0 | 4285 | ac_ext=c |
michael@0 | 4286 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 4287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 4288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 4289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 4290 | |
michael@0 | 4291 | fi |
michael@0 | 4292 | |
michael@0 | 4293 | case "$build:$target" in |
michael@0 | 4294 | powerpc-apple-darwin8*:i?86-apple-darwin*|*:arm*-apple-darwin*) |
michael@0 | 4295 | CFLAGS=$_SAVE_CFLAGS |
michael@0 | 4296 | CXXFLAGS=$_SAVE_CXXFLAGS |
michael@0 | 4297 | ;; |
michael@0 | 4298 | esac |
michael@0 | 4299 | |
michael@0 | 4300 | for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib" |
michael@0 | 4301 | do |
michael@0 | 4302 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 4303 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 4304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4305 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4306 | if ${ac_cv_prog_RANLIB+:} false; then : |
michael@0 | 4307 | $as_echo_n "(cached) " >&6 |
michael@0 | 4308 | else |
michael@0 | 4309 | if test -n "$RANLIB"; then |
michael@0 | 4310 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
michael@0 | 4311 | else |
michael@0 | 4312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4313 | for as_dir in $PATH |
michael@0 | 4314 | do |
michael@0 | 4315 | IFS=$as_save_IFS |
michael@0 | 4316 | test -z "$as_dir" && as_dir=. |
michael@0 | 4317 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4318 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4319 | ac_cv_prog_RANLIB="$ac_prog" |
michael@0 | 4320 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4321 | break 2 |
michael@0 | 4322 | fi |
michael@0 | 4323 | done |
michael@0 | 4324 | done |
michael@0 | 4325 | IFS=$as_save_IFS |
michael@0 | 4326 | |
michael@0 | 4327 | fi |
michael@0 | 4328 | fi |
michael@0 | 4329 | RANLIB=$ac_cv_prog_RANLIB |
michael@0 | 4330 | if test -n "$RANLIB"; then |
michael@0 | 4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
michael@0 | 4332 | $as_echo "$RANLIB" >&6; } |
michael@0 | 4333 | else |
michael@0 | 4334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4335 | $as_echo "no" >&6; } |
michael@0 | 4336 | fi |
michael@0 | 4337 | |
michael@0 | 4338 | |
michael@0 | 4339 | test -n "$RANLIB" && break |
michael@0 | 4340 | done |
michael@0 | 4341 | test -n "$RANLIB" || RANLIB="echo" |
michael@0 | 4342 | |
michael@0 | 4343 | for ac_prog in $AR "${target_alias}-ar" "${target}-ar" |
michael@0 | 4344 | do |
michael@0 | 4345 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 4346 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 4347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4348 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4349 | if ${ac_cv_prog_AR+:} false; then : |
michael@0 | 4350 | $as_echo_n "(cached) " >&6 |
michael@0 | 4351 | else |
michael@0 | 4352 | if test -n "$AR"; then |
michael@0 | 4353 | ac_cv_prog_AR="$AR" # Let the user override the test. |
michael@0 | 4354 | else |
michael@0 | 4355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4356 | for as_dir in $PATH |
michael@0 | 4357 | do |
michael@0 | 4358 | IFS=$as_save_IFS |
michael@0 | 4359 | test -z "$as_dir" && as_dir=. |
michael@0 | 4360 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4361 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4362 | ac_cv_prog_AR="$ac_prog" |
michael@0 | 4363 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4364 | break 2 |
michael@0 | 4365 | fi |
michael@0 | 4366 | done |
michael@0 | 4367 | done |
michael@0 | 4368 | IFS=$as_save_IFS |
michael@0 | 4369 | |
michael@0 | 4370 | fi |
michael@0 | 4371 | fi |
michael@0 | 4372 | AR=$ac_cv_prog_AR |
michael@0 | 4373 | if test -n "$AR"; then |
michael@0 | 4374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
michael@0 | 4375 | $as_echo "$AR" >&6; } |
michael@0 | 4376 | else |
michael@0 | 4377 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4378 | $as_echo "no" >&6; } |
michael@0 | 4379 | fi |
michael@0 | 4380 | |
michael@0 | 4381 | |
michael@0 | 4382 | test -n "$AR" && break |
michael@0 | 4383 | done |
michael@0 | 4384 | test -n "$AR" || AR="echo" |
michael@0 | 4385 | |
michael@0 | 4386 | for ac_prog in $AS "${target_alias}-as" "${target}-as" |
michael@0 | 4387 | do |
michael@0 | 4388 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 4389 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4391 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4392 | if ${ac_cv_prog_AS+:} false; then : |
michael@0 | 4393 | $as_echo_n "(cached) " >&6 |
michael@0 | 4394 | else |
michael@0 | 4395 | if test -n "$AS"; then |
michael@0 | 4396 | ac_cv_prog_AS="$AS" # Let the user override the test. |
michael@0 | 4397 | else |
michael@0 | 4398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4399 | for as_dir in $PATH |
michael@0 | 4400 | do |
michael@0 | 4401 | IFS=$as_save_IFS |
michael@0 | 4402 | test -z "$as_dir" && as_dir=. |
michael@0 | 4403 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4404 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4405 | ac_cv_prog_AS="$ac_prog" |
michael@0 | 4406 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4407 | break 2 |
michael@0 | 4408 | fi |
michael@0 | 4409 | done |
michael@0 | 4410 | done |
michael@0 | 4411 | IFS=$as_save_IFS |
michael@0 | 4412 | |
michael@0 | 4413 | fi |
michael@0 | 4414 | fi |
michael@0 | 4415 | AS=$ac_cv_prog_AS |
michael@0 | 4416 | if test -n "$AS"; then |
michael@0 | 4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
michael@0 | 4418 | $as_echo "$AS" >&6; } |
michael@0 | 4419 | else |
michael@0 | 4420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4421 | $as_echo "no" >&6; } |
michael@0 | 4422 | fi |
michael@0 | 4423 | |
michael@0 | 4424 | |
michael@0 | 4425 | test -n "$AS" && break |
michael@0 | 4426 | done |
michael@0 | 4427 | test -n "$AS" || AS="echo" |
michael@0 | 4428 | |
michael@0 | 4429 | for ac_prog in $LD "${target_alias}-ld" "${target}-ld" |
michael@0 | 4430 | do |
michael@0 | 4431 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 4432 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 4433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4434 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4435 | if ${ac_cv_prog_LD+:} false; then : |
michael@0 | 4436 | $as_echo_n "(cached) " >&6 |
michael@0 | 4437 | else |
michael@0 | 4438 | if test -n "$LD"; then |
michael@0 | 4439 | ac_cv_prog_LD="$LD" # Let the user override the test. |
michael@0 | 4440 | else |
michael@0 | 4441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4442 | for as_dir in $PATH |
michael@0 | 4443 | do |
michael@0 | 4444 | IFS=$as_save_IFS |
michael@0 | 4445 | test -z "$as_dir" && as_dir=. |
michael@0 | 4446 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4447 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4448 | ac_cv_prog_LD="$ac_prog" |
michael@0 | 4449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4450 | break 2 |
michael@0 | 4451 | fi |
michael@0 | 4452 | done |
michael@0 | 4453 | done |
michael@0 | 4454 | IFS=$as_save_IFS |
michael@0 | 4455 | |
michael@0 | 4456 | fi |
michael@0 | 4457 | fi |
michael@0 | 4458 | LD=$ac_cv_prog_LD |
michael@0 | 4459 | if test -n "$LD"; then |
michael@0 | 4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
michael@0 | 4461 | $as_echo "$LD" >&6; } |
michael@0 | 4462 | else |
michael@0 | 4463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4464 | $as_echo "no" >&6; } |
michael@0 | 4465 | fi |
michael@0 | 4466 | |
michael@0 | 4467 | |
michael@0 | 4468 | test -n "$LD" && break |
michael@0 | 4469 | done |
michael@0 | 4470 | test -n "$LD" || LD="echo" |
michael@0 | 4471 | |
michael@0 | 4472 | for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip" |
michael@0 | 4473 | do |
michael@0 | 4474 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 4475 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 4476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4477 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4478 | if ${ac_cv_prog_STRIP+:} false; then : |
michael@0 | 4479 | $as_echo_n "(cached) " >&6 |
michael@0 | 4480 | else |
michael@0 | 4481 | if test -n "$STRIP"; then |
michael@0 | 4482 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
michael@0 | 4483 | else |
michael@0 | 4484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4485 | for as_dir in $PATH |
michael@0 | 4486 | do |
michael@0 | 4487 | IFS=$as_save_IFS |
michael@0 | 4488 | test -z "$as_dir" && as_dir=. |
michael@0 | 4489 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4490 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4491 | ac_cv_prog_STRIP="$ac_prog" |
michael@0 | 4492 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4493 | break 2 |
michael@0 | 4494 | fi |
michael@0 | 4495 | done |
michael@0 | 4496 | done |
michael@0 | 4497 | IFS=$as_save_IFS |
michael@0 | 4498 | |
michael@0 | 4499 | fi |
michael@0 | 4500 | fi |
michael@0 | 4501 | STRIP=$ac_cv_prog_STRIP |
michael@0 | 4502 | if test -n "$STRIP"; then |
michael@0 | 4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
michael@0 | 4504 | $as_echo "$STRIP" >&6; } |
michael@0 | 4505 | else |
michael@0 | 4506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4507 | $as_echo "no" >&6; } |
michael@0 | 4508 | fi |
michael@0 | 4509 | |
michael@0 | 4510 | |
michael@0 | 4511 | test -n "$STRIP" && break |
michael@0 | 4512 | done |
michael@0 | 4513 | test -n "$STRIP" || STRIP="echo" |
michael@0 | 4514 | |
michael@0 | 4515 | for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres" |
michael@0 | 4516 | do |
michael@0 | 4517 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 4518 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 4519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4520 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4521 | if ${ac_cv_prog_WINDRES+:} false; then : |
michael@0 | 4522 | $as_echo_n "(cached) " >&6 |
michael@0 | 4523 | else |
michael@0 | 4524 | if test -n "$WINDRES"; then |
michael@0 | 4525 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
michael@0 | 4526 | else |
michael@0 | 4527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4528 | for as_dir in $PATH |
michael@0 | 4529 | do |
michael@0 | 4530 | IFS=$as_save_IFS |
michael@0 | 4531 | test -z "$as_dir" && as_dir=. |
michael@0 | 4532 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4534 | ac_cv_prog_WINDRES="$ac_prog" |
michael@0 | 4535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4536 | break 2 |
michael@0 | 4537 | fi |
michael@0 | 4538 | done |
michael@0 | 4539 | done |
michael@0 | 4540 | IFS=$as_save_IFS |
michael@0 | 4541 | |
michael@0 | 4542 | fi |
michael@0 | 4543 | fi |
michael@0 | 4544 | WINDRES=$ac_cv_prog_WINDRES |
michael@0 | 4545 | if test -n "$WINDRES"; then |
michael@0 | 4546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
michael@0 | 4547 | $as_echo "$WINDRES" >&6; } |
michael@0 | 4548 | else |
michael@0 | 4549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4550 | $as_echo "no" >&6; } |
michael@0 | 4551 | fi |
michael@0 | 4552 | |
michael@0 | 4553 | |
michael@0 | 4554 | test -n "$WINDRES" && break |
michael@0 | 4555 | done |
michael@0 | 4556 | test -n "$WINDRES" || WINDRES="echo" |
michael@0 | 4557 | |
michael@0 | 4558 | |
michael@0 | 4559 | _SAVE_CC="$CC" |
michael@0 | 4560 | _SAVE_CFLAGS="$CFLAGS" |
michael@0 | 4561 | _SAVE_LDFLAGS="$LDFLAGS" |
michael@0 | 4562 | |
michael@0 | 4563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $host compiler" >&5 |
michael@0 | 4564 | $as_echo_n "checking for $host compiler... " >&6; } |
michael@0 | 4565 | for ac_prog in $HOST_CC gcc cc /usr/ucb/cc |
michael@0 | 4566 | do |
michael@0 | 4567 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 4568 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4570 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4571 | if ${ac_cv_prog_HOST_CC+:} false; then : |
michael@0 | 4572 | $as_echo_n "(cached) " >&6 |
michael@0 | 4573 | else |
michael@0 | 4574 | if test -n "$HOST_CC"; then |
michael@0 | 4575 | ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test. |
michael@0 | 4576 | else |
michael@0 | 4577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4578 | for as_dir in $PATH |
michael@0 | 4579 | do |
michael@0 | 4580 | IFS=$as_save_IFS |
michael@0 | 4581 | test -z "$as_dir" && as_dir=. |
michael@0 | 4582 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4583 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4584 | ac_cv_prog_HOST_CC="$ac_prog" |
michael@0 | 4585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4586 | break 2 |
michael@0 | 4587 | fi |
michael@0 | 4588 | done |
michael@0 | 4589 | done |
michael@0 | 4590 | IFS=$as_save_IFS |
michael@0 | 4591 | |
michael@0 | 4592 | fi |
michael@0 | 4593 | fi |
michael@0 | 4594 | HOST_CC=$ac_cv_prog_HOST_CC |
michael@0 | 4595 | if test -n "$HOST_CC"; then |
michael@0 | 4596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5 |
michael@0 | 4597 | $as_echo "$HOST_CC" >&6; } |
michael@0 | 4598 | else |
michael@0 | 4599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4600 | $as_echo "no" >&6; } |
michael@0 | 4601 | fi |
michael@0 | 4602 | |
michael@0 | 4603 | |
michael@0 | 4604 | test -n "$HOST_CC" && break |
michael@0 | 4605 | done |
michael@0 | 4606 | test -n "$HOST_CC" || HOST_CC="""" |
michael@0 | 4607 | |
michael@0 | 4608 | if test -z "$HOST_CC"; then |
michael@0 | 4609 | as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5 |
michael@0 | 4610 | fi |
michael@0 | 4611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOST_CC" >&5 |
michael@0 | 4612 | $as_echo "$HOST_CC" >&6; } |
michael@0 | 4613 | if test -z "$HOST_CFLAGS"; then |
michael@0 | 4614 | HOST_CFLAGS="$CFLAGS" |
michael@0 | 4615 | fi |
michael@0 | 4616 | if test -z "$HOST_LDFLAGS"; then |
michael@0 | 4617 | HOST_LDFLAGS="$LDFLAGS" |
michael@0 | 4618 | fi |
michael@0 | 4619 | |
michael@0 | 4620 | CC="$HOST_CC" |
michael@0 | 4621 | CFLAGS="$HOST_CFLAGS" |
michael@0 | 4622 | LDFLAGS="$HOST_LDFLAGS" |
michael@0 | 4623 | |
michael@0 | 4624 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works" >&5 |
michael@0 | 4625 | $as_echo_n "checking whether the $host compiler ($HOST_CC $HOST_CFLAGS $HOST_LDFLAGS) works... " >&6; } |
michael@0 | 4626 | |
michael@0 | 4627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4628 | /* end confdefs.h. */ |
michael@0 | 4629 | |
michael@0 | 4630 | int |
michael@0 | 4631 | main () |
michael@0 | 4632 | { |
michael@0 | 4633 | return 0; |
michael@0 | 4634 | ; |
michael@0 | 4635 | return 0; |
michael@0 | 4636 | } |
michael@0 | 4637 | _ACEOF |
michael@0 | 4638 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 4640 | $as_echo "yes" >&6; } |
michael@0 | 4641 | else |
michael@0 | 4642 | as_fn_error $? "installation or configuration problem: $host compiler $HOST_CC cannot create executables." "$LINENO" 5 |
michael@0 | 4643 | fi |
michael@0 | 4644 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4645 | |
michael@0 | 4646 | CC=$_SAVE_CC |
michael@0 | 4647 | CFLAGS=$_SAVE_CFLAGS |
michael@0 | 4648 | LDFLAGS=$_SAVE_LDFLAGS |
michael@0 | 4649 | else |
michael@0 | 4650 | if test -n "$USE_CPLUS"; then |
michael@0 | 4651 | if test "$CC" = "cl" -a -z "$CXX"; then |
michael@0 | 4652 | CXX=$CC |
michael@0 | 4653 | else |
michael@0 | 4654 | ac_ext=cpp |
michael@0 | 4655 | ac_cpp='$CXXCPP $CPPFLAGS' |
michael@0 | 4656 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 4657 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 4658 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
michael@0 | 4659 | if test -z "$CXX"; then |
michael@0 | 4660 | if test -n "$CCC"; then |
michael@0 | 4661 | CXX=$CCC |
michael@0 | 4662 | else |
michael@0 | 4663 | if test -n "$ac_tool_prefix"; then |
michael@0 | 4664 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
michael@0 | 4665 | do |
michael@0 | 4666 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
michael@0 | 4667 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
michael@0 | 4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4669 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4670 | if ${ac_cv_prog_CXX+:} false; then : |
michael@0 | 4671 | $as_echo_n "(cached) " >&6 |
michael@0 | 4672 | else |
michael@0 | 4673 | if test -n "$CXX"; then |
michael@0 | 4674 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
michael@0 | 4675 | else |
michael@0 | 4676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4677 | for as_dir in $PATH |
michael@0 | 4678 | do |
michael@0 | 4679 | IFS=$as_save_IFS |
michael@0 | 4680 | test -z "$as_dir" && as_dir=. |
michael@0 | 4681 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4682 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4683 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
michael@0 | 4684 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4685 | break 2 |
michael@0 | 4686 | fi |
michael@0 | 4687 | done |
michael@0 | 4688 | done |
michael@0 | 4689 | IFS=$as_save_IFS |
michael@0 | 4690 | |
michael@0 | 4691 | fi |
michael@0 | 4692 | fi |
michael@0 | 4693 | CXX=$ac_cv_prog_CXX |
michael@0 | 4694 | if test -n "$CXX"; then |
michael@0 | 4695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
michael@0 | 4696 | $as_echo "$CXX" >&6; } |
michael@0 | 4697 | else |
michael@0 | 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4699 | $as_echo "no" >&6; } |
michael@0 | 4700 | fi |
michael@0 | 4701 | |
michael@0 | 4702 | |
michael@0 | 4703 | test -n "$CXX" && break |
michael@0 | 4704 | done |
michael@0 | 4705 | fi |
michael@0 | 4706 | if test -z "$CXX"; then |
michael@0 | 4707 | ac_ct_CXX=$CXX |
michael@0 | 4708 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
michael@0 | 4709 | do |
michael@0 | 4710 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 4711 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 4712 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4713 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4714 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
michael@0 | 4715 | $as_echo_n "(cached) " >&6 |
michael@0 | 4716 | else |
michael@0 | 4717 | if test -n "$ac_ct_CXX"; then |
michael@0 | 4718 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
michael@0 | 4719 | else |
michael@0 | 4720 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4721 | for as_dir in $PATH |
michael@0 | 4722 | do |
michael@0 | 4723 | IFS=$as_save_IFS |
michael@0 | 4724 | test -z "$as_dir" && as_dir=. |
michael@0 | 4725 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4726 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4727 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
michael@0 | 4728 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4729 | break 2 |
michael@0 | 4730 | fi |
michael@0 | 4731 | done |
michael@0 | 4732 | done |
michael@0 | 4733 | IFS=$as_save_IFS |
michael@0 | 4734 | |
michael@0 | 4735 | fi |
michael@0 | 4736 | fi |
michael@0 | 4737 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
michael@0 | 4738 | if test -n "$ac_ct_CXX"; then |
michael@0 | 4739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
michael@0 | 4740 | $as_echo "$ac_ct_CXX" >&6; } |
michael@0 | 4741 | else |
michael@0 | 4742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4743 | $as_echo "no" >&6; } |
michael@0 | 4744 | fi |
michael@0 | 4745 | |
michael@0 | 4746 | |
michael@0 | 4747 | test -n "$ac_ct_CXX" && break |
michael@0 | 4748 | done |
michael@0 | 4749 | |
michael@0 | 4750 | if test "x$ac_ct_CXX" = x; then |
michael@0 | 4751 | CXX="g++" |
michael@0 | 4752 | else |
michael@0 | 4753 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 4754 | yes:) |
michael@0 | 4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 4756 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 4757 | ac_tool_warned=yes ;; |
michael@0 | 4758 | esac |
michael@0 | 4759 | CXX=$ac_ct_CXX |
michael@0 | 4760 | fi |
michael@0 | 4761 | fi |
michael@0 | 4762 | |
michael@0 | 4763 | fi |
michael@0 | 4764 | fi |
michael@0 | 4765 | # Provide some information about the compiler. |
michael@0 | 4766 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
michael@0 | 4767 | set X $ac_compile |
michael@0 | 4768 | ac_compiler=$2 |
michael@0 | 4769 | for ac_option in --version -v -V -qversion; do |
michael@0 | 4770 | { { ac_try="$ac_compiler $ac_option >&5" |
michael@0 | 4771 | case "(($ac_try" in |
michael@0 | 4772 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 4773 | *) ac_try_echo=$ac_try;; |
michael@0 | 4774 | esac |
michael@0 | 4775 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 4776 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 4777 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
michael@0 | 4778 | ac_status=$? |
michael@0 | 4779 | if test -s conftest.err; then |
michael@0 | 4780 | sed '10a\ |
michael@0 | 4781 | ... rest of stderr output deleted ... |
michael@0 | 4782 | 10q' conftest.err >conftest.er1 |
michael@0 | 4783 | cat conftest.er1 >&5 |
michael@0 | 4784 | fi |
michael@0 | 4785 | rm -f conftest.er1 conftest.err |
michael@0 | 4786 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 4787 | test $ac_status = 0; } |
michael@0 | 4788 | done |
michael@0 | 4789 | |
michael@0 | 4790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
michael@0 | 4791 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
michael@0 | 4792 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
michael@0 | 4793 | $as_echo_n "(cached) " >&6 |
michael@0 | 4794 | else |
michael@0 | 4795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4796 | /* end confdefs.h. */ |
michael@0 | 4797 | |
michael@0 | 4798 | int |
michael@0 | 4799 | main () |
michael@0 | 4800 | { |
michael@0 | 4801 | #ifndef __GNUC__ |
michael@0 | 4802 | choke me |
michael@0 | 4803 | #endif |
michael@0 | 4804 | |
michael@0 | 4805 | ; |
michael@0 | 4806 | return 0; |
michael@0 | 4807 | } |
michael@0 | 4808 | _ACEOF |
michael@0 | 4809 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 4810 | ac_compiler_gnu=yes |
michael@0 | 4811 | else |
michael@0 | 4812 | ac_compiler_gnu=no |
michael@0 | 4813 | fi |
michael@0 | 4814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4815 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
michael@0 | 4816 | |
michael@0 | 4817 | fi |
michael@0 | 4818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
michael@0 | 4819 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
michael@0 | 4820 | if test $ac_compiler_gnu = yes; then |
michael@0 | 4821 | GXX=yes |
michael@0 | 4822 | else |
michael@0 | 4823 | GXX= |
michael@0 | 4824 | fi |
michael@0 | 4825 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
michael@0 | 4826 | ac_save_CXXFLAGS=$CXXFLAGS |
michael@0 | 4827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
michael@0 | 4828 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
michael@0 | 4829 | if ${ac_cv_prog_cxx_g+:} false; then : |
michael@0 | 4830 | $as_echo_n "(cached) " >&6 |
michael@0 | 4831 | else |
michael@0 | 4832 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
michael@0 | 4833 | ac_cxx_werror_flag=yes |
michael@0 | 4834 | ac_cv_prog_cxx_g=no |
michael@0 | 4835 | CXXFLAGS="-g" |
michael@0 | 4836 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4837 | /* end confdefs.h. */ |
michael@0 | 4838 | |
michael@0 | 4839 | int |
michael@0 | 4840 | main () |
michael@0 | 4841 | { |
michael@0 | 4842 | |
michael@0 | 4843 | ; |
michael@0 | 4844 | return 0; |
michael@0 | 4845 | } |
michael@0 | 4846 | _ACEOF |
michael@0 | 4847 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 4848 | ac_cv_prog_cxx_g=yes |
michael@0 | 4849 | else |
michael@0 | 4850 | CXXFLAGS="" |
michael@0 | 4851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4852 | /* end confdefs.h. */ |
michael@0 | 4853 | |
michael@0 | 4854 | int |
michael@0 | 4855 | main () |
michael@0 | 4856 | { |
michael@0 | 4857 | |
michael@0 | 4858 | ; |
michael@0 | 4859 | return 0; |
michael@0 | 4860 | } |
michael@0 | 4861 | _ACEOF |
michael@0 | 4862 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 4863 | |
michael@0 | 4864 | else |
michael@0 | 4865 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
michael@0 | 4866 | CXXFLAGS="-g" |
michael@0 | 4867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4868 | /* end confdefs.h. */ |
michael@0 | 4869 | |
michael@0 | 4870 | int |
michael@0 | 4871 | main () |
michael@0 | 4872 | { |
michael@0 | 4873 | |
michael@0 | 4874 | ; |
michael@0 | 4875 | return 0; |
michael@0 | 4876 | } |
michael@0 | 4877 | _ACEOF |
michael@0 | 4878 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 4879 | ac_cv_prog_cxx_g=yes |
michael@0 | 4880 | fi |
michael@0 | 4881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4882 | fi |
michael@0 | 4883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4884 | fi |
michael@0 | 4885 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4886 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
michael@0 | 4887 | fi |
michael@0 | 4888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
michael@0 | 4889 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
michael@0 | 4890 | if test "$ac_test_CXXFLAGS" = set; then |
michael@0 | 4891 | CXXFLAGS=$ac_save_CXXFLAGS |
michael@0 | 4892 | elif test $ac_cv_prog_cxx_g = yes; then |
michael@0 | 4893 | if test "$GXX" = yes; then |
michael@0 | 4894 | CXXFLAGS="-g -O2" |
michael@0 | 4895 | else |
michael@0 | 4896 | CXXFLAGS="-g" |
michael@0 | 4897 | fi |
michael@0 | 4898 | else |
michael@0 | 4899 | if test "$GXX" = yes; then |
michael@0 | 4900 | CXXFLAGS="-O2" |
michael@0 | 4901 | else |
michael@0 | 4902 | CXXFLAGS= |
michael@0 | 4903 | fi |
michael@0 | 4904 | fi |
michael@0 | 4905 | ac_ext=c |
michael@0 | 4906 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 4907 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 4908 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 4909 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 4910 | |
michael@0 | 4911 | fi |
michael@0 | 4912 | fi |
michael@0 | 4913 | if test -n "$ac_tool_prefix"; then |
michael@0 | 4914 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
michael@0 | 4915 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
michael@0 | 4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4917 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4918 | if ${ac_cv_prog_RANLIB+:} false; then : |
michael@0 | 4919 | $as_echo_n "(cached) " >&6 |
michael@0 | 4920 | else |
michael@0 | 4921 | if test -n "$RANLIB"; then |
michael@0 | 4922 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
michael@0 | 4923 | else |
michael@0 | 4924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4925 | for as_dir in $PATH |
michael@0 | 4926 | do |
michael@0 | 4927 | IFS=$as_save_IFS |
michael@0 | 4928 | test -z "$as_dir" && as_dir=. |
michael@0 | 4929 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4930 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4931 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
michael@0 | 4932 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4933 | break 2 |
michael@0 | 4934 | fi |
michael@0 | 4935 | done |
michael@0 | 4936 | done |
michael@0 | 4937 | IFS=$as_save_IFS |
michael@0 | 4938 | |
michael@0 | 4939 | fi |
michael@0 | 4940 | fi |
michael@0 | 4941 | RANLIB=$ac_cv_prog_RANLIB |
michael@0 | 4942 | if test -n "$RANLIB"; then |
michael@0 | 4943 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
michael@0 | 4944 | $as_echo "$RANLIB" >&6; } |
michael@0 | 4945 | else |
michael@0 | 4946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4947 | $as_echo "no" >&6; } |
michael@0 | 4948 | fi |
michael@0 | 4949 | |
michael@0 | 4950 | |
michael@0 | 4951 | fi |
michael@0 | 4952 | if test -z "$ac_cv_prog_RANLIB"; then |
michael@0 | 4953 | ac_ct_RANLIB=$RANLIB |
michael@0 | 4954 | # Extract the first word of "ranlib", so it can be a program name with args. |
michael@0 | 4955 | set dummy ranlib; ac_word=$2 |
michael@0 | 4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 4957 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 4958 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
michael@0 | 4959 | $as_echo_n "(cached) " >&6 |
michael@0 | 4960 | else |
michael@0 | 4961 | if test -n "$ac_ct_RANLIB"; then |
michael@0 | 4962 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
michael@0 | 4963 | else |
michael@0 | 4964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4965 | for as_dir in $PATH |
michael@0 | 4966 | do |
michael@0 | 4967 | IFS=$as_save_IFS |
michael@0 | 4968 | test -z "$as_dir" && as_dir=. |
michael@0 | 4969 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4970 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 4971 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
michael@0 | 4972 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4973 | break 2 |
michael@0 | 4974 | fi |
michael@0 | 4975 | done |
michael@0 | 4976 | done |
michael@0 | 4977 | IFS=$as_save_IFS |
michael@0 | 4978 | |
michael@0 | 4979 | fi |
michael@0 | 4980 | fi |
michael@0 | 4981 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
michael@0 | 4982 | if test -n "$ac_ct_RANLIB"; then |
michael@0 | 4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
michael@0 | 4984 | $as_echo "$ac_ct_RANLIB" >&6; } |
michael@0 | 4985 | else |
michael@0 | 4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4987 | $as_echo "no" >&6; } |
michael@0 | 4988 | fi |
michael@0 | 4989 | |
michael@0 | 4990 | if test "x$ac_ct_RANLIB" = x; then |
michael@0 | 4991 | RANLIB=":" |
michael@0 | 4992 | else |
michael@0 | 4993 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 4994 | yes:) |
michael@0 | 4995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 4996 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 4997 | ac_tool_warned=yes ;; |
michael@0 | 4998 | esac |
michael@0 | 4999 | RANLIB=$ac_ct_RANLIB |
michael@0 | 5000 | fi |
michael@0 | 5001 | else |
michael@0 | 5002 | RANLIB="$ac_cv_prog_RANLIB" |
michael@0 | 5003 | fi |
michael@0 | 5004 | |
michael@0 | 5005 | for ac_prog in as |
michael@0 | 5006 | do |
michael@0 | 5007 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 5008 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 5009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5010 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5011 | if ${ac_cv_path_AS+:} false; then : |
michael@0 | 5012 | $as_echo_n "(cached) " >&6 |
michael@0 | 5013 | else |
michael@0 | 5014 | case $AS in |
michael@0 | 5015 | [\\/]* | ?:[\\/]*) |
michael@0 | 5016 | ac_cv_path_AS="$AS" # Let the user override the test with a path. |
michael@0 | 5017 | ;; |
michael@0 | 5018 | *) |
michael@0 | 5019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5020 | for as_dir in $PATH |
michael@0 | 5021 | do |
michael@0 | 5022 | IFS=$as_save_IFS |
michael@0 | 5023 | test -z "$as_dir" && as_dir=. |
michael@0 | 5024 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5025 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 5026 | ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 5027 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5028 | break 2 |
michael@0 | 5029 | fi |
michael@0 | 5030 | done |
michael@0 | 5031 | done |
michael@0 | 5032 | IFS=$as_save_IFS |
michael@0 | 5033 | |
michael@0 | 5034 | ;; |
michael@0 | 5035 | esac |
michael@0 | 5036 | fi |
michael@0 | 5037 | AS=$ac_cv_path_AS |
michael@0 | 5038 | if test -n "$AS"; then |
michael@0 | 5039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
michael@0 | 5040 | $as_echo "$AS" >&6; } |
michael@0 | 5041 | else |
michael@0 | 5042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5043 | $as_echo "no" >&6; } |
michael@0 | 5044 | fi |
michael@0 | 5045 | |
michael@0 | 5046 | |
michael@0 | 5047 | test -n "$AS" && break |
michael@0 | 5048 | done |
michael@0 | 5049 | test -n "$AS" || AS="$CC" |
michael@0 | 5050 | |
michael@0 | 5051 | for ac_prog in ar |
michael@0 | 5052 | do |
michael@0 | 5053 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 5054 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5056 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5057 | if ${ac_cv_path_AR+:} false; then : |
michael@0 | 5058 | $as_echo_n "(cached) " >&6 |
michael@0 | 5059 | else |
michael@0 | 5060 | case $AR in |
michael@0 | 5061 | [\\/]* | ?:[\\/]*) |
michael@0 | 5062 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
michael@0 | 5063 | ;; |
michael@0 | 5064 | *) |
michael@0 | 5065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5066 | for as_dir in $PATH |
michael@0 | 5067 | do |
michael@0 | 5068 | IFS=$as_save_IFS |
michael@0 | 5069 | test -z "$as_dir" && as_dir=. |
michael@0 | 5070 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5071 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 5072 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 5073 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5074 | break 2 |
michael@0 | 5075 | fi |
michael@0 | 5076 | done |
michael@0 | 5077 | done |
michael@0 | 5078 | IFS=$as_save_IFS |
michael@0 | 5079 | |
michael@0 | 5080 | ;; |
michael@0 | 5081 | esac |
michael@0 | 5082 | fi |
michael@0 | 5083 | AR=$ac_cv_path_AR |
michael@0 | 5084 | if test -n "$AR"; then |
michael@0 | 5085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
michael@0 | 5086 | $as_echo "$AR" >&6; } |
michael@0 | 5087 | else |
michael@0 | 5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5089 | $as_echo "no" >&6; } |
michael@0 | 5090 | fi |
michael@0 | 5091 | |
michael@0 | 5092 | |
michael@0 | 5093 | test -n "$AR" && break |
michael@0 | 5094 | done |
michael@0 | 5095 | test -n "$AR" || AR="echo not_ar" |
michael@0 | 5096 | |
michael@0 | 5097 | for ac_prog in ld link |
michael@0 | 5098 | do |
michael@0 | 5099 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 5100 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5102 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5103 | if ${ac_cv_path_LD+:} false; then : |
michael@0 | 5104 | $as_echo_n "(cached) " >&6 |
michael@0 | 5105 | else |
michael@0 | 5106 | case $LD in |
michael@0 | 5107 | [\\/]* | ?:[\\/]*) |
michael@0 | 5108 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
michael@0 | 5109 | ;; |
michael@0 | 5110 | *) |
michael@0 | 5111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5112 | for as_dir in $PATH |
michael@0 | 5113 | do |
michael@0 | 5114 | IFS=$as_save_IFS |
michael@0 | 5115 | test -z "$as_dir" && as_dir=. |
michael@0 | 5116 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5117 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 5118 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 5119 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5120 | break 2 |
michael@0 | 5121 | fi |
michael@0 | 5122 | done |
michael@0 | 5123 | done |
michael@0 | 5124 | IFS=$as_save_IFS |
michael@0 | 5125 | |
michael@0 | 5126 | ;; |
michael@0 | 5127 | esac |
michael@0 | 5128 | fi |
michael@0 | 5129 | LD=$ac_cv_path_LD |
michael@0 | 5130 | if test -n "$LD"; then |
michael@0 | 5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
michael@0 | 5132 | $as_echo "$LD" >&6; } |
michael@0 | 5133 | else |
michael@0 | 5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5135 | $as_echo "no" >&6; } |
michael@0 | 5136 | fi |
michael@0 | 5137 | |
michael@0 | 5138 | |
michael@0 | 5139 | test -n "$LD" && break |
michael@0 | 5140 | done |
michael@0 | 5141 | test -n "$LD" || LD="echo not_ld" |
michael@0 | 5142 | |
michael@0 | 5143 | for ac_prog in strip |
michael@0 | 5144 | do |
michael@0 | 5145 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 5146 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 5147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5148 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5149 | if ${ac_cv_path_STRIP+:} false; then : |
michael@0 | 5150 | $as_echo_n "(cached) " >&6 |
michael@0 | 5151 | else |
michael@0 | 5152 | case $STRIP in |
michael@0 | 5153 | [\\/]* | ?:[\\/]*) |
michael@0 | 5154 | ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. |
michael@0 | 5155 | ;; |
michael@0 | 5156 | *) |
michael@0 | 5157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5158 | for as_dir in $PATH |
michael@0 | 5159 | do |
michael@0 | 5160 | IFS=$as_save_IFS |
michael@0 | 5161 | test -z "$as_dir" && as_dir=. |
michael@0 | 5162 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5163 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 5164 | ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 5165 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5166 | break 2 |
michael@0 | 5167 | fi |
michael@0 | 5168 | done |
michael@0 | 5169 | done |
michael@0 | 5170 | IFS=$as_save_IFS |
michael@0 | 5171 | |
michael@0 | 5172 | ;; |
michael@0 | 5173 | esac |
michael@0 | 5174 | fi |
michael@0 | 5175 | STRIP=$ac_cv_path_STRIP |
michael@0 | 5176 | if test -n "$STRIP"; then |
michael@0 | 5177 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
michael@0 | 5178 | $as_echo "$STRIP" >&6; } |
michael@0 | 5179 | else |
michael@0 | 5180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5181 | $as_echo "no" >&6; } |
michael@0 | 5182 | fi |
michael@0 | 5183 | |
michael@0 | 5184 | |
michael@0 | 5185 | test -n "$STRIP" && break |
michael@0 | 5186 | done |
michael@0 | 5187 | test -n "$STRIP" || STRIP="echo not_strip" |
michael@0 | 5188 | |
michael@0 | 5189 | for ac_prog in windres |
michael@0 | 5190 | do |
michael@0 | 5191 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 5192 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 5193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5194 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5195 | if ${ac_cv_path_WINDRES+:} false; then : |
michael@0 | 5196 | $as_echo_n "(cached) " >&6 |
michael@0 | 5197 | else |
michael@0 | 5198 | case $WINDRES in |
michael@0 | 5199 | [\\/]* | ?:[\\/]*) |
michael@0 | 5200 | ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path. |
michael@0 | 5201 | ;; |
michael@0 | 5202 | *) |
michael@0 | 5203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5204 | for as_dir in $PATH |
michael@0 | 5205 | do |
michael@0 | 5206 | IFS=$as_save_IFS |
michael@0 | 5207 | test -z "$as_dir" && as_dir=. |
michael@0 | 5208 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5209 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 5210 | ac_cv_path_WINDRES="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 5211 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5212 | break 2 |
michael@0 | 5213 | fi |
michael@0 | 5214 | done |
michael@0 | 5215 | done |
michael@0 | 5216 | IFS=$as_save_IFS |
michael@0 | 5217 | |
michael@0 | 5218 | ;; |
michael@0 | 5219 | esac |
michael@0 | 5220 | fi |
michael@0 | 5221 | WINDRES=$ac_cv_path_WINDRES |
michael@0 | 5222 | if test -n "$WINDRES"; then |
michael@0 | 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
michael@0 | 5224 | $as_echo "$WINDRES" >&6; } |
michael@0 | 5225 | else |
michael@0 | 5226 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5227 | $as_echo "no" >&6; } |
michael@0 | 5228 | fi |
michael@0 | 5229 | |
michael@0 | 5230 | |
michael@0 | 5231 | test -n "$WINDRES" && break |
michael@0 | 5232 | done |
michael@0 | 5233 | test -n "$WINDRES" || WINDRES="echo not_windres" |
michael@0 | 5234 | |
michael@0 | 5235 | if test -z "$HOST_CC"; then |
michael@0 | 5236 | HOST_CC="$CC" |
michael@0 | 5237 | fi |
michael@0 | 5238 | if test -z "$HOST_CFLAGS"; then |
michael@0 | 5239 | HOST_CFLAGS="$CFLAGS" |
michael@0 | 5240 | fi |
michael@0 | 5241 | fi |
michael@0 | 5242 | |
michael@0 | 5243 | ac_ext=c |
michael@0 | 5244 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 5245 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 5246 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 5247 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 5248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
michael@0 | 5249 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
michael@0 | 5250 | # On Suns, sometimes $CPP names a directory. |
michael@0 | 5251 | if test -n "$CPP" && test -d "$CPP"; then |
michael@0 | 5252 | CPP= |
michael@0 | 5253 | fi |
michael@0 | 5254 | if test -z "$CPP"; then |
michael@0 | 5255 | if ${ac_cv_prog_CPP+:} false; then : |
michael@0 | 5256 | $as_echo_n "(cached) " >&6 |
michael@0 | 5257 | else |
michael@0 | 5258 | # Double quotes because CPP needs to be expanded |
michael@0 | 5259 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
michael@0 | 5260 | do |
michael@0 | 5261 | ac_preproc_ok=false |
michael@0 | 5262 | for ac_c_preproc_warn_flag in '' yes |
michael@0 | 5263 | do |
michael@0 | 5264 | # Use a header file that comes with gcc, so configuring glibc |
michael@0 | 5265 | # with a fresh cross-compiler works. |
michael@0 | 5266 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
michael@0 | 5267 | # <limits.h> exists even on freestanding compilers. |
michael@0 | 5268 | # On the NeXT, cc -E runs the code through the compiler's parser, |
michael@0 | 5269 | # not just through cpp. "Syntax error" is here to catch this case. |
michael@0 | 5270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5271 | /* end confdefs.h. */ |
michael@0 | 5272 | #ifdef __STDC__ |
michael@0 | 5273 | # include <limits.h> |
michael@0 | 5274 | #else |
michael@0 | 5275 | # include <assert.h> |
michael@0 | 5276 | #endif |
michael@0 | 5277 | Syntax error |
michael@0 | 5278 | _ACEOF |
michael@0 | 5279 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 5280 | |
michael@0 | 5281 | else |
michael@0 | 5282 | # Broken: fails on valid input. |
michael@0 | 5283 | continue |
michael@0 | 5284 | fi |
michael@0 | 5285 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 5286 | |
michael@0 | 5287 | # OK, works on sane cases. Now check whether nonexistent headers |
michael@0 | 5288 | # can be detected and how. |
michael@0 | 5289 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5290 | /* end confdefs.h. */ |
michael@0 | 5291 | #include <ac_nonexistent.h> |
michael@0 | 5292 | _ACEOF |
michael@0 | 5293 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 5294 | # Broken: success on invalid input. |
michael@0 | 5295 | continue |
michael@0 | 5296 | else |
michael@0 | 5297 | # Passes both tests. |
michael@0 | 5298 | ac_preproc_ok=: |
michael@0 | 5299 | break |
michael@0 | 5300 | fi |
michael@0 | 5301 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 5302 | |
michael@0 | 5303 | done |
michael@0 | 5304 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
michael@0 | 5305 | rm -f conftest.i conftest.err conftest.$ac_ext |
michael@0 | 5306 | if $ac_preproc_ok; then : |
michael@0 | 5307 | break |
michael@0 | 5308 | fi |
michael@0 | 5309 | |
michael@0 | 5310 | done |
michael@0 | 5311 | ac_cv_prog_CPP=$CPP |
michael@0 | 5312 | |
michael@0 | 5313 | fi |
michael@0 | 5314 | CPP=$ac_cv_prog_CPP |
michael@0 | 5315 | else |
michael@0 | 5316 | ac_cv_prog_CPP=$CPP |
michael@0 | 5317 | fi |
michael@0 | 5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
michael@0 | 5319 | $as_echo "$CPP" >&6; } |
michael@0 | 5320 | ac_preproc_ok=false |
michael@0 | 5321 | for ac_c_preproc_warn_flag in '' yes |
michael@0 | 5322 | do |
michael@0 | 5323 | # Use a header file that comes with gcc, so configuring glibc |
michael@0 | 5324 | # with a fresh cross-compiler works. |
michael@0 | 5325 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
michael@0 | 5326 | # <limits.h> exists even on freestanding compilers. |
michael@0 | 5327 | # On the NeXT, cc -E runs the code through the compiler's parser, |
michael@0 | 5328 | # not just through cpp. "Syntax error" is here to catch this case. |
michael@0 | 5329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5330 | /* end confdefs.h. */ |
michael@0 | 5331 | #ifdef __STDC__ |
michael@0 | 5332 | # include <limits.h> |
michael@0 | 5333 | #else |
michael@0 | 5334 | # include <assert.h> |
michael@0 | 5335 | #endif |
michael@0 | 5336 | Syntax error |
michael@0 | 5337 | _ACEOF |
michael@0 | 5338 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 5339 | |
michael@0 | 5340 | else |
michael@0 | 5341 | # Broken: fails on valid input. |
michael@0 | 5342 | continue |
michael@0 | 5343 | fi |
michael@0 | 5344 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 5345 | |
michael@0 | 5346 | # OK, works on sane cases. Now check whether nonexistent headers |
michael@0 | 5347 | # can be detected and how. |
michael@0 | 5348 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5349 | /* end confdefs.h. */ |
michael@0 | 5350 | #include <ac_nonexistent.h> |
michael@0 | 5351 | _ACEOF |
michael@0 | 5352 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 5353 | # Broken: success on invalid input. |
michael@0 | 5354 | continue |
michael@0 | 5355 | else |
michael@0 | 5356 | # Passes both tests. |
michael@0 | 5357 | ac_preproc_ok=: |
michael@0 | 5358 | break |
michael@0 | 5359 | fi |
michael@0 | 5360 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 5361 | |
michael@0 | 5362 | done |
michael@0 | 5363 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
michael@0 | 5364 | rm -f conftest.i conftest.err conftest.$ac_ext |
michael@0 | 5365 | if $ac_preproc_ok; then : |
michael@0 | 5366 | |
michael@0 | 5367 | else |
michael@0 | 5368 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 5369 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 5370 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
michael@0 | 5371 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 5372 | fi |
michael@0 | 5373 | |
michael@0 | 5374 | ac_ext=c |
michael@0 | 5375 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 5376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 5377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 5378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 5379 | |
michael@0 | 5380 | |
michael@0 | 5381 | if test "$GCC" = "yes"; then |
michael@0 | 5382 | GNU_CC=1 |
michael@0 | 5383 | fi |
michael@0 | 5384 | if test "$GXX" = "yes"; then |
michael@0 | 5385 | GNU_CXX=1 |
michael@0 | 5386 | fi |
michael@0 | 5387 | if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then |
michael@0 | 5388 | GNU_AS=1 |
michael@0 | 5389 | fi |
michael@0 | 5390 | rm -f a.out |
michael@0 | 5391 | |
michael@0 | 5392 | case "$build:$target" in |
michael@0 | 5393 | i?86-apple-darwin*:powerpc-apple-darwin*) |
michael@0 | 5394 | cross_compiling=yes |
michael@0 | 5395 | ;; |
michael@0 | 5396 | esac |
michael@0 | 5397 | |
michael@0 | 5398 | if test "$cross_compiling" = "yes"; then |
michael@0 | 5399 | CROSS_COMPILE=1 |
michael@0 | 5400 | else |
michael@0 | 5401 | CROSS_COMPILE= |
michael@0 | 5402 | fi |
michael@0 | 5403 | |
michael@0 | 5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc -pipe support" >&5 |
michael@0 | 5405 | $as_echo_n "checking for gcc -pipe support... " >&6; } |
michael@0 | 5406 | if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then |
michael@0 | 5407 | echo '#include <stdio.h>' > dummy-hello.c |
michael@0 | 5408 | echo 'int main() { printf("Hello World\n"); return 0; }' >> dummy-hello.c |
michael@0 | 5409 | ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5 |
michael@0 | 5410 | cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5 |
michael@0 | 5411 | if test $? = 0; then |
michael@0 | 5412 | _res_as_stdin="yes" |
michael@0 | 5413 | else |
michael@0 | 5414 | _res_as_stdin="no" |
michael@0 | 5415 | fi |
michael@0 | 5416 | if test "$_res_as_stdin" = "yes"; then |
michael@0 | 5417 | _SAVE_CFLAGS=$CFLAGS |
michael@0 | 5418 | CFLAGS="$CFLAGS -pipe" |
michael@0 | 5419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5420 | /* end confdefs.h. */ |
michael@0 | 5421 | #include <stdio.h> |
michael@0 | 5422 | int |
michael@0 | 5423 | main () |
michael@0 | 5424 | { |
michael@0 | 5425 | printf("Hello World\n"); |
michael@0 | 5426 | ; |
michael@0 | 5427 | return 0; |
michael@0 | 5428 | } |
michael@0 | 5429 | _ACEOF |
michael@0 | 5430 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 5431 | _res_gcc_pipe="yes" |
michael@0 | 5432 | else |
michael@0 | 5433 | _res_gcc_pipe="no" |
michael@0 | 5434 | fi |
michael@0 | 5435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5436 | CFLAGS=$_SAVE_CFLAGS |
michael@0 | 5437 | fi |
michael@0 | 5438 | if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then |
michael@0 | 5439 | _res="yes"; |
michael@0 | 5440 | CFLAGS="$CFLAGS -pipe" |
michael@0 | 5441 | CXXFLAGS="$CXXFLAGS -pipe" |
michael@0 | 5442 | else |
michael@0 | 5443 | _res="no" |
michael@0 | 5444 | fi |
michael@0 | 5445 | rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out |
michael@0 | 5446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_res" >&5 |
michael@0 | 5447 | $as_echo "$_res" >&6; } |
michael@0 | 5448 | else |
michael@0 | 5449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5450 | $as_echo "no" >&6; } |
michael@0 | 5451 | fi |
michael@0 | 5452 | |
michael@0 | 5453 | |
michael@0 | 5454 | _SAVE_CFLAGS="$CFLAGS" |
michael@0 | 5455 | CFLAGS="$CFLAGS -fprofile-generate -fprofile-correction" |
michael@0 | 5456 | |
michael@0 | 5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fprofile-generate" >&5 |
michael@0 | 5458 | $as_echo_n "checking whether C compiler supports -fprofile-generate... " >&6; } |
michael@0 | 5459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5460 | /* end confdefs.h. */ |
michael@0 | 5461 | |
michael@0 | 5462 | int |
michael@0 | 5463 | main () |
michael@0 | 5464 | { |
michael@0 | 5465 | return 0; |
michael@0 | 5466 | ; |
michael@0 | 5467 | return 0; |
michael@0 | 5468 | } |
michael@0 | 5469 | _ACEOF |
michael@0 | 5470 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 5471 | PROFILE_GEN_CFLAGS="-fprofile-generate" |
michael@0 | 5472 | result="yes" |
michael@0 | 5473 | else |
michael@0 | 5474 | result="no" |
michael@0 | 5475 | fi |
michael@0 | 5476 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
michael@0 | 5478 | $as_echo "$result" >&6; } |
michael@0 | 5479 | |
michael@0 | 5480 | if test $result = "yes"; then |
michael@0 | 5481 | PROFILE_GEN_LDFLAGS="-fprofile-generate" |
michael@0 | 5482 | PROFILE_USE_CFLAGS="-fprofile-use -fprofile-correction -Wcoverage-mismatch" |
michael@0 | 5483 | PROFILE_USE_LDFLAGS="-fprofile-use" |
michael@0 | 5484 | fi |
michael@0 | 5485 | |
michael@0 | 5486 | CFLAGS="$_SAVE_CFLAGS" |
michael@0 | 5487 | |
michael@0 | 5488 | if test "$GNU_CC"; then |
michael@0 | 5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility(hidden) attribute" >&5 |
michael@0 | 5490 | $as_echo_n "checking for visibility(hidden) attribute... " >&6; } |
michael@0 | 5491 | if ${ac_cv_visibility_hidden+:} false; then : |
michael@0 | 5492 | $as_echo_n "(cached) " >&6 |
michael@0 | 5493 | else |
michael@0 | 5494 | cat > conftest.c <<EOF |
michael@0 | 5495 | int foo __attribute__ ((visibility ("hidden"))) = 1; |
michael@0 | 5496 | EOF |
michael@0 | 5497 | ac_cv_visibility_hidden=no |
michael@0 | 5498 | if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then |
michael@0 | 5499 | if grep '\.hidden.*foo' conftest.s >/dev/null; then |
michael@0 | 5500 | ac_cv_visibility_hidden=yes |
michael@0 | 5501 | fi |
michael@0 | 5502 | fi |
michael@0 | 5503 | rm -f conftest.cs |
michael@0 | 5504 | |
michael@0 | 5505 | fi |
michael@0 | 5506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_hidden" >&5 |
michael@0 | 5507 | $as_echo "$ac_cv_visibility_hidden" >&6; } |
michael@0 | 5508 | if test "$ac_cv_visibility_hidden" = "yes"; then |
michael@0 | 5509 | $as_echo "#define HAVE_VISIBILITY_HIDDEN_ATTRIBUTE 1" >>confdefs.h |
michael@0 | 5510 | |
michael@0 | 5511 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for visibility pragma support" >&5 |
michael@0 | 5512 | $as_echo_n "checking for visibility pragma support... " >&6; } |
michael@0 | 5513 | if ${ac_cv_visibility_pragma+:} false; then : |
michael@0 | 5514 | $as_echo_n "(cached) " >&6 |
michael@0 | 5515 | else |
michael@0 | 5516 | cat > conftest.c <<EOF |
michael@0 | 5517 | #pragma GCC visibility push(hidden) |
michael@0 | 5518 | int foo_hidden = 1; |
michael@0 | 5519 | #pragma GCC visibility push(default) |
michael@0 | 5520 | int foo_default = 1; |
michael@0 | 5521 | EOF |
michael@0 | 5522 | ac_cv_visibility_pragma=no |
michael@0 | 5523 | if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then |
michael@0 | 5524 | if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then |
michael@0 | 5525 | if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then |
michael@0 | 5526 | ac_cv_visibility_pragma=yes |
michael@0 | 5527 | fi |
michael@0 | 5528 | fi |
michael@0 | 5529 | fi |
michael@0 | 5530 | rm -f conftest.cs |
michael@0 | 5531 | |
michael@0 | 5532 | fi |
michael@0 | 5533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_visibility_pragma" >&5 |
michael@0 | 5534 | $as_echo "$ac_cv_visibility_pragma" >&6; } |
michael@0 | 5535 | if test "$ac_cv_visibility_pragma" = "yes"; then |
michael@0 | 5536 | $as_echo "#define HAVE_VISIBILITY_PRAGMA 1" >>confdefs.h |
michael@0 | 5537 | |
michael@0 | 5538 | # To work around a build problem on Linux x86-64 (Bugzilla bug |
michael@0 | 5539 | # 293438), we use the -fvisibility=hidden flag. This flag is less |
michael@0 | 5540 | # optimal than #pragma GCC visibility push(hidden) because the flag |
michael@0 | 5541 | # assumes that symbols defined outside the current source file have |
michael@0 | 5542 | # the default visibility. This has the advantage that we don't need |
michael@0 | 5543 | # to wrap system header files, but has the disadvantage that calls |
michael@0 | 5544 | # to hidden symbols defined in other source files cannot be |
michael@0 | 5545 | # optimized by the compiler. The -fvisibility=hidden flag does |
michael@0 | 5546 | # hide and export symbols correctly. |
michael@0 | 5547 | #VISIBILITY_FLAGS='-I$(dist_includedir)/system_wrappers -include $(topsrcdir)/config/gcc_hidden.h' |
michael@0 | 5548 | #WRAP_SYSTEM_INCLUDES=1 |
michael@0 | 5549 | VISIBILITY_FLAGS="-fvisibility=hidden" |
michael@0 | 5550 | WRAP_SYSTEM_INCLUDES= |
michael@0 | 5551 | fi |
michael@0 | 5552 | fi |
michael@0 | 5553 | fi # GNU_CC |
michael@0 | 5554 | |
michael@0 | 5555 | fi # SKIP_COMPILER_CHECKS |
michael@0 | 5556 | |
michael@0 | 5557 | if test -z "$SKIP_PATH_CHECKS"; then |
michael@0 | 5558 | for ac_prog in perl5 perl |
michael@0 | 5559 | do |
michael@0 | 5560 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 5561 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 5562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5563 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5564 | if ${ac_cv_path_PERL+:} false; then : |
michael@0 | 5565 | $as_echo_n "(cached) " >&6 |
michael@0 | 5566 | else |
michael@0 | 5567 | case $PERL in |
michael@0 | 5568 | [\\/]* | ?:[\\/]*) |
michael@0 | 5569 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
michael@0 | 5570 | ;; |
michael@0 | 5571 | *) |
michael@0 | 5572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5573 | for as_dir in $PATH |
michael@0 | 5574 | do |
michael@0 | 5575 | IFS=$as_save_IFS |
michael@0 | 5576 | test -z "$as_dir" && as_dir=. |
michael@0 | 5577 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5578 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 5579 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 5580 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5581 | break 2 |
michael@0 | 5582 | fi |
michael@0 | 5583 | done |
michael@0 | 5584 | done |
michael@0 | 5585 | IFS=$as_save_IFS |
michael@0 | 5586 | |
michael@0 | 5587 | ;; |
michael@0 | 5588 | esac |
michael@0 | 5589 | fi |
michael@0 | 5590 | PERL=$ac_cv_path_PERL |
michael@0 | 5591 | if test -n "$PERL"; then |
michael@0 | 5592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
michael@0 | 5593 | $as_echo "$PERL" >&6; } |
michael@0 | 5594 | else |
michael@0 | 5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5596 | $as_echo "no" >&6; } |
michael@0 | 5597 | fi |
michael@0 | 5598 | |
michael@0 | 5599 | |
michael@0 | 5600 | test -n "$PERL" && break |
michael@0 | 5601 | done |
michael@0 | 5602 | test -n "$PERL" || PERL="echo not_perl" |
michael@0 | 5603 | |
michael@0 | 5604 | elif test -z "$PERL"; then |
michael@0 | 5605 | PERL=perl |
michael@0 | 5606 | fi |
michael@0 | 5607 | |
michael@0 | 5608 | OBJ_SUFFIX=o |
michael@0 | 5609 | LIB_SUFFIX=a |
michael@0 | 5610 | DLL_SUFFIX=so |
michael@0 | 5611 | ASM_SUFFIX=s |
michael@0 | 5612 | MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@' |
michael@0 | 5613 | PR_MD_ASFILES= |
michael@0 | 5614 | PR_MD_CSRCS= |
michael@0 | 5615 | PR_MD_ARCH_DIR=unix |
michael@0 | 5616 | AR_FLAGS='cr $@' |
michael@0 | 5617 | AS='$(CC)' |
michael@0 | 5618 | ASFLAGS='$(CFLAGS)' |
michael@0 | 5619 | |
michael@0 | 5620 | if test -n "$CROSS_COMPILE"; then |
michael@0 | 5621 | OS_ARCH=`echo $target_os | sed -e 's|/|_|g'` |
michael@0 | 5622 | OS_RELEASE= |
michael@0 | 5623 | OS_TEST="${target_cpu}" |
michael@0 | 5624 | case "${target_os}" in |
michael@0 | 5625 | linux*) OS_ARCH=Linux ;; |
michael@0 | 5626 | solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;; |
michael@0 | 5627 | mingw*) OS_ARCH=WINNT CPU_ARCH=x86 ;; |
michael@0 | 5628 | darwin*) OS_ARCH=Darwin ;; |
michael@0 | 5629 | riscos*) OS_ARCH=RISCOS ;; |
michael@0 | 5630 | esac |
michael@0 | 5631 | else |
michael@0 | 5632 | OS_ARCH=`uname -s | sed -e 's|/|_|g'` |
michael@0 | 5633 | OS_RELEASE=`uname -r` |
michael@0 | 5634 | OS_TEST=`uname -m` |
michael@0 | 5635 | fi |
michael@0 | 5636 | |
michael@0 | 5637 | if test "$OS_ARCH" = "IRIX64"; then |
michael@0 | 5638 | OS_ARCH=IRIX |
michael@0 | 5639 | fi |
michael@0 | 5640 | |
michael@0 | 5641 | if test "$OS_ARCH" = "AIX"; then |
michael@0 | 5642 | OS_RELEASE=`uname -v`.`uname -r` |
michael@0 | 5643 | fi |
michael@0 | 5644 | |
michael@0 | 5645 | if test "$OS_ARCH" = "FreeBSD"; then |
michael@0 | 5646 | OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` |
michael@0 | 5647 | fi |
michael@0 | 5648 | |
michael@0 | 5649 | if test "$OS_ARCH" = "Linux"; then |
michael@0 | 5650 | OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` |
michael@0 | 5651 | OS_RELEASE=`echo $OS_RELEASE | awk -F\. '{ print $1 "." $2 }'` |
michael@0 | 5652 | fi |
michael@0 | 5653 | |
michael@0 | 5654 | ####################################################################### |
michael@0 | 5655 | # Master "Core Components" macros for getting the OS target # |
michael@0 | 5656 | ####################################################################### |
michael@0 | 5657 | |
michael@0 | 5658 | # |
michael@0 | 5659 | # Note: OS_TARGET should be specified on the command line for gmake. |
michael@0 | 5660 | # When OS_TARGET=WIN95 is specified, then a Windows 95 target is built. |
michael@0 | 5661 | # The difference between the Win95 target and the WinNT target is that |
michael@0 | 5662 | # the WinNT target uses Windows NT specific features not available |
michael@0 | 5663 | # in Windows 95. The Win95 target will run on Windows NT, but (supposedly) |
michael@0 | 5664 | # at lesser performance (the Win95 target uses threads; the WinNT target |
michael@0 | 5665 | # uses fibers). |
michael@0 | 5666 | # |
michael@0 | 5667 | # If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no |
michael@0 | 5668 | # cross-compilation. |
michael@0 | 5669 | # |
michael@0 | 5670 | |
michael@0 | 5671 | # |
michael@0 | 5672 | # The following hack allows one to build on a WIN95 machine (as if |
michael@0 | 5673 | # s/he were cross-compiling on a WINNT host for a WIN95 target). |
michael@0 | 5674 | # It also accomodates for MKS's uname.exe. If you never intend |
michael@0 | 5675 | # to do development on a WIN95 machine, you don't need this hack. |
michael@0 | 5676 | # |
michael@0 | 5677 | case "$OS_ARCH" in |
michael@0 | 5678 | Windows_95) |
michael@0 | 5679 | OS_ARCH=Windows_NT |
michael@0 | 5680 | OS_TARGET=WIN95 |
michael@0 | 5681 | ;; |
michael@0 | 5682 | Windows_98) |
michael@0 | 5683 | OS_ARCH=Windows_NT |
michael@0 | 5684 | OS_TARGET=WIN95 |
michael@0 | 5685 | ;; |
michael@0 | 5686 | CYGWIN_9*|CYGWIN_ME*) |
michael@0 | 5687 | OS_ARCH='CYGWIN_NT-4.0' |
michael@0 | 5688 | OS_TARGET=WIN95 |
michael@0 | 5689 | ;; |
michael@0 | 5690 | OS_2) |
michael@0 | 5691 | OS_ARCH=OS2 |
michael@0 | 5692 | OS_TARGET=OS2 |
michael@0 | 5693 | ;; |
michael@0 | 5694 | esac |
michael@0 | 5695 | |
michael@0 | 5696 | # |
michael@0 | 5697 | # On WIN32, we also define the variable CPU_ARCH. |
michael@0 | 5698 | # |
michael@0 | 5699 | |
michael@0 | 5700 | case "$OS_ARCH" in |
michael@0 | 5701 | Windows_NT) |
michael@0 | 5702 | # |
michael@0 | 5703 | # If uname -s returns "Windows_NT", we assume that we are using |
michael@0 | 5704 | # the uname.exe in MKS toolkit. |
michael@0 | 5705 | # |
michael@0 | 5706 | # The -r option of MKS uname only returns the major version number. |
michael@0 | 5707 | # So we need to use its -v option to get the minor version number. |
michael@0 | 5708 | # Moreover, it doesn't have the -p option, so we need to use uname -m. |
michael@0 | 5709 | # |
michael@0 | 5710 | OS_ARCH=WINNT |
michael@0 | 5711 | OS_MINOR_RELEASE=`uname -v` |
michael@0 | 5712 | if test "$OS_MINOR_RELEASE" = "00"; then |
michael@0 | 5713 | OS_MINOR_RELEASE=0 |
michael@0 | 5714 | fi |
michael@0 | 5715 | OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}" |
michael@0 | 5716 | CPU_ARCH=`uname -m` |
michael@0 | 5717 | # |
michael@0 | 5718 | # MKS's uname -m returns "586" on a Pentium machine. |
michael@0 | 5719 | # |
michael@0 | 5720 | if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then |
michael@0 | 5721 | CPU_ARCH=x86 |
michael@0 | 5722 | fi |
michael@0 | 5723 | ;; |
michael@0 | 5724 | CYGWIN_NT*|MINGW*_NT*|MSYS_NT*) |
michael@0 | 5725 | # |
michael@0 | 5726 | # If uname -s returns "CYGWIN_NT-4.0", we assume that we are using |
michael@0 | 5727 | # the uname.exe in the Cygwin tools. |
michael@0 | 5728 | # If uname -s returns "MINGW32_NT-5.1", we assume that we are using |
michael@0 | 5729 | # the uname.exe in the MSYS tools. |
michael@0 | 5730 | # If uname -s returns "MSYS_NT-6.3", we assume that we are using |
michael@0 | 5731 | # the uname.exe in the MSYS2 tools. |
michael@0 | 5732 | # |
michael@0 | 5733 | OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'` |
michael@0 | 5734 | OS_ARCH=WINNT |
michael@0 | 5735 | CPU_ARCH=`uname -m` |
michael@0 | 5736 | # |
michael@0 | 5737 | # Cygwin's uname -m returns "i686" on a Pentium Pro machine. |
michael@0 | 5738 | # |
michael@0 | 5739 | if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then |
michael@0 | 5740 | CPU_ARCH=x86 |
michael@0 | 5741 | fi |
michael@0 | 5742 | ;; |
michael@0 | 5743 | esac |
michael@0 | 5744 | |
michael@0 | 5745 | if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then |
michael@0 | 5746 | OS_TARGET=WIN95 |
michael@0 | 5747 | if test -n "$MOZ_DEBUG" -a -z "$USE_DEBUG_RTL"; then |
michael@0 | 5748 | USE_DEBUG_RTL=1 |
michael@0 | 5749 | fi |
michael@0 | 5750 | fi |
michael@0 | 5751 | if test -z "$OS_TARGET"; then |
michael@0 | 5752 | OS_TARGET=$OS_ARCH |
michael@0 | 5753 | fi |
michael@0 | 5754 | if test "$OS_TARGET" = "WIN95"; then |
michael@0 | 5755 | OS_RELEASE="4.0" |
michael@0 | 5756 | fi |
michael@0 | 5757 | OS_CONFIG="${OS_TARGET}${OS_RELEASE}" |
michael@0 | 5758 | |
michael@0 | 5759 | # Check whether --enable-os2-high-mem was given. |
michael@0 | 5760 | if test "${enable_os2_high_mem+set}" = set; then : |
michael@0 | 5761 | enableval=$enable_os2_high_mem; if test "$enableval" = "no"; then |
michael@0 | 5762 | MOZ_OS2_HIGH_MEMORY= |
michael@0 | 5763 | else |
michael@0 | 5764 | MOZ_OS2_HIGH_MEMORY=1 |
michael@0 | 5765 | fi |
michael@0 | 5766 | fi |
michael@0 | 5767 | |
michael@0 | 5768 | |
michael@0 | 5769 | |
michael@0 | 5770 | MOZ_ALIGN=toolchain-default |
michael@0 | 5771 | |
michael@0 | 5772 | case "$target" in |
michael@0 | 5773 | arm*-android*|arm*-linuxandroid*) |
michael@0 | 5774 | MOZ_THUMB=yes |
michael@0 | 5775 | MOZ_ARCH=armv7-a |
michael@0 | 5776 | MOZ_FPU=vfp |
michael@0 | 5777 | MOZ_FLOAT_ABI=softfp |
michael@0 | 5778 | MOZ_SOFT_FLOAT=yes |
michael@0 | 5779 | MOZ_ALIGN=no |
michael@0 | 5780 | ;; |
michael@0 | 5781 | arm*-*) |
michael@0 | 5782 | if test -n "$MOZ_PLATFORM_MAEMO"; then |
michael@0 | 5783 | MOZ_THUMB=no |
michael@0 | 5784 | MOZ_ARCH=armv7-a |
michael@0 | 5785 | MOZ_FLOAT_ABI=softfp |
michael@0 | 5786 | fi |
michael@0 | 5787 | if test "$MOZ_PLATFORM_MAEMO" = 6; then |
michael@0 | 5788 | MOZ_THUMB=yes |
michael@0 | 5789 | fi |
michael@0 | 5790 | ;; |
michael@0 | 5791 | esac |
michael@0 | 5792 | |
michael@0 | 5793 | # Check whether --enable-thumb2 was given. |
michael@0 | 5794 | if test "${enable_thumb2+set}" = set; then : |
michael@0 | 5795 | enableval=$enable_thumb2; MOZ_THUMB=$enableval |
michael@0 | 5796 | fi |
michael@0 | 5797 | |
michael@0 | 5798 | |
michael@0 | 5799 | |
michael@0 | 5800 | # Check whether --with-thumb was given. |
michael@0 | 5801 | if test "${with_thumb+set}" = set; then : |
michael@0 | 5802 | withval=$with_thumb; if test -z "$GNU_CC"; then |
michael@0 | 5803 | as_fn_error $? "--with-thumb is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
michael@0 | 5804 | fi |
michael@0 | 5805 | MOZ_THUMB=$withval |
michael@0 | 5806 | fi |
michael@0 | 5807 | |
michael@0 | 5808 | |
michael@0 | 5809 | |
michael@0 | 5810 | # Check whether --with-thumb-interwork was given. |
michael@0 | 5811 | if test "${with_thumb_interwork+set}" = set; then : |
michael@0 | 5812 | withval=$with_thumb_interwork; if test -z "$GNU_CC"; then |
michael@0 | 5813 | as_fn_error $? "--with-thumb-interwork is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
michael@0 | 5814 | fi |
michael@0 | 5815 | MOZ_THUMB_INTERWORK=$withval |
michael@0 | 5816 | fi |
michael@0 | 5817 | |
michael@0 | 5818 | |
michael@0 | 5819 | |
michael@0 | 5820 | # Check whether --with-arch was given. |
michael@0 | 5821 | if test "${with_arch+set}" = set; then : |
michael@0 | 5822 | withval=$with_arch; if test -z "$GNU_CC"; then |
michael@0 | 5823 | as_fn_error $? "--with-arch is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
michael@0 | 5824 | fi |
michael@0 | 5825 | MOZ_ARCH=$withval |
michael@0 | 5826 | fi |
michael@0 | 5827 | |
michael@0 | 5828 | |
michael@0 | 5829 | |
michael@0 | 5830 | # Check whether --with-fpu was given. |
michael@0 | 5831 | if test "${with_fpu+set}" = set; then : |
michael@0 | 5832 | withval=$with_fpu; if test -z "$GNU_CC"; then |
michael@0 | 5833 | as_fn_error $? "--with-fpu is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
michael@0 | 5834 | fi |
michael@0 | 5835 | MOZ_FPU=$withval |
michael@0 | 5836 | fi |
michael@0 | 5837 | |
michael@0 | 5838 | |
michael@0 | 5839 | |
michael@0 | 5840 | # Check whether --with-float-abi was given. |
michael@0 | 5841 | if test "${with_float_abi+set}" = set; then : |
michael@0 | 5842 | withval=$with_float_abi; if test -z "$GNU_CC"; then |
michael@0 | 5843 | as_fn_error $? "--with-float-abi is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
michael@0 | 5844 | fi |
michael@0 | 5845 | MOZ_FLOAT_ABI=$withval |
michael@0 | 5846 | fi |
michael@0 | 5847 | |
michael@0 | 5848 | |
michael@0 | 5849 | |
michael@0 | 5850 | # Check whether --with-soft-float was given. |
michael@0 | 5851 | if test "${with_soft_float+set}" = set; then : |
michael@0 | 5852 | withval=$with_soft_float; if test -z "$GNU_CC"; then |
michael@0 | 5853 | as_fn_error $? "--with-soft-float is not supported on non-GNU toolchain-defaults" "$LINENO" 5 |
michael@0 | 5854 | fi |
michael@0 | 5855 | MOZ_SOFT_FLOAT=$withval |
michael@0 | 5856 | fi |
michael@0 | 5857 | |
michael@0 | 5858 | |
michael@0 | 5859 | case "$MOZ_ARCH" in |
michael@0 | 5860 | toolchain-default|"") |
michael@0 | 5861 | arch_flag="" |
michael@0 | 5862 | ;; |
michael@0 | 5863 | *) |
michael@0 | 5864 | arch_flag="-march=$MOZ_ARCH" |
michael@0 | 5865 | ;; |
michael@0 | 5866 | esac |
michael@0 | 5867 | |
michael@0 | 5868 | case "$MOZ_THUMB" in |
michael@0 | 5869 | yes) |
michael@0 | 5870 | MOZ_THUMB2=1 |
michael@0 | 5871 | thumb_flag="-mthumb" |
michael@0 | 5872 | ;; |
michael@0 | 5873 | no) |
michael@0 | 5874 | MOZ_THUMB2= |
michael@0 | 5875 | thumb_flag="-marm" |
michael@0 | 5876 | ;; |
michael@0 | 5877 | *) |
michael@0 | 5878 | _SAVE_CFLAGS="$CFLAGS" |
michael@0 | 5879 | CFLAGS="$arch_flag" |
michael@0 | 5880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5881 | /* end confdefs.h. */ |
michael@0 | 5882 | |
michael@0 | 5883 | int |
michael@0 | 5884 | main () |
michael@0 | 5885 | { |
michael@0 | 5886 | return sizeof(__thumb2__); |
michael@0 | 5887 | ; |
michael@0 | 5888 | return 0; |
michael@0 | 5889 | } |
michael@0 | 5890 | _ACEOF |
michael@0 | 5891 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 5892 | MOZ_THUMB2=1 |
michael@0 | 5893 | else |
michael@0 | 5894 | MOZ_THUMB2= |
michael@0 | 5895 | fi |
michael@0 | 5896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5897 | CFLAGS="$_SAVE_CFLAGS" |
michael@0 | 5898 | thumb_flag="" |
michael@0 | 5899 | ;; |
michael@0 | 5900 | esac |
michael@0 | 5901 | |
michael@0 | 5902 | case "$MOZ_THUMB_INTERWORK" in |
michael@0 | 5903 | yes) |
michael@0 | 5904 | thumb_interwork_flag="-mthumb-interwork" |
michael@0 | 5905 | ;; |
michael@0 | 5906 | no) |
michael@0 | 5907 | thumb_interwork_flag="-mno-thumb-interwork" |
michael@0 | 5908 | ;; |
michael@0 | 5909 | *) # toolchain-default |
michael@0 | 5910 | thumb_interwork_flag="" |
michael@0 | 5911 | ;; |
michael@0 | 5912 | esac |
michael@0 | 5913 | |
michael@0 | 5914 | case "$MOZ_FPU" in |
michael@0 | 5915 | toolchain-default|"") |
michael@0 | 5916 | fpu_flag="" |
michael@0 | 5917 | ;; |
michael@0 | 5918 | *) |
michael@0 | 5919 | fpu_flag="-mfpu=$MOZ_FPU" |
michael@0 | 5920 | ;; |
michael@0 | 5921 | esac |
michael@0 | 5922 | |
michael@0 | 5923 | case "$MOZ_FLOAT_ABI" in |
michael@0 | 5924 | toolchain-default|"") |
michael@0 | 5925 | float_abi_flag="" |
michael@0 | 5926 | ;; |
michael@0 | 5927 | *) |
michael@0 | 5928 | float_abi_flag="-mfloat-abi=$MOZ_FLOAT_ABI" |
michael@0 | 5929 | ;; |
michael@0 | 5930 | esac |
michael@0 | 5931 | |
michael@0 | 5932 | case "$MOZ_SOFT_FLOAT" in |
michael@0 | 5933 | yes) |
michael@0 | 5934 | soft_float_flag="-msoft-float" |
michael@0 | 5935 | ;; |
michael@0 | 5936 | no) |
michael@0 | 5937 | soft_float_flag="-mno-soft-float" |
michael@0 | 5938 | ;; |
michael@0 | 5939 | *) # toolchain-default |
michael@0 | 5940 | soft_float_flag="" |
michael@0 | 5941 | ;; |
michael@0 | 5942 | esac |
michael@0 | 5943 | |
michael@0 | 5944 | case "$MOZ_ALIGN" in |
michael@0 | 5945 | toolchain-default|"") |
michael@0 | 5946 | align_flag="" |
michael@0 | 5947 | ;; |
michael@0 | 5948 | no) |
michael@0 | 5949 | align_flag="-mno-unaligned-access" |
michael@0 | 5950 | ;; |
michael@0 | 5951 | yes) |
michael@0 | 5952 | align_flag="-munaligned-access" |
michael@0 | 5953 | ;; |
michael@0 | 5954 | *) |
michael@0 | 5955 | align_flag="" |
michael@0 | 5956 | ;; |
michael@0 | 5957 | esac |
michael@0 | 5958 | |
michael@0 | 5959 | if test -n "$align_flag"; then |
michael@0 | 5960 | _SAVE_CFLAGS="$CFLAGS" |
michael@0 | 5961 | CFLAGS="$CFLAGS $align_flag" |
michael@0 | 5962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether alignment flag ($align_flag) is supported" >&5 |
michael@0 | 5963 | $as_echo_n "checking whether alignment flag ($align_flag) is supported... " >&6; } |
michael@0 | 5964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5965 | /* end confdefs.h. */ |
michael@0 | 5966 | |
michael@0 | 5967 | int |
michael@0 | 5968 | main () |
michael@0 | 5969 | { |
michael@0 | 5970 | |
michael@0 | 5971 | ; |
michael@0 | 5972 | return 0; |
michael@0 | 5973 | } |
michael@0 | 5974 | _ACEOF |
michael@0 | 5975 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 5976 | |
michael@0 | 5977 | else |
michael@0 | 5978 | align_flag="" |
michael@0 | 5979 | fi |
michael@0 | 5980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5981 | CFLAGS="$_SAVE_CFLAGS" |
michael@0 | 5982 | fi |
michael@0 | 5983 | |
michael@0 | 5984 | all_flags=`echo $arch_flag $thumb_flag $thumb_interwork_flag $fpu_flag $float_abi_flag $soft_float_flag $align_flag` |
michael@0 | 5985 | if test -n "$all_flags"; then |
michael@0 | 5986 | _SAVE_CFLAGS="$CFLAGS" |
michael@0 | 5987 | CFLAGS="$all_flags" |
michael@0 | 5988 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the chosen combination of compiler flags ($all_flags) works" >&5 |
michael@0 | 5989 | $as_echo_n "checking whether the chosen combination of compiler flags ($all_flags) works... " >&6; } |
michael@0 | 5990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5991 | /* end confdefs.h. */ |
michael@0 | 5992 | |
michael@0 | 5993 | int |
michael@0 | 5994 | main () |
michael@0 | 5995 | { |
michael@0 | 5996 | return 0; |
michael@0 | 5997 | ; |
michael@0 | 5998 | return 0; |
michael@0 | 5999 | } |
michael@0 | 6000 | _ACEOF |
michael@0 | 6001 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 6003 | $as_echo "yes" >&6; } |
michael@0 | 6004 | else |
michael@0 | 6005 | as_fn_error $? "no" "$LINENO" 5 |
michael@0 | 6006 | fi |
michael@0 | 6007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6008 | |
michael@0 | 6009 | CFLAGS="$_SAVE_CFLAGS $all_flags" |
michael@0 | 6010 | CXXFLAGS="$CXXFLAGS $all_flags" |
michael@0 | 6011 | ASFLAGS="$ASFLAGS $all_flags" |
michael@0 | 6012 | if test -n "$thumb_flag"; then |
michael@0 | 6013 | LDFLAGS="$LDFLAGS $thumb_flag" |
michael@0 | 6014 | fi |
michael@0 | 6015 | fi |
michael@0 | 6016 | |
michael@0 | 6017 | case "$host" in |
michael@0 | 6018 | *-mingw*|*-msys*) |
michael@0 | 6019 | NSINSTALL=nsinstall |
michael@0 | 6020 | ;; |
michael@0 | 6021 | *-cygwin*|*-mks*) |
michael@0 | 6022 | NSINSTALL='$(CYGWIN_WRAPPER) nsinstall' |
michael@0 | 6023 | if test `echo "${PATH}" | grep -c \;` = 0; then |
michael@0 | 6024 | CYGWIN_WRAPPER='sh $(topsrcdir)/build/cygwin-wrapper' |
michael@0 | 6025 | fi |
michael@0 | 6026 | ;; |
michael@0 | 6027 | *-beos*) |
michael@0 | 6028 | HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE" |
michael@0 | 6029 | ;; |
michael@0 | 6030 | *os2*) |
michael@0 | 6031 | ;; |
michael@0 | 6032 | *) |
michael@0 | 6033 | HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" |
michael@0 | 6034 | ;; |
michael@0 | 6035 | esac |
michael@0 | 6036 | |
michael@0 | 6037 | case "$target" in |
michael@0 | 6038 | |
michael@0 | 6039 | *-aix*) |
michael@0 | 6040 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 6041 | |
michael@0 | 6042 | $as_echo "#define AIX 1" >>confdefs.h |
michael@0 | 6043 | |
michael@0 | 6044 | $as_echo "#define SYSV 1" >>confdefs.h |
michael@0 | 6045 | |
michael@0 | 6046 | DSO_LDOPTS='-brtl -bnortllib -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib' |
michael@0 | 6047 | |
michael@0 | 6048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
michael@0 | 6049 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
michael@0 | 6050 | if ${ac_cv_path_GREP+:} false; then : |
michael@0 | 6051 | $as_echo_n "(cached) " >&6 |
michael@0 | 6052 | else |
michael@0 | 6053 | if test -z "$GREP"; then |
michael@0 | 6054 | ac_path_GREP_found=false |
michael@0 | 6055 | # Loop through the user's path and test for each of PROGNAME-LIST |
michael@0 | 6056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 6057 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
michael@0 | 6058 | do |
michael@0 | 6059 | IFS=$as_save_IFS |
michael@0 | 6060 | test -z "$as_dir" && as_dir=. |
michael@0 | 6061 | for ac_prog in grep ggrep; do |
michael@0 | 6062 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 6063 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
michael@0 | 6064 | as_fn_executable_p "$ac_path_GREP" || continue |
michael@0 | 6065 | # Check for GNU ac_path_GREP and select it if it is found. |
michael@0 | 6066 | # Check for GNU $ac_path_GREP |
michael@0 | 6067 | case `"$ac_path_GREP" --version 2>&1` in |
michael@0 | 6068 | *GNU*) |
michael@0 | 6069 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
michael@0 | 6070 | *) |
michael@0 | 6071 | ac_count=0 |
michael@0 | 6072 | $as_echo_n 0123456789 >"conftest.in" |
michael@0 | 6073 | while : |
michael@0 | 6074 | do |
michael@0 | 6075 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
michael@0 | 6076 | mv "conftest.tmp" "conftest.in" |
michael@0 | 6077 | cp "conftest.in" "conftest.nl" |
michael@0 | 6078 | $as_echo 'GREP' >> "conftest.nl" |
michael@0 | 6079 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
michael@0 | 6080 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
michael@0 | 6081 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
michael@0 | 6082 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
michael@0 | 6083 | # Best one so far, save it but keep looking for a better one |
michael@0 | 6084 | ac_cv_path_GREP="$ac_path_GREP" |
michael@0 | 6085 | ac_path_GREP_max=$ac_count |
michael@0 | 6086 | fi |
michael@0 | 6087 | # 10*(2^10) chars as input seems more than enough |
michael@0 | 6088 | test $ac_count -gt 10 && break |
michael@0 | 6089 | done |
michael@0 | 6090 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
michael@0 | 6091 | esac |
michael@0 | 6092 | |
michael@0 | 6093 | $ac_path_GREP_found && break 3 |
michael@0 | 6094 | done |
michael@0 | 6095 | done |
michael@0 | 6096 | done |
michael@0 | 6097 | IFS=$as_save_IFS |
michael@0 | 6098 | if test -z "$ac_cv_path_GREP"; then |
michael@0 | 6099 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
michael@0 | 6100 | fi |
michael@0 | 6101 | else |
michael@0 | 6102 | ac_cv_path_GREP=$GREP |
michael@0 | 6103 | fi |
michael@0 | 6104 | |
michael@0 | 6105 | fi |
michael@0 | 6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
michael@0 | 6107 | $as_echo "$ac_cv_path_GREP" >&6; } |
michael@0 | 6108 | GREP="$ac_cv_path_GREP" |
michael@0 | 6109 | |
michael@0 | 6110 | |
michael@0 | 6111 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
michael@0 | 6112 | $as_echo_n "checking for egrep... " >&6; } |
michael@0 | 6113 | if ${ac_cv_path_EGREP+:} false; then : |
michael@0 | 6114 | $as_echo_n "(cached) " >&6 |
michael@0 | 6115 | else |
michael@0 | 6116 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
michael@0 | 6117 | then ac_cv_path_EGREP="$GREP -E" |
michael@0 | 6118 | else |
michael@0 | 6119 | if test -z "$EGREP"; then |
michael@0 | 6120 | ac_path_EGREP_found=false |
michael@0 | 6121 | # Loop through the user's path and test for each of PROGNAME-LIST |
michael@0 | 6122 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 6123 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
michael@0 | 6124 | do |
michael@0 | 6125 | IFS=$as_save_IFS |
michael@0 | 6126 | test -z "$as_dir" && as_dir=. |
michael@0 | 6127 | for ac_prog in egrep; do |
michael@0 | 6128 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 6129 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
michael@0 | 6130 | as_fn_executable_p "$ac_path_EGREP" || continue |
michael@0 | 6131 | # Check for GNU ac_path_EGREP and select it if it is found. |
michael@0 | 6132 | # Check for GNU $ac_path_EGREP |
michael@0 | 6133 | case `"$ac_path_EGREP" --version 2>&1` in |
michael@0 | 6134 | *GNU*) |
michael@0 | 6135 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
michael@0 | 6136 | *) |
michael@0 | 6137 | ac_count=0 |
michael@0 | 6138 | $as_echo_n 0123456789 >"conftest.in" |
michael@0 | 6139 | while : |
michael@0 | 6140 | do |
michael@0 | 6141 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
michael@0 | 6142 | mv "conftest.tmp" "conftest.in" |
michael@0 | 6143 | cp "conftest.in" "conftest.nl" |
michael@0 | 6144 | $as_echo 'EGREP' >> "conftest.nl" |
michael@0 | 6145 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
michael@0 | 6146 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
michael@0 | 6147 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
michael@0 | 6148 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
michael@0 | 6149 | # Best one so far, save it but keep looking for a better one |
michael@0 | 6150 | ac_cv_path_EGREP="$ac_path_EGREP" |
michael@0 | 6151 | ac_path_EGREP_max=$ac_count |
michael@0 | 6152 | fi |
michael@0 | 6153 | # 10*(2^10) chars as input seems more than enough |
michael@0 | 6154 | test $ac_count -gt 10 && break |
michael@0 | 6155 | done |
michael@0 | 6156 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
michael@0 | 6157 | esac |
michael@0 | 6158 | |
michael@0 | 6159 | $ac_path_EGREP_found && break 3 |
michael@0 | 6160 | done |
michael@0 | 6161 | done |
michael@0 | 6162 | done |
michael@0 | 6163 | IFS=$as_save_IFS |
michael@0 | 6164 | if test -z "$ac_cv_path_EGREP"; then |
michael@0 | 6165 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
michael@0 | 6166 | fi |
michael@0 | 6167 | else |
michael@0 | 6168 | ac_cv_path_EGREP=$EGREP |
michael@0 | 6169 | fi |
michael@0 | 6170 | |
michael@0 | 6171 | fi |
michael@0 | 6172 | fi |
michael@0 | 6173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
michael@0 | 6174 | $as_echo "$ac_cv_path_EGREP" >&6; } |
michael@0 | 6175 | EGREP="$ac_cv_path_EGREP" |
michael@0 | 6176 | |
michael@0 | 6177 | |
michael@0 | 6178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
michael@0 | 6179 | $as_echo_n "checking for ANSI C header files... " >&6; } |
michael@0 | 6180 | if ${ac_cv_header_stdc+:} false; then : |
michael@0 | 6181 | $as_echo_n "(cached) " >&6 |
michael@0 | 6182 | else |
michael@0 | 6183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6184 | /* end confdefs.h. */ |
michael@0 | 6185 | #include <stdlib.h> |
michael@0 | 6186 | #include <stdarg.h> |
michael@0 | 6187 | #include <string.h> |
michael@0 | 6188 | #include <float.h> |
michael@0 | 6189 | |
michael@0 | 6190 | int |
michael@0 | 6191 | main () |
michael@0 | 6192 | { |
michael@0 | 6193 | |
michael@0 | 6194 | ; |
michael@0 | 6195 | return 0; |
michael@0 | 6196 | } |
michael@0 | 6197 | _ACEOF |
michael@0 | 6198 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6199 | ac_cv_header_stdc=yes |
michael@0 | 6200 | else |
michael@0 | 6201 | ac_cv_header_stdc=no |
michael@0 | 6202 | fi |
michael@0 | 6203 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6204 | |
michael@0 | 6205 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 6206 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
michael@0 | 6207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6208 | /* end confdefs.h. */ |
michael@0 | 6209 | #include <string.h> |
michael@0 | 6210 | |
michael@0 | 6211 | _ACEOF |
michael@0 | 6212 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
michael@0 | 6213 | $EGREP "memchr" >/dev/null 2>&1; then : |
michael@0 | 6214 | |
michael@0 | 6215 | else |
michael@0 | 6216 | ac_cv_header_stdc=no |
michael@0 | 6217 | fi |
michael@0 | 6218 | rm -f conftest* |
michael@0 | 6219 | |
michael@0 | 6220 | fi |
michael@0 | 6221 | |
michael@0 | 6222 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 6223 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
michael@0 | 6224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6225 | /* end confdefs.h. */ |
michael@0 | 6226 | #include <stdlib.h> |
michael@0 | 6227 | |
michael@0 | 6228 | _ACEOF |
michael@0 | 6229 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
michael@0 | 6230 | $EGREP "free" >/dev/null 2>&1; then : |
michael@0 | 6231 | |
michael@0 | 6232 | else |
michael@0 | 6233 | ac_cv_header_stdc=no |
michael@0 | 6234 | fi |
michael@0 | 6235 | rm -f conftest* |
michael@0 | 6236 | |
michael@0 | 6237 | fi |
michael@0 | 6238 | |
michael@0 | 6239 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 6240 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
michael@0 | 6241 | if test "$cross_compiling" = yes; then : |
michael@0 | 6242 | : |
michael@0 | 6243 | else |
michael@0 | 6244 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6245 | /* end confdefs.h. */ |
michael@0 | 6246 | #include <ctype.h> |
michael@0 | 6247 | #include <stdlib.h> |
michael@0 | 6248 | #if ((' ' & 0x0FF) == 0x020) |
michael@0 | 6249 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
michael@0 | 6250 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
michael@0 | 6251 | #else |
michael@0 | 6252 | # define ISLOWER(c) \ |
michael@0 | 6253 | (('a' <= (c) && (c) <= 'i') \ |
michael@0 | 6254 | || ('j' <= (c) && (c) <= 'r') \ |
michael@0 | 6255 | || ('s' <= (c) && (c) <= 'z')) |
michael@0 | 6256 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
michael@0 | 6257 | #endif |
michael@0 | 6258 | |
michael@0 | 6259 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
michael@0 | 6260 | int |
michael@0 | 6261 | main () |
michael@0 | 6262 | { |
michael@0 | 6263 | int i; |
michael@0 | 6264 | for (i = 0; i < 256; i++) |
michael@0 | 6265 | if (XOR (islower (i), ISLOWER (i)) |
michael@0 | 6266 | || toupper (i) != TOUPPER (i)) |
michael@0 | 6267 | return 2; |
michael@0 | 6268 | return 0; |
michael@0 | 6269 | } |
michael@0 | 6270 | _ACEOF |
michael@0 | 6271 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 6272 | |
michael@0 | 6273 | else |
michael@0 | 6274 | ac_cv_header_stdc=no |
michael@0 | 6275 | fi |
michael@0 | 6276 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 6277 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 6278 | fi |
michael@0 | 6279 | |
michael@0 | 6280 | fi |
michael@0 | 6281 | fi |
michael@0 | 6282 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
michael@0 | 6283 | $as_echo "$ac_cv_header_stdc" >&6; } |
michael@0 | 6284 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 6285 | |
michael@0 | 6286 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
michael@0 | 6287 | |
michael@0 | 6288 | fi |
michael@0 | 6289 | |
michael@0 | 6290 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
michael@0 | 6291 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
michael@0 | 6292 | inttypes.h stdint.h unistd.h |
michael@0 | 6293 | do : |
michael@0 | 6294 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
michael@0 | 6295 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
michael@0 | 6296 | " |
michael@0 | 6297 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
michael@0 | 6298 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6299 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
michael@0 | 6300 | _ACEOF |
michael@0 | 6301 | |
michael@0 | 6302 | fi |
michael@0 | 6303 | |
michael@0 | 6304 | done |
michael@0 | 6305 | |
michael@0 | 6306 | |
michael@0 | 6307 | ac_fn_c_check_header_mongrel "$LINENO" "sys/atomic_op.h" "ac_cv_header_sys_atomic_op_h" "$ac_includes_default" |
michael@0 | 6308 | if test "x$ac_cv_header_sys_atomic_op_h" = xyes; then : |
michael@0 | 6309 | $as_echo "#define AIX_HAVE_ATOMIC_OP_H 1" >>confdefs.h |
michael@0 | 6310 | |
michael@0 | 6311 | fi |
michael@0 | 6312 | |
michael@0 | 6313 | |
michael@0 | 6314 | case "${target_os}" in |
michael@0 | 6315 | aix3.2*) |
michael@0 | 6316 | $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h |
michael@0 | 6317 | |
michael@0 | 6318 | $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
michael@0 | 6319 | |
michael@0 | 6320 | AIX_LINK_OPTS='-bnso -berok' |
michael@0 | 6321 | PR_MD_ASFILES=os_AIX.s |
michael@0 | 6322 | ;; |
michael@0 | 6323 | aix4.1*) |
michael@0 | 6324 | $as_echo "#define AIX_TIMERS 1" >>confdefs.h |
michael@0 | 6325 | |
michael@0 | 6326 | $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
michael@0 | 6327 | |
michael@0 | 6328 | $as_echo "#define AIX4_1 1" >>confdefs.h |
michael@0 | 6329 | |
michael@0 | 6330 | MKSHLIB= |
michael@0 | 6331 | DSO_LDOPTS= |
michael@0 | 6332 | AIX_LINK_OPTS='-bnso -berok' |
michael@0 | 6333 | LIBNSPR='-L$(dist_libdir) -lnspr$(MOD_MAJOR_VERSION)_shr' |
michael@0 | 6334 | LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)_shr' |
michael@0 | 6335 | ;; |
michael@0 | 6336 | aix4.2*) |
michael@0 | 6337 | $as_echo "#define AIX_TIMERS 1" >>confdefs.h |
michael@0 | 6338 | |
michael@0 | 6339 | $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
michael@0 | 6340 | |
michael@0 | 6341 | AIX_LINK_OPTS='-brtl -bnso -berok' |
michael@0 | 6342 | ;; |
michael@0 | 6343 | aix4.3*) |
michael@0 | 6344 | $as_echo "#define AIX_TIMERS 1" >>confdefs.h |
michael@0 | 6345 | |
michael@0 | 6346 | $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
michael@0 | 6347 | |
michael@0 | 6348 | $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h |
michael@0 | 6349 | |
michael@0 | 6350 | $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
michael@0 | 6351 | |
michael@0 | 6352 | $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
michael@0 | 6353 | |
michael@0 | 6354 | USE_IPV6=1 |
michael@0 | 6355 | AIX_LINK_OPTS='-brtl -bnso -berok' |
michael@0 | 6356 | ;; |
michael@0 | 6357 | *) |
michael@0 | 6358 | $as_echo "#define AIX_TIMERS 1" >>confdefs.h |
michael@0 | 6359 | |
michael@0 | 6360 | $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
michael@0 | 6361 | |
michael@0 | 6362 | $as_echo "#define AIX4_3_PLUS 1" >>confdefs.h |
michael@0 | 6363 | |
michael@0 | 6364 | $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
michael@0 | 6365 | |
michael@0 | 6366 | $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
michael@0 | 6367 | |
michael@0 | 6368 | USE_IPV6=1 |
michael@0 | 6369 | AIX_LINK_OPTS='-brtl -bnso -berok' |
michael@0 | 6370 | ;; |
michael@0 | 6371 | esac |
michael@0 | 6372 | CFLAGS="$CFLAGS -qro -qroconst" |
michael@0 | 6373 | AIX_WRAP='$(DIST)/lib/aixwrap.o' |
michael@0 | 6374 | AIX_TMP='./_aix_tmp.o' |
michael@0 | 6375 | if test -n "$USE_64"; then |
michael@0 | 6376 | MDCPUCFG_H=_aix64.cfg |
michael@0 | 6377 | OBJECT_MODE=64 |
michael@0 | 6378 | else |
michael@0 | 6379 | MDCPUCFG_H=_aix32.cfg |
michael@0 | 6380 | fi |
michael@0 | 6381 | PR_MD_CSRCS=aix.c |
michael@0 | 6382 | RESOLVE_LINK_SYMBOLS=1 |
michael@0 | 6383 | ;; |
michael@0 | 6384 | |
michael@0 | 6385 | *-beos*) |
michael@0 | 6386 | $as_echo "#define XP_BEOS 1" >>confdefs.h |
michael@0 | 6387 | |
michael@0 | 6388 | $as_echo "#define BeOS 1" >>confdefs.h |
michael@0 | 6389 | |
michael@0 | 6390 | $as_echo "#define BEOS 1" >>confdefs.h |
michael@0 | 6391 | |
michael@0 | 6392 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
michael@0 | 6393 | |
michael@0 | 6394 | DSO_LDOPTS=-nostart |
michael@0 | 6395 | MDCPUCFG_H=_beos.cfg |
michael@0 | 6396 | USE_BTHREADS=1 |
michael@0 | 6397 | PR_MD_ARCH_DIR=beos |
michael@0 | 6398 | RESOLVE_LINK_SYMBOLS=1 |
michael@0 | 6399 | case "${target_cpu}" in |
michael@0 | 6400 | i*86) |
michael@0 | 6401 | _OPTIMIZE_FLAGS=-O2 |
michael@0 | 6402 | _DEBUG_FLAGS='-gdwarf-2 -O0' |
michael@0 | 6403 | MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@' |
michael@0 | 6404 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr in -lbind" >&5 |
michael@0 | 6405 | $as_echo_n "checking for gethostbyaddr in -lbind... " >&6; } |
michael@0 | 6406 | if ${ac_cv_lib_bind_gethostbyaddr+:} false; then : |
michael@0 | 6407 | $as_echo_n "(cached) " >&6 |
michael@0 | 6408 | else |
michael@0 | 6409 | ac_check_lib_save_LIBS=$LIBS |
michael@0 | 6410 | LIBS="-lbind $LIBS" |
michael@0 | 6411 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6412 | /* end confdefs.h. */ |
michael@0 | 6413 | |
michael@0 | 6414 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 6415 | Use char because int might match the return type of a GCC |
michael@0 | 6416 | builtin and then its argument prototype would still apply. */ |
michael@0 | 6417 | #ifdef __cplusplus |
michael@0 | 6418 | extern "C" |
michael@0 | 6419 | #endif |
michael@0 | 6420 | char gethostbyaddr (); |
michael@0 | 6421 | int |
michael@0 | 6422 | main () |
michael@0 | 6423 | { |
michael@0 | 6424 | return gethostbyaddr (); |
michael@0 | 6425 | ; |
michael@0 | 6426 | return 0; |
michael@0 | 6427 | } |
michael@0 | 6428 | _ACEOF |
michael@0 | 6429 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6430 | ac_cv_lib_bind_gethostbyaddr=yes |
michael@0 | 6431 | else |
michael@0 | 6432 | ac_cv_lib_bind_gethostbyaddr=no |
michael@0 | 6433 | fi |
michael@0 | 6434 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6435 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6436 | LIBS=$ac_check_lib_save_LIBS |
michael@0 | 6437 | fi |
michael@0 | 6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_gethostbyaddr" >&5 |
michael@0 | 6439 | $as_echo "$ac_cv_lib_bind_gethostbyaddr" >&6; } |
michael@0 | 6440 | if test "x$ac_cv_lib_bind_gethostbyaddr" = xyes; then : |
michael@0 | 6441 | OS_LIBS="$OS_LIBS -lbind -lsocket" |
michael@0 | 6442 | fi |
michael@0 | 6443 | |
michael@0 | 6444 | ;; |
michael@0 | 6445 | powerpc) |
michael@0 | 6446 | CC=mwcc |
michael@0 | 6447 | CCC=mwcc |
michael@0 | 6448 | LD=mwld |
michael@0 | 6449 | DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o' |
michael@0 | 6450 | _OPTIMIZE_FLAGS=-O2 |
michael@0 | 6451 | _DEBUG_FLAGS='-g -O0' |
michael@0 | 6452 | ;; |
michael@0 | 6453 | esac |
michael@0 | 6454 | ;; |
michael@0 | 6455 | |
michael@0 | 6456 | *-bsdi*) |
michael@0 | 6457 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 6458 | |
michael@0 | 6459 | $as_echo "#define BSDI 1" >>confdefs.h |
michael@0 | 6460 | |
michael@0 | 6461 | $as_echo "#define NEED_BSDREGEX 1" >>confdefs.h |
michael@0 | 6462 | |
michael@0 | 6463 | |
michael@0 | 6464 | CFLAGS="$CFLAGS -Wall -Wno-format" |
michael@0 | 6465 | CXXFLAGS="$CXXFLAGS -Wall -Wno-format" |
michael@0 | 6466 | |
michael@0 | 6467 | if echo "$OS_TEST" | grep -c 86 >/dev/null; then |
michael@0 | 6468 | CPU_ARCH=x86 |
michael@0 | 6469 | elif echo "$OS_TEST" | grep -c sparc >/dev/null; then |
michael@0 | 6470 | CPU_ARCH=sparc |
michael@0 | 6471 | fi |
michael@0 | 6472 | |
michael@0 | 6473 | MDCPUCFG_H=_bsdi.cfg |
michael@0 | 6474 | PR_MD_CSRCS=bsdi.c |
michael@0 | 6475 | |
michael@0 | 6476 | DSO_LDOPTS=-r |
michael@0 | 6477 | |
michael@0 | 6478 | case "$target_os" in |
michael@0 | 6479 | bsdi1.1*) |
michael@0 | 6480 | $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h |
michael@0 | 6481 | |
michael@0 | 6482 | $as_echo "#define _PR_STAT_HAS_ONLY_ST_ATIME 1" >>confdefs.h |
michael@0 | 6483 | |
michael@0 | 6484 | $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
michael@0 | 6485 | |
michael@0 | 6486 | MKSHLIB= |
michael@0 | 6487 | DSO_CFLAGS= |
michael@0 | 6488 | DSO_LDOPTS= |
michael@0 | 6489 | ;; |
michael@0 | 6490 | |
michael@0 | 6491 | bsdi2.1*) |
michael@0 | 6492 | $as_echo "#define _PR_TIMESPEC_HAS_TS_SEC 1" >>confdefs.h |
michael@0 | 6493 | |
michael@0 | 6494 | $as_echo "#define _PR_BSDI_JMPBUF_IS_ARRAY 1" >>confdefs.h |
michael@0 | 6495 | |
michael@0 | 6496 | $as_echo "#define HAVE_DLL 1" >>confdefs.h |
michael@0 | 6497 | |
michael@0 | 6498 | $as_echo "#define USE_DLFCN 1" >>confdefs.h |
michael@0 | 6499 | |
michael@0 | 6500 | $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h |
michael@0 | 6501 | |
michael@0 | 6502 | PR_MD_ASFILES=os_BSD_OS_386_2.s |
michael@0 | 6503 | ;; |
michael@0 | 6504 | |
michael@0 | 6505 | bsdi4.* | bsdi5.*) |
michael@0 | 6506 | $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h |
michael@0 | 6507 | |
michael@0 | 6508 | $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h |
michael@0 | 6509 | |
michael@0 | 6510 | $as_echo "#define HAVE_DLL 1" >>confdefs.h |
michael@0 | 6511 | |
michael@0 | 6512 | $as_echo "#define USE_DLFCN 1" >>confdefs.h |
michael@0 | 6513 | |
michael@0 | 6514 | $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h |
michael@0 | 6515 | |
michael@0 | 6516 | MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' |
michael@0 | 6517 | DSO_CFLAGS=-fPIC |
michael@0 | 6518 | DSO_LDOPTS='-shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so)' |
michael@0 | 6519 | STRIP="$STRIP -d" |
michael@0 | 6520 | case "$target_os" in |
michael@0 | 6521 | bsdi4.2* | bsdi4.3* | bsdi5.*) |
michael@0 | 6522 | $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h |
michael@0 | 6523 | |
michael@0 | 6524 | $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h |
michael@0 | 6525 | |
michael@0 | 6526 | ;; |
michael@0 | 6527 | esac |
michael@0 | 6528 | ;; |
michael@0 | 6529 | *) |
michael@0 | 6530 | $as_echo "#define _PR_SELECT_CONST_TIMEVAL 1" >>confdefs.h |
michael@0 | 6531 | |
michael@0 | 6532 | $as_echo "#define _PR_BSDI_JMPBUF_IS_STRUCT 1" >>confdefs.h |
michael@0 | 6533 | |
michael@0 | 6534 | $as_echo "#define HAVE_DLL 1" >>confdefs.h |
michael@0 | 6535 | |
michael@0 | 6536 | $as_echo "#define USE_DLFCN 1" >>confdefs.h |
michael@0 | 6537 | |
michael@0 | 6538 | $as_echo "#define _PR_STAT_HAS_ST_ATIMESPEC 1" >>confdefs.h |
michael@0 | 6539 | |
michael@0 | 6540 | ;; |
michael@0 | 6541 | esac |
michael@0 | 6542 | |
michael@0 | 6543 | ;; |
michael@0 | 6544 | |
michael@0 | 6545 | *-darwin*) |
michael@0 | 6546 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 6547 | |
michael@0 | 6548 | $as_echo "#define DARWIN 1" >>confdefs.h |
michael@0 | 6549 | |
michael@0 | 6550 | $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h |
michael@0 | 6551 | |
michael@0 | 6552 | $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
michael@0 | 6553 | |
michael@0 | 6554 | AS='$(CC) -x assembler-with-cpp' |
michael@0 | 6555 | CFLAGS="$CFLAGS -Wall -fno-common" |
michael@0 | 6556 | case "${target_cpu}" in |
michael@0 | 6557 | arm*) |
michael@0 | 6558 | CPU_ARCH=arm |
michael@0 | 6559 | ;; |
michael@0 | 6560 | i*86*|x86_64) |
michael@0 | 6561 | if test -n "$USE_64"; then |
michael@0 | 6562 | CPU_ARCH=x86_64 |
michael@0 | 6563 | else |
michael@0 | 6564 | CPU_ARCH=i386 |
michael@0 | 6565 | fi |
michael@0 | 6566 | ;; |
michael@0 | 6567 | *) |
michael@0 | 6568 | CPU_ARCH=ppc |
michael@0 | 6569 | ;; |
michael@0 | 6570 | esac |
michael@0 | 6571 | if test "`echo $CC | grep -c '\-arch '`" = "0"; then |
michael@0 | 6572 | CC="$CC -arch $CPU_ARCH" |
michael@0 | 6573 | fi |
michael@0 | 6574 | ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default" |
michael@0 | 6575 | if test "x$ac_cv_header_crt_externs_h" = xyes; then : |
michael@0 | 6576 | |
michael@0 | 6577 | fi |
michael@0 | 6578 | |
michael@0 | 6579 | |
michael@0 | 6580 | DSO_CFLAGS=-fPIC |
michael@0 | 6581 | DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@ -headerpad_max_install_names' |
michael@0 | 6582 | _OPTIMIZE_FLAGS=-O2 |
michael@0 | 6583 | MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
michael@0 | 6584 | STRIP="$STRIP -x -S" |
michael@0 | 6585 | DLL_SUFFIX=dylib |
michael@0 | 6586 | USE_PTHREADS=1 |
michael@0 | 6587 | MDCPUCFG_H=_darwin.cfg |
michael@0 | 6588 | PR_MD_CSRCS=darwin.c |
michael@0 | 6589 | PR_MD_ASFILES=os_Darwin.s |
michael@0 | 6590 | |
michael@0 | 6591 | # Add Mac OS X support for loading CFM & CFBundle plugins |
michael@0 | 6592 | if test -f "${MACOS_SDK_DIR}/System/Library/Frameworks/Carbon.framework/Carbon"; then |
michael@0 | 6593 | $as_echo "#define XP_MACOSX 1" >>confdefs.h |
michael@0 | 6594 | |
michael@0 | 6595 | OS_TARGET=MacOSX |
michael@0 | 6596 | |
michael@0 | 6597 | if test -n "$_MACOSX_DEPLOYMENT_TARGET" ; then |
michael@0 | 6598 | export MACOSX_DEPLOYMENT_TARGET=$_MACOSX_DEPLOYMENT_TARGET |
michael@0 | 6599 | elif test -z "$MACOSX_DEPLOYMENT_TARGET" ; then |
michael@0 | 6600 | case "${target_cpu}" in |
michael@0 | 6601 | powerpc*) |
michael@0 | 6602 | export MACOSX_DEPLOYMENT_TARGET=10.2 |
michael@0 | 6603 | ;; |
michael@0 | 6604 | i*86*) |
michael@0 | 6605 | export MACOSX_DEPLOYMENT_TARGET=10.4 |
michael@0 | 6606 | ;; |
michael@0 | 6607 | esac |
michael@0 | 6608 | fi |
michael@0 | 6609 | |
michael@0 | 6610 | |
michael@0 | 6611 | if test "$MACOS_SDK_DIR"; then |
michael@0 | 6612 | |
michael@0 | 6613 | if test ! -d "$MACOS_SDK_DIR"; then |
michael@0 | 6614 | as_fn_error $? "SDK not found. When using --with-macos-sdk, you must |
michael@0 | 6615 | specify a valid SDK. SDKs are installed when the optional cross-development |
michael@0 | 6616 | tools are selected during the Xcode/Developer Tools installation." "$LINENO" 5 |
michael@0 | 6617 | fi |
michael@0 | 6618 | |
michael@0 | 6619 | |
michael@0 | 6620 | CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'` |
michael@0 | 6621 | GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'` |
michael@0 | 6622 | GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'` |
michael@0 | 6623 | |
michael@0 | 6624 | GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'` |
michael@0 | 6625 | if test "$GCC_VERSION_MAJOR" -lt "4" ; then |
michael@0 | 6626 | SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System/Library/Frameworks" |
michael@0 | 6627 | if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then |
michael@0 | 6628 | SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks" |
michael@0 | 6629 | fi |
michael@0 | 6630 | |
michael@0 | 6631 | SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}" |
michael@0 | 6632 | |
michael@0 | 6633 | CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}" |
michael@0 | 6634 | |
michael@0 | 6635 | CPP="$CPP -nostdinc ${SDK_C_INCLUDE}" |
michael@0 | 6636 | |
michael@0 | 6637 | |
michael@0 | 6638 | HOST_DARWIN_MAJOR=`echo "$build_os" | sed -E -e 's/^darwin([0-9]+).*$/\1/'` |
michael@0 | 6639 | |
michael@0 | 6640 | if test "$HOST_DARWIN_MAJOR" -lt 9 ; then |
michael@0 | 6641 | MACOS_SDK_LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib ${SDK_C_FRAMEWORK}" |
michael@0 | 6642 | else |
michael@0 | 6643 | MACOS_SDK_LIBS="-Wl,-syslibroot,${MACOS_SDK_DIR}" |
michael@0 | 6644 | fi |
michael@0 | 6645 | |
michael@0 | 6646 | LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS" |
michael@0 | 6647 | export NEXT_ROOT=$MACOS_SDK_DIR |
michael@0 | 6648 | |
michael@0 | 6649 | if test -n "$CROSS_COMPILE" ; then |
michael@0 | 6650 | HOST_CC="NEXT_ROOT= $HOST_CC" |
michael@0 | 6651 | HOST_CXX="NEXT_ROOT= $HOST_CXX" |
michael@0 | 6652 | fi |
michael@0 | 6653 | else |
michael@0 | 6654 | CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}" |
michael@0 | 6655 | |
michael@0 | 6656 | CPP="$CPP -isysroot ${MACOS_SDK_DIR}" |
michael@0 | 6657 | |
michael@0 | 6658 | if test "$GCC_VERSION_FULL" != "4.0.0" ; then |
michael@0 | 6659 | LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}" |
michael@0 | 6660 | else |
michael@0 | 6661 | LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}" |
michael@0 | 6662 | fi |
michael@0 | 6663 | fi |
michael@0 | 6664 | fi |
michael@0 | 6665 | fi |
michael@0 | 6666 | ;; |
michael@0 | 6667 | |
michael@0 | 6668 | *-dgux*) |
michael@0 | 6669 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 6670 | |
michael@0 | 6671 | $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
michael@0 | 6672 | |
michael@0 | 6673 | $as_echo "#define SVR4 1" >>confdefs.h |
michael@0 | 6674 | |
michael@0 | 6675 | $as_echo "#define SYSV 1" >>confdefs.h |
michael@0 | 6676 | |
michael@0 | 6677 | $as_echo "#define DGUX 1" >>confdefs.h |
michael@0 | 6678 | |
michael@0 | 6679 | $as_echo "#define _DGUX_SOURCE 1" >>confdefs.h |
michael@0 | 6680 | |
michael@0 | 6681 | $as_echo "#define _POSIX4A_DRAFT6_SOURCE 1" >>confdefs.h |
michael@0 | 6682 | |
michael@0 | 6683 | DSO_LDOPTS=-G |
michael@0 | 6684 | _OPTIMIZE_FLAGS=-O2 |
michael@0 | 6685 | _DEBUG_FLAGS= |
michael@0 | 6686 | MDCPUCFG_H=_dgux.cfg |
michael@0 | 6687 | PR_MD_CSRCS=dgux.c |
michael@0 | 6688 | ;; |
michael@0 | 6689 | |
michael@0 | 6690 | *-freebsd*) |
michael@0 | 6691 | if test -z "$USE_NSPR_THREADS"; then |
michael@0 | 6692 | USE_PTHREADS=1 |
michael@0 | 6693 | fi |
michael@0 | 6694 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 6695 | |
michael@0 | 6696 | $as_echo "#define FREEBSD 1" >>confdefs.h |
michael@0 | 6697 | |
michael@0 | 6698 | $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h |
michael@0 | 6699 | |
michael@0 | 6700 | $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
michael@0 | 6701 | |
michael@0 | 6702 | CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall" |
michael@0 | 6703 | MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` |
michael@0 | 6704 | if test "$MOZ_OBJFORMAT" = "elf"; then |
michael@0 | 6705 | DLL_SUFFIX=so |
michael@0 | 6706 | else |
michael@0 | 6707 | DLL_SUFFIX=so.1.0 |
michael@0 | 6708 | fi |
michael@0 | 6709 | MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
michael@0 | 6710 | DSO_CFLAGS=-fPIC |
michael@0 | 6711 | DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' |
michael@0 | 6712 | MDCPUCFG_H=_freebsd.cfg |
michael@0 | 6713 | PR_MD_CSRCS=freebsd.c |
michael@0 | 6714 | ;; |
michael@0 | 6715 | |
michael@0 | 6716 | *-hpux*) |
michael@0 | 6717 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 6718 | |
michael@0 | 6719 | $as_echo "#define HPUX 1" >>confdefs.h |
michael@0 | 6720 | |
michael@0 | 6721 | $as_echo "#define _HPUX_SOURCE 1" >>confdefs.h |
michael@0 | 6722 | |
michael@0 | 6723 | # OSF1 and HPUX report the POLLHUP event for a socket when the |
michael@0 | 6724 | # shutdown(SHUT_WR) operation is called for the remote end, even though |
michael@0 | 6725 | # the socket is still writeable. Use select(), instead of poll(), to |
michael@0 | 6726 | # workaround this problem. |
michael@0 | 6727 | $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h |
michael@0 | 6728 | |
michael@0 | 6729 | $as_echo "#define _USE_BIG_FDS 1" >>confdefs.h |
michael@0 | 6730 | |
michael@0 | 6731 | DSO_LDOPTS='-b +h $(notdir $@)' |
michael@0 | 6732 | PR_MD_CSRCS=hpux.c |
michael@0 | 6733 | if test "$OS_TEST" = "ia64"; then |
michael@0 | 6734 | DLL_SUFFIX=so |
michael@0 | 6735 | DSO_LDOPTS="$DSO_LDOPTS +b '\$\$ORIGIN'" |
michael@0 | 6736 | CPU_ARCH_TAG=_$OS_TEST |
michael@0 | 6737 | if test -z "$USE_64"; then |
michael@0 | 6738 | COMPILER_TAG=_32 |
michael@0 | 6739 | fi |
michael@0 | 6740 | PR_MD_ASFILES=os_HPUX_ia64.s |
michael@0 | 6741 | else |
michael@0 | 6742 | $as_echo "#define hppa 1" >>confdefs.h |
michael@0 | 6743 | |
michael@0 | 6744 | DLL_SUFFIX=sl |
michael@0 | 6745 | PR_MD_ASFILES=os_HPUX.s |
michael@0 | 6746 | fi |
michael@0 | 6747 | if test -n "$USE_64"; then |
michael@0 | 6748 | MDCPUCFG_H=_hpux64.cfg |
michael@0 | 6749 | else |
michael@0 | 6750 | MDCPUCFG_H=_hpux32.cfg |
michael@0 | 6751 | fi |
michael@0 | 6752 | if test -z "$GNU_CC"; then |
michael@0 | 6753 | CC="$CC -Ae" |
michael@0 | 6754 | CXX="$CXX -ext" |
michael@0 | 6755 | DSO_CFLAGS=+Z |
michael@0 | 6756 | else |
michael@0 | 6757 | DSO_CFLAGS=-fPIC |
michael@0 | 6758 | ASFLAGS="$ASFLAGS -x assembler-with-cpp" |
michael@0 | 6759 | fi |
michael@0 | 6760 | |
michael@0 | 6761 | if test -n "$MOZILLA_CLIENT"; then |
michael@0 | 6762 | DEFAULT_IMPL_STRATEGY=_EMU |
michael@0 | 6763 | fi |
michael@0 | 6764 | |
michael@0 | 6765 | if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then |
michael@0 | 6766 | $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
michael@0 | 6767 | |
michael@0 | 6768 | $as_echo "#define HPUX9 1" >>confdefs.h |
michael@0 | 6769 | |
michael@0 | 6770 | DEFAULT_IMPL_STRATEGY=_EMU |
michael@0 | 6771 | USE_NSPR_THREADS=1 |
michael@0 | 6772 | fi |
michael@0 | 6773 | |
michael@0 | 6774 | if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then |
michael@0 | 6775 | $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
michael@0 | 6776 | |
michael@0 | 6777 | fi |
michael@0 | 6778 | |
michael@0 | 6779 | if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then |
michael@0 | 6780 | $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
michael@0 | 6781 | |
michael@0 | 6782 | fi |
michael@0 | 6783 | |
michael@0 | 6784 | if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then |
michael@0 | 6785 | $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h |
michael@0 | 6786 | |
michael@0 | 6787 | fi |
michael@0 | 6788 | |
michael@0 | 6789 | if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11)' >/dev/null; then |
michael@0 | 6790 | $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
michael@0 | 6791 | |
michael@0 | 6792 | fi |
michael@0 | 6793 | |
michael@0 | 6794 | # HP-UX 11i v2 (B.11.23) or higher |
michael@0 | 6795 | |
michael@0 | 6796 | case "$OS_RELEASE" in |
michael@0 | 6797 | [C-Z]*|B.[2-9]*|B.1[2-9]*|B.11.[3-9]*|B.11.2[3-9]*) |
michael@0 | 6798 | USE_IPV6=1 |
michael@0 | 6799 | ;; |
michael@0 | 6800 | esac |
michael@0 | 6801 | |
michael@0 | 6802 | |
michael@0 | 6803 | if test "$OS_RELEASE" = "B.10.01"; then |
michael@0 | 6804 | $as_echo "#define HPUX10 1" >>confdefs.h |
michael@0 | 6805 | |
michael@0 | 6806 | DEFAULT_IMPL_STRATEGY=_EMU |
michael@0 | 6807 | fi |
michael@0 | 6808 | |
michael@0 | 6809 | if test "$OS_RELEASE" = "B.10.10"; then |
michael@0 | 6810 | $as_echo "#define HPUX10 1" >>confdefs.h |
michael@0 | 6811 | |
michael@0 | 6812 | $as_echo "#define HPUX10_10 1" >>confdefs.h |
michael@0 | 6813 | |
michael@0 | 6814 | DEFAULT_IMPL_STRATEGY=_PTH |
michael@0 | 6815 | fi |
michael@0 | 6816 | |
michael@0 | 6817 | if test "$OS_RELEASE" = "B.10.20"; then |
michael@0 | 6818 | $as_echo "#define HPUX10 1" >>confdefs.h |
michael@0 | 6819 | |
michael@0 | 6820 | $as_echo "#define HPUX10_20 1" >>confdefs.h |
michael@0 | 6821 | |
michael@0 | 6822 | if test -z "$GNU_CC"; then |
michael@0 | 6823 | CFLAGS="$CFLAGS +DAportable +DS1.1" |
michael@0 | 6824 | CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" |
michael@0 | 6825 | fi |
michael@0 | 6826 | DEFAULT_IMPL_STRATEGY=_PTH |
michael@0 | 6827 | fi |
michael@0 | 6828 | |
michael@0 | 6829 | if test "$OS_RELEASE" = "B.10.30"; then |
michael@0 | 6830 | $as_echo "#define HPUX10 1" >>confdefs.h |
michael@0 | 6831 | |
michael@0 | 6832 | $as_echo "#define HPUX10_30 1" >>confdefs.h |
michael@0 | 6833 | |
michael@0 | 6834 | if test -z "$GNU_CC"; then |
michael@0 | 6835 | CFLAGS="$CFLAGS +DAportable +DS1.1" |
michael@0 | 6836 | CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" |
michael@0 | 6837 | fi |
michael@0 | 6838 | DEFAULT_IMPL_STRATEGY=_PTH |
michael@0 | 6839 | fi |
michael@0 | 6840 | |
michael@0 | 6841 | if echo "$OS_RELEASE" | grep ^B.11 >/dev/null; then |
michael@0 | 6842 | $as_echo "#define HPUX10 1" >>confdefs.h |
michael@0 | 6843 | |
michael@0 | 6844 | $as_echo "#define HPUX11 1" >>confdefs.h |
michael@0 | 6845 | |
michael@0 | 6846 | $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h |
michael@0 | 6847 | |
michael@0 | 6848 | $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
michael@0 | 6849 | |
michael@0 | 6850 | $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
michael@0 | 6851 | |
michael@0 | 6852 | if test -z "$GNU_CC"; then |
michael@0 | 6853 | if test -z "$USE_64"; then |
michael@0 | 6854 | if test "$OS_TEST" = "ia64"; then |
michael@0 | 6855 | CFLAGS="$CFLAGS +DD32" |
michael@0 | 6856 | CXXFLAGS="$CXXFLAGS +DD32" |
michael@0 | 6857 | else |
michael@0 | 6858 | CFLAGS="$CFLAGS +DAportable +DS2.0" |
michael@0 | 6859 | CXXFLAGS="$CXXFLAGS +DAportable +DS2.0" |
michael@0 | 6860 | fi |
michael@0 | 6861 | else |
michael@0 | 6862 | if test "$OS_TEST" = "ia64"; then |
michael@0 | 6863 | CFLAGS="$CFLAGS +DD64" |
michael@0 | 6864 | CXXFLAGS="$CXXFLAGS +DD64" |
michael@0 | 6865 | else |
michael@0 | 6866 | CFLAGS="$CFLAGS +DA2.0W +DS2.0" |
michael@0 | 6867 | CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0" |
michael@0 | 6868 | fi |
michael@0 | 6869 | fi |
michael@0 | 6870 | fi |
michael@0 | 6871 | DEFAULT_IMPL_STRATEGY=_PTH |
michael@0 | 6872 | fi |
michael@0 | 6873 | |
michael@0 | 6874 | if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then |
michael@0 | 6875 | USE_NSPR_THREADS=1 |
michael@0 | 6876 | USE_PTHREADS= |
michael@0 | 6877 | USE_USER_PTHREADS= |
michael@0 | 6878 | elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then |
michael@0 | 6879 | USE_PTHREADS=1 |
michael@0 | 6880 | if test "$USE_NSPR_THREADS"; then |
michael@0 | 6881 | USE_PTHREADS= |
michael@0 | 6882 | fi |
michael@0 | 6883 | if test "$USE_USER_PTHREADS"; then |
michael@0 | 6884 | USE_PTHREADS= |
michael@0 | 6885 | fi |
michael@0 | 6886 | fi |
michael@0 | 6887 | ;; |
michael@0 | 6888 | |
michael@0 | 6889 | *-irix*) |
michael@0 | 6890 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 6891 | |
michael@0 | 6892 | $as_echo "#define IRIX 1" >>confdefs.h |
michael@0 | 6893 | |
michael@0 | 6894 | $as_echo "#define SVR4 1" >>confdefs.h |
michael@0 | 6895 | |
michael@0 | 6896 | $as_echo "#define _SGI_MP_SOURCE 1" >>confdefs.h |
michael@0 | 6897 | |
michael@0 | 6898 | $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
michael@0 | 6899 | |
michael@0 | 6900 | PR_MD_CSRCS=irix.c |
michael@0 | 6901 | PR_MD_ASFILES=os_Irix.s |
michael@0 | 6902 | MKSHLIB='$(LD) $(DSO_LDOPTS) -rdata_shared -shared -soname $(notdir $@) -o $@' |
michael@0 | 6903 | STRIP="$STRIP -f" |
michael@0 | 6904 | RESOLVE_LINK_SYMBOLS=1 |
michael@0 | 6905 | if test -n "$USE_64"; then |
michael@0 | 6906 | MDCPUCFG_H=_irix64.cfg |
michael@0 | 6907 | else |
michael@0 | 6908 | MDCPUCFG_H=_irix32.cfg |
michael@0 | 6909 | fi |
michael@0 | 6910 | case "${target_os}" in |
michael@0 | 6911 | irix6*) |
michael@0 | 6912 | $as_echo "#define IRIX6 1" >>confdefs.h |
michael@0 | 6913 | |
michael@0 | 6914 | USE_PTHREADS=1 |
michael@0 | 6915 | USE_N32=1 |
michael@0 | 6916 | COMPILER_TAG=_n32 |
michael@0 | 6917 | IMPL_STRATEGY=_PTH |
michael@0 | 6918 | ;; |
michael@0 | 6919 | irix5*) |
michael@0 | 6920 | $as_echo "#define IRIX5 1" >>confdefs.h |
michael@0 | 6921 | |
michael@0 | 6922 | USE_NSPR_THREADS=1 |
michael@0 | 6923 | ;; |
michael@0 | 6924 | *) |
michael@0 | 6925 | USE_PTHREADS=1 |
michael@0 | 6926 | USE_N32=1 |
michael@0 | 6927 | ;; |
michael@0 | 6928 | esac |
michael@0 | 6929 | if test "$GNU_CC"; then |
michael@0 | 6930 | AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)' |
michael@0 | 6931 | CFLAGS="$CFLAGS -Wall -Wno-format" |
michael@0 | 6932 | _OPTIMIZE_FLAGS="-O6" |
michael@0 | 6933 | else |
michael@0 | 6934 | if test -n "$USE_N32"; then |
michael@0 | 6935 | AS='as -D_ASM $(INCLUDES) -n32' |
michael@0 | 6936 | else |
michael@0 | 6937 | AS='as -D_ASM $(INCLUDES)' |
michael@0 | 6938 | fi |
michael@0 | 6939 | CFLAGS="$CFLAGS -fullwarn -xansi" |
michael@0 | 6940 | if test "$USE_N32"; then |
michael@0 | 6941 | _OPTIMIZE_FLAGS="-O -OPT:Olimit=4000" |
michael@0 | 6942 | else |
michael@0 | 6943 | _OPTIMIZE_FLAGS="-O -Olimit 4000" |
michael@0 | 6944 | fi |
michael@0 | 6945 | if test "$USE_MDUPDATE"; then |
michael@0 | 6946 | CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" |
michael@0 | 6947 | fi |
michael@0 | 6948 | case "${target}" in |
michael@0 | 6949 | *-irix6.*) |
michael@0 | 6950 | CFLAGS="$CFLAGS -multigot" |
michael@0 | 6951 | DSO_LDOPTS="-no_unresolved" |
michael@0 | 6952 | if test "$USE_N32"; then |
michael@0 | 6953 | CFLAGS="$CFLAGS -n32 -woff 1209" |
michael@0 | 6954 | DSO_LDOPTS="$DSO_LDOPTS -n32" |
michael@0 | 6955 | else |
michael@0 | 6956 | if test "$USE_64"; then |
michael@0 | 6957 | CFLAGS="$CFLAGS -64" |
michael@0 | 6958 | else |
michael@0 | 6959 | CFLAGS="$CFLAGS -32" |
michael@0 | 6960 | fi |
michael@0 | 6961 | fi |
michael@0 | 6962 | ;; |
michael@0 | 6963 | *) |
michael@0 | 6964 | CFLAGS="$CFLAGS -xgot" |
michael@0 | 6965 | ;; |
michael@0 | 6966 | esac |
michael@0 | 6967 | fi |
michael@0 | 6968 | if test "${target_os}" = "irix5.3"; then |
michael@0 | 6969 | $as_echo "#define IRIX5_3 1" >>confdefs.h |
michael@0 | 6970 | |
michael@0 | 6971 | fi |
michael@0 | 6972 | case "${target_os}" in |
michael@0 | 6973 | irix6.5) |
michael@0 | 6974 | if test -z "$GNU_CC"; then |
michael@0 | 6975 | CFLAGS="$CFLAGS -mips3" |
michael@0 | 6976 | fi |
michael@0 | 6977 | $as_echo "#define _PR_HAVE_GETPROTO_R 1" >>confdefs.h |
michael@0 | 6978 | |
michael@0 | 6979 | $as_echo "#define _PR_HAVE_GETPROTO_R_POINTER 1" >>confdefs.h |
michael@0 | 6980 | |
michael@0 | 6981 | $as_echo "#define _PR_HAVE_SGI_PRDA_PROCMASK 1" >>confdefs.h |
michael@0 | 6982 | |
michael@0 | 6983 | ;; |
michael@0 | 6984 | irix5*) |
michael@0 | 6985 | ;; |
michael@0 | 6986 | *) |
michael@0 | 6987 | $as_echo "#define _PR_HAVE_SGI_PRDA_PROCMASK 1" >>confdefs.h |
michael@0 | 6988 | |
michael@0 | 6989 | ;; |
michael@0 | 6990 | esac |
michael@0 | 6991 | ;; |
michael@0 | 6992 | |
michael@0 | 6993 | *-linux*|*-gnu*|*-k*bsd*-gnu|*-android*|*-linuxandroid*) |
michael@0 | 6994 | if test -z "$USE_NSPR_THREADS"; then |
michael@0 | 6995 | USE_PTHREADS=1 |
michael@0 | 6996 | IMPL_STRATEGY=_PTH |
michael@0 | 6997 | fi |
michael@0 | 6998 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 6999 | |
michael@0 | 7000 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
michael@0 | 7001 | |
michael@0 | 7002 | $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
michael@0 | 7003 | |
michael@0 | 7004 | case "${target}" in |
michael@0 | 7005 | *-android*|*-linuxandroid*) |
michael@0 | 7006 | OS_TARGET=Android |
michael@0 | 7007 | $as_echo "#define LINUX 1" >>confdefs.h |
michael@0 | 7008 | |
michael@0 | 7009 | ;; |
michael@0 | 7010 | *-linux*) |
michael@0 | 7011 | $as_echo "#define LINUX 1" >>confdefs.h |
michael@0 | 7012 | |
michael@0 | 7013 | ;; |
michael@0 | 7014 | esac |
michael@0 | 7015 | CFLAGS="$CFLAGS -Wall" |
michael@0 | 7016 | CXXFLAGS="$CXXFLAGS -Wall" |
michael@0 | 7017 | MDCPUCFG_H=_linux.cfg |
michael@0 | 7018 | PR_MD_CSRCS=linux.c |
michael@0 | 7019 | MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
michael@0 | 7020 | DSO_CFLAGS=-fPIC |
michael@0 | 7021 | DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' |
michael@0 | 7022 | _OPTIMIZE_FLAGS=-O2 |
michael@0 | 7023 | _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that |
michael@0 | 7024 | # combo is not yet good at debugging inlined |
michael@0 | 7025 | # functions (even when using DWARF2 as the |
michael@0 | 7026 | # debugging format) |
michael@0 | 7027 | COMPILER_TAG=_glibc |
michael@0 | 7028 | if echo "$OS_TEST" | grep -c 86 >/dev/null; then |
michael@0 | 7029 | CPU_ARCH=x86 |
michael@0 | 7030 | else |
michael@0 | 7031 | CPU_ARCH=$OS_TEST |
michael@0 | 7032 | fi |
michael@0 | 7033 | CPU_ARCH_TAG=_${CPU_ARCH} |
michael@0 | 7034 | case "${target_cpu}" in |
michael@0 | 7035 | alpha) |
michael@0 | 7036 | $as_echo "#define _ALPHA_ 1" >>confdefs.h |
michael@0 | 7037 | |
michael@0 | 7038 | $as_echo "#define __alpha 1" >>confdefs.h |
michael@0 | 7039 | |
michael@0 | 7040 | CFLAGS="$CFLAGS -mieee" |
michael@0 | 7041 | CXXFLAGS="$CXXFLAGS -mieee" |
michael@0 | 7042 | ;; |
michael@0 | 7043 | i*86) |
michael@0 | 7044 | $as_echo "#define i386 1" >>confdefs.h |
michael@0 | 7045 | |
michael@0 | 7046 | PR_MD_ASFILES=os_Linux_x86.s |
michael@0 | 7047 | ;; |
michael@0 | 7048 | ia64) |
michael@0 | 7049 | PR_MD_ASFILES=os_Linux_ia64.s |
michael@0 | 7050 | ;; |
michael@0 | 7051 | x86_64) |
michael@0 | 7052 | if test -n "$USE_64"; then |
michael@0 | 7053 | PR_MD_ASFILES=os_Linux_x86_64.s |
michael@0 | 7054 | elif test -n "$USE_X32"; then |
michael@0 | 7055 | PR_MD_ASFILES=os_Linux_x86_64.s |
michael@0 | 7056 | CC="$CC -mx32" |
michael@0 | 7057 | CXX="$CXX -mx32" |
michael@0 | 7058 | else |
michael@0 | 7059 | $as_echo "#define i386 1" >>confdefs.h |
michael@0 | 7060 | |
michael@0 | 7061 | PR_MD_ASFILES=os_Linux_x86.s |
michael@0 | 7062 | CC="$CC -m32" |
michael@0 | 7063 | CXX="$CXX -m32" |
michael@0 | 7064 | fi |
michael@0 | 7065 | ;; |
michael@0 | 7066 | ppc|powerpc) |
michael@0 | 7067 | PR_MD_ASFILES=os_Linux_ppc.s |
michael@0 | 7068 | ;; |
michael@0 | 7069 | powerpc64) |
michael@0 | 7070 | if test -n "$USE_64"; then |
michael@0 | 7071 | CC="$CC -m64" |
michael@0 | 7072 | CXX="$CXX -m64" |
michael@0 | 7073 | else |
michael@0 | 7074 | PR_MD_ASFILES=os_Linux_ppc.s |
michael@0 | 7075 | fi |
michael@0 | 7076 | ;; |
michael@0 | 7077 | m68k) |
michael@0 | 7078 | CFLAGS="$CFLAGS -m68020-60" |
michael@0 | 7079 | CXXFLAGS="$CXXFLAGS -m68020-60" |
michael@0 | 7080 | ;; |
michael@0 | 7081 | esac |
michael@0 | 7082 | ;; |
michael@0 | 7083 | |
michael@0 | 7084 | *-mingw*|*-msys*|*-cygwin*|*-mks*) |
michael@0 | 7085 | $as_echo "#define XP_PC 1" >>confdefs.h |
michael@0 | 7086 | |
michael@0 | 7087 | $as_echo "#define WIN32 1" >>confdefs.h |
michael@0 | 7088 | |
michael@0 | 7089 | PR_MD_ARCH_DIR=windows |
michael@0 | 7090 | RESOLVE_LINK_SYMBOLS=1 |
michael@0 | 7091 | |
michael@0 | 7092 | if test -n "$GNU_CC"; then |
michael@0 | 7093 | CC="$CC -mwindows" |
michael@0 | 7094 | CXX="$CXX -mwindows" |
michael@0 | 7095 | DLL_SUFFIX=dll |
michael@0 | 7096 | MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) $(DLLBASE) -o $(subst $(OBJDIR)/,,$(SHARED_LIBRARY))' |
michael@0 | 7097 | RC=$WINDRES |
michael@0 | 7098 | # Use temp file for windres (bug 213281) |
michael@0 | 7099 | RCFLAGS='-O coff --use-temp-file' |
michael@0 | 7100 | else |
michael@0 | 7101 | CC=cl |
michael@0 | 7102 | CXX=cl |
michael@0 | 7103 | LD=link |
michael@0 | 7104 | AR='lib -NOLOGO -OUT:"$@"' |
michael@0 | 7105 | AR_FLAGS= |
michael@0 | 7106 | RANLIB='echo not_ranlib' |
michael@0 | 7107 | STRIP='echo not_strip' |
michael@0 | 7108 | RC=rc.exe |
michael@0 | 7109 | GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb' |
michael@0 | 7110 | OBJ_SUFFIX=obj |
michael@0 | 7111 | LIB_SUFFIX=lib |
michael@0 | 7112 | DLL_SUFFIX=dll |
michael@0 | 7113 | |
michael@0 | 7114 | # Determine compiler version |
michael@0 | 7115 | |
michael@0 | 7116 | _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p' |
michael@0 | 7117 | |
michael@0 | 7118 | CC_VERSION=`"${CC}" -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"` |
michael@0 | 7119 | _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'` |
michael@0 | 7120 | _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'` |
michael@0 | 7121 | _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'` |
michael@0 | 7122 | _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'` |
michael@0 | 7123 | MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION} |
michael@0 | 7124 | |
michael@0 | 7125 | if test "$_CC_MAJOR_VERSION" -eq "14"; then |
michael@0 | 7126 | if test $_CC_RELEASE -gt 50727; then |
michael@0 | 7127 | _USE_DYNAMICBASE=1 |
michael@0 | 7128 | elif test $_CC_BUILD -ge 762; then |
michael@0 | 7129 | _USE_DYNAMICBASE=1 |
michael@0 | 7130 | fi |
michael@0 | 7131 | $as_echo "#define _CRT_SECURE_NO_DEPRECATE 1" >>confdefs.h |
michael@0 | 7132 | |
michael@0 | 7133 | $as_echo "#define _CRT_NONSTDC_NO_DEPRECATE 1" >>confdefs.h |
michael@0 | 7134 | |
michael@0 | 7135 | elif test $_CC_MAJOR_VERSION -ge 15; then |
michael@0 | 7136 | _USE_DYNAMICBASE=1 |
michael@0 | 7137 | $as_echo "#define _CRT_SECURE_NO_WARNINGS 1" >>confdefs.h |
michael@0 | 7138 | |
michael@0 | 7139 | $as_echo "#define _CRT_NONSTDC_NO_WARNINGS 1" >>confdefs.h |
michael@0 | 7140 | |
michael@0 | 7141 | fi |
michael@0 | 7142 | |
michael@0 | 7143 | if test -n "$_USE_DYNAMICBASE"; then |
michael@0 | 7144 | DLLFLAGS="$DLLFLAGS -DYNAMICBASE" |
michael@0 | 7145 | fi |
michael@0 | 7146 | |
michael@0 | 7147 | # Ensure that mt is Microsoft (R) Manifest Tool and not magnetic |
michael@0 | 7148 | # tape manipulation utility (or something else) |
michael@0 | 7149 | if test "$MSC_VER" -ge "1400"; then |
michael@0 | 7150 | |
michael@0 | 7151 | _MSMT_VER_FILTER='s|.* \([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*|\1|p' |
michael@0 | 7152 | |
michael@0 | 7153 | |
michael@0 | 7154 | MSMT_TOOL=`mt 2>&1|grep 'Microsoft (R) Manifest Tool'` |
michael@0 | 7155 | if test -n "$MSMT_TOOL"; then |
michael@0 | 7156 | MSMANIFEST_TOOL_VERSION=`echo ${MSMT_TOOL}|sed -ne "$_MSMT_VER_FILTER"` |
michael@0 | 7157 | if test -z "$MSMANIFEST_TOOL_VERSION"; then |
michael@0 | 7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&5 |
michael@0 | 7159 | $as_echo "$as_me: WARNING: Unknown version of the Microsoft (R) Manifest Tool." >&2;} |
michael@0 | 7160 | fi |
michael@0 | 7161 | MT=mt |
michael@0 | 7162 | unset MSMT_TOOL |
michael@0 | 7163 | else |
michael@0 | 7164 | as_fn_error $? "Microsoft (R) Manifest Tool must be in your \$PATH." "$LINENO" 5 |
michael@0 | 7165 | fi |
michael@0 | 7166 | fi |
michael@0 | 7167 | |
michael@0 | 7168 | CFLAGS="$CFLAGS -W3 -nologo -GF -Gy" |
michael@0 | 7169 | DLLFLAGS="$DLLFLAGS -OUT:\"\$@\"" |
michael@0 | 7170 | _DEBUG_FLAGS=-Zi |
michael@0 | 7171 | _OPTIMIZE_FLAGS=-O2 |
michael@0 | 7172 | |
michael@0 | 7173 | PROFILE_GEN_CFLAGS="-GL" |
michael@0 | 7174 | PROFILE_GEN_LDFLAGS="-LTCG:PGINSTRUMENT" |
michael@0 | 7175 | PROFILE_USE_CFLAGS="-GL -wd4624 -wd4952" |
michael@0 | 7176 | PROFILE_USE_LDFLAGS="-LTCG:PGUPDATE" |
michael@0 | 7177 | |
michael@0 | 7178 | if test "$MSC_VER" -ge "1800"; then |
michael@0 | 7179 | CFLAGS="$CFLAGS -FS" |
michael@0 | 7180 | PROFILE_GEN_CFLAGS="$PROFILE_GEN_CFLAGS -Gw" |
michael@0 | 7181 | PROFILE_USE_CFLAGS="$PROFILE_USE_CFLAGS -Gw" |
michael@0 | 7182 | fi |
michael@0 | 7183 | |
michael@0 | 7184 | if test -z "$MOZ_OPTIMIZE"; then |
michael@0 | 7185 | CFLAGS="$CFLAGS -Od" |
michael@0 | 7186 | fi |
michael@0 | 7187 | |
michael@0 | 7188 | if test "$USE_DEBUG_RTL" = 1; then |
michael@0 | 7189 | CFLAGS="$CFLAGS -MDd" |
michael@0 | 7190 | else |
michael@0 | 7191 | CFLAGS="$CFLAGS -MD" |
michael@0 | 7192 | fi |
michael@0 | 7193 | |
michael@0 | 7194 | if test -n "$MOZ_DEBUG"; then |
michael@0 | 7195 | $as_echo "#define _DEBUG 1" >>confdefs.h |
michael@0 | 7196 | |
michael@0 | 7197 | else |
michael@0 | 7198 | DEFINES="$DEFINES -U_DEBUG" |
michael@0 | 7199 | fi |
michael@0 | 7200 | |
michael@0 | 7201 | if test -n "$MOZ_DEBUG_SYMBOLS"; then |
michael@0 | 7202 | if test -n "$MOZ_OPTIMIZE"; then |
michael@0 | 7203 | DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF" |
michael@0 | 7204 | LDFLAGS="$LDFLAGS -DEBUG -OPT:REF" |
michael@0 | 7205 | else |
michael@0 | 7206 | DLLFLAGS="$DLLFLAGS -DEBUG" |
michael@0 | 7207 | LDFLAGS="$LDFLAGS -DEBUG" |
michael@0 | 7208 | fi |
michael@0 | 7209 | fi |
michael@0 | 7210 | |
michael@0 | 7211 | OS_DLLFLAGS="-nologo -DLL -SUBSYSTEM:WINDOWS" |
michael@0 | 7212 | if test "$MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then |
michael@0 | 7213 | OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE" |
michael@0 | 7214 | fi |
michael@0 | 7215 | |
michael@0 | 7216 | if test "$OS_TARGET" = "WINNT"; then |
michael@0 | 7217 | CFLAGS="$CFLAGS -GT" |
michael@0 | 7218 | LIBNSPR='$(dist_libdir)/libnspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' |
michael@0 | 7219 | LIBPLC='$(dist_libdir)/libplc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' |
michael@0 | 7220 | else |
michael@0 | 7221 | LIBNSPR='$(dist_libdir)/nspr$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' |
michael@0 | 7222 | LIBPLC='$(dist_libdir)/plc$(MOD_MAJOR_VERSION).$(LIB_SUFFIX)' |
michael@0 | 7223 | fi |
michael@0 | 7224 | fi # GNU_CC |
michael@0 | 7225 | |
michael@0 | 7226 | if test -n "$USE_STATIC_TLS"; then |
michael@0 | 7227 | $as_echo "#define _PR_USE_STATIC_TLS 1" >>confdefs.h |
michael@0 | 7228 | |
michael@0 | 7229 | fi |
michael@0 | 7230 | |
michael@0 | 7231 | if test "$OS_TARGET" = "WINNT"; then |
michael@0 | 7232 | $as_echo "#define WINNT 1" >>confdefs.h |
michael@0 | 7233 | |
michael@0 | 7234 | else |
michael@0 | 7235 | $as_echo "#define WIN95 1" >>confdefs.h |
michael@0 | 7236 | |
michael@0 | 7237 | # undefine WINNT as some versions of mingw gcc define it by default |
michael@0 | 7238 | DEFINES="$DEFINES -UWINNT" |
michael@0 | 7239 | $as_echo "#define _PR_GLOBAL_THREADS_ONLY 1" >>confdefs.h |
michael@0 | 7240 | |
michael@0 | 7241 | fi |
michael@0 | 7242 | |
michael@0 | 7243 | if test "$CPU_ARCH" = "x86"; then |
michael@0 | 7244 | CPU_ARCH_TAG= |
michael@0 | 7245 | else |
michael@0 | 7246 | CPU_ARCH_TAG=$CPU_ARCH |
michael@0 | 7247 | fi |
michael@0 | 7248 | |
michael@0 | 7249 | if test "$USE_DEBUG_RTL" = 1; then |
michael@0 | 7250 | OBJDIR_SUFFIX=OBJD |
michael@0 | 7251 | fi |
michael@0 | 7252 | |
michael@0 | 7253 | case "$OS_TARGET" in |
michael@0 | 7254 | WINNT) |
michael@0 | 7255 | MDCPUCFG_H=_winnt.cfg |
michael@0 | 7256 | ;; |
michael@0 | 7257 | WIN95) |
michael@0 | 7258 | MDCPUCFG_H=_win95.cfg |
michael@0 | 7259 | ;; |
michael@0 | 7260 | *) |
michael@0 | 7261 | as_fn_error $? "Missing OS_TARGET for ${target}. Use --enable-win32-target to set." "$LINENO" 5 |
michael@0 | 7262 | ;; |
michael@0 | 7263 | esac |
michael@0 | 7264 | |
michael@0 | 7265 | case "$target_cpu" in |
michael@0 | 7266 | i*86) |
michael@0 | 7267 | if test -n "$USE_64"; then |
michael@0 | 7268 | $as_echo "#define _AMD64_ 1" >>confdefs.h |
michael@0 | 7269 | |
michael@0 | 7270 | else |
michael@0 | 7271 | $as_echo "#define _X86_ 1" >>confdefs.h |
michael@0 | 7272 | |
michael@0 | 7273 | fi |
michael@0 | 7274 | ;; |
michael@0 | 7275 | x86_64) |
michael@0 | 7276 | $as_echo "#define _AMD64_ 1" >>confdefs.h |
michael@0 | 7277 | |
michael@0 | 7278 | USE_64=1 |
michael@0 | 7279 | ;; |
michael@0 | 7280 | ia64) |
michael@0 | 7281 | $as_echo "#define _IA64_ 1" >>confdefs.h |
michael@0 | 7282 | |
michael@0 | 7283 | USE_64=1 |
michael@0 | 7284 | ;; |
michael@0 | 7285 | *) |
michael@0 | 7286 | $as_echo "#define _CPU_ARCH_NOT_DEFINED 1" >>confdefs.h |
michael@0 | 7287 | |
michael@0 | 7288 | ;; |
michael@0 | 7289 | esac |
michael@0 | 7290 | ;; |
michael@0 | 7291 | |
michael@0 | 7292 | *-netbsd*) |
michael@0 | 7293 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7294 | |
michael@0 | 7295 | $as_echo "#define NETBSD 1" >>confdefs.h |
michael@0 | 7296 | |
michael@0 | 7297 | $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h |
michael@0 | 7298 | |
michael@0 | 7299 | if test -z "$USE_NSPR_THREADS"; then |
michael@0 | 7300 | USE_PTHREADS=1 |
michael@0 | 7301 | fi |
michael@0 | 7302 | MDCPUCFG_H=_netbsd.cfg |
michael@0 | 7303 | PR_MD_CSRCS=netbsd.c |
michael@0 | 7304 | |
michael@0 | 7305 | DSO_CFLAGS='-fPIC -DPIC' |
michael@0 | 7306 | CFLAGS="$CFLAGS -ansi -Wall" |
michael@0 | 7307 | CXXFLAGS="$CXXFLAGS -ansi -Wall" |
michael@0 | 7308 | MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' |
michael@0 | 7309 | |
michael@0 | 7310 | if test -z "$OBJECT_FMT"; then |
michael@0 | 7311 | if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then |
michael@0 | 7312 | OBJECT_FMT=a.out |
michael@0 | 7313 | DLL_SUFFIX=so.1.0 |
michael@0 | 7314 | DSO_LDOPTS='-shared' |
michael@0 | 7315 | else |
michael@0 | 7316 | OBJECT_FMT=ELF |
michael@0 | 7317 | DLL_SUFFIX=so |
michael@0 | 7318 | DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' |
michael@0 | 7319 | fi |
michael@0 | 7320 | fi |
michael@0 | 7321 | |
michael@0 | 7322 | if test "$LIBRUNPATH"; then |
michael@0 | 7323 | DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH" |
michael@0 | 7324 | fi |
michael@0 | 7325 | ;; |
michael@0 | 7326 | |
michael@0 | 7327 | *-nto*) |
michael@0 | 7328 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7329 | |
michael@0 | 7330 | $as_echo "#define NTO 1" >>confdefs.h |
michael@0 | 7331 | |
michael@0 | 7332 | $as_echo "#define _QNX_SOURCE 1" >>confdefs.h |
michael@0 | 7333 | |
michael@0 | 7334 | $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
michael@0 | 7335 | |
michael@0 | 7336 | MDCPUCFG_H=_nto.cfg |
michael@0 | 7337 | PR_MD_CSRCS=nto.c |
michael@0 | 7338 | MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@' |
michael@0 | 7339 | DSO_CFLAGS=-fPIC |
michael@0 | 7340 | DSO_LDOPTS=-shared |
michael@0 | 7341 | OS_LIBS="$OS_LIBS -lsocket" |
michael@0 | 7342 | _OPTIMIZE_FLAGS="-O1" |
michael@0 | 7343 | _DEBUG_FLAGS="-gstabs" |
michael@0 | 7344 | ;; |
michael@0 | 7345 | |
michael@0 | 7346 | *-openbsd*) |
michael@0 | 7347 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7348 | |
michael@0 | 7349 | $as_echo "#define OPENBSD 1" >>confdefs.h |
michael@0 | 7350 | |
michael@0 | 7351 | $as_echo "#define HAVE_BSD_FLOCK 1" >>confdefs.h |
michael@0 | 7352 | |
michael@0 | 7353 | $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
michael@0 | 7354 | |
michael@0 | 7355 | CFLAGS="$CFLAGS -ansi -Wall" |
michael@0 | 7356 | CXXFLAGS="$CXXFLAGS -ansi -Wall" |
michael@0 | 7357 | DLL_SUFFIX=so.1.0 |
michael@0 | 7358 | DSO_CFLAGS=-fPIC |
michael@0 | 7359 | MDCPUCFG_H=_openbsd.cfg |
michael@0 | 7360 | PR_MD_CSRCS=openbsd.c |
michael@0 | 7361 | OS_LIBS="-lc" |
michael@0 | 7362 | if test -z "$USE_NSPR_THREADS"; then |
michael@0 | 7363 | USE_PTHREADS=1 |
michael@0 | 7364 | fi |
michael@0 | 7365 | DSO_LDOPTS='-shared -fPIC' |
michael@0 | 7366 | MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
michael@0 | 7367 | ;; |
michael@0 | 7368 | |
michael@0 | 7369 | *-osf*) |
michael@0 | 7370 | SHELL_OVERRIDE="SHELL = /usr/bin/ksh" |
michael@0 | 7371 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7372 | |
michael@0 | 7373 | $as_echo "#define OSF1 1" >>confdefs.h |
michael@0 | 7374 | |
michael@0 | 7375 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
michael@0 | 7376 | |
michael@0 | 7377 | # OSF1 and HPUX report the POLLHUP event for a socket when the |
michael@0 | 7378 | # shutdown(SHUT_WR) operation is called for the remote end, even though |
michael@0 | 7379 | # the socket is still writeable. Use select(), instead of poll(), to |
michael@0 | 7380 | # workaround this problem. |
michael@0 | 7381 | $as_echo "#define _PR_POLL_WITH_SELECT 1" >>confdefs.h |
michael@0 | 7382 | |
michael@0 | 7383 | |
michael@0 | 7384 | if echo "$OS_RELEASE" | egrep -c '(V2.0|V3.2)' 2>/dev/null ; then |
michael@0 | 7385 | USE_NSPR_THREADS=1 |
michael@0 | 7386 | fi |
michael@0 | 7387 | |
michael@0 | 7388 | if test -z "$GNU_CC"; then |
michael@0 | 7389 | CC="$CC -std1 -ieee_with_inexact" |
michael@0 | 7390 | if test "$OS_RELEASE" != "V2.0"; then |
michael@0 | 7391 | CC="$CC -readonly_strings" |
michael@0 | 7392 | fi |
michael@0 | 7393 | _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000" |
michael@0 | 7394 | ac_fn_c_check_header_mongrel "$LINENO" "machine/builtins.h" "ac_cv_header_machine_builtins_h" "$ac_includes_default" |
michael@0 | 7395 | if test "x$ac_cv_header_machine_builtins_h" = xyes; then : |
michael@0 | 7396 | $as_echo "#define OSF1_HAVE_MACHINE_BUILTINS_H 1" >>confdefs.h |
michael@0 | 7397 | |
michael@0 | 7398 | fi |
michael@0 | 7399 | |
michael@0 | 7400 | |
michael@0 | 7401 | else |
michael@0 | 7402 | CFLAGS="$CFLAGS -mieee" |
michael@0 | 7403 | CXXFLAGS="$CXXFLAGS -mieee" |
michael@0 | 7404 | fi |
michael@0 | 7405 | |
michael@0 | 7406 | if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then |
michael@0 | 7407 | $as_echo "#define HAVE_INT_LOCALTIME_R 1" >>confdefs.h |
michael@0 | 7408 | |
michael@0 | 7409 | else |
michael@0 | 7410 | $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
michael@0 | 7411 | |
michael@0 | 7412 | $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
michael@0 | 7413 | |
michael@0 | 7414 | fi |
michael@0 | 7415 | if echo $OS_RELEASE | grep -c V4.0 >/dev/null; then |
michael@0 | 7416 | $as_echo "#define OSF1V4_MAP_PRIVATE_BUG 1" >>confdefs.h |
michael@0 | 7417 | |
michael@0 | 7418 | fi |
michael@0 | 7419 | DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)' |
michael@0 | 7420 | MDCPUCFG_H=_osf1.cfg |
michael@0 | 7421 | PR_MD_CSRCS=osf1.c |
michael@0 | 7422 | ;; |
michael@0 | 7423 | |
michael@0 | 7424 | *-qnx*) |
michael@0 | 7425 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7426 | |
michael@0 | 7427 | $as_echo "#define QNX 1" >>confdefs.h |
michael@0 | 7428 | |
michael@0 | 7429 | $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
michael@0 | 7430 | |
michael@0 | 7431 | USE_NSPR_THREADS=1 |
michael@0 | 7432 | MDCPUCFG_H=_qnx.cfg |
michael@0 | 7433 | PR_MD_CSRCS=qnx.c |
michael@0 | 7434 | ;; |
michael@0 | 7435 | |
michael@0 | 7436 | *-riscos*) |
michael@0 | 7437 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7438 | |
michael@0 | 7439 | $as_echo "#define RISCOS 1" >>confdefs.h |
michael@0 | 7440 | |
michael@0 | 7441 | $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
michael@0 | 7442 | |
michael@0 | 7443 | USE_PTHREADS=1 |
michael@0 | 7444 | MDCPUCFG_H=_riscos.cfg |
michael@0 | 7445 | PR_MD_CSRCS=riscos.c |
michael@0 | 7446 | DSO_CFLAGS=-fPIC |
michael@0 | 7447 | DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' |
michael@0 | 7448 | MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
michael@0 | 7449 | ;; |
michael@0 | 7450 | |
michael@0 | 7451 | *-*-sco*) |
michael@0 | 7452 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7453 | |
michael@0 | 7454 | $as_echo "#define SCO 1" >>confdefs.h |
michael@0 | 7455 | |
michael@0 | 7456 | $as_echo "#define sco 1" >>confdefs.h |
michael@0 | 7457 | |
michael@0 | 7458 | $as_echo "#define SYSV 1" >>confdefs.h |
michael@0 | 7459 | |
michael@0 | 7460 | $as_echo "#define _SVID3 1" >>confdefs.h |
michael@0 | 7461 | |
michael@0 | 7462 | $as_echo "#define _PR_NEED_H_ERRNO 1" >>confdefs.h |
michael@0 | 7463 | |
michael@0 | 7464 | CC='cc -b elf -KPIC' |
michael@0 | 7465 | CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w' |
michael@0 | 7466 | USE_NSPR_THREADS=1 |
michael@0 | 7467 | CPU_ARCH=x86 |
michael@0 | 7468 | DSO_LDOPTS='-b elf -G' |
michael@0 | 7469 | MDCPUCFG_H=_scoos.cfg |
michael@0 | 7470 | PR_MD_SRCS=scoos.c |
michael@0 | 7471 | ;; |
michael@0 | 7472 | |
michael@0 | 7473 | *-solaris*) |
michael@0 | 7474 | if test -z "$USE_NSPR_THREADS"; then |
michael@0 | 7475 | USE_PTHREADS=1 |
michael@0 | 7476 | fi |
michael@0 | 7477 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7478 | |
michael@0 | 7479 | $as_echo "#define SVR4 1" >>confdefs.h |
michael@0 | 7480 | |
michael@0 | 7481 | $as_echo "#define SYSV 1" >>confdefs.h |
michael@0 | 7482 | |
michael@0 | 7483 | $as_echo "#define __svr4 1" >>confdefs.h |
michael@0 | 7484 | |
michael@0 | 7485 | $as_echo "#define __svr4__ 1" >>confdefs.h |
michael@0 | 7486 | |
michael@0 | 7487 | $as_echo "#define SOLARIS 1" >>confdefs.h |
michael@0 | 7488 | |
michael@0 | 7489 | $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
michael@0 | 7490 | |
michael@0 | 7491 | CPU_ARCH=`uname -p` |
michael@0 | 7492 | MDCPUCFG_H=_solaris.cfg |
michael@0 | 7493 | PR_MD_CSRCS=solaris.c |
michael@0 | 7494 | LD=/usr/ccs/bin/ld |
michael@0 | 7495 | MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
michael@0 | 7496 | RESOLVE_LINK_SYMBOLS=1 |
michael@0 | 7497 | case "${OS_RELEASE}" in |
michael@0 | 7498 | 5.8|5.9) |
michael@0 | 7499 | ;; |
michael@0 | 7500 | *) |
michael@0 | 7501 | # It is safe to use the -Bdirect linker flag on Solaris 10 or later. |
michael@0 | 7502 | USE_B_DIRECT=1 |
michael@0 | 7503 | ;; |
michael@0 | 7504 | esac |
michael@0 | 7505 | if test -n "$GNU_CC"; then |
michael@0 | 7506 | DSO_CFLAGS=-fPIC |
michael@0 | 7507 | if `$CC -print-prog-name=ld` -v 2>&1 | grep -c GNU >/dev/null; then |
michael@0 | 7508 | GCC_USE_GNU_LD=1 |
michael@0 | 7509 | fi |
michael@0 | 7510 | DSO_LDOPTS='-shared -Wl,-h,$(notdir $@),-z,combreloc,-z,defs,-z,ignore' |
michael@0 | 7511 | if test -n "$USE_B_DIRECT"; then |
michael@0 | 7512 | DSO_LDOPTS="$DSO_LDOPTS,-Bdirect" |
michael@0 | 7513 | fi |
michael@0 | 7514 | else |
michael@0 | 7515 | DSO_CFLAGS=-KPIC |
michael@0 | 7516 | DSO_LDOPTS='-G -h $(notdir $@) -z combreloc -z defs -z ignore' |
michael@0 | 7517 | if test -n "$USE_B_DIRECT"; then |
michael@0 | 7518 | DSO_LDOPTS="$DSO_LDOPTS -Bdirect" |
michael@0 | 7519 | fi |
michael@0 | 7520 | fi |
michael@0 | 7521 | if test -n "$GNU_CC"; then |
michael@0 | 7522 | CFLAGS="$CFLAGS -Wall" |
michael@0 | 7523 | CXXFLAGS="$CXXFLAGS -Wall" |
michael@0 | 7524 | if test -n "$USE_MDUPDATE"; then |
michael@0 | 7525 | CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" |
michael@0 | 7526 | CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)" |
michael@0 | 7527 | fi |
michael@0 | 7528 | GCC_AS=`$CC -print-prog-name=as` |
michael@0 | 7529 | if test "`echo | $GCC_AS -v 2>&1 | grep -c GNU`" != "0"; then |
michael@0 | 7530 | GNU_AS=1 |
michael@0 | 7531 | fi |
michael@0 | 7532 | else |
michael@0 | 7533 | CFLAGS="$CFLAGS -xstrconst" |
michael@0 | 7534 | CXXFLAGS="$CXXFLAGS -Qoption cg -xstrconst -features=tmplife" |
michael@0 | 7535 | if test -z "$MOZ_OPTIMIZE"; then |
michael@0 | 7536 | CFLAGS="$CFLAGS -xs" |
michael@0 | 7537 | CXXFLAGS="$CXXFLAGS -xs" |
michael@0 | 7538 | fi |
michael@0 | 7539 | _OPTIMIZE_FLAGS=-xO4 |
michael@0 | 7540 | fi |
michael@0 | 7541 | if test -z "$GNU_AS"; then |
michael@0 | 7542 | ASFLAGS="$ASFLAGS -Wa,-P" |
michael@0 | 7543 | fi |
michael@0 | 7544 | if test -n "$USE_64"; then |
michael@0 | 7545 | if test -n "$GNU_CC"; then |
michael@0 | 7546 | CC="$CC -m64" |
michael@0 | 7547 | CXX="$CXX -m64" |
michael@0 | 7548 | else |
michael@0 | 7549 | if test "$OS_TEST" = "i86pc"; then |
michael@0 | 7550 | CC="$CC -xarch=amd64" |
michael@0 | 7551 | CXX="$CXX -xarch=amd64" |
michael@0 | 7552 | else |
michael@0 | 7553 | CC="$CC -xarch=v9" |
michael@0 | 7554 | CXX="$CXX -xarch=v9" |
michael@0 | 7555 | fi |
michael@0 | 7556 | fi |
michael@0 | 7557 | fi |
michael@0 | 7558 | if test "$OS_TEST" = "i86pc"; then |
michael@0 | 7559 | if test -z "$USE_64"; then |
michael@0 | 7560 | $as_echo "#define i386 1" >>confdefs.h |
michael@0 | 7561 | |
michael@0 | 7562 | fi |
michael@0 | 7563 | CPU_ARCH_TAG=_$OS_TEST |
michael@0 | 7564 | # The default debug format, DWARF (-g), is not supported by gcc |
michael@0 | 7565 | # on i386-ANY-sysv4/solaris, but the stabs format is. It is |
michael@0 | 7566 | # assumed that the Solaris assembler /usr/ccs/bin/as is used. |
michael@0 | 7567 | # If your gcc uses GNU as, you do not need the -Wa,-s option. |
michael@0 | 7568 | if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then |
michael@0 | 7569 | _DEBUG_FLAGS=-gstabs |
michael@0 | 7570 | if test -z "$GNU_AS"; then |
michael@0 | 7571 | _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s" |
michael@0 | 7572 | fi |
michael@0 | 7573 | fi |
michael@0 | 7574 | fi |
michael@0 | 7575 | case "${target_os}" in |
michael@0 | 7576 | solaris2.3*) |
michael@0 | 7577 | $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
michael@0 | 7578 | |
michael@0 | 7579 | ;; |
michael@0 | 7580 | solaris2.4*) |
michael@0 | 7581 | $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
michael@0 | 7582 | |
michael@0 | 7583 | ;; |
michael@0 | 7584 | solaris2.5*) |
michael@0 | 7585 | $as_echo "#define SOLARIS2_5 1" >>confdefs.h |
michael@0 | 7586 | |
michael@0 | 7587 | ;; |
michael@0 | 7588 | *) |
michael@0 | 7589 | $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
michael@0 | 7590 | |
michael@0 | 7591 | # The lfcompile64(5) man page on Solaris 2.6 says: |
michael@0 | 7592 | # For applications that do not wish to conform to the POSIX or |
michael@0 | 7593 | # X/Open specifications, the 64-bit transitional interfaces |
michael@0 | 7594 | # are available by default. No compile-time flags need to be |
michael@0 | 7595 | # set. |
michael@0 | 7596 | # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default. |
michael@0 | 7597 | # The native compiler, gcc 2.8.x, and egcs don't have this problem. |
michael@0 | 7598 | if test -n "$GNU_CC"; then |
michael@0 | 7599 | $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h |
michael@0 | 7600 | |
michael@0 | 7601 | fi |
michael@0 | 7602 | ;; |
michael@0 | 7603 | esac |
michael@0 | 7604 | case "${target_os}" in |
michael@0 | 7605 | solaris2.3*) |
michael@0 | 7606 | ;; |
michael@0 | 7607 | solaris2.4*) |
michael@0 | 7608 | ;; |
michael@0 | 7609 | solaris2.5*) |
michael@0 | 7610 | ;; |
michael@0 | 7611 | solaris2.6*) |
michael@0 | 7612 | ;; |
michael@0 | 7613 | solaris2.7*) |
michael@0 | 7614 | ;; |
michael@0 | 7615 | *) |
michael@0 | 7616 | # Solaris 8 or higher has IPv6. |
michael@0 | 7617 | $as_echo "#define _PR_INET6 1" >>confdefs.h |
michael@0 | 7618 | |
michael@0 | 7619 | ;; |
michael@0 | 7620 | esac |
michael@0 | 7621 | if test "$CPU_ARCH" = "sparc"; then |
michael@0 | 7622 | # 64-bit Solaris SPARC requires V9 architecture, so the following |
michael@0 | 7623 | # is not needed. |
michael@0 | 7624 | if test -z "$USE_64"; then |
michael@0 | 7625 | ULTRASPARC_LIBRARY=nspr_flt |
michael@0 | 7626 | fi |
michael@0 | 7627 | fi |
michael@0 | 7628 | # Purify requires that binaries linked against nspr also |
michael@0 | 7629 | # be linked against -lrt (or -lposix4) so add it to OS_LIBS |
michael@0 | 7630 | _rev=`uname -r` |
michael@0 | 7631 | _librt=`echo $_rev 5.6 | awk '{ if ($1 > $2) print "-lrt"; else print "-lposix4" }'` |
michael@0 | 7632 | OS_LIBS="$OS_LIBS $_librt" |
michael@0 | 7633 | ;; |
michael@0 | 7634 | |
michael@0 | 7635 | *-sco-sysv5*) |
michael@0 | 7636 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7637 | |
michael@0 | 7638 | $as_echo "#define UNIXWARE 1" >>confdefs.h |
michael@0 | 7639 | |
michael@0 | 7640 | $as_echo "#define SVR4 1" >>confdefs.h |
michael@0 | 7641 | |
michael@0 | 7642 | $as_echo "#define SYSV 1" >>confdefs.h |
michael@0 | 7643 | |
michael@0 | 7644 | USE_NSPR_THREADS=1 |
michael@0 | 7645 | if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then |
michael@0 | 7646 | $as_echo "#define _PR_NO_LARGE_FILES 1" >>confdefs.h |
michael@0 | 7647 | |
michael@0 | 7648 | CC='$(NSDEPTH)/build/hcc cc' |
michael@0 | 7649 | CXX='$(NSDEPTH)/build/hcpp CC' |
michael@0 | 7650 | MDCPUCFG_H=_unixware.cfg |
michael@0 | 7651 | else |
michael@0 | 7652 | $as_echo "#define _LARGEFILE64_SOURCE 1" >>confdefs.h |
michael@0 | 7653 | |
michael@0 | 7654 | $as_echo "#define _PR_HAVE_OFF64_T 1" >>confdefs.h |
michael@0 | 7655 | |
michael@0 | 7656 | $as_echo "#define _PR_HAVE_SOCKADDR_LEN 1" >>confdefs.h |
michael@0 | 7657 | |
michael@0 | 7658 | MDCPUCFG_H=_unixware7.cfg |
michael@0 | 7659 | fi |
michael@0 | 7660 | PR_MD_CSRCS=unixware.c |
michael@0 | 7661 | DSO_LDOPTS=-G |
michael@0 | 7662 | CPU_ARCH=x86 |
michael@0 | 7663 | ;; |
michael@0 | 7664 | |
michael@0 | 7665 | *-symbian*) |
michael@0 | 7666 | |
michael@0 | 7667 | # Check whether --with-symbian-sdk was given. |
michael@0 | 7668 | if test "${with_symbian_sdk+set}" = set; then : |
michael@0 | 7669 | withval=$with_symbian_sdk; SYMBIAN_SDK_DIR=$withval |
michael@0 | 7670 | fi |
michael@0 | 7671 | |
michael@0 | 7672 | |
michael@0 | 7673 | echo ----------------------------------------------------------------------------- |
michael@0 | 7674 | echo Building with Symbian SDK in: $SYMBIAN_SDK_DIR |
michael@0 | 7675 | echo ----------------------------------------------------------------------------- |
michael@0 | 7676 | |
michael@0 | 7677 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7678 | |
michael@0 | 7679 | $as_echo "#define SYMBIAN 1" >>confdefs.h |
michael@0 | 7680 | |
michael@0 | 7681 | $as_echo "#define __arm__ 1" >>confdefs.h |
michael@0 | 7682 | |
michael@0 | 7683 | $as_echo "#define __SYMBIAN32__ 1" >>confdefs.h |
michael@0 | 7684 | |
michael@0 | 7685 | $as_echo "#define _UNICODE 1" >>confdefs.h |
michael@0 | 7686 | |
michael@0 | 7687 | $as_echo "#define NDEBUG 1" >>confdefs.h |
michael@0 | 7688 | |
michael@0 | 7689 | $as_echo "#define __SUPPORT_CPP_EXCEPTIONS__ 1" >>confdefs.h |
michael@0 | 7690 | |
michael@0 | 7691 | $as_echo "#define MOZ_STDERR_TO_STDOUT 1" >>confdefs.h |
michael@0 | 7692 | |
michael@0 | 7693 | $as_echo "#define HAVE_FCNTL_FILE_LOCKING 1" >>confdefs.h |
michael@0 | 7694 | |
michael@0 | 7695 | $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h |
michael@0 | 7696 | |
michael@0 | 7697 | USE_PTHREADS=1 |
michael@0 | 7698 | LIB_SUFFIX=lib |
michael@0 | 7699 | DLL_SUFFIX=dll |
michael@0 | 7700 | MKSHLIB= |
michael@0 | 7701 | DSO_LDOPTS= |
michael@0 | 7702 | DSO_CFLAGS= |
michael@0 | 7703 | VISIBILITY_FLAGS= |
michael@0 | 7704 | MDCPUCFG_H=_symbian.cfg |
michael@0 | 7705 | PR_MD_CSRCS=symbian.c |
michael@0 | 7706 | NSINSTALL=nsinstall |
michael@0 | 7707 | RANLIB='echo no ranlib ' |
michael@0 | 7708 | CPU_ARCH=ARM |
michael@0 | 7709 | OS_ARCH=SYMBIAN |
michael@0 | 7710 | OS_EXE_CFLAGS="$OS_EXE_CFLAGS -D__EXE__" |
michael@0 | 7711 | CFLAGS="$CFLAGS -MD -nostdinc" |
michael@0 | 7712 | SYMBIAN_SYS_INCLUDE="-I$SYMBIAN_SDK_DIR/Epoc32/include/variant -I$SYMBIAN_SDK_DIR/Epoc32/include -I$SYMBIAN_SDK_DIR/Epoc32/include/stdapis" |
michael@0 | 7713 | echo ------------------------------------------------------- |
michael@0 | 7714 | echo SYMBIAN_SYS_INCLUDE is: $SYMBIAN_SYS_INCLUDE |
michael@0 | 7715 | echo ------------------------------------------------------- |
michael@0 | 7716 | case "$OS_TARGET" in |
michael@0 | 7717 | WINSCW) |
michael@0 | 7718 | CC=mwccsym2.exe |
michael@0 | 7719 | CXX=mwccsym2.exe |
michael@0 | 7720 | LD=mwldsym2.exe |
michael@0 | 7721 | AR=mwldsym2.exe |
michael@0 | 7722 | WINSCW_LD_DIR="\$(SYMBIAN_SDK_DIR)/EPOC32/RELEASE/WINSCW/UDEB" |
michael@0 | 7723 | CFLAGS="$CFLAGS -O0 -inline off -wchar_t off -align 4 -warnings on -w nohidevirtual,nounusedexpr -msgstyle gcc -enum int -str pool -exc ms -trigraphs on -nostderr -gccdep -cwd source -i- -I\$(VPATH)" |
michael@0 | 7724 | SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include Symbian_OS_v9.2.hrh" |
michael@0 | 7725 | AR_FLAGS="-library -msgstyle gcc -stdlib -subsystem windows -noimplib -o \$@" |
michael@0 | 7726 | $as_echo "#define _DEBUG 1" >>confdefs.h |
michael@0 | 7727 | |
michael@0 | 7728 | $as_echo "#define __CW32__ 1" >>confdefs.h |
michael@0 | 7729 | |
michael@0 | 7730 | $as_echo "#define __WINS__ 1" >>confdefs.h |
michael@0 | 7731 | |
michael@0 | 7732 | $as_echo "#define __WINSCW__ 1" >>confdefs.h |
michael@0 | 7733 | |
michael@0 | 7734 | DEFINES="$DEFINES -U_WIN32" |
michael@0 | 7735 | ;; |
michael@0 | 7736 | GCCE) |
michael@0 | 7737 | CFLAGS="$CFLAGS -Wall -Wno-unknown-pragmas -fexceptions -march=armv5t -mapcs -pipe -x c -msoft-float" |
michael@0 | 7738 | CXXFLAGS="$CXXFLAGS $CFLAGS -Wno-ctor-dtor-privacy" |
michael@0 | 7739 | SYMBIAN_SYS_INCLUDE="$SYMBIAN_SYS_INCLUDE -include $SYMBIAN_SDK_DIR/EPOC32/INCLUDE/GCCE/GCCE.h" |
michael@0 | 7740 | $as_echo "#define __GCCE__ 1" >>confdefs.h |
michael@0 | 7741 | |
michael@0 | 7742 | $as_echo "#define __EABI__ 1" >>confdefs.h |
michael@0 | 7743 | |
michael@0 | 7744 | DEFINES="$DEFINES -D__PRODUCT_INCLUDE__=$SYMBIAN_SDK_DIR/Epoc32/include/variant/Symbian_OS_v9.2.hrh" |
michael@0 | 7745 | ;; |
michael@0 | 7746 | *) |
michael@0 | 7747 | as_fn_error $? "Missing OS_TARGET for ${target}. Set --enable-symbian-target to with 'WINSCW' or 'GCCE'." "$LINENO" 5 |
michael@0 | 7748 | ;; |
michael@0 | 7749 | esac |
michael@0 | 7750 | CFLAGS="$CFLAGS ${SYMBIAN_SYS_INCLUDE}" |
michael@0 | 7751 | ;; |
michael@0 | 7752 | |
michael@0 | 7753 | *-os2*) |
michael@0 | 7754 | $as_echo "#define XP_OS2 1" >>confdefs.h |
michael@0 | 7755 | |
michael@0 | 7756 | $as_echo "#define XP_PC 1" >>confdefs.h |
michael@0 | 7757 | |
michael@0 | 7758 | $as_echo "#define BSD_SELECT 1" >>confdefs.h |
michael@0 | 7759 | |
michael@0 | 7760 | $as_echo "#define TCPV40HDRS 1" >>confdefs.h |
michael@0 | 7761 | |
michael@0 | 7762 | LIB_SUFFIX=lib |
michael@0 | 7763 | DLL_SUFFIX=dll |
michael@0 | 7764 | RC=rc.exe |
michael@0 | 7765 | PR_MD_ARCH_DIR=os2 |
michael@0 | 7766 | PROG_SUFFIX=.exe |
michael@0 | 7767 | NSINSTALL=nsinstall |
michael@0 | 7768 | MDCPUCFG_H=_os2.cfg |
michael@0 | 7769 | RESOLVE_LINK_SYMBOLS=1 |
michael@0 | 7770 | |
michael@0 | 7771 | $as_echo "#define OS2 1" >>confdefs.h |
michael@0 | 7772 | |
michael@0 | 7773 | AR=emxomfar |
michael@0 | 7774 | AR_FLAGS='r $@' |
michael@0 | 7775 | CFLAGS="$CFLAGS -Wall -Zomf" |
michael@0 | 7776 | CXXFLAGS="$CFLAGS -Wall -Zomf" |
michael@0 | 7777 | MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' |
michael@0 | 7778 | DSO_CFLAGS= |
michael@0 | 7779 | DSO_LDOPTS='-Zomf -Zdll' |
michael@0 | 7780 | LDFLAGS='-Zmap' |
michael@0 | 7781 | _OPTIMIZE_FLAGS="-O2 -s" |
michael@0 | 7782 | _DEBUG_FLAGS="-g -fno-inline" |
michael@0 | 7783 | if test -n "$MOZ_OPTIMIZE"; then |
michael@0 | 7784 | DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA" |
michael@0 | 7785 | fi |
michael@0 | 7786 | IMPLIB='emximp -o' |
michael@0 | 7787 | FILTER='emxexp -o' |
michael@0 | 7788 | if test -n "$MOZ_OS2_HIGH_MEMORY"; then |
michael@0 | 7789 | LDFLAGS="$LDFLAGS -Zhigh-mem" |
michael@0 | 7790 | $as_echo "#define MOZ_OS2_HIGH_MEMORY 1" >>confdefs.h |
michael@0 | 7791 | |
michael@0 | 7792 | fi |
michael@0 | 7793 | |
michael@0 | 7794 | # GCC for OS/2 currently predefines these, but we don't want them |
michael@0 | 7795 | DEFINES="$DEFINES -Uunix -U__unix -U__unix__" |
michael@0 | 7796 | ;; |
michael@0 | 7797 | |
michael@0 | 7798 | *) |
michael@0 | 7799 | $as_echo "#define XP_UNIX 1" >>confdefs.h |
michael@0 | 7800 | |
michael@0 | 7801 | ;; |
michael@0 | 7802 | |
michael@0 | 7803 | esac |
michael@0 | 7804 | |
michael@0 | 7805 | if test -z "$SKIP_LIBRARY_CHECKS"; then |
michael@0 | 7806 | |
michael@0 | 7807 | |
michael@0 | 7808 | |
michael@0 | 7809 | case $target in |
michael@0 | 7810 | *-darwin*|*-beos*|*-os2*) |
michael@0 | 7811 | ;; |
michael@0 | 7812 | *) |
michael@0 | 7813 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
michael@0 | 7814 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
michael@0 | 7815 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
michael@0 | 7816 | $as_echo_n "(cached) " >&6 |
michael@0 | 7817 | else |
michael@0 | 7818 | ac_check_lib_save_LIBS=$LIBS |
michael@0 | 7819 | LIBS="-ldl $LIBS" |
michael@0 | 7820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 7821 | /* end confdefs.h. */ |
michael@0 | 7822 | |
michael@0 | 7823 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 7824 | Use char because int might match the return type of a GCC |
michael@0 | 7825 | builtin and then its argument prototype would still apply. */ |
michael@0 | 7826 | #ifdef __cplusplus |
michael@0 | 7827 | extern "C" |
michael@0 | 7828 | #endif |
michael@0 | 7829 | char dlopen (); |
michael@0 | 7830 | int |
michael@0 | 7831 | main () |
michael@0 | 7832 | { |
michael@0 | 7833 | return dlopen (); |
michael@0 | 7834 | ; |
michael@0 | 7835 | return 0; |
michael@0 | 7836 | } |
michael@0 | 7837 | _ACEOF |
michael@0 | 7838 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 7839 | ac_cv_lib_dl_dlopen=yes |
michael@0 | 7840 | else |
michael@0 | 7841 | ac_cv_lib_dl_dlopen=no |
michael@0 | 7842 | fi |
michael@0 | 7843 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 7844 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 7845 | LIBS=$ac_check_lib_save_LIBS |
michael@0 | 7846 | fi |
michael@0 | 7847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
michael@0 | 7848 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
michael@0 | 7849 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
michael@0 | 7850 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
michael@0 | 7851 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
michael@0 | 7852 | OS_LIBS="-ldl $OS_LIBS" |
michael@0 | 7853 | fi |
michael@0 | 7854 | |
michael@0 | 7855 | |
michael@0 | 7856 | fi |
michael@0 | 7857 | |
michael@0 | 7858 | ;; |
michael@0 | 7859 | esac |
michael@0 | 7860 | |
michael@0 | 7861 | |
michael@0 | 7862 | |
michael@0 | 7863 | |
michael@0 | 7864 | if test $ac_cv_c_compiler_gnu = yes; then |
michael@0 | 7865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 |
michael@0 | 7866 | $as_echo_n "checking whether $CC needs -traditional... " >&6; } |
michael@0 | 7867 | if ${ac_cv_prog_gcc_traditional+:} false; then : |
michael@0 | 7868 | $as_echo_n "(cached) " >&6 |
michael@0 | 7869 | else |
michael@0 | 7870 | ac_pattern="Autoconf.*'x'" |
michael@0 | 7871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 7872 | /* end confdefs.h. */ |
michael@0 | 7873 | #include <sgtty.h> |
michael@0 | 7874 | Autoconf TIOCGETP |
michael@0 | 7875 | _ACEOF |
michael@0 | 7876 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
michael@0 | 7877 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
michael@0 | 7878 | ac_cv_prog_gcc_traditional=yes |
michael@0 | 7879 | else |
michael@0 | 7880 | ac_cv_prog_gcc_traditional=no |
michael@0 | 7881 | fi |
michael@0 | 7882 | rm -f conftest* |
michael@0 | 7883 | |
michael@0 | 7884 | |
michael@0 | 7885 | if test $ac_cv_prog_gcc_traditional = no; then |
michael@0 | 7886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 7887 | /* end confdefs.h. */ |
michael@0 | 7888 | #include <termio.h> |
michael@0 | 7889 | Autoconf TCGETA |
michael@0 | 7890 | _ACEOF |
michael@0 | 7891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
michael@0 | 7892 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : |
michael@0 | 7893 | ac_cv_prog_gcc_traditional=yes |
michael@0 | 7894 | fi |
michael@0 | 7895 | rm -f conftest* |
michael@0 | 7896 | |
michael@0 | 7897 | fi |
michael@0 | 7898 | fi |
michael@0 | 7899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 |
michael@0 | 7900 | $as_echo "$ac_cv_prog_gcc_traditional" >&6; } |
michael@0 | 7901 | if test $ac_cv_prog_gcc_traditional = yes; then |
michael@0 | 7902 | CC="$CC -traditional" |
michael@0 | 7903 | fi |
michael@0 | 7904 | fi |
michael@0 | 7905 | |
michael@0 | 7906 | _SAVE_LIBS="$LIBS" |
michael@0 | 7907 | LIBS="$LIBS $OS_LIBS" |
michael@0 | 7908 | for ac_func in dladdr gettid lchown setpriority strerror syscall |
michael@0 | 7909 | do : |
michael@0 | 7910 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
michael@0 | 7911 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
michael@0 | 7912 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
michael@0 | 7913 | cat >>confdefs.h <<_ACEOF |
michael@0 | 7914 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
michael@0 | 7915 | _ACEOF |
michael@0 | 7916 | |
michael@0 | 7917 | fi |
michael@0 | 7918 | done |
michael@0 | 7919 | |
michael@0 | 7920 | LIBS="$_SAVE_LIBS" |
michael@0 | 7921 | |
michael@0 | 7922 | |
michael@0 | 7923 | |
michael@0 | 7924 | # Check whether --with-ccache was given. |
michael@0 | 7925 | if test "${with_ccache+set}" = set; then : |
michael@0 | 7926 | withval=$with_ccache; CCACHE=$withval |
michael@0 | 7927 | else |
michael@0 | 7928 | CCACHE="no" |
michael@0 | 7929 | fi |
michael@0 | 7930 | |
michael@0 | 7931 | |
michael@0 | 7932 | if test "$CCACHE" != "no"; then |
michael@0 | 7933 | if test -n "$CCACHE"; then |
michael@0 | 7934 | if test "$CCACHE" = "yes"; then |
michael@0 | 7935 | CCACHE= |
michael@0 | 7936 | else |
michael@0 | 7937 | if test ! -e "$CCACHE"; then |
michael@0 | 7938 | as_fn_error $? "$CCACHE not found" "$LINENO" 5 |
michael@0 | 7939 | fi |
michael@0 | 7940 | fi |
michael@0 | 7941 | fi |
michael@0 | 7942 | for ac_prog in $CCACHE ccache |
michael@0 | 7943 | do |
michael@0 | 7944 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 7945 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 7946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 7947 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 7948 | if ${ac_cv_path_CCACHE+:} false; then : |
michael@0 | 7949 | $as_echo_n "(cached) " >&6 |
michael@0 | 7950 | else |
michael@0 | 7951 | case $CCACHE in |
michael@0 | 7952 | [\\/]* | ?:[\\/]*) |
michael@0 | 7953 | ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. |
michael@0 | 7954 | ;; |
michael@0 | 7955 | *) |
michael@0 | 7956 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 7957 | for as_dir in $PATH |
michael@0 | 7958 | do |
michael@0 | 7959 | IFS=$as_save_IFS |
michael@0 | 7960 | test -z "$as_dir" && as_dir=. |
michael@0 | 7961 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 7962 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
michael@0 | 7963 | ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 7964 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 7965 | break 2 |
michael@0 | 7966 | fi |
michael@0 | 7967 | done |
michael@0 | 7968 | done |
michael@0 | 7969 | IFS=$as_save_IFS |
michael@0 | 7970 | |
michael@0 | 7971 | ;; |
michael@0 | 7972 | esac |
michael@0 | 7973 | fi |
michael@0 | 7974 | CCACHE=$ac_cv_path_CCACHE |
michael@0 | 7975 | if test -n "$CCACHE"; then |
michael@0 | 7976 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 |
michael@0 | 7977 | $as_echo "$CCACHE" >&6; } |
michael@0 | 7978 | else |
michael@0 | 7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 7980 | $as_echo "no" >&6; } |
michael@0 | 7981 | fi |
michael@0 | 7982 | |
michael@0 | 7983 | |
michael@0 | 7984 | test -n "$CCACHE" && break |
michael@0 | 7985 | done |
michael@0 | 7986 | |
michael@0 | 7987 | if test -z "$CCACHE" -o "$CCACHE" = ":"; then |
michael@0 | 7988 | as_fn_error $? "ccache not found" "$LINENO" 5 |
michael@0 | 7989 | elif test -x "$CCACHE"; then |
michael@0 | 7990 | CC="$CCACHE $CC" |
michael@0 | 7991 | CXX="$CCACHE $CXX" |
michael@0 | 7992 | else |
michael@0 | 7993 | as_fn_error $? "$CCACHE is not executable" "$LINENO" 5 |
michael@0 | 7994 | fi |
michael@0 | 7995 | fi |
michael@0 | 7996 | |
michael@0 | 7997 | # Check whether --enable-strip was given. |
michael@0 | 7998 | if test "${enable_strip+set}" = set; then : |
michael@0 | 7999 | enableval=$enable_strip; if test "$enableval" = "yes"; then |
michael@0 | 8000 | ENABLE_STRIP=1 |
michael@0 | 8001 | fi |
michael@0 | 8002 | fi |
michael@0 | 8003 | |
michael@0 | 8004 | |
michael@0 | 8005 | case "${target_os}" in |
michael@0 | 8006 | hpux*) |
michael@0 | 8007 | if test -z "$GNU_CC"; then |
michael@0 | 8008 | |
michael@0 | 8009 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for +Olit support" >&5 |
michael@0 | 8010 | $as_echo_n "checking for +Olit support... " >&6; } |
michael@0 | 8011 | if ${ac_cv_hpux_usable_olit_option+:} false; then : |
michael@0 | 8012 | $as_echo_n "(cached) " >&6 |
michael@0 | 8013 | else |
michael@0 | 8014 | ac_cv_hpux_usable_olit_option=no |
michael@0 | 8015 | rm -f conftest* |
michael@0 | 8016 | echo 'int main() { return 0; }' | cat > conftest.c |
michael@0 | 8017 | ${CC-cc} ${CFLAGS} +Olit=all -o conftest conftest.c > conftest.out 2>&1 |
michael@0 | 8018 | if test $? -eq 0; then |
michael@0 | 8019 | if test -z "`egrep -i '(unrecognize|unknown)' conftest.out`"; then |
michael@0 | 8020 | ac_cv_hpux_usable_olit_option=yes |
michael@0 | 8021 | fi |
michael@0 | 8022 | fi |
michael@0 | 8023 | rm -f conftest* |
michael@0 | 8024 | |
michael@0 | 8025 | fi |
michael@0 | 8026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_hpux_usable_olit_option" >&5 |
michael@0 | 8027 | $as_echo "$ac_cv_hpux_usable_olit_option" >&6; } |
michael@0 | 8028 | |
michael@0 | 8029 | if test "$ac_cv_hpux_usable_olit_option" = "yes"; then |
michael@0 | 8030 | CFLAGS="$CFLAGS +Olit=all" |
michael@0 | 8031 | CXXFLAGS="$CXXFLAGS +Olit=all" |
michael@0 | 8032 | else |
michael@0 | 8033 | CFLAGS="$CFLAGS +ESlit" |
michael@0 | 8034 | CXXFLAGS="$CXXFLAGS +ESlit" |
michael@0 | 8035 | fi |
michael@0 | 8036 | fi |
michael@0 | 8037 | ;; |
michael@0 | 8038 | esac |
michael@0 | 8039 | |
michael@0 | 8040 | |
michael@0 | 8041 | |
michael@0 | 8042 | case "$target_os" in |
michael@0 | 8043 | darwin*) |
michael@0 | 8044 | _HAVE_PTHREADS=1 |
michael@0 | 8045 | ;; |
michael@0 | 8046 | *) |
michael@0 | 8047 | |
michael@0 | 8048 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 |
michael@0 | 8049 | $as_echo_n "checking for pthread_create in -lpthreads... " >&6; } |
michael@0 | 8050 | echo " |
michael@0 | 8051 | #include <pthread.h> |
michael@0 | 8052 | void *foo(void *v) { return v; } |
michael@0 | 8053 | int main() { |
michael@0 | 8054 | pthread_t t; |
michael@0 | 8055 | if (!pthread_create(&t, 0, &foo, 0)) { |
michael@0 | 8056 | pthread_join(t, 0); |
michael@0 | 8057 | } |
michael@0 | 8058 | return 0; |
michael@0 | 8059 | }" > dummy.c ; |
michael@0 | 8060 | echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS" 1>&5; |
michael@0 | 8061 | ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS 2>&5; |
michael@0 | 8062 | _res=$? ; |
michael@0 | 8063 | rm -f dummy.c dummy${ac_exeext} ; |
michael@0 | 8064 | if test "$_res" = "0"; then |
michael@0 | 8065 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 8066 | $as_echo "yes" >&6; } |
michael@0 | 8067 | _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads" |
michael@0 | 8068 | else |
michael@0 | 8069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 8070 | $as_echo "no" >&6; } |
michael@0 | 8071 | |
michael@0 | 8072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 |
michael@0 | 8073 | $as_echo_n "checking for pthread_create in -lpthread... " >&6; } |
michael@0 | 8074 | echo " |
michael@0 | 8075 | #include <pthread.h> |
michael@0 | 8076 | void *foo(void *v) { return v; } |
michael@0 | 8077 | int main() { |
michael@0 | 8078 | pthread_t t; |
michael@0 | 8079 | if (!pthread_create(&t, 0, &foo, 0)) { |
michael@0 | 8080 | pthread_join(t, 0); |
michael@0 | 8081 | } |
michael@0 | 8082 | return 0; |
michael@0 | 8083 | }" > dummy.c ; |
michael@0 | 8084 | echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS" 1>&5; |
michael@0 | 8085 | ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS 2>&5; |
michael@0 | 8086 | _res=$? ; |
michael@0 | 8087 | rm -f dummy.c dummy${ac_exeext} ; |
michael@0 | 8088 | if test "$_res" = "0"; then |
michael@0 | 8089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 8090 | $as_echo "yes" >&6; } |
michael@0 | 8091 | _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread" |
michael@0 | 8092 | else |
michael@0 | 8093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 8094 | $as_echo "no" >&6; } |
michael@0 | 8095 | |
michael@0 | 8096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 |
michael@0 | 8097 | $as_echo_n "checking for pthread_create in -lc_r... " >&6; } |
michael@0 | 8098 | echo " |
michael@0 | 8099 | #include <pthread.h> |
michael@0 | 8100 | void *foo(void *v) { return v; } |
michael@0 | 8101 | int main() { |
michael@0 | 8102 | pthread_t t; |
michael@0 | 8103 | if (!pthread_create(&t, 0, &foo, 0)) { |
michael@0 | 8104 | pthread_join(t, 0); |
michael@0 | 8105 | } |
michael@0 | 8106 | return 0; |
michael@0 | 8107 | }" > dummy.c ; |
michael@0 | 8108 | echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS" 1>&5; |
michael@0 | 8109 | ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS 2>&5; |
michael@0 | 8110 | _res=$? ; |
michael@0 | 8111 | rm -f dummy.c dummy${ac_exeext} ; |
michael@0 | 8112 | if test "$_res" = "0"; then |
michael@0 | 8113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 8114 | $as_echo "yes" >&6; } |
michael@0 | 8115 | _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r" |
michael@0 | 8116 | else |
michael@0 | 8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 8118 | $as_echo "no" >&6; } |
michael@0 | 8119 | |
michael@0 | 8120 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc" >&5 |
michael@0 | 8121 | $as_echo_n "checking for pthread_create in -lc... " >&6; } |
michael@0 | 8122 | echo " |
michael@0 | 8123 | #include <pthread.h> |
michael@0 | 8124 | void *foo(void *v) { return v; } |
michael@0 | 8125 | int main() { |
michael@0 | 8126 | pthread_t t; |
michael@0 | 8127 | if (!pthread_create(&t, 0, &foo, 0)) { |
michael@0 | 8128 | pthread_join(t, 0); |
michael@0 | 8129 | } |
michael@0 | 8130 | return 0; |
michael@0 | 8131 | }" > dummy.c ; |
michael@0 | 8132 | echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS" 1>&5; |
michael@0 | 8133 | ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS 2>&5; |
michael@0 | 8134 | _res=$? ; |
michael@0 | 8135 | rm -f dummy.c dummy${ac_exeext} ; |
michael@0 | 8136 | if test "$_res" = "0"; then |
michael@0 | 8137 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 8138 | $as_echo "yes" >&6; } |
michael@0 | 8139 | _HAVE_PTHREADS=1 |
michael@0 | 8140 | |
michael@0 | 8141 | else |
michael@0 | 8142 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 8143 | $as_echo "no" >&6; } |
michael@0 | 8144 | |
michael@0 | 8145 | fi |
michael@0 | 8146 | |
michael@0 | 8147 | |
michael@0 | 8148 | fi |
michael@0 | 8149 | |
michael@0 | 8150 | |
michael@0 | 8151 | fi |
michael@0 | 8152 | |
michael@0 | 8153 | |
michael@0 | 8154 | fi |
michael@0 | 8155 | |
michael@0 | 8156 | ;; |
michael@0 | 8157 | esac |
michael@0 | 8158 | |
michael@0 | 8159 | |
michael@0 | 8160 | # Check whether --with-pthreads was given. |
michael@0 | 8161 | if test "${with_pthreads+set}" = set; then : |
michael@0 | 8162 | withval=$with_pthreads; if test "$withval" = "yes"; then |
michael@0 | 8163 | if test -n "$_HAVE_PTHREADS"; then |
michael@0 | 8164 | USE_PTHREADS=1 |
michael@0 | 8165 | USE_USER_PTHREADS= |
michael@0 | 8166 | USE_NSPR_THREADS= |
michael@0 | 8167 | else |
michael@0 | 8168 | as_fn_error $? " --with-pthreads specified for a system without pthread support " "$LINENO" 5; |
michael@0 | 8169 | fi |
michael@0 | 8170 | else |
michael@0 | 8171 | USE_PTHREADS= |
michael@0 | 8172 | _PTHREAD_LDFLAGS= |
michael@0 | 8173 | fi |
michael@0 | 8174 | else |
michael@0 | 8175 | if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USE_NSPR_THREADS"; then |
michael@0 | 8176 | USE_PTHREADS=1 |
michael@0 | 8177 | USE_USER_PTHREADS= |
michael@0 | 8178 | USE_NSPR_THREADS= |
michael@0 | 8179 | fi |
michael@0 | 8180 | fi |
michael@0 | 8181 | |
michael@0 | 8182 | |
michael@0 | 8183 | # Check whether --enable-user-pthreads was given. |
michael@0 | 8184 | if test "${enable_user_pthreads+set}" = set; then : |
michael@0 | 8185 | enableval=$enable_user_pthreads; if test "$enableval" = "yes"; then |
michael@0 | 8186 | if test -n "$_HAVE_PTHREADS"; then |
michael@0 | 8187 | USE_PTHREADS= |
michael@0 | 8188 | USE_USER_PTHREADS=1 |
michael@0 | 8189 | USE_NSPR_THREADS= |
michael@0 | 8190 | else |
michael@0 | 8191 | as_fn_error $? " --enable-user-pthreads specified for a system without pthread support " "$LINENO" 5; |
michael@0 | 8192 | fi |
michael@0 | 8193 | fi |
michael@0 | 8194 | fi |
michael@0 | 8195 | |
michael@0 | 8196 | |
michael@0 | 8197 | # Check whether --enable-nspr-threads was given. |
michael@0 | 8198 | if test "${enable_nspr_threads+set}" = set; then : |
michael@0 | 8199 | enableval=$enable_nspr_threads; if test "$enableval" = "yes"; then |
michael@0 | 8200 | USE_PTHREADS= |
michael@0 | 8201 | USE_USER_PTHREADS= |
michael@0 | 8202 | USE_NSPR_THREADS=1 |
michael@0 | 8203 | fi |
michael@0 | 8204 | fi |
michael@0 | 8205 | |
michael@0 | 8206 | |
michael@0 | 8207 | case "$target" in |
michael@0 | 8208 | *-beos*) |
michael@0 | 8209 | |
michael@0 | 8210 | # Check whether --with-bthreads was given. |
michael@0 | 8211 | if test "${with_bthreads+set}" = set; then : |
michael@0 | 8212 | withval=$with_bthreads; if test "$withval" = "yes"; then |
michael@0 | 8213 | USE_BTHREADS=1 |
michael@0 | 8214 | USE_USER_PTHREADS= |
michael@0 | 8215 | USE_PTHREADS= |
michael@0 | 8216 | fi |
michael@0 | 8217 | fi |
michael@0 | 8218 | |
michael@0 | 8219 | ;; |
michael@0 | 8220 | esac |
michael@0 | 8221 | |
michael@0 | 8222 | fi # SKIP_LIBRARY_CHECKS |
michael@0 | 8223 | |
michael@0 | 8224 | # Check whether --enable-ipv6 was given. |
michael@0 | 8225 | if test "${enable_ipv6+set}" = set; then : |
michael@0 | 8226 | enableval=$enable_ipv6; if test "$enableval" = "yes"; then |
michael@0 | 8227 | USE_IPV6=1 |
michael@0 | 8228 | else |
michael@0 | 8229 | USE_IPV6= |
michael@0 | 8230 | fi |
michael@0 | 8231 | fi |
michael@0 | 8232 | |
michael@0 | 8233 | |
michael@0 | 8234 | if test -n "$USE_PTHREADS"; then |
michael@0 | 8235 | rm -f conftest* |
michael@0 | 8236 | ac_cv_have_dash_pthread=no |
michael@0 | 8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthread" >&5 |
michael@0 | 8238 | $as_echo_n "checking whether ${CC-cc} accepts -pthread... " >&6; } |
michael@0 | 8239 | echo 'int main() { return 0; }' | cat > conftest.c |
michael@0 | 8240 | ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 |
michael@0 | 8241 | if test $? -eq 0; then |
michael@0 | 8242 | if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then |
michael@0 | 8243 | ac_cv_have_dash_pthread=yes |
michael@0 | 8244 | case "$target_os" in |
michael@0 | 8245 | freebsd*) |
michael@0 | 8246 | # Freebsd doesn't use -pthread for compiles, it uses them for linking |
michael@0 | 8247 | ;; |
michael@0 | 8248 | *) |
michael@0 | 8249 | CFLAGS="$CFLAGS -pthread" |
michael@0 | 8250 | CXXFLAGS="$CXXFLAGS -pthread" |
michael@0 | 8251 | ;; |
michael@0 | 8252 | esac |
michael@0 | 8253 | fi |
michael@0 | 8254 | fi |
michael@0 | 8255 | rm -f conftest* |
michael@0 | 8256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthread" >&5 |
michael@0 | 8257 | $as_echo "$ac_cv_have_dash_pthread" >&6; } |
michael@0 | 8258 | |
michael@0 | 8259 | ac_cv_have_dash_pthreads=no |
michael@0 | 8260 | if test "$ac_cv_have_dash_pthread" = "no"; then |
michael@0 | 8261 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC-cc} accepts -pthreads" >&5 |
michael@0 | 8262 | $as_echo_n "checking whether ${CC-cc} accepts -pthreads... " >&6; } |
michael@0 | 8263 | echo 'int main() { return 0; }' | cat > conftest.c |
michael@0 | 8264 | ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 |
michael@0 | 8265 | if test $? -eq 0; then |
michael@0 | 8266 | if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then |
michael@0 | 8267 | ac_cv_have_dash_pthreads=yes |
michael@0 | 8268 | CFLAGS="$CFLAGS -pthreads" |
michael@0 | 8269 | CXXFLAGS="$CXXFLAGS -pthreads" |
michael@0 | 8270 | fi |
michael@0 | 8271 | fi |
michael@0 | 8272 | rm -f conftest* |
michael@0 | 8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_dash_pthreads" >&5 |
michael@0 | 8274 | $as_echo "$ac_cv_have_dash_pthreads" >&6; } |
michael@0 | 8275 | fi |
michael@0 | 8276 | |
michael@0 | 8277 | case "$target" in |
michael@0 | 8278 | *-solaris*) |
michael@0 | 8279 | if test "$ac_cv_have_dash_pthreads" = "yes"; then |
michael@0 | 8280 | _PTHREAD_LDFLAGS= |
michael@0 | 8281 | fi |
michael@0 | 8282 | ;; |
michael@0 | 8283 | *-freebsd*) |
michael@0 | 8284 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
michael@0 | 8285 | |
michael@0 | 8286 | $as_echo "#define _THREAD_SAFE 1" >>confdefs.h |
michael@0 | 8287 | |
michael@0 | 8288 | if test "$ac_cv_have_dash_pthread" = "yes"; then |
michael@0 | 8289 | _PTHREAD_LDFLAGS="-pthread" |
michael@0 | 8290 | else |
michael@0 | 8291 | _PTHREAD_LDFLAGS="-lc_r" |
michael@0 | 8292 | fi |
michael@0 | 8293 | ;; |
michael@0 | 8294 | *-netbsd*) |
michael@0 | 8295 | if test "$ac_cv_have_dash_pthread" = "yes"; then |
michael@0 | 8296 | _PTHREAD_LDFLAGS="-pthread" |
michael@0 | 8297 | fi |
michael@0 | 8298 | ;; |
michael@0 | 8299 | *-bsdi*) |
michael@0 | 8300 | $as_echo "#define _THREAD_SAFE 1" >>confdefs.h |
michael@0 | 8301 | |
michael@0 | 8302 | if test "$ac_cv_have_dash_pthread" = "yes"; then |
michael@0 | 8303 | _PTHREAD_LDFLAGS= |
michael@0 | 8304 | fi |
michael@0 | 8305 | ;; |
michael@0 | 8306 | *-openbsd*) |
michael@0 | 8307 | if test "$ac_cv_have_dash_pthread" = "yes"; then |
michael@0 | 8308 | _PTHREAD_LDFLAGS=-pthread |
michael@0 | 8309 | fi |
michael@0 | 8310 | ;; |
michael@0 | 8311 | *-linux*|*-gnu*|*-k*bsd*-gnu) |
michael@0 | 8312 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
michael@0 | 8313 | |
michael@0 | 8314 | ;; |
michael@0 | 8315 | esac |
michael@0 | 8316 | |
michael@0 | 8317 | else |
michael@0 | 8318 | if test -n "$USE_USER_PTHREADS"; then |
michael@0 | 8319 | USE_PTHREADS= |
michael@0 | 8320 | USE_NSPR_THREADS= |
michael@0 | 8321 | else |
michael@0 | 8322 | _PTHREAD_LDFLAGS= |
michael@0 | 8323 | fi |
michael@0 | 8324 | fi |
michael@0 | 8325 | |
michael@0 | 8326 | case "$target" in |
michael@0 | 8327 | *-aix*) |
michael@0 | 8328 | if test -n "$USE_NSPR_THREADS"; then |
michael@0 | 8329 | $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
michael@0 | 8330 | |
michael@0 | 8331 | fi |
michael@0 | 8332 | case "$target_os" in |
michael@0 | 8333 | aix4.1*) |
michael@0 | 8334 | if test -z "$USE_PTHREADS"; then |
michael@0 | 8335 | $as_echo "#define AIX_RENAME_SELECT 1" >>confdefs.h |
michael@0 | 8336 | |
michael@0 | 8337 | fi |
michael@0 | 8338 | ;; |
michael@0 | 8339 | aix4.2*) |
michael@0 | 8340 | if test -z "$USE_NSPR_THREADS"; then |
michael@0 | 8341 | $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
michael@0 | 8342 | |
michael@0 | 8343 | fi |
michael@0 | 8344 | ;; |
michael@0 | 8345 | aix4.3*) |
michael@0 | 8346 | if test -z "$USE_NSPR_THREADS"; then |
michael@0 | 8347 | $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
michael@0 | 8348 | |
michael@0 | 8349 | fi |
michael@0 | 8350 | if test -n "$USE_PTHREADS"; then |
michael@0 | 8351 | $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h |
michael@0 | 8352 | |
michael@0 | 8353 | fi |
michael@0 | 8354 | ;; |
michael@0 | 8355 | *) |
michael@0 | 8356 | if test -z "$USE_NSPR_THREADS"; then |
michael@0 | 8357 | $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
michael@0 | 8358 | |
michael@0 | 8359 | fi |
michael@0 | 8360 | if test -n "$USE_PTHREADS"; then |
michael@0 | 8361 | $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h |
michael@0 | 8362 | |
michael@0 | 8363 | fi |
michael@0 | 8364 | ;; |
michael@0 | 8365 | esac |
michael@0 | 8366 | ;; |
michael@0 | 8367 | *-bsdi*) |
michael@0 | 8368 | if test -n "$USE_PTHREADS"; then |
michael@0 | 8369 | $as_echo "#define _PR_NEED_PTHREAD_INIT 1" >>confdefs.h |
michael@0 | 8370 | |
michael@0 | 8371 | fi |
michael@0 | 8372 | ;; |
michael@0 | 8373 | *-freebsd*) |
michael@0 | 8374 | if test -n "$USE_NSPR_THREADS"; then |
michael@0 | 8375 | $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
michael@0 | 8376 | |
michael@0 | 8377 | fi |
michael@0 | 8378 | ;; |
michael@0 | 8379 | *-hpux*) |
michael@0 | 8380 | if test -n "$USE_NSPR_THREADS"; then |
michael@0 | 8381 | $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
michael@0 | 8382 | |
michael@0 | 8383 | fi |
michael@0 | 8384 | if test "$USE_PTHREADS"; then |
michael@0 | 8385 | if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then |
michael@0 | 8386 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
michael@0 | 8387 | |
michael@0 | 8388 | $as_echo "#define _PR_DCETHREADS 1" >>confdefs.h |
michael@0 | 8389 | |
michael@0 | 8390 | else |
michael@0 | 8391 | cat >>confdefs.h <<_ACEOF |
michael@0 | 8392 | #define _POSIX_C_SOURCE 199506L |
michael@0 | 8393 | _ACEOF |
michael@0 | 8394 | |
michael@0 | 8395 | $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h |
michael@0 | 8396 | |
michael@0 | 8397 | fi |
michael@0 | 8398 | fi |
michael@0 | 8399 | if test "$USE_USER_PTHREADS"; then |
michael@0 | 8400 | cat >>confdefs.h <<_ACEOF |
michael@0 | 8401 | #define _POSIX_C_SOURCE 199506L |
michael@0 | 8402 | _ACEOF |
michael@0 | 8403 | |
michael@0 | 8404 | fi |
michael@0 | 8405 | ;; |
michael@0 | 8406 | *-irix*) |
michael@0 | 8407 | if test "${target_os}" = "irix6.5"; then |
michael@0 | 8408 | if test -n "$USE_PTHREADS"; then |
michael@0 | 8409 | $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h |
michael@0 | 8410 | |
michael@0 | 8411 | $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h |
michael@0 | 8412 | |
michael@0 | 8413 | fi |
michael@0 | 8414 | fi |
michael@0 | 8415 | ;; |
michael@0 | 8416 | *-linux*|*-gnu*|*-k*bsd*-gnu) |
michael@0 | 8417 | if test -n "$USE_NSPR_THREADS"; then |
michael@0 | 8418 | $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
michael@0 | 8419 | |
michael@0 | 8420 | fi |
michael@0 | 8421 | ;; |
michael@0 | 8422 | *-mingw*|*-msys*|*-cygwin*|*-mks*|*-os2*|*-beos*) |
michael@0 | 8423 | USE_PTHREADS= |
michael@0 | 8424 | _PTHREAD_LDFLAGS= |
michael@0 | 8425 | USE_USER_PTHREADS= |
michael@0 | 8426 | ;; |
michael@0 | 8427 | *-netbsd*|*-openbsd*) |
michael@0 | 8428 | if test -n "$USE_NSPR_THREADS"; then |
michael@0 | 8429 | $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
michael@0 | 8430 | |
michael@0 | 8431 | fi |
michael@0 | 8432 | ;; |
michael@0 | 8433 | *-osf*) |
michael@0 | 8434 | if test -n "$USE_NSPR_THREADS"; then |
michael@0 | 8435 | $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
michael@0 | 8436 | |
michael@0 | 8437 | fi |
michael@0 | 8438 | if test -n "$USE_PTHREADS"; then |
michael@0 | 8439 | if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then |
michael@0 | 8440 | : |
michael@0 | 8441 | else |
michael@0 | 8442 | $as_echo "#define _PR_HAVE_THREADSAFE_GETHOST 1" >>confdefs.h |
michael@0 | 8443 | |
michael@0 | 8444 | fi |
michael@0 | 8445 | fi |
michael@0 | 8446 | ;; |
michael@0 | 8447 | *-solaris*) |
michael@0 | 8448 | if test -n "$USE_NSPR_THREADS"; then |
michael@0 | 8449 | $as_echo "#define _PR_LOCAL_THREADS_ONLY 1" >>confdefs.h |
michael@0 | 8450 | |
michael@0 | 8451 | fi |
michael@0 | 8452 | if test -n "$USE_PTHREADS"; then |
michael@0 | 8453 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
michael@0 | 8454 | |
michael@0 | 8455 | $as_echo "#define HAVE_POINTER_LOCALTIME_R 1" >>confdefs.h |
michael@0 | 8456 | |
michael@0 | 8457 | if test "$OS_TEST" = "i86pc"; then |
michael@0 | 8458 | if test -n "$USE_64"; then |
michael@0 | 8459 | PR_MD_ASFILES=os_SunOS_x86_64.s |
michael@0 | 8460 | else |
michael@0 | 8461 | PR_MD_ASFILES=os_SunOS_x86.s |
michael@0 | 8462 | fi |
michael@0 | 8463 | else |
michael@0 | 8464 | if test -n "$USE_64"; then |
michael@0 | 8465 | PR_MD_ASFILES=os_SunOS_sparcv9.s |
michael@0 | 8466 | fi |
michael@0 | 8467 | fi |
michael@0 | 8468 | fi |
michael@0 | 8469 | ;; |
michael@0 | 8470 | *-nto*) |
michael@0 | 8471 | if test -n "$USE_PTHREADS"; then |
michael@0 | 8472 | $as_echo "#define _PR_HAVE_GETHOST_R 1" >>confdefs.h |
michael@0 | 8473 | |
michael@0 | 8474 | $as_echo "#define _PR_HAVE_GETHOST_R_POINTER 1" >>confdefs.h |
michael@0 | 8475 | |
michael@0 | 8476 | fi |
michael@0 | 8477 | ;; |
michael@0 | 8478 | esac |
michael@0 | 8479 | |
michael@0 | 8480 | OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS" |
michael@0 | 8481 | |
michael@0 | 8482 | if test -n "$_SAVE_OPTIMIZE_FLAGS"; then |
michael@0 | 8483 | _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS" |
michael@0 | 8484 | fi |
michael@0 | 8485 | |
michael@0 | 8486 | if test -n "$_SAVE_DEBUG_FLAGS"; then |
michael@0 | 8487 | _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS" |
michael@0 | 8488 | fi |
michael@0 | 8489 | |
michael@0 | 8490 | if test -n "$MOZ_OPTIMIZE"; then |
michael@0 | 8491 | CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS" |
michael@0 | 8492 | CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS" |
michael@0 | 8493 | fi |
michael@0 | 8494 | |
michael@0 | 8495 | if test -n "$MOZ_DEBUG_SYMBOLS"; then |
michael@0 | 8496 | CFLAGS="$CFLAGS $_DEBUG_FLAGS" |
michael@0 | 8497 | CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS" |
michael@0 | 8498 | fi |
michael@0 | 8499 | |
michael@0 | 8500 | if test -n "$MOZ_OPTIMIZE"; then |
michael@0 | 8501 | OBJDIR_TAG=_OPT |
michael@0 | 8502 | else |
michael@0 | 8503 | OBJDIR_TAG=_DBG |
michael@0 | 8504 | fi |
michael@0 | 8505 | |
michael@0 | 8506 | if test -n "$USE_64"; then |
michael@0 | 8507 | COMPILER_TAG=_64 |
michael@0 | 8508 | fi |
michael@0 | 8509 | |
michael@0 | 8510 | RELEASE_OBJDIR_NAME="${OS_CONFIG}${CPU_ARCH_TAG}${COMPILER_TAG}${IMPL_STRATEGY}${OBJDIR_TAG}.${OBJDIR_SUFFIX}" |
michael@0 | 8511 | |
michael@0 | 8512 | case "$target_os" in |
michael@0 | 8513 | cygwin*|mks*) |
michael@0 | 8514 | CC="\$(CYGWIN_WRAPPER) $CC" |
michael@0 | 8515 | CXX="\$(CYGWIN_WRAPPER) $CXX" |
michael@0 | 8516 | RC="\$(CYGWIN_WRAPPER) $RC" |
michael@0 | 8517 | ;; |
michael@0 | 8518 | esac |
michael@0 | 8519 | |
michael@0 | 8520 | # Check whether --enable-wrap-malloc was given. |
michael@0 | 8521 | if test "${enable_wrap_malloc+set}" = set; then : |
michael@0 | 8522 | enableval=$enable_wrap_malloc; if test "$enableval" = "yes"; then |
michael@0 | 8523 | _WRAP_MALLOC=1 |
michael@0 | 8524 | fi |
michael@0 | 8525 | fi |
michael@0 | 8526 | |
michael@0 | 8527 | |
michael@0 | 8528 | if test -n "$_WRAP_MALLOC"; then |
michael@0 | 8529 | if test -n "$GNU_CC"; then |
michael@0 | 8530 | WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=malloc,--wrap=calloc,--wrap=valloc,--wrap=free,--wrap=realloc,--wrap=memalign" |
michael@0 | 8531 | WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=__builtin_new,--wrap=__builtin_vec_new,--wrap=__builtin_delete,--wrap=__builtin_vec_delete" |
michael@0 | 8532 | WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=strdup,--wrap=strndup" |
michael@0 | 8533 | WRAP_LDFLAGS="${WRAP_LDFLAGS} -Wl,--wrap=posix_memalign,--wrap=malloc_usable_size" |
michael@0 | 8534 | else |
michael@0 | 8535 | as_fn_error $? "--enable-wrap-malloc is not supported for non-GNU toolchains" "$LINENO" 5 |
michael@0 | 8536 | fi |
michael@0 | 8537 | fi |
michael@0 | 8538 | |
michael@0 | 8539 | |
michael@0 | 8540 | # Check whether --with-wrap-malloc was given. |
michael@0 | 8541 | if test "${with_wrap_malloc+set}" = set; then : |
michael@0 | 8542 | withval=$with_wrap_malloc; WRAP_LDFLAGS="${WRAP_LDFLAGS} $withval" |
michael@0 | 8543 | fi |
michael@0 | 8544 | |
michael@0 | 8545 | |
michael@0 | 8546 | |
michael@0 | 8547 | |
michael@0 | 8548 | |
michael@0 | 8549 | |
michael@0 | 8550 | |
michael@0 | 8551 | |
michael@0 | 8552 | |
michael@0 | 8553 | |
michael@0 | 8554 | |
michael@0 | 8555 | |
michael@0 | 8556 | |
michael@0 | 8557 | |
michael@0 | 8558 | |
michael@0 | 8559 | |
michael@0 | 8560 | |
michael@0 | 8561 | |
michael@0 | 8562 | |
michael@0 | 8563 | |
michael@0 | 8564 | |
michael@0 | 8565 | |
michael@0 | 8566 | |
michael@0 | 8567 | |
michael@0 | 8568 | |
michael@0 | 8569 | |
michael@0 | 8570 | |
michael@0 | 8571 | |
michael@0 | 8572 | |
michael@0 | 8573 | |
michael@0 | 8574 | |
michael@0 | 8575 | |
michael@0 | 8576 | |
michael@0 | 8577 | |
michael@0 | 8578 | |
michael@0 | 8579 | |
michael@0 | 8580 | |
michael@0 | 8581 | |
michael@0 | 8582 | |
michael@0 | 8583 | |
michael@0 | 8584 | |
michael@0 | 8585 | |
michael@0 | 8586 | |
michael@0 | 8587 | |
michael@0 | 8588 | |
michael@0 | 8589 | |
michael@0 | 8590 | |
michael@0 | 8591 | |
michael@0 | 8592 | |
michael@0 | 8593 | |
michael@0 | 8594 | |
michael@0 | 8595 | |
michael@0 | 8596 | |
michael@0 | 8597 | |
michael@0 | 8598 | |
michael@0 | 8599 | |
michael@0 | 8600 | |
michael@0 | 8601 | |
michael@0 | 8602 | |
michael@0 | 8603 | |
michael@0 | 8604 | |
michael@0 | 8605 | |
michael@0 | 8606 | |
michael@0 | 8607 | |
michael@0 | 8608 | |
michael@0 | 8609 | |
michael@0 | 8610 | |
michael@0 | 8611 | |
michael@0 | 8612 | |
michael@0 | 8613 | |
michael@0 | 8614 | |
michael@0 | 8615 | |
michael@0 | 8616 | |
michael@0 | 8617 | |
michael@0 | 8618 | |
michael@0 | 8619 | |
michael@0 | 8620 | |
michael@0 | 8621 | |
michael@0 | 8622 | |
michael@0 | 8623 | |
michael@0 | 8624 | |
michael@0 | 8625 | |
michael@0 | 8626 | |
michael@0 | 8627 | |
michael@0 | 8628 | |
michael@0 | 8629 | |
michael@0 | 8630 | |
michael@0 | 8631 | |
michael@0 | 8632 | |
michael@0 | 8633 | |
michael@0 | 8634 | |
michael@0 | 8635 | |
michael@0 | 8636 | |
michael@0 | 8637 | |
michael@0 | 8638 | |
michael@0 | 8639 | |
michael@0 | 8640 | |
michael@0 | 8641 | |
michael@0 | 8642 | |
michael@0 | 8643 | |
michael@0 | 8644 | |
michael@0 | 8645 | |
michael@0 | 8646 | |
michael@0 | 8647 | |
michael@0 | 8648 | |
michael@0 | 8649 | |
michael@0 | 8650 | |
michael@0 | 8651 | MAKEFILES=" |
michael@0 | 8652 | Makefile |
michael@0 | 8653 | config/Makefile |
michael@0 | 8654 | config/autoconf.mk |
michael@0 | 8655 | config/nsprincl.mk |
michael@0 | 8656 | config/nsprincl.sh |
michael@0 | 8657 | config/nspr-config |
michael@0 | 8658 | config/nspr.pc |
michael@0 | 8659 | lib/Makefile |
michael@0 | 8660 | lib/ds/Makefile |
michael@0 | 8661 | lib/libc/Makefile |
michael@0 | 8662 | lib/libc/include/Makefile |
michael@0 | 8663 | lib/libc/src/Makefile |
michael@0 | 8664 | lib/tests/Makefile |
michael@0 | 8665 | pkg/Makefile |
michael@0 | 8666 | pr/Makefile |
michael@0 | 8667 | pr/include/Makefile |
michael@0 | 8668 | pr/include/md/Makefile |
michael@0 | 8669 | pr/include/obsolete/Makefile |
michael@0 | 8670 | pr/include/private/Makefile |
michael@0 | 8671 | pr/src/Makefile |
michael@0 | 8672 | pr/src/io/Makefile |
michael@0 | 8673 | pr/src/linking/Makefile |
michael@0 | 8674 | pr/src/malloc/Makefile |
michael@0 | 8675 | pr/src/md/Makefile |
michael@0 | 8676 | pr/src/md/${PR_MD_ARCH_DIR}/Makefile |
michael@0 | 8677 | pr/src/memory/Makefile |
michael@0 | 8678 | pr/src/misc/Makefile |
michael@0 | 8679 | pr/src/threads/Makefile |
michael@0 | 8680 | pr/tests/Makefile |
michael@0 | 8681 | pr/tests/dll/Makefile |
michael@0 | 8682 | " |
michael@0 | 8683 | |
michael@0 | 8684 | if test "$OS_TARGET" = "Linux"; then |
michael@0 | 8685 | MAKEFILES="$MAKEFILES |
michael@0 | 8686 | pkg/linux/Makefile |
michael@0 | 8687 | " |
michael@0 | 8688 | elif test "$OS_TARGET" = "SunOS"; then |
michael@0 | 8689 | MAKEFILES="$MAKEFILES |
michael@0 | 8690 | pkg/solaris/Makefile |
michael@0 | 8691 | pkg/solaris/SUNWpr/Makefile |
michael@0 | 8692 | pkg/solaris/SUNWprd/Makefile |
michael@0 | 8693 | " |
michael@0 | 8694 | fi |
michael@0 | 8695 | |
michael@0 | 8696 | if test -z "$USE_PTHREADS" && test -z "$USE_BTHREADS"; then |
michael@0 | 8697 | MAKEFILES="$MAKEFILES |
michael@0 | 8698 | pr/src/threads/combined/Makefile |
michael@0 | 8699 | " |
michael@0 | 8700 | elif test -n "$USE_PTHREADS"; then |
michael@0 | 8701 | MAKEFILES="$MAKEFILES |
michael@0 | 8702 | pr/src/pthreads/Makefile |
michael@0 | 8703 | " |
michael@0 | 8704 | elif test -n "$USE_BTHREADS"; then |
michael@0 | 8705 | MAKEFILES="$MAKEFILES |
michael@0 | 8706 | pr/src/bthreads/Makefile |
michael@0 | 8707 | " |
michael@0 | 8708 | fi |
michael@0 | 8709 | |
michael@0 | 8710 | if test -n "$USE_CPLUS"; then |
michael@0 | 8711 | MAKEFILES="$MAKEFILES |
michael@0 | 8712 | pr/src/cplus/Makefile |
michael@0 | 8713 | pr/src/cplus/tests/Makefile |
michael@0 | 8714 | " |
michael@0 | 8715 | fi |
michael@0 | 8716 | |
michael@0 | 8717 | echo $MAKEFILES > unallmakefiles |
michael@0 | 8718 | |
michael@0 | 8719 | ac_config_files="$ac_config_files $MAKEFILES" |
michael@0 | 8720 | |
michael@0 | 8721 | ac_config_commands="$ac_config_commands default" |
michael@0 | 8722 | |
michael@0 | 8723 | cat >confcache <<\_ACEOF |
michael@0 | 8724 | # This file is a shell script that caches the results of configure |
michael@0 | 8725 | # tests run on this system so they can be shared between configure |
michael@0 | 8726 | # scripts and configure runs, see configure's option --config-cache. |
michael@0 | 8727 | # It is not useful on other systems. If it contains results you don't |
michael@0 | 8728 | # want to keep, you may remove or edit it. |
michael@0 | 8729 | # |
michael@0 | 8730 | # config.status only pays attention to the cache file if you give it |
michael@0 | 8731 | # the --recheck option to rerun configure. |
michael@0 | 8732 | # |
michael@0 | 8733 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
michael@0 | 8734 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
michael@0 | 8735 | # following values. |
michael@0 | 8736 | |
michael@0 | 8737 | _ACEOF |
michael@0 | 8738 | |
michael@0 | 8739 | # The following way of writing the cache mishandles newlines in values, |
michael@0 | 8740 | # but we know of no workaround that is simple, portable, and efficient. |
michael@0 | 8741 | # So, we kill variables containing newlines. |
michael@0 | 8742 | # Ultrix sh set writes to stderr and can't be redirected directly, |
michael@0 | 8743 | # and sets the high bit in the cache file unless we assign to the vars. |
michael@0 | 8744 | ( |
michael@0 | 8745 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
michael@0 | 8746 | eval ac_val=\$$ac_var |
michael@0 | 8747 | case $ac_val in #( |
michael@0 | 8748 | *${as_nl}*) |
michael@0 | 8749 | case $ac_var in #( |
michael@0 | 8750 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
michael@0 | 8751 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
michael@0 | 8752 | esac |
michael@0 | 8753 | case $ac_var in #( |
michael@0 | 8754 | _ | IFS | as_nl) ;; #( |
michael@0 | 8755 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
michael@0 | 8756 | *) { eval $ac_var=; unset $ac_var;} ;; |
michael@0 | 8757 | esac ;; |
michael@0 | 8758 | esac |
michael@0 | 8759 | done |
michael@0 | 8760 | |
michael@0 | 8761 | (set) 2>&1 | |
michael@0 | 8762 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
michael@0 | 8763 | *${as_nl}ac_space=\ *) |
michael@0 | 8764 | # `set' does not quote correctly, so add quotes: double-quote |
michael@0 | 8765 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
michael@0 | 8766 | sed -n \ |
michael@0 | 8767 | "s/'/'\\\\''/g; |
michael@0 | 8768 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
michael@0 | 8769 | ;; #( |
michael@0 | 8770 | *) |
michael@0 | 8771 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
michael@0 | 8772 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
michael@0 | 8773 | ;; |
michael@0 | 8774 | esac | |
michael@0 | 8775 | sort |
michael@0 | 8776 | ) | |
michael@0 | 8777 | sed ' |
michael@0 | 8778 | /^ac_cv_env_/b end |
michael@0 | 8779 | t clear |
michael@0 | 8780 | :clear |
michael@0 | 8781 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
michael@0 | 8782 | t end |
michael@0 | 8783 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
michael@0 | 8784 | :end' >>confcache |
michael@0 | 8785 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
michael@0 | 8786 | if test -w "$cache_file"; then |
michael@0 | 8787 | if test "x$cache_file" != "x/dev/null"; then |
michael@0 | 8788 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
michael@0 | 8789 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
michael@0 | 8790 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
michael@0 | 8791 | cat confcache >"$cache_file" |
michael@0 | 8792 | else |
michael@0 | 8793 | case $cache_file in #( |
michael@0 | 8794 | */* | ?:*) |
michael@0 | 8795 | mv -f confcache "$cache_file"$$ && |
michael@0 | 8796 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
michael@0 | 8797 | *) |
michael@0 | 8798 | mv -f confcache "$cache_file" ;; |
michael@0 | 8799 | esac |
michael@0 | 8800 | fi |
michael@0 | 8801 | fi |
michael@0 | 8802 | else |
michael@0 | 8803 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
michael@0 | 8804 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
michael@0 | 8805 | fi |
michael@0 | 8806 | fi |
michael@0 | 8807 | rm -f confcache |
michael@0 | 8808 | |
michael@0 | 8809 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
michael@0 | 8810 | # Let make expand exec_prefix. |
michael@0 | 8811 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
michael@0 | 8812 | |
michael@0 | 8813 | # Transform confdefs.h into DEFS. |
michael@0 | 8814 | # Protect against shell expansion while executing Makefile rules. |
michael@0 | 8815 | # Protect against Makefile macro expansion. |
michael@0 | 8816 | # |
michael@0 | 8817 | # If the first sed substitution is executed (which looks for macros that |
michael@0 | 8818 | # take arguments), then branch to the quote section. Otherwise, |
michael@0 | 8819 | # look for a macro that doesn't take arguments. |
michael@0 | 8820 | ac_script=' |
michael@0 | 8821 | :mline |
michael@0 | 8822 | /\\$/{ |
michael@0 | 8823 | N |
michael@0 | 8824 | s,\\\n,, |
michael@0 | 8825 | b mline |
michael@0 | 8826 | } |
michael@0 | 8827 | t clear |
michael@0 | 8828 | :clear |
michael@0 | 8829 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
michael@0 | 8830 | t quote |
michael@0 | 8831 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
michael@0 | 8832 | t quote |
michael@0 | 8833 | b any |
michael@0 | 8834 | :quote |
michael@0 | 8835 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
michael@0 | 8836 | s/\[/\\&/g |
michael@0 | 8837 | s/\]/\\&/g |
michael@0 | 8838 | s/\$/$$/g |
michael@0 | 8839 | H |
michael@0 | 8840 | :any |
michael@0 | 8841 | ${ |
michael@0 | 8842 | g |
michael@0 | 8843 | s/^\n// |
michael@0 | 8844 | s/\n/ /g |
michael@0 | 8845 | p |
michael@0 | 8846 | } |
michael@0 | 8847 | ' |
michael@0 | 8848 | DEFS=`sed -n "$ac_script" confdefs.h` |
michael@0 | 8849 | |
michael@0 | 8850 | |
michael@0 | 8851 | ac_libobjs= |
michael@0 | 8852 | ac_ltlibobjs= |
michael@0 | 8853 | U= |
michael@0 | 8854 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
michael@0 | 8855 | # 1. Remove the extension, and $U if already installed. |
michael@0 | 8856 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
michael@0 | 8857 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
michael@0 | 8858 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
michael@0 | 8859 | # will be set to the directory where LIBOBJS objects are built. |
michael@0 | 8860 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
michael@0 | 8861 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
michael@0 | 8862 | done |
michael@0 | 8863 | LIBOBJS=$ac_libobjs |
michael@0 | 8864 | |
michael@0 | 8865 | LTLIBOBJS=$ac_ltlibobjs |
michael@0 | 8866 | |
michael@0 | 8867 | |
michael@0 | 8868 | |
michael@0 | 8869 | : "${CONFIG_STATUS=./config.status}" |
michael@0 | 8870 | ac_write_fail=0 |
michael@0 | 8871 | ac_clean_files_save=$ac_clean_files |
michael@0 | 8872 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
michael@0 | 8873 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
michael@0 | 8874 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
michael@0 | 8875 | as_write_fail=0 |
michael@0 | 8876 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
michael@0 | 8877 | #! $SHELL |
michael@0 | 8878 | # Generated by $as_me. |
michael@0 | 8879 | # Run this file to recreate the current configuration. |
michael@0 | 8880 | # Compiler output produced by configure, useful for debugging |
michael@0 | 8881 | # configure, is in config.log if it exists. |
michael@0 | 8882 | |
michael@0 | 8883 | debug=false |
michael@0 | 8884 | ac_cs_recheck=false |
michael@0 | 8885 | ac_cs_silent=false |
michael@0 | 8886 | |
michael@0 | 8887 | SHELL=\${CONFIG_SHELL-$SHELL} |
michael@0 | 8888 | export SHELL |
michael@0 | 8889 | _ASEOF |
michael@0 | 8890 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
michael@0 | 8891 | ## -------------------- ## |
michael@0 | 8892 | ## M4sh Initialization. ## |
michael@0 | 8893 | ## -------------------- ## |
michael@0 | 8894 | |
michael@0 | 8895 | # Be more Bourne compatible |
michael@0 | 8896 | DUALCASE=1; export DUALCASE # for MKS sh |
michael@0 | 8897 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
michael@0 | 8898 | emulate sh |
michael@0 | 8899 | NULLCMD=: |
michael@0 | 8900 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
michael@0 | 8901 | # is contrary to our usage. Disable this feature. |
michael@0 | 8902 | alias -g '${1+"$@"}'='"$@"' |
michael@0 | 8903 | setopt NO_GLOB_SUBST |
michael@0 | 8904 | else |
michael@0 | 8905 | case `(set -o) 2>/dev/null` in #( |
michael@0 | 8906 | *posix*) : |
michael@0 | 8907 | set -o posix ;; #( |
michael@0 | 8908 | *) : |
michael@0 | 8909 | ;; |
michael@0 | 8910 | esac |
michael@0 | 8911 | fi |
michael@0 | 8912 | |
michael@0 | 8913 | |
michael@0 | 8914 | as_nl=' |
michael@0 | 8915 | ' |
michael@0 | 8916 | export as_nl |
michael@0 | 8917 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
michael@0 | 8918 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
michael@0 | 8919 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 8920 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 8921 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
michael@0 | 8922 | # but without wasting forks for bash or zsh. |
michael@0 | 8923 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
michael@0 | 8924 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 8925 | as_echo='print -r --' |
michael@0 | 8926 | as_echo_n='print -rn --' |
michael@0 | 8927 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 8928 | as_echo='printf %s\n' |
michael@0 | 8929 | as_echo_n='printf %s' |
michael@0 | 8930 | else |
michael@0 | 8931 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
michael@0 | 8932 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
michael@0 | 8933 | as_echo_n='/usr/ucb/echo -n' |
michael@0 | 8934 | else |
michael@0 | 8935 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
michael@0 | 8936 | as_echo_n_body='eval |
michael@0 | 8937 | arg=$1; |
michael@0 | 8938 | case $arg in #( |
michael@0 | 8939 | *"$as_nl"*) |
michael@0 | 8940 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
michael@0 | 8941 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
michael@0 | 8942 | esac; |
michael@0 | 8943 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
michael@0 | 8944 | ' |
michael@0 | 8945 | export as_echo_n_body |
michael@0 | 8946 | as_echo_n='sh -c $as_echo_n_body as_echo' |
michael@0 | 8947 | fi |
michael@0 | 8948 | export as_echo_body |
michael@0 | 8949 | as_echo='sh -c $as_echo_body as_echo' |
michael@0 | 8950 | fi |
michael@0 | 8951 | |
michael@0 | 8952 | # The user is always right. |
michael@0 | 8953 | if test "${PATH_SEPARATOR+set}" != set; then |
michael@0 | 8954 | PATH_SEPARATOR=: |
michael@0 | 8955 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
michael@0 | 8956 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
michael@0 | 8957 | PATH_SEPARATOR=';' |
michael@0 | 8958 | } |
michael@0 | 8959 | fi |
michael@0 | 8960 | |
michael@0 | 8961 | |
michael@0 | 8962 | # IFS |
michael@0 | 8963 | # We need space, tab and new line, in precisely that order. Quoting is |
michael@0 | 8964 | # there to prevent editors from complaining about space-tab. |
michael@0 | 8965 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
michael@0 | 8966 | # splitting by setting IFS to empty value.) |
michael@0 | 8967 | IFS=" "" $as_nl" |
michael@0 | 8968 | |
michael@0 | 8969 | # Find who we are. Look in the path if we contain no directory separator. |
michael@0 | 8970 | as_myself= |
michael@0 | 8971 | case $0 in #(( |
michael@0 | 8972 | *[\\/]* ) as_myself=$0 ;; |
michael@0 | 8973 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 8974 | for as_dir in $PATH |
michael@0 | 8975 | do |
michael@0 | 8976 | IFS=$as_save_IFS |
michael@0 | 8977 | test -z "$as_dir" && as_dir=. |
michael@0 | 8978 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
michael@0 | 8979 | done |
michael@0 | 8980 | IFS=$as_save_IFS |
michael@0 | 8981 | |
michael@0 | 8982 | ;; |
michael@0 | 8983 | esac |
michael@0 | 8984 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
michael@0 | 8985 | # in which case we are not to be found in the path. |
michael@0 | 8986 | if test "x$as_myself" = x; then |
michael@0 | 8987 | as_myself=$0 |
michael@0 | 8988 | fi |
michael@0 | 8989 | if test ! -f "$as_myself"; then |
michael@0 | 8990 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
michael@0 | 8991 | exit 1 |
michael@0 | 8992 | fi |
michael@0 | 8993 | |
michael@0 | 8994 | # Unset variables that we do not need and which cause bugs (e.g. in |
michael@0 | 8995 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
michael@0 | 8996 | # suppresses any "Segmentation fault" message there. '((' could |
michael@0 | 8997 | # trigger a bug in pdksh 5.2.14. |
michael@0 | 8998 | for as_var in BASH_ENV ENV MAIL MAILPATH |
michael@0 | 8999 | do eval test x\${$as_var+set} = xset \ |
michael@0 | 9000 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
michael@0 | 9001 | done |
michael@0 | 9002 | PS1='$ ' |
michael@0 | 9003 | PS2='> ' |
michael@0 | 9004 | PS4='+ ' |
michael@0 | 9005 | |
michael@0 | 9006 | # NLS nuisances. |
michael@0 | 9007 | LC_ALL=C |
michael@0 | 9008 | export LC_ALL |
michael@0 | 9009 | LANGUAGE=C |
michael@0 | 9010 | export LANGUAGE |
michael@0 | 9011 | |
michael@0 | 9012 | # CDPATH. |
michael@0 | 9013 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
michael@0 | 9014 | |
michael@0 | 9015 | |
michael@0 | 9016 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
michael@0 | 9017 | # ---------------------------------------- |
michael@0 | 9018 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
michael@0 | 9019 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
michael@0 | 9020 | # script with STATUS, using 1 if that was 0. |
michael@0 | 9021 | as_fn_error () |
michael@0 | 9022 | { |
michael@0 | 9023 | as_status=$1; test $as_status -eq 0 && as_status=1 |
michael@0 | 9024 | if test "$4"; then |
michael@0 | 9025 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 9026 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
michael@0 | 9027 | fi |
michael@0 | 9028 | $as_echo "$as_me: error: $2" >&2 |
michael@0 | 9029 | as_fn_exit $as_status |
michael@0 | 9030 | } # as_fn_error |
michael@0 | 9031 | |
michael@0 | 9032 | |
michael@0 | 9033 | # as_fn_set_status STATUS |
michael@0 | 9034 | # ----------------------- |
michael@0 | 9035 | # Set $? to STATUS, without forking. |
michael@0 | 9036 | as_fn_set_status () |
michael@0 | 9037 | { |
michael@0 | 9038 | return $1 |
michael@0 | 9039 | } # as_fn_set_status |
michael@0 | 9040 | |
michael@0 | 9041 | # as_fn_exit STATUS |
michael@0 | 9042 | # ----------------- |
michael@0 | 9043 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
michael@0 | 9044 | as_fn_exit () |
michael@0 | 9045 | { |
michael@0 | 9046 | set +e |
michael@0 | 9047 | as_fn_set_status $1 |
michael@0 | 9048 | exit $1 |
michael@0 | 9049 | } # as_fn_exit |
michael@0 | 9050 | |
michael@0 | 9051 | # as_fn_unset VAR |
michael@0 | 9052 | # --------------- |
michael@0 | 9053 | # Portably unset VAR. |
michael@0 | 9054 | as_fn_unset () |
michael@0 | 9055 | { |
michael@0 | 9056 | { eval $1=; unset $1;} |
michael@0 | 9057 | } |
michael@0 | 9058 | as_unset=as_fn_unset |
michael@0 | 9059 | # as_fn_append VAR VALUE |
michael@0 | 9060 | # ---------------------- |
michael@0 | 9061 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
michael@0 | 9062 | # advantage of any shell optimizations that allow amortized linear growth over |
michael@0 | 9063 | # repeated appends, instead of the typical quadratic growth present in naive |
michael@0 | 9064 | # implementations. |
michael@0 | 9065 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
michael@0 | 9066 | eval 'as_fn_append () |
michael@0 | 9067 | { |
michael@0 | 9068 | eval $1+=\$2 |
michael@0 | 9069 | }' |
michael@0 | 9070 | else |
michael@0 | 9071 | as_fn_append () |
michael@0 | 9072 | { |
michael@0 | 9073 | eval $1=\$$1\$2 |
michael@0 | 9074 | } |
michael@0 | 9075 | fi # as_fn_append |
michael@0 | 9076 | |
michael@0 | 9077 | # as_fn_arith ARG... |
michael@0 | 9078 | # ------------------ |
michael@0 | 9079 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
michael@0 | 9080 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
michael@0 | 9081 | # must be portable across $(()) and expr. |
michael@0 | 9082 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
michael@0 | 9083 | eval 'as_fn_arith () |
michael@0 | 9084 | { |
michael@0 | 9085 | as_val=$(( $* )) |
michael@0 | 9086 | }' |
michael@0 | 9087 | else |
michael@0 | 9088 | as_fn_arith () |
michael@0 | 9089 | { |
michael@0 | 9090 | as_val=`expr "$@" || test $? -eq 1` |
michael@0 | 9091 | } |
michael@0 | 9092 | fi # as_fn_arith |
michael@0 | 9093 | |
michael@0 | 9094 | |
michael@0 | 9095 | if expr a : '\(a\)' >/dev/null 2>&1 && |
michael@0 | 9096 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
michael@0 | 9097 | as_expr=expr |
michael@0 | 9098 | else |
michael@0 | 9099 | as_expr=false |
michael@0 | 9100 | fi |
michael@0 | 9101 | |
michael@0 | 9102 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
michael@0 | 9103 | as_basename=basename |
michael@0 | 9104 | else |
michael@0 | 9105 | as_basename=false |
michael@0 | 9106 | fi |
michael@0 | 9107 | |
michael@0 | 9108 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
michael@0 | 9109 | as_dirname=dirname |
michael@0 | 9110 | else |
michael@0 | 9111 | as_dirname=false |
michael@0 | 9112 | fi |
michael@0 | 9113 | |
michael@0 | 9114 | as_me=`$as_basename -- "$0" || |
michael@0 | 9115 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
michael@0 | 9116 | X"$0" : 'X\(//\)$' \| \ |
michael@0 | 9117 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 9118 | $as_echo X/"$0" | |
michael@0 | 9119 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
michael@0 | 9120 | s//\1/ |
michael@0 | 9121 | q |
michael@0 | 9122 | } |
michael@0 | 9123 | /^X\/\(\/\/\)$/{ |
michael@0 | 9124 | s//\1/ |
michael@0 | 9125 | q |
michael@0 | 9126 | } |
michael@0 | 9127 | /^X\/\(\/\).*/{ |
michael@0 | 9128 | s//\1/ |
michael@0 | 9129 | q |
michael@0 | 9130 | } |
michael@0 | 9131 | s/.*/./; q'` |
michael@0 | 9132 | |
michael@0 | 9133 | # Avoid depending upon Character Ranges. |
michael@0 | 9134 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
michael@0 | 9135 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
michael@0 | 9136 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
michael@0 | 9137 | as_cr_digits='0123456789' |
michael@0 | 9138 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
michael@0 | 9139 | |
michael@0 | 9140 | ECHO_C= ECHO_N= ECHO_T= |
michael@0 | 9141 | case `echo -n x` in #((((( |
michael@0 | 9142 | -n*) |
michael@0 | 9143 | case `echo 'xy\c'` in |
michael@0 | 9144 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
michael@0 | 9145 | xy) ECHO_C='\c';; |
michael@0 | 9146 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
michael@0 | 9147 | ECHO_T=' ';; |
michael@0 | 9148 | esac;; |
michael@0 | 9149 | *) |
michael@0 | 9150 | ECHO_N='-n';; |
michael@0 | 9151 | esac |
michael@0 | 9152 | |
michael@0 | 9153 | rm -f conf$$ conf$$.exe conf$$.file |
michael@0 | 9154 | if test -d conf$$.dir; then |
michael@0 | 9155 | rm -f conf$$.dir/conf$$.file |
michael@0 | 9156 | else |
michael@0 | 9157 | rm -f conf$$.dir |
michael@0 | 9158 | mkdir conf$$.dir 2>/dev/null |
michael@0 | 9159 | fi |
michael@0 | 9160 | if (echo >conf$$.file) 2>/dev/null; then |
michael@0 | 9161 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 9162 | as_ln_s='ln -s' |
michael@0 | 9163 | # ... but there are two gotchas: |
michael@0 | 9164 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
michael@0 | 9165 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
michael@0 | 9166 | # In both cases, we have to default to `cp -pR'. |
michael@0 | 9167 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
michael@0 | 9168 | as_ln_s='cp -pR' |
michael@0 | 9169 | elif ln conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 9170 | as_ln_s=ln |
michael@0 | 9171 | else |
michael@0 | 9172 | as_ln_s='cp -pR' |
michael@0 | 9173 | fi |
michael@0 | 9174 | else |
michael@0 | 9175 | as_ln_s='cp -pR' |
michael@0 | 9176 | fi |
michael@0 | 9177 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
michael@0 | 9178 | rmdir conf$$.dir 2>/dev/null |
michael@0 | 9179 | |
michael@0 | 9180 | |
michael@0 | 9181 | # as_fn_mkdir_p |
michael@0 | 9182 | # ------------- |
michael@0 | 9183 | # Create "$as_dir" as a directory, including parents if necessary. |
michael@0 | 9184 | as_fn_mkdir_p () |
michael@0 | 9185 | { |
michael@0 | 9186 | |
michael@0 | 9187 | case $as_dir in #( |
michael@0 | 9188 | -*) as_dir=./$as_dir;; |
michael@0 | 9189 | esac |
michael@0 | 9190 | test -d "$as_dir" || eval $as_mkdir_p || { |
michael@0 | 9191 | as_dirs= |
michael@0 | 9192 | while :; do |
michael@0 | 9193 | case $as_dir in #( |
michael@0 | 9194 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
michael@0 | 9195 | *) as_qdir=$as_dir;; |
michael@0 | 9196 | esac |
michael@0 | 9197 | as_dirs="'$as_qdir' $as_dirs" |
michael@0 | 9198 | as_dir=`$as_dirname -- "$as_dir" || |
michael@0 | 9199 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 9200 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
michael@0 | 9201 | X"$as_dir" : 'X\(//\)$' \| \ |
michael@0 | 9202 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 9203 | $as_echo X"$as_dir" | |
michael@0 | 9204 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 9205 | s//\1/ |
michael@0 | 9206 | q |
michael@0 | 9207 | } |
michael@0 | 9208 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 9209 | s//\1/ |
michael@0 | 9210 | q |
michael@0 | 9211 | } |
michael@0 | 9212 | /^X\(\/\/\)$/{ |
michael@0 | 9213 | s//\1/ |
michael@0 | 9214 | q |
michael@0 | 9215 | } |
michael@0 | 9216 | /^X\(\/\).*/{ |
michael@0 | 9217 | s//\1/ |
michael@0 | 9218 | q |
michael@0 | 9219 | } |
michael@0 | 9220 | s/.*/./; q'` |
michael@0 | 9221 | test -d "$as_dir" && break |
michael@0 | 9222 | done |
michael@0 | 9223 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
michael@0 | 9224 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
michael@0 | 9225 | |
michael@0 | 9226 | |
michael@0 | 9227 | } # as_fn_mkdir_p |
michael@0 | 9228 | if mkdir -p . 2>/dev/null; then |
michael@0 | 9229 | as_mkdir_p='mkdir -p "$as_dir"' |
michael@0 | 9230 | else |
michael@0 | 9231 | test -d ./-p && rmdir ./-p |
michael@0 | 9232 | as_mkdir_p=false |
michael@0 | 9233 | fi |
michael@0 | 9234 | |
michael@0 | 9235 | |
michael@0 | 9236 | # as_fn_executable_p FILE |
michael@0 | 9237 | # ----------------------- |
michael@0 | 9238 | # Test if FILE is an executable regular file. |
michael@0 | 9239 | as_fn_executable_p () |
michael@0 | 9240 | { |
michael@0 | 9241 | test -f "$1" && test -x "$1" |
michael@0 | 9242 | } # as_fn_executable_p |
michael@0 | 9243 | as_test_x='test -x' |
michael@0 | 9244 | as_executable_p=as_fn_executable_p |
michael@0 | 9245 | |
michael@0 | 9246 | # Sed expression to map a string onto a valid CPP name. |
michael@0 | 9247 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 9248 | |
michael@0 | 9249 | # Sed expression to map a string onto a valid variable name. |
michael@0 | 9250 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 9251 | |
michael@0 | 9252 | |
michael@0 | 9253 | exec 6>&1 |
michael@0 | 9254 | ## ----------------------------------- ## |
michael@0 | 9255 | ## Main body of $CONFIG_STATUS script. ## |
michael@0 | 9256 | ## ----------------------------------- ## |
michael@0 | 9257 | _ASEOF |
michael@0 | 9258 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
michael@0 | 9259 | |
michael@0 | 9260 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 9261 | # Save the log message, to keep $0 and so on meaningful, and to |
michael@0 | 9262 | # report actual input values of CONFIG_FILES etc. instead of their |
michael@0 | 9263 | # values after options handling. |
michael@0 | 9264 | ac_log=" |
michael@0 | 9265 | This file was extended by $as_me, which was |
michael@0 | 9266 | generated by GNU Autoconf 2.69. Invocation command line was |
michael@0 | 9267 | |
michael@0 | 9268 | CONFIG_FILES = $CONFIG_FILES |
michael@0 | 9269 | CONFIG_HEADERS = $CONFIG_HEADERS |
michael@0 | 9270 | CONFIG_LINKS = $CONFIG_LINKS |
michael@0 | 9271 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
michael@0 | 9272 | $ $0 $@ |
michael@0 | 9273 | |
michael@0 | 9274 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
michael@0 | 9275 | " |
michael@0 | 9276 | |
michael@0 | 9277 | _ACEOF |
michael@0 | 9278 | |
michael@0 | 9279 | case $ac_config_files in *" |
michael@0 | 9280 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
michael@0 | 9281 | esac |
michael@0 | 9282 | |
michael@0 | 9283 | |
michael@0 | 9284 | |
michael@0 | 9285 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 9286 | # Files that config.status was made for. |
michael@0 | 9287 | config_files="$ac_config_files" |
michael@0 | 9288 | config_commands="$ac_config_commands" |
michael@0 | 9289 | |
michael@0 | 9290 | _ACEOF |
michael@0 | 9291 | |
michael@0 | 9292 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 9293 | ac_cs_usage="\ |
michael@0 | 9294 | \`$as_me' instantiates files and other configuration actions |
michael@0 | 9295 | from templates according to the current configuration. Unless the files |
michael@0 | 9296 | and actions are specified as TAGs, all are instantiated by default. |
michael@0 | 9297 | |
michael@0 | 9298 | Usage: $0 [OPTION]... [TAG]... |
michael@0 | 9299 | |
michael@0 | 9300 | -h, --help print this help, then exit |
michael@0 | 9301 | -V, --version print version number and configuration settings, then exit |
michael@0 | 9302 | --config print configuration, then exit |
michael@0 | 9303 | -q, --quiet, --silent |
michael@0 | 9304 | do not print progress messages |
michael@0 | 9305 | -d, --debug don't remove temporary files |
michael@0 | 9306 | --recheck update $as_me by reconfiguring in the same conditions |
michael@0 | 9307 | --file=FILE[:TEMPLATE] |
michael@0 | 9308 | instantiate the configuration file FILE |
michael@0 | 9309 | |
michael@0 | 9310 | Configuration files: |
michael@0 | 9311 | $config_files |
michael@0 | 9312 | |
michael@0 | 9313 | Configuration commands: |
michael@0 | 9314 | $config_commands |
michael@0 | 9315 | |
michael@0 | 9316 | Report bugs to the package provider." |
michael@0 | 9317 | |
michael@0 | 9318 | _ACEOF |
michael@0 | 9319 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 9320 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
michael@0 | 9321 | ac_cs_version="\\ |
michael@0 | 9322 | config.status |
michael@0 | 9323 | configured by $0, generated by GNU Autoconf 2.69, |
michael@0 | 9324 | with options \\"\$ac_cs_config\\" |
michael@0 | 9325 | |
michael@0 | 9326 | Copyright (C) 2012 Free Software Foundation, Inc. |
michael@0 | 9327 | This config.status script is free software; the Free Software Foundation |
michael@0 | 9328 | gives unlimited permission to copy, distribute and modify it." |
michael@0 | 9329 | |
michael@0 | 9330 | ac_pwd='$ac_pwd' |
michael@0 | 9331 | srcdir='$srcdir' |
michael@0 | 9332 | test -n "\$AWK" || AWK=awk |
michael@0 | 9333 | _ACEOF |
michael@0 | 9334 | |
michael@0 | 9335 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 9336 | # The default lists apply if the user does not specify any file. |
michael@0 | 9337 | ac_need_defaults=: |
michael@0 | 9338 | while test $# != 0 |
michael@0 | 9339 | do |
michael@0 | 9340 | case $1 in |
michael@0 | 9341 | --*=?*) |
michael@0 | 9342 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
michael@0 | 9343 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
michael@0 | 9344 | ac_shift=: |
michael@0 | 9345 | ;; |
michael@0 | 9346 | --*=) |
michael@0 | 9347 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
michael@0 | 9348 | ac_optarg= |
michael@0 | 9349 | ac_shift=: |
michael@0 | 9350 | ;; |
michael@0 | 9351 | *) |
michael@0 | 9352 | ac_option=$1 |
michael@0 | 9353 | ac_optarg=$2 |
michael@0 | 9354 | ac_shift=shift |
michael@0 | 9355 | ;; |
michael@0 | 9356 | esac |
michael@0 | 9357 | |
michael@0 | 9358 | case $ac_option in |
michael@0 | 9359 | # Handling of the options. |
michael@0 | 9360 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
michael@0 | 9361 | ac_cs_recheck=: ;; |
michael@0 | 9362 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
michael@0 | 9363 | $as_echo "$ac_cs_version"; exit ;; |
michael@0 | 9364 | --config | --confi | --conf | --con | --co | --c ) |
michael@0 | 9365 | $as_echo "$ac_cs_config"; exit ;; |
michael@0 | 9366 | --debug | --debu | --deb | --de | --d | -d ) |
michael@0 | 9367 | debug=: ;; |
michael@0 | 9368 | --file | --fil | --fi | --f ) |
michael@0 | 9369 | $ac_shift |
michael@0 | 9370 | case $ac_optarg in |
michael@0 | 9371 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
michael@0 | 9372 | '') as_fn_error $? "missing file argument" ;; |
michael@0 | 9373 | esac |
michael@0 | 9374 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
michael@0 | 9375 | ac_need_defaults=false;; |
michael@0 | 9376 | --he | --h | --help | --hel | -h ) |
michael@0 | 9377 | $as_echo "$ac_cs_usage"; exit ;; |
michael@0 | 9378 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
michael@0 | 9379 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
michael@0 | 9380 | ac_cs_silent=: ;; |
michael@0 | 9381 | |
michael@0 | 9382 | # This is an error. |
michael@0 | 9383 | -*) as_fn_error $? "unrecognized option: \`$1' |
michael@0 | 9384 | Try \`$0 --help' for more information." ;; |
michael@0 | 9385 | |
michael@0 | 9386 | *) as_fn_append ac_config_targets " $1" |
michael@0 | 9387 | ac_need_defaults=false ;; |
michael@0 | 9388 | |
michael@0 | 9389 | esac |
michael@0 | 9390 | shift |
michael@0 | 9391 | done |
michael@0 | 9392 | |
michael@0 | 9393 | ac_configure_extra_args= |
michael@0 | 9394 | |
michael@0 | 9395 | if $ac_cs_silent; then |
michael@0 | 9396 | exec 6>/dev/null |
michael@0 | 9397 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
michael@0 | 9398 | fi |
michael@0 | 9399 | |
michael@0 | 9400 | _ACEOF |
michael@0 | 9401 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 9402 | if \$ac_cs_recheck; then |
michael@0 | 9403 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
michael@0 | 9404 | shift |
michael@0 | 9405 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
michael@0 | 9406 | CONFIG_SHELL='$SHELL' |
michael@0 | 9407 | export CONFIG_SHELL |
michael@0 | 9408 | exec "\$@" |
michael@0 | 9409 | fi |
michael@0 | 9410 | |
michael@0 | 9411 | _ACEOF |
michael@0 | 9412 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 9413 | exec 5>>config.log |
michael@0 | 9414 | { |
michael@0 | 9415 | echo |
michael@0 | 9416 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
michael@0 | 9417 | ## Running $as_me. ## |
michael@0 | 9418 | _ASBOX |
michael@0 | 9419 | $as_echo "$ac_log" |
michael@0 | 9420 | } >&5 |
michael@0 | 9421 | |
michael@0 | 9422 | _ACEOF |
michael@0 | 9423 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 9424 | _ACEOF |
michael@0 | 9425 | |
michael@0 | 9426 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 9427 | |
michael@0 | 9428 | # Handling of arguments. |
michael@0 | 9429 | for ac_config_target in $ac_config_targets |
michael@0 | 9430 | do |
michael@0 | 9431 | case $ac_config_target in |
michael@0 | 9432 | "$MAKEFILES") CONFIG_FILES="$CONFIG_FILES $MAKEFILES" ;; |
michael@0 | 9433 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
michael@0 | 9434 | |
michael@0 | 9435 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
michael@0 | 9436 | esac |
michael@0 | 9437 | done |
michael@0 | 9438 | |
michael@0 | 9439 | |
michael@0 | 9440 | # If the user did not use the arguments to specify the items to instantiate, |
michael@0 | 9441 | # then the envvar interface is used. Set only those that are not. |
michael@0 | 9442 | # We use the long form for the default assignment because of an extremely |
michael@0 | 9443 | # bizarre bug on SunOS 4.1.3. |
michael@0 | 9444 | if $ac_need_defaults; then |
michael@0 | 9445 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
michael@0 | 9446 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
michael@0 | 9447 | fi |
michael@0 | 9448 | |
michael@0 | 9449 | # Have a temporary directory for convenience. Make it in the build tree |
michael@0 | 9450 | # simply because there is no reason against having it here, and in addition, |
michael@0 | 9451 | # creating and moving files from /tmp can sometimes cause problems. |
michael@0 | 9452 | # Hook for its removal unless debugging. |
michael@0 | 9453 | # Note that there is a small window in which the directory will not be cleaned: |
michael@0 | 9454 | # after its creation but before its name has been assigned to `$tmp'. |
michael@0 | 9455 | $debug || |
michael@0 | 9456 | { |
michael@0 | 9457 | tmp= ac_tmp= |
michael@0 | 9458 | trap 'exit_status=$? |
michael@0 | 9459 | : "${ac_tmp:=$tmp}" |
michael@0 | 9460 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
michael@0 | 9461 | ' 0 |
michael@0 | 9462 | trap 'as_fn_exit 1' 1 2 13 15 |
michael@0 | 9463 | } |
michael@0 | 9464 | # Create a (secure) tmp directory for tmp files. |
michael@0 | 9465 | |
michael@0 | 9466 | { |
michael@0 | 9467 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
michael@0 | 9468 | test -d "$tmp" |
michael@0 | 9469 | } || |
michael@0 | 9470 | { |
michael@0 | 9471 | tmp=./conf$$-$RANDOM |
michael@0 | 9472 | (umask 077 && mkdir "$tmp") |
michael@0 | 9473 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
michael@0 | 9474 | ac_tmp=$tmp |
michael@0 | 9475 | |
michael@0 | 9476 | # Set up the scripts for CONFIG_FILES section. |
michael@0 | 9477 | # No need to generate them if there are no CONFIG_FILES. |
michael@0 | 9478 | # This happens for instance with `./config.status config.h'. |
michael@0 | 9479 | if test -n "$CONFIG_FILES"; then |
michael@0 | 9480 | |
michael@0 | 9481 | |
michael@0 | 9482 | ac_cr=`echo X | tr X '\015'` |
michael@0 | 9483 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
michael@0 | 9484 | # But we know of no other shell where ac_cr would be empty at this |
michael@0 | 9485 | # point, so we can use a bashism as a fallback. |
michael@0 | 9486 | if test "x$ac_cr" = x; then |
michael@0 | 9487 | eval ac_cr=\$\'\\r\' |
michael@0 | 9488 | fi |
michael@0 | 9489 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
michael@0 | 9490 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
michael@0 | 9491 | ac_cs_awk_cr='\\r' |
michael@0 | 9492 | else |
michael@0 | 9493 | ac_cs_awk_cr=$ac_cr |
michael@0 | 9494 | fi |
michael@0 | 9495 | |
michael@0 | 9496 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
michael@0 | 9497 | _ACEOF |
michael@0 | 9498 | |
michael@0 | 9499 | |
michael@0 | 9500 | { |
michael@0 | 9501 | echo "cat >conf$$subs.awk <<_ACEOF" && |
michael@0 | 9502 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
michael@0 | 9503 | echo "_ACEOF" |
michael@0 | 9504 | } >conf$$subs.sh || |
michael@0 | 9505 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 9506 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
michael@0 | 9507 | ac_delim='%!_!# ' |
michael@0 | 9508 | for ac_last_try in false false false false false :; do |
michael@0 | 9509 | . ./conf$$subs.sh || |
michael@0 | 9510 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 9511 | |
michael@0 | 9512 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
michael@0 | 9513 | if test $ac_delim_n = $ac_delim_num; then |
michael@0 | 9514 | break |
michael@0 | 9515 | elif $ac_last_try; then |
michael@0 | 9516 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 9517 | else |
michael@0 | 9518 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
michael@0 | 9519 | fi |
michael@0 | 9520 | done |
michael@0 | 9521 | rm -f conf$$subs.sh |
michael@0 | 9522 | |
michael@0 | 9523 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 9524 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
michael@0 | 9525 | _ACEOF |
michael@0 | 9526 | sed -n ' |
michael@0 | 9527 | h |
michael@0 | 9528 | s/^/S["/; s/!.*/"]=/ |
michael@0 | 9529 | p |
michael@0 | 9530 | g |
michael@0 | 9531 | s/^[^!]*!// |
michael@0 | 9532 | :repl |
michael@0 | 9533 | t repl |
michael@0 | 9534 | s/'"$ac_delim"'$// |
michael@0 | 9535 | t delim |
michael@0 | 9536 | :nl |
michael@0 | 9537 | h |
michael@0 | 9538 | s/\(.\{148\}\)..*/\1/ |
michael@0 | 9539 | t more1 |
michael@0 | 9540 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
michael@0 | 9541 | p |
michael@0 | 9542 | n |
michael@0 | 9543 | b repl |
michael@0 | 9544 | :more1 |
michael@0 | 9545 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
michael@0 | 9546 | p |
michael@0 | 9547 | g |
michael@0 | 9548 | s/.\{148\}// |
michael@0 | 9549 | t nl |
michael@0 | 9550 | :delim |
michael@0 | 9551 | h |
michael@0 | 9552 | s/\(.\{148\}\)..*/\1/ |
michael@0 | 9553 | t more2 |
michael@0 | 9554 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
michael@0 | 9555 | p |
michael@0 | 9556 | b |
michael@0 | 9557 | :more2 |
michael@0 | 9558 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
michael@0 | 9559 | p |
michael@0 | 9560 | g |
michael@0 | 9561 | s/.\{148\}// |
michael@0 | 9562 | t delim |
michael@0 | 9563 | ' <conf$$subs.awk | sed ' |
michael@0 | 9564 | /^[^""]/{ |
michael@0 | 9565 | N |
michael@0 | 9566 | s/\n// |
michael@0 | 9567 | } |
michael@0 | 9568 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
michael@0 | 9569 | rm -f conf$$subs.awk |
michael@0 | 9570 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 9571 | _ACAWK |
michael@0 | 9572 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
michael@0 | 9573 | for (key in S) S_is_set[key] = 1 |
michael@0 | 9574 | FS = "" |
michael@0 | 9575 | |
michael@0 | 9576 | } |
michael@0 | 9577 | { |
michael@0 | 9578 | line = $ 0 |
michael@0 | 9579 | nfields = split(line, field, "@") |
michael@0 | 9580 | substed = 0 |
michael@0 | 9581 | len = length(field[1]) |
michael@0 | 9582 | for (i = 2; i < nfields; i++) { |
michael@0 | 9583 | key = field[i] |
michael@0 | 9584 | keylen = length(key) |
michael@0 | 9585 | if (S_is_set[key]) { |
michael@0 | 9586 | value = S[key] |
michael@0 | 9587 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
michael@0 | 9588 | len += length(value) + length(field[++i]) |
michael@0 | 9589 | substed = 1 |
michael@0 | 9590 | } else |
michael@0 | 9591 | len += 1 + keylen |
michael@0 | 9592 | } |
michael@0 | 9593 | |
michael@0 | 9594 | print line |
michael@0 | 9595 | } |
michael@0 | 9596 | |
michael@0 | 9597 | _ACAWK |
michael@0 | 9598 | _ACEOF |
michael@0 | 9599 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 9600 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
michael@0 | 9601 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
michael@0 | 9602 | else |
michael@0 | 9603 | cat |
michael@0 | 9604 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
michael@0 | 9605 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
michael@0 | 9606 | _ACEOF |
michael@0 | 9607 | |
michael@0 | 9608 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
michael@0 | 9609 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
michael@0 | 9610 | # trailing colons and then remove the whole line if VPATH becomes empty |
michael@0 | 9611 | # (actually we leave an empty line to preserve line numbers). |
michael@0 | 9612 | if test "x$srcdir" = x.; then |
michael@0 | 9613 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
michael@0 | 9614 | h |
michael@0 | 9615 | s/// |
michael@0 | 9616 | s/^/:/ |
michael@0 | 9617 | s/[ ]*$/:/ |
michael@0 | 9618 | s/:\$(srcdir):/:/g |
michael@0 | 9619 | s/:\${srcdir}:/:/g |
michael@0 | 9620 | s/:@srcdir@:/:/g |
michael@0 | 9621 | s/^:*// |
michael@0 | 9622 | s/:*$// |
michael@0 | 9623 | x |
michael@0 | 9624 | s/\(=[ ]*\).*/\1/ |
michael@0 | 9625 | G |
michael@0 | 9626 | s/\n// |
michael@0 | 9627 | s/^[^=]*=[ ]*$// |
michael@0 | 9628 | }' |
michael@0 | 9629 | fi |
michael@0 | 9630 | |
michael@0 | 9631 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 9632 | fi # test -n "$CONFIG_FILES" |
michael@0 | 9633 | |
michael@0 | 9634 | |
michael@0 | 9635 | eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" |
michael@0 | 9636 | shift |
michael@0 | 9637 | for ac_tag |
michael@0 | 9638 | do |
michael@0 | 9639 | case $ac_tag in |
michael@0 | 9640 | :[FHLC]) ac_mode=$ac_tag; continue;; |
michael@0 | 9641 | esac |
michael@0 | 9642 | case $ac_mode$ac_tag in |
michael@0 | 9643 | :[FHL]*:*);; |
michael@0 | 9644 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
michael@0 | 9645 | :[FH]-) ac_tag=-:-;; |
michael@0 | 9646 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
michael@0 | 9647 | esac |
michael@0 | 9648 | ac_save_IFS=$IFS |
michael@0 | 9649 | IFS=: |
michael@0 | 9650 | set x $ac_tag |
michael@0 | 9651 | IFS=$ac_save_IFS |
michael@0 | 9652 | shift |
michael@0 | 9653 | ac_file=$1 |
michael@0 | 9654 | shift |
michael@0 | 9655 | |
michael@0 | 9656 | case $ac_mode in |
michael@0 | 9657 | :L) ac_source=$1;; |
michael@0 | 9658 | :[FH]) |
michael@0 | 9659 | ac_file_inputs= |
michael@0 | 9660 | for ac_f |
michael@0 | 9661 | do |
michael@0 | 9662 | case $ac_f in |
michael@0 | 9663 | -) ac_f="$ac_tmp/stdin";; |
michael@0 | 9664 | *) # Look for the file first in the build tree, then in the source tree |
michael@0 | 9665 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
michael@0 | 9666 | # because $ac_f cannot contain `:'. |
michael@0 | 9667 | test -f "$ac_f" || |
michael@0 | 9668 | case $ac_f in |
michael@0 | 9669 | [\\/$]*) false;; |
michael@0 | 9670 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
michael@0 | 9671 | esac || |
michael@0 | 9672 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
michael@0 | 9673 | esac |
michael@0 | 9674 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
michael@0 | 9675 | as_fn_append ac_file_inputs " '$ac_f'" |
michael@0 | 9676 | done |
michael@0 | 9677 | |
michael@0 | 9678 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
michael@0 | 9679 | # use $as_me), people would be surprised to read: |
michael@0 | 9680 | # /* config.h. Generated by config.status. */ |
michael@0 | 9681 | configure_input='Generated from '` |
michael@0 | 9682 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
michael@0 | 9683 | `' by configure.' |
michael@0 | 9684 | if test x"$ac_file" != x-; then |
michael@0 | 9685 | configure_input="$ac_file. $configure_input" |
michael@0 | 9686 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
michael@0 | 9687 | $as_echo "$as_me: creating $ac_file" >&6;} |
michael@0 | 9688 | fi |
michael@0 | 9689 | # Neutralize special characters interpreted by sed in replacement strings. |
michael@0 | 9690 | case $configure_input in #( |
michael@0 | 9691 | *\&* | *\|* | *\\* ) |
michael@0 | 9692 | ac_sed_conf_input=`$as_echo "$configure_input" | |
michael@0 | 9693 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
michael@0 | 9694 | *) ac_sed_conf_input=$configure_input;; |
michael@0 | 9695 | esac |
michael@0 | 9696 | |
michael@0 | 9697 | case $ac_tag in |
michael@0 | 9698 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
michael@0 | 9699 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
michael@0 | 9700 | esac |
michael@0 | 9701 | ;; |
michael@0 | 9702 | esac |
michael@0 | 9703 | |
michael@0 | 9704 | ac_dir=`$as_dirname -- "$ac_file" || |
michael@0 | 9705 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 9706 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
michael@0 | 9707 | X"$ac_file" : 'X\(//\)$' \| \ |
michael@0 | 9708 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 9709 | $as_echo X"$ac_file" | |
michael@0 | 9710 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 9711 | s//\1/ |
michael@0 | 9712 | q |
michael@0 | 9713 | } |
michael@0 | 9714 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 9715 | s//\1/ |
michael@0 | 9716 | q |
michael@0 | 9717 | } |
michael@0 | 9718 | /^X\(\/\/\)$/{ |
michael@0 | 9719 | s//\1/ |
michael@0 | 9720 | q |
michael@0 | 9721 | } |
michael@0 | 9722 | /^X\(\/\).*/{ |
michael@0 | 9723 | s//\1/ |
michael@0 | 9724 | q |
michael@0 | 9725 | } |
michael@0 | 9726 | s/.*/./; q'` |
michael@0 | 9727 | as_dir="$ac_dir"; as_fn_mkdir_p |
michael@0 | 9728 | ac_builddir=. |
michael@0 | 9729 | |
michael@0 | 9730 | case "$ac_dir" in |
michael@0 | 9731 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 9732 | *) |
michael@0 | 9733 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
michael@0 | 9734 | # A ".." for each directory in $ac_dir_suffix. |
michael@0 | 9735 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
michael@0 | 9736 | case $ac_top_builddir_sub in |
michael@0 | 9737 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 9738 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
michael@0 | 9739 | esac ;; |
michael@0 | 9740 | esac |
michael@0 | 9741 | ac_abs_top_builddir=$ac_pwd |
michael@0 | 9742 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
michael@0 | 9743 | # for backward compatibility: |
michael@0 | 9744 | ac_top_builddir=$ac_top_build_prefix |
michael@0 | 9745 | |
michael@0 | 9746 | case $srcdir in |
michael@0 | 9747 | .) # We are building in place. |
michael@0 | 9748 | ac_srcdir=. |
michael@0 | 9749 | ac_top_srcdir=$ac_top_builddir_sub |
michael@0 | 9750 | ac_abs_top_srcdir=$ac_pwd ;; |
michael@0 | 9751 | [\\/]* | ?:[\\/]* ) # Absolute name. |
michael@0 | 9752 | ac_srcdir=$srcdir$ac_dir_suffix; |
michael@0 | 9753 | ac_top_srcdir=$srcdir |
michael@0 | 9754 | ac_abs_top_srcdir=$srcdir ;; |
michael@0 | 9755 | *) # Relative name. |
michael@0 | 9756 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
michael@0 | 9757 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
michael@0 | 9758 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
michael@0 | 9759 | esac |
michael@0 | 9760 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
michael@0 | 9761 | |
michael@0 | 9762 | |
michael@0 | 9763 | case $ac_mode in |
michael@0 | 9764 | :F) |
michael@0 | 9765 | # |
michael@0 | 9766 | # CONFIG_FILE |
michael@0 | 9767 | # |
michael@0 | 9768 | |
michael@0 | 9769 | _ACEOF |
michael@0 | 9770 | |
michael@0 | 9771 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 9772 | # If the template does not know about datarootdir, expand it. |
michael@0 | 9773 | # FIXME: This hack should be removed a few years after 2.60. |
michael@0 | 9774 | ac_datarootdir_hack=; ac_datarootdir_seen= |
michael@0 | 9775 | ac_sed_dataroot=' |
michael@0 | 9776 | /datarootdir/ { |
michael@0 | 9777 | p |
michael@0 | 9778 | q |
michael@0 | 9779 | } |
michael@0 | 9780 | /@datadir@/p |
michael@0 | 9781 | /@docdir@/p |
michael@0 | 9782 | /@infodir@/p |
michael@0 | 9783 | /@localedir@/p |
michael@0 | 9784 | /@mandir@/p' |
michael@0 | 9785 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
michael@0 | 9786 | *datarootdir*) ac_datarootdir_seen=yes;; |
michael@0 | 9787 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
michael@0 | 9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
michael@0 | 9789 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
michael@0 | 9790 | _ACEOF |
michael@0 | 9791 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 9792 | ac_datarootdir_hack=' |
michael@0 | 9793 | s&@datadir@&$datadir&g |
michael@0 | 9794 | s&@docdir@&$docdir&g |
michael@0 | 9795 | s&@infodir@&$infodir&g |
michael@0 | 9796 | s&@localedir@&$localedir&g |
michael@0 | 9797 | s&@mandir@&$mandir&g |
michael@0 | 9798 | s&\\\${datarootdir}&$datarootdir&g' ;; |
michael@0 | 9799 | esac |
michael@0 | 9800 | _ACEOF |
michael@0 | 9801 | |
michael@0 | 9802 | # Neutralize VPATH when `$srcdir' = `.'. |
michael@0 | 9803 | # Shell code in configure.ac might set extrasub. |
michael@0 | 9804 | # FIXME: do we really want to maintain this feature? |
michael@0 | 9805 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 9806 | ac_sed_extra="$ac_vpsub |
michael@0 | 9807 | $extrasub |
michael@0 | 9808 | _ACEOF |
michael@0 | 9809 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 9810 | :t |
michael@0 | 9811 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
michael@0 | 9812 | s|@configure_input@|$ac_sed_conf_input|;t t |
michael@0 | 9813 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
michael@0 | 9814 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
michael@0 | 9815 | s&@srcdir@&$ac_srcdir&;t t |
michael@0 | 9816 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
michael@0 | 9817 | s&@top_srcdir@&$ac_top_srcdir&;t t |
michael@0 | 9818 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
michael@0 | 9819 | s&@builddir@&$ac_builddir&;t t |
michael@0 | 9820 | s&@abs_builddir@&$ac_abs_builddir&;t t |
michael@0 | 9821 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
michael@0 | 9822 | $ac_datarootdir_hack |
michael@0 | 9823 | " |
michael@0 | 9824 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
michael@0 | 9825 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
michael@0 | 9826 | |
michael@0 | 9827 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
michael@0 | 9828 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
michael@0 | 9829 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
michael@0 | 9830 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
michael@0 | 9831 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
michael@0 | 9832 | which seems to be undefined. Please make sure it is defined" >&5 |
michael@0 | 9833 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
michael@0 | 9834 | which seems to be undefined. Please make sure it is defined" >&2;} |
michael@0 | 9835 | |
michael@0 | 9836 | rm -f "$ac_tmp/stdin" |
michael@0 | 9837 | case $ac_file in |
michael@0 | 9838 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
michael@0 | 9839 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
michael@0 | 9840 | esac \ |
michael@0 | 9841 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
michael@0 | 9842 | ;; |
michael@0 | 9843 | |
michael@0 | 9844 | |
michael@0 | 9845 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
michael@0 | 9846 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
michael@0 | 9847 | ;; |
michael@0 | 9848 | esac |
michael@0 | 9849 | |
michael@0 | 9850 | |
michael@0 | 9851 | case $ac_file$ac_mode in |
michael@0 | 9852 | "default":C) chmod +x config/nspr-config ;; |
michael@0 | 9853 | |
michael@0 | 9854 | esac |
michael@0 | 9855 | done # for ac_tag |
michael@0 | 9856 | |
michael@0 | 9857 | |
michael@0 | 9858 | as_fn_exit 0 |
michael@0 | 9859 | _ACEOF |
michael@0 | 9860 | ac_clean_files=$ac_clean_files_save |
michael@0 | 9861 | |
michael@0 | 9862 | test $ac_write_fail = 0 || |
michael@0 | 9863 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 9864 | |
michael@0 | 9865 | |
michael@0 | 9866 | # configure is writing to config.log, and then calls config.status. |
michael@0 | 9867 | # config.status does its own redirection, appending to config.log. |
michael@0 | 9868 | # Unfortunately, on DOS this fails, as config.log is still kept open |
michael@0 | 9869 | # by configure, so config.status won't be able to write to it; its |
michael@0 | 9870 | # output is simply discarded. So we exec the FD to /dev/null, |
michael@0 | 9871 | # effectively closing config.log, so it can be properly (re)opened and |
michael@0 | 9872 | # appended to by config.status. When coming back to configure, we |
michael@0 | 9873 | # need to make the FD available again. |
michael@0 | 9874 | if test "$no_create" != yes; then |
michael@0 | 9875 | ac_cs_success=: |
michael@0 | 9876 | ac_config_status_args= |
michael@0 | 9877 | test "$silent" = yes && |
michael@0 | 9878 | ac_config_status_args="$ac_config_status_args --quiet" |
michael@0 | 9879 | exec 5>/dev/null |
michael@0 | 9880 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
michael@0 | 9881 | exec 5>>config.log |
michael@0 | 9882 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
michael@0 | 9883 | # would make configure fail if this is the last instruction. |
michael@0 | 9884 | $ac_cs_success || as_fn_exit 1 |
michael@0 | 9885 | fi |
michael@0 | 9886 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
michael@0 | 9887 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
michael@0 | 9888 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
michael@0 | 9889 | fi |
michael@0 | 9890 |